123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023 |
- var Tdt=Object.defineProperty,Sdt=Object.defineProperties;var xdt=Object.getOwnPropertyDescriptors;var wj=Object.getOwnPropertySymbols;var qNe=Object.prototype.hasOwnProperty,JNe=Object.prototype.propertyIsEnumerable;var z4=(lc,Jl)=>{if(Jl=Symbol[lc])return Jl;throw Error("Symbol."+lc+" is not defined")},q4=Math.pow,zNe=(lc,Jl,lu)=>Jl in lc?Tdt(lc,Jl,{enumerable:!0,configurable:!0,writable:!0,value:lu}):lc[Jl]=lu,Ti=(lc,Jl)=>{for(var lu in Jl||(Jl={}))qNe.call(Jl,lu)&&zNe(lc,lu,Jl[lu]);if(wj)for(var lu of wj(Jl))JNe.call(Jl,lu)&&zNe(lc,lu,Jl[lu]);return lc},Ka=(lc,Jl)=>Sdt(lc,xdt(Jl));var Dj=(lc,Jl)=>{var lu={};for(var cf in lc)qNe.call(lc,cf)&&Jl.indexOf(cf)<0&&(lu[cf]=lc[cf]);if(lc!=null&&wj)for(var cf of wj(lc))Jl.indexOf(cf)<0&&JNe.call(lc,cf)&&(lu[cf]=lc[cf]);return lu};var pc=(lc,Jl,lu)=>new Promise((cf,Nm)=>{var Yp=Wd=>{try{ug(lu.next(Wd))}catch(AA){Nm(AA)}},q0=Wd=>{try{ug(lu.throw(Wd))}catch(AA){Nm(AA)}},ug=Wd=>Wd.done?cf(Wd.value):Promise.resolve(Wd.value).then(Yp,q0);ug((lu=lu.apply(lc,Jl)).next())}),Adt=function(lc,Jl){this[0]=lc,this[1]=Jl};var Rj=lc=>{var Jl=lc[z4("asyncIterator")],lu=!1,cf,Nm={};return Jl==null?(Jl=lc[z4("iterator")](),cf=Yp=>Nm[Yp]=q0=>Jl[Yp](q0)):(Jl=Jl.call(lc),cf=Yp=>Nm[Yp]=q0=>{if(lu){if(lu=!1,Yp==="throw")throw q0;return q0}return lu=!0,{done:!1,value:new Adt(new Promise(ug=>{var Wd=Jl[Yp](q0);if(!(Wd instanceof Object))throw TypeError("Object expected");ug(Wd)}),1)}}),Nm[z4("iterator")]=()=>Nm,cf("next"),"throw"in Jl?cf("throw"):Nm.throw=Yp=>{throw Yp},"return"in Jl&&cf("return"),Nm},KNe=(lc,Jl,lu)=>(Jl=lc[z4("asyncIterator")])?Jl.call(lc):(lc=lc[z4("iterator")](),Jl={},lu=(cf,Nm)=>(Nm=lc[cf])&&(Jl[cf]=Yp=>new Promise((q0,ug,Wd)=>(Yp=Nm.call(lc,Yp),Wd=Yp.done,Promise.resolve(Yp.value).then(AA=>q0({value:AA,done:Wd}),ug)))),lu("next"),lu("return"),Jl);(function(){"use strict";class lc{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(()=>{throw g.stack?ug.isErrorNoTelemetry(g)?new ug(g.message+`
- `+g.stack):new Error(g.message+`
- `+g.stack):g},0)}}emit(g){this.listeners.forEach(S=>{S(g)})}onUnexpectedError(g){this.unexpectedErrorHandler(g),this.emit(g)}onUnexpectedExternalError(g){this.unexpectedErrorHandler(g)}}const Jl=new lc;function lu(m){Yp(m)||Jl.onUnexpectedError(m)}function cf(m){if(m instanceof Error){const{name:g,message:S}=m,P=m.stacktrace||m.stack;return{$isError:!0,name:g,message:S,stack:P,noTelemetry:ug.isErrorNoTelemetry(m)}}return m}const Nm="Canceled";function Yp(m){return m instanceof q0?!0:m instanceof Error&&m.name===Nm&&m.message===Nm}class q0 extends Error{constructor(){super(Nm),this.name=this.message}}class ug extends Error{constructor(g){super(g),this.name="CodeExpectedError"}static fromError(g){if(g instanceof ug)return g;const S=new ug;return S.message=g.message,S.stack=g.stack,S}static isErrorNoTelemetry(g){return g.name==="CodeExpectedError"}}class Wd extends Error{constructor(g){super(g||"An unexpected bug occurred."),Object.setPrototypeOf(this,Wd.prototype)}}function AA(m,g){const S=this;let P=!1,X;return function(){if(P)return X;if(P=!0,g)try{X=m.apply(S,arguments)}finally{g()}else X=m.apply(S,arguments);return X}}var K4;(function(m){function g(Yr){return Yr&&typeof Yr=="object"&&typeof Yr[Symbol.iterator]=="function"}m.is=g;const S=Object.freeze([]);function P(){return S}m.empty=P;function*X(Yr){yield Yr}m.single=X;function _e(Yr){return g(Yr)?Yr:X(Yr)}m.wrap=_e;function ve(Yr){return Yr||S}m.from=ve;function*Be(Yr){for(let mi=Yr.length-1;mi>=0;mi--)yield Yr[mi]}m.reverse=Be;function ct(Yr){return!Yr||Yr[Symbol.iterator]().next().done===!0}m.isEmpty=ct;function Le(Yr){return Yr[Symbol.iterator]().next().value}m.first=Le;function Je(Yr,mi){for(const ji of Yr)if(mi(ji))return!0;return!1}m.some=Je;function Xt(Yr,mi){for(const ji of Yr)if(mi(ji))return ji}m.find=Xt;function*Jt(Yr,mi){for(const ji of Yr)mi(ji)&&(yield ji)}m.filter=Jt;function*dn(Yr,mi){let ji=0;for(const Uo of Yr)yield mi(Uo,ji++)}m.map=dn;function*Rr(...Yr){for(const mi of Yr)yield*Rj(mi)}m.concat=Rr;function fi(Yr,mi,ji){let Uo=ji;for(const Ur of Yr)Uo=mi(Uo,Ur);return Uo}m.reduce=fi;function*ta(Yr,mi,ji=Yr.length){for(mi<0&&(mi+=Yr.length),ji<0?ji+=Yr.length:ji>Yr.length&&(ji=Yr.length);mi<ji;mi++)yield Yr[mi]}m.slice=ta;function Zn(Yr,mi=Number.POSITIVE_INFINITY){const ji=[];if(mi===0)return[ji,Yr];const Uo=Yr[Symbol.iterator]();for(let Ur=0;Ur<mi;Ur++){const Oo=Uo.next();if(Oo.done)return[ji,m.empty()];ji.push(Oo.value)}return[ji,{[Symbol.iterator](){return Uo}}]}m.consume=Zn;function In(Yr){return pc(this,null,function*(){const mi=[];try{for(var ji=KNe(Yr),Uo,Ur,Oo;Uo=!(Ur=yield ji.next()).done;Uo=!1){const mc=Ur.value;mi.push(mc)}}catch(Ur){Oo=[Ur]}finally{try{Uo&&(Ur=ji.return)&&(yield Ur.call(ji))}finally{if(Oo)throw Oo[0]}}return Promise.resolve(mi)})}m.asyncToArray=In})(K4||(K4={}));function Cdt(m){return m}function Ldt(m,g){}function Mse(m){if(K4.is(m)){const g=[];for(const S of m)if(S)try{S.dispose()}catch(P){g.push(P)}if(g.length===1)throw g[0];if(g.length>1)throw new AggregateError(g,"Encountered errors while disposing of store");return Array.isArray(m)?[]:m}else if(m)return m.dispose(),m}function XNe(...m){return X4(()=>Mse(m))}function X4(m){return{dispose:AA(()=>{m()})}}class hI{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Mse(this._toDispose)}finally{this._toDispose.clear()}}add(g){if(!g)return g;if(g===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?hI.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(g),g}deleteAndLeak(g){g&&this._toDispose.has(g)&&this._toDispose.delete(g)}}hI.DISABLE_DISPOSED_WARNING=!1;class gR{constructor(){this._store=new hI,this._store}dispose(){this._store.dispose()}_register(g){if(g===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(g)}}gR.None=Object.freeze({dispose(){}});class Bu{constructor(g){this.element=g,this.next=Bu.Undefined,this.prev=Bu.Undefined}}Bu.Undefined=new Bu(void 0);class YNe{constructor(){this._first=Bu.Undefined,this._last=Bu.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Bu.Undefined}clear(){let g=this._first;for(;g!==Bu.Undefined;){const S=g.next;g.prev=Bu.Undefined,g.next=Bu.Undefined,g=S}this._first=Bu.Undefined,this._last=Bu.Undefined,this._size=0}unshift(g){return this._insert(g,!1)}push(g){return this._insert(g,!0)}_insert(g,S){const P=new Bu(g);if(this._first===Bu.Undefined)this._first=P,this._last=P;else if(S){const _e=this._last;this._last=P,P.prev=_e,_e.next=P}else{const _e=this._first;this._first=P,P.next=_e,_e.prev=P}this._size+=1;let X=!1;return()=>{X||(X=!0,this._remove(P))}}shift(){if(this._first!==Bu.Undefined){const g=this._first.element;return this._remove(this._first),g}}pop(){if(this._last!==Bu.Undefined){const g=this._last.element;return this._remove(this._last),g}}_remove(g){if(g.prev!==Bu.Undefined&&g.next!==Bu.Undefined){const S=g.prev;S.next=g.next,g.next.prev=S}else g.prev===Bu.Undefined&&g.next===Bu.Undefined?(this._first=Bu.Undefined,this._last=Bu.Undefined):g.next===Bu.Undefined?(this._last=this._last.prev,this._last.next=Bu.Undefined):g.prev===Bu.Undefined&&(this._first=this._first.next,this._first.prev=Bu.Undefined);this._size-=1}*[Symbol.iterator](){let g=this._first;for(;g!==Bu.Undefined;)yield g.element,g=g.next}}const $Ne=globalThis.performance&&typeof globalThis.performance.now=="function";class Y4{static create(g){return new Y4(g)}constructor(g){this._now=$Ne&&g===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Nj;(function(m){m.None=()=>gR.None;function g(yn,ni){return Xt(yn,()=>{},0,void 0,!0,void 0,ni)}m.defer=g;function S(yn){return(ni,Aa=null,zt)=>{let us=!1,no;return no=yn(Ds=>{if(!us)return no?no.dispose():us=!0,ni.call(Aa,Ds)},null,zt),us&&no.dispose(),no}}m.once=S;function P(yn,ni,Aa){return Le((zt,us=null,no)=>yn(Ds=>zt.call(us,ni(Ds)),null,no),Aa)}m.map=P;function X(yn,ni,Aa){return Le((zt,us=null,no)=>yn(Ds=>{ni(Ds),zt.call(us,Ds)},null,no),Aa)}m.forEach=X;function _e(yn,ni,Aa){return Le((zt,us=null,no)=>yn(Ds=>ni(Ds)&&zt.call(us,Ds),null,no),Aa)}m.filter=_e;function ve(yn){return yn}m.signal=ve;function Be(...yn){return(ni,Aa=null,zt)=>{const us=XNe(...yn.map(no=>no(Ds=>ni.call(Aa,Ds))));return Je(us,zt)}}m.any=Be;function ct(yn,ni,Aa,zt){let us=Aa;return P(yn,no=>(us=ni(us,no),us),zt)}m.reduce=ct;function Le(yn,ni){let Aa;const zt={onWillAddFirstListener(){Aa=yn(us.fire,us)},onDidRemoveLastListener(){Aa==null||Aa.dispose()}},us=new J0(zt);return ni==null||ni.add(us),us.event}function Je(yn,ni){return ni instanceof Array?ni.push(yn):ni&&ni.add(yn),yn}function Xt(yn,ni,Aa=100,zt=!1,us=!1,no,Ds){let Ga,Rf,m1,DA=0,Z0;const pa={leakWarningThreshold:no,onWillAddFirstListener(){Ga=yn(_H=>{DA++,Rf=ni(Rf,_H),zt&&!m1&&(h1.fire(Rf),Rf=void 0),Z0=()=>{const RA=Rf;Rf=void 0,m1=void 0,(!zt||DA>1)&&h1.fire(RA),DA=0},typeof Aa=="number"?(clearTimeout(m1),m1=setTimeout(Z0,Aa)):m1===void 0&&(m1=0,queueMicrotask(Z0))})},onWillRemoveListener(){us&&DA>0&&(Z0==null||Z0())},onDidRemoveLastListener(){Z0=void 0,Ga.dispose()}},h1=new J0(pa);return Ds==null||Ds.add(h1),h1.event}m.debounce=Xt;function Jt(yn,ni=0,Aa){return m.debounce(yn,(zt,us)=>zt?(zt.push(us),zt):[us],ni,void 0,!0,void 0,Aa)}m.accumulate=Jt;function dn(yn,ni=(zt,us)=>zt===us,Aa){let zt=!0,us;return _e(yn,no=>{const Ds=zt||!ni(no,us);return zt=!1,us=no,Ds},Aa)}m.latch=dn;function Rr(yn,ni,Aa){return[m.filter(yn,ni,Aa),m.filter(yn,zt=>!ni(zt),Aa)]}m.split=Rr;function fi(yn,ni=!1,Aa=[],zt){let us=Aa.slice(),no=yn(Rf=>{us?us.push(Rf):Ga.fire(Rf)});zt&&zt.add(no);const Ds=()=>{us==null||us.forEach(Rf=>Ga.fire(Rf)),us=null},Ga=new J0({onWillAddFirstListener(){no||(no=yn(Rf=>Ga.fire(Rf)),zt&&zt.add(no))},onDidAddFirstListener(){us&&(ni?setTimeout(Ds):Ds())},onDidRemoveLastListener(){no&&no.dispose(),no=null}});return zt&&zt.add(Ga),Ga.event}m.buffer=fi;function ta(yn,ni){return(zt,us,no)=>{const Ds=ni(new In);return yn(function(Ga){const Rf=Ds.evaluate(Ga);Rf!==Zn&&zt.call(us,Rf)},void 0,no)}}m.chain=ta;const Zn=Symbol("HaltChainable");class In{constructor(){this.steps=[]}map(ni){return this.steps.push(ni),this}forEach(ni){return this.steps.push(Aa=>(ni(Aa),Aa)),this}filter(ni){return this.steps.push(Aa=>ni(Aa)?Aa:Zn),this}reduce(ni,Aa){let zt=Aa;return this.steps.push(us=>(zt=ni(zt,us),zt)),this}latch(ni=(Aa,zt)=>Aa===zt){let Aa=!0,zt;return this.steps.push(us=>{const no=Aa||!ni(us,zt);return Aa=!1,zt=us,no?us:Zn}),this}evaluate(ni){for(const Aa of this.steps)if(ni=Aa(ni),ni===Zn)break;return ni}}function Yr(yn,ni,Aa=zt=>zt){const zt=(...Ga)=>Ds.fire(Aa(...Ga)),us=()=>yn.on(ni,zt),no=()=>yn.removeListener(ni,zt),Ds=new J0({onWillAddFirstListener:us,onDidRemoveLastListener:no});return Ds.event}m.fromNodeEventEmitter=Yr;function mi(yn,ni,Aa=zt=>zt){const zt=(...Ga)=>Ds.fire(Aa(...Ga)),us=()=>yn.addEventListener(ni,zt),no=()=>yn.removeEventListener(ni,zt),Ds=new J0({onWillAddFirstListener:us,onDidRemoveLastListener:no});return Ds.event}m.fromDOMEventEmitter=mi;function ji(yn){return new Promise(ni=>S(yn)(ni))}m.toPromise=ji;function Uo(yn){const ni=new J0;return yn.then(Aa=>{ni.fire(Aa)},()=>{ni.fire(void 0)}).finally(()=>{ni.dispose()}),ni.event}m.fromPromise=Uo;function Ur(yn,ni,Aa){return ni(Aa),yn(zt=>ni(zt))}m.runAndSubscribe=Ur;class Oo{constructor(ni,Aa){this._observable=ni,this._counter=0,this._hasChanged=!1;const zt={onWillAddFirstListener:()=>{ni.addObserver(this)},onDidRemoveLastListener:()=>{ni.removeObserver(this)}};this.emitter=new J0(zt),Aa&&Aa.add(this.emitter)}beginUpdate(ni){this._counter++}handlePossibleChange(ni){}handleChange(ni,Aa){this._hasChanged=!0}endUpdate(ni){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function mc(yn,ni){return new Oo(yn,ni).emitter.event}m.fromObservable=mc;function Wc(yn){return(ni,Aa,zt)=>{let us=0,no=!1;const Ds={beginUpdate(){us++},endUpdate(){us--,us===0&&(yn.reportChanges(),no&&(no=!1,ni.call(Aa)))},handlePossibleChange(){},handleChange(){no=!0}};yn.addObserver(Ds),yn.reportChanges();const Ga={dispose(){yn.removeObserver(Ds)}};return zt instanceof hI?zt.add(Ga):Array.isArray(zt)&&zt.push(Ga),Ga}}m.fromObservableLight=Wc})(Nj||(Nj={}));class gI{constructor(g){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${g}_${gI._idPool++}`,gI.all.add(this)}start(g){this._stopWatch=new Y4,this.listenerCount=g}stop(){if(this._stopWatch){const g=this._stopWatch.elapsed();this.durations.push(g),this.elapsedOverall+=g,this.invocationCount+=1,this._stopWatch=void 0}}}gI.all=new Set,gI._idPool=0;let QNe=-1;class ZNe{constructor(g,S=Math.random().toString(18).slice(2,5)){this.threshold=g,this.name=S,this._warnCountdown=0}dispose(){var g;(g=this._stacks)===null||g===void 0||g.clear()}check(g,S){const P=this.threshold;if(P<=0||S<P)return;this._stacks||(this._stacks=new Map);const X=this._stacks.get(g.value)||0;if(this._stacks.set(g.value,X+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=P*.5;let _e,ve=0;for(const[Be,ct]of this._stacks)(!_e||ve<ct)&&(_e=Be,ve=ct);console.warn(`[${this.name}] potential listener LEAK detected, having ${S} listeners already. MOST frequent listener (${ve}):`),console.warn(_e)}return()=>{const _e=this._stacks.get(g.value)||0;this._stacks.set(g.value,_e-1)}}}class Oj{static create(){var g;return new Oj((g=new Error().stack)!==null&&g!==void 0?g:"")}constructor(g){this.value=g}print(){console.warn(this.value.split(`
- `).slice(2).join(`
- `))}}class Pj{constructor(g){this.value=g}}const eOe=2;class J0{constructor(g){var S,P,X,_e,ve;this._size=0,this._options=g,this._leakageMon=!((S=this._options)===null||S===void 0)&&S.leakWarningThreshold?new ZNe((X=(P=this._options)===null||P===void 0?void 0:P.leakWarningThreshold)!==null&&X!==void 0?X:QNe):void 0,this._perfMon=!((_e=this._options)===null||_e===void 0)&&_e._profName?new gI(this._options._profName):void 0,this._deliveryQueue=(ve=this._options)===null||ve===void 0?void 0:ve.deliveryQueue}dispose(){var g,S,P,X;this._disposed||(this._disposed=!0,((g=this._deliveryQueue)===null||g===void 0?void 0:g.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(P=(S=this._options)===null||S===void 0?void 0:S.onDidRemoveLastListener)===null||P===void 0||P.call(S),(X=this._leakageMon)===null||X===void 0||X.dispose())}get event(){var g;return(g=this._event)!==null&&g!==void 0||(this._event=(S,P,X)=>{var _e,ve,Be,ct,Le;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),gR.None;if(this._disposed)return gR.None;P&&(S=S.bind(P));const Je=new Pj(S);let Xt;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(Je.stack=Oj.create(),Xt=this._leakageMon.check(Je.stack,this._size+1)),this._listeners?this._listeners instanceof Pj?((Le=this._deliveryQueue)!==null&&Le!==void 0||(this._deliveryQueue=new tOe),this._listeners=[this._listeners,Je]):this._listeners.push(Je):((ve=(_e=this._options)===null||_e===void 0?void 0:_e.onWillAddFirstListener)===null||ve===void 0||ve.call(_e,this),this._listeners=Je,(ct=(Be=this._options)===null||Be===void 0?void 0:Be.onDidAddFirstListener)===null||ct===void 0||ct.call(Be,this)),this._size++;const Jt=X4(()=>{Xt==null||Xt(),this._removeListener(Je)});return X instanceof hI?X.add(Jt):Array.isArray(X)&&X.push(Jt),Jt}),this._event}_removeListener(g){var S,P,X,_e;if((P=(S=this._options)===null||S===void 0?void 0:S.onWillRemoveListener)===null||P===void 0||P.call(S,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(_e=(X=this._options)===null||X===void 0?void 0:X.onDidRemoveLastListener)===null||_e===void 0||_e.call(X,this),this._size=0;return}const ve=this._listeners,Be=ve.indexOf(g);if(Be===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,ve[Be]=void 0;const ct=this._deliveryQueue.current===this;if(this._size*eOe<=ve.length){let Le=0;for(let Je=0;Je<ve.length;Je++)ve[Je]?ve[Le++]=ve[Je]:ct&&(this._deliveryQueue.end--,Le<this._deliveryQueue.i&&this._deliveryQueue.i--);ve.length=Le}}_deliver(g,S){var P;if(!g)return;const X=((P=this._options)===null||P===void 0?void 0:P.onListenerError)||lu;if(!X){g.value(S);return}try{g.value(S)}catch(_e){X(_e)}}_deliverQueue(g){const S=g.current._listeners;for(;g.i<g.end;)this._deliver(S[g.i++],g.value);g.reset()}fire(g){var S,P,X,_e;if(!((S=this._deliveryQueue)===null||S===void 0)&&S.current&&(this._deliverQueue(this._deliveryQueue),(P=this._perfMon)===null||P===void 0||P.stop()),(X=this._perfMon)===null||X===void 0||X.start(this._size),this._listeners)if(this._listeners instanceof Pj)this._deliver(this._listeners,g);else{const ve=this._deliveryQueue;ve.enqueue(this,g,this._listeners.length),this._deliverQueue(ve)}(_e=this._perfMon)===null||_e===void 0||_e.stop()}hasListeners(){return this._size>0}}class tOe{constructor(){this.i=-1,this.end=0}enqueue(g,S,P){this.i=0,this.end=P,this.current=g,this.value=S}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function nOe(m){return typeof m=="string"}function rOe(m){let g=[];for(;Object.prototype!==m;)g=g.concat(Object.getOwnPropertyNames(m)),m=Object.getPrototypeOf(m);return g}function Mj(m){const g=[];for(const S of rOe(m))typeof m[S]=="function"&&g.push(S);return g}function iOe(m,g){const S=X=>function(){const _e=Array.prototype.slice.call(arguments,0);return g(X,_e)},P={};for(const X of m)P[X]=S(X);return P}let aOe=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function oOe(m,g){let S;return g.length===0?S=m:S=m.replace(/\{(\d+)\}/g,(P,X)=>{const _e=X[0],ve=g[_e];let Be=P;return typeof ve=="string"?Be=ve:(typeof ve=="number"||typeof ve=="boolean"||ve===void 0||ve===null)&&(Be=String(ve)),Be}),aOe&&(S="["+S.replace(/[aouei]/g,"$&$&")+"]"),S}function nd(m,g,...S){return oOe(g,S)}function Idt(m){}var Fj,Bj;const yI="en";let Gj=!1,Uj=!1,Vj=!1,$4,jj=yI,Fse=yI,sOe,K0;const CA=globalThis;let $p;typeof CA.vscode!="undefined"&&typeof CA.vscode.process!="undefined"?$p=CA.vscode.process:typeof process!="undefined"&&typeof((Fj=process==null?void 0:process.versions)===null||Fj===void 0?void 0:Fj.node)=="string"&&($p=process);const lOe=typeof((Bj=$p==null?void 0:$p.versions)===null||Bj===void 0?void 0:Bj.electron)=="string"&&($p==null?void 0:$p.type)==="renderer";if(typeof $p=="object"){Gj=$p.platform==="win32",Uj=$p.platform==="darwin",Vj=$p.platform==="linux",Vj&&$p.env.SNAP&&$p.env.SNAP_REVISION,$p.env.CI||$p.env.BUILD_ARTIFACTSTAGINGDIRECTORY,$4=yI,jj=yI;const m=$p.env.VSCODE_NLS_CONFIG;if(m)try{const g=JSON.parse(m),S=g.availableLanguages["*"];$4=g.locale,Fse=g.osLocale,jj=S||yI,sOe=g._translationsConfigFile}catch(g){}}else typeof navigator=="object"&&!lOe?(K0=navigator.userAgent,Gj=K0.indexOf("Windows")>=0,Uj=K0.indexOf("Macintosh")>=0,(K0.indexOf("Macintosh")>=0||K0.indexOf("iPad")>=0||K0.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Vj=K0.indexOf("Linux")>=0,(K0==null?void 0:K0.indexOf("Mobi"))>=0,nd({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),$4=yI,jj=$4,Fse=navigator.language):console.error("Unable to resolve platform.");const yR=Gj,cOe=Uj,_1=K0,uOe=typeof CA.postMessage=="function"&&!CA.importScripts;(()=>{if(uOe){const m=[];CA.addEventListener("message",S=>{if(S.data&&S.data.vscodeScheduleAsyncWork)for(let P=0,X=m.length;P<X;P++){const _e=m[P];if(_e.id===S.data.vscodeScheduleAsyncWork){m.splice(P,1),_e.callback();return}}});let g=0;return S=>{const P=++g;m.push({id:P,callback:S}),CA.postMessage({vscodeScheduleAsyncWork:P},"*")}}return m=>setTimeout(m)})();const dOe=!!(_1&&_1.indexOf("Chrome")>=0);_1&&_1.indexOf("Firefox")>=0,!dOe&&_1&&_1.indexOf("Safari")>=0,_1&&_1.indexOf("Edg/")>=0,_1&&_1.indexOf("Android")>=0;function fOe(m){return m}class _Oe{constructor(g,S){this.lastCache=void 0,this.lastArgKey=void 0,typeof g=="function"?(this._fn=g,this._computeKey=fOe):(this._fn=S,this._computeKey=g.getCacheKey)}get(g){const S=this._computeKey(g);return this.lastArgKey!==S&&(this.lastArgKey=S,this.lastCache=this._fn(g)),this.lastCache}}class Bse{constructor(g){this.executor=g,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(g){this._error=g}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var vI;function pOe(m){return m.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function mOe(m){return m.split(/\r\n|\r|\n/)}function hOe(m){for(let g=0,S=m.length;g<S;g++){const P=m.charCodeAt(g);if(P!==32&&P!==9)return g}return-1}function gOe(m,g=m.length-1){for(let S=g;S>=0;S--){const P=m.charCodeAt(S);if(P!==32&&P!==9)return S}return-1}function Gse(m){return m>=65&&m<=90}function Hj(m){return 55296<=m&&m<=56319}function yOe(m){return 56320<=m&&m<=57343}function vOe(m,g){return(m-55296<<10)+(g-56320)+65536}function bOe(m,g,S){const P=m.charCodeAt(S);if(Hj(P)&&S+1<g){const X=m.charCodeAt(S+1);if(yOe(X))return vOe(P,X)}return P}const EOe=/^[\t\n\r\x20-\x7E]*$/;function TOe(m){return EOe.test(m)}class LA{static getInstance(g){return vI.cache.get(Array.from(g))}static getLocales(){return vI._locales.value}constructor(g){this.confusableDictionary=g}isAmbiguous(g){return this.confusableDictionary.has(g)}getPrimaryConfusable(g){return this.confusableDictionary.get(g)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}vI=LA,LA.ambiguousCharacterData=new Bse(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),LA.cache=new _Oe({getCacheKey:JSON.stringify},m=>{function g(Le){const Je=new Map;for(let Xt=0;Xt<Le.length;Xt+=2)Je.set(Le[Xt],Le[Xt+1]);return Je}function S(Le,Je){const Xt=new Map(Le);for(const[Jt,dn]of Je)Xt.set(Jt,dn);return Xt}function P(Le,Je){if(!Le)return Je;const Xt=new Map;for(const[Jt,dn]of Le)Je.has(Jt)&&Xt.set(Jt,dn);return Xt}const X=vI.ambiguousCharacterData.value;let _e=m.filter(Le=>!Le.startsWith("_")&&Le in X);_e.length===0&&(_e=["_default"]);let ve;for(const Le of _e){const Je=g(X[Le]);ve=P(ve,Je)}const Be=g(X._common),ct=S(Be,ve);return new vI(ct)}),LA._locales=new Bse(()=>Object.keys(vI.ambiguousCharacterData.value).filter(m=>!m.startsWith("_")));class KS{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(KS.getRawData())),this._data}static isInvisibleCharacter(g){return KS.getData().has(g)}static get codePoints(){return KS.getData()}}KS._data=void 0;const SOe="$initialize";class xOe{constructor(g,S,P,X){this.vsWorker=g,this.req=S,this.method=P,this.args=X,this.type=0}}class Use{constructor(g,S,P,X){this.vsWorker=g,this.seq=S,this.res=P,this.err=X,this.type=1}}class AOe{constructor(g,S,P,X){this.vsWorker=g,this.req=S,this.eventName=P,this.arg=X,this.type=2}}class COe{constructor(g,S,P){this.vsWorker=g,this.req=S,this.event=P,this.type=3}}class LOe{constructor(g,S){this.vsWorker=g,this.req=S,this.type=4}}class IOe{constructor(g){this._workerId=-1,this._handler=g,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(g){this._workerId=g}sendMessage(g,S){const P=String(++this._lastSentReq);return new Promise((X,_e)=>{this._pendingReplies[P]={resolve:X,reject:_e},this._send(new xOe(this._workerId,P,g,S))})}listen(g,S){let P=null;const X=new J0({onWillAddFirstListener:()=>{P=String(++this._lastSentReq),this._pendingEmitters.set(P,X),this._send(new AOe(this._workerId,P,g,S))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(P),this._send(new LOe(this._workerId,P)),P=null}});return X.event}handleMessage(g){!g||!g.vsWorker||this._workerId!==-1&&g.vsWorker!==this._workerId||this._handleMessage(g)}_handleMessage(g){switch(g.type){case 1:return this._handleReplyMessage(g);case 0:return this._handleRequestMessage(g);case 2:return this._handleSubscribeEventMessage(g);case 3:return this._handleEventMessage(g);case 4:return this._handleUnsubscribeEventMessage(g)}}_handleReplyMessage(g){if(!this._pendingReplies[g.seq]){console.warn("Got reply to unknown seq");return}const S=this._pendingReplies[g.seq];if(delete this._pendingReplies[g.seq],g.err){let P=g.err;g.err.$isError&&(P=new Error,P.name=g.err.name,P.message=g.err.message,P.stack=g.err.stack),S.reject(P);return}S.resolve(g.res)}_handleRequestMessage(g){const S=g.req;this._handler.handleMessage(g.method,g.args).then(X=>{this._send(new Use(this._workerId,S,X,void 0))},X=>{X.detail instanceof Error&&(X.detail=cf(X.detail)),this._send(new Use(this._workerId,S,void 0,cf(X)))})}_handleSubscribeEventMessage(g){const S=g.req,P=this._handler.handleEvent(g.eventName,g.arg)(X=>{this._send(new COe(this._workerId,S,X))});this._pendingEvents.set(S,P)}_handleEventMessage(g){if(!this._pendingEmitters.has(g.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(g.req).fire(g.event)}_handleUnsubscribeEventMessage(g){if(!this._pendingEvents.has(g.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(g.req).dispose(),this._pendingEvents.delete(g.req)}_send(g){const S=[];if(g.type===0)for(let P=0;P<g.args.length;P++)g.args[P]instanceof ArrayBuffer&&S.push(g.args[P]);else g.type===1&&g.res instanceof ArrayBuffer&&S.push(g.res);this._handler.sendMessage(g,S)}}function Vse(m){return m[0]==="o"&&m[1]==="n"&&Gse(m.charCodeAt(2))}function jse(m){return/^onDynamic/.test(m)&&Gse(m.charCodeAt(9))}function kOe(m,g,S){const P=ve=>function(){const Be=Array.prototype.slice.call(arguments,0);return g(ve,Be)},X=ve=>function(Be){return S(ve,Be)},_e={};for(const ve of m){if(jse(ve)){_e[ve]=X(ve);continue}if(Vse(ve)){_e[ve]=S(ve,void 0);continue}_e[ve]=P(ve)}return _e}class wOe{constructor(g,S){this._requestHandlerFactory=S,this._requestHandler=null,this._protocol=new IOe({sendMessage:(P,X)=>{g(P,X)},handleMessage:(P,X)=>this._handleMessage(P,X),handleEvent:(P,X)=>this._handleEvent(P,X)})}onmessage(g){this._protocol.handleMessage(g)}_handleMessage(g,S){if(g===SOe)return this.initialize(S[0],S[1],S[2],S[3]);if(!this._requestHandler||typeof this._requestHandler[g]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+g));try{return Promise.resolve(this._requestHandler[g].apply(this._requestHandler,S))}catch(P){return Promise.reject(P)}}_handleEvent(g,S){if(!this._requestHandler)throw new Error("Missing requestHandler");if(jse(g)){const P=this._requestHandler[g].call(this._requestHandler,S);if(typeof P!="function")throw new Error(`Missing dynamic event ${g} on request handler.`);return P}if(Vse(g)){const P=this._requestHandler[g];if(typeof P!="function")throw new Error(`Missing event ${g} on request handler.`);return P}throw new Error(`Malformed event name ${g}`)}initialize(g,S,P,X){this._protocol.setWorkerId(g);const Be=kOe(X,(ct,Le)=>this._protocol.sendMessage(ct,Le),(ct,Le)=>this._protocol.listen(ct,Le));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(Be),Promise.resolve(Mj(this._requestHandler))):(S&&(typeof S.baseUrl!="undefined"&&delete S.baseUrl,typeof S.paths!="undefined"&&typeof S.paths.vs!="undefined"&&delete S.paths.vs,typeof S.trustedTypesPolicy!="undefined"&&delete S.trustedTypesPolicy,S.catchError=!0,globalThis.require.config(S)),new Promise((ct,Le)=>{const Je=globalThis.require;Je([P],Xt=>{if(this._requestHandler=Xt.create(Be),!this._requestHandler){Le(new Error("No RequestHandler!"));return}ct(Mj(this._requestHandler))},Le)}))}}class XS{constructor(g,S,P,X){this.originalStart=g,this.originalLength=S,this.modifiedStart=P,this.modifiedLength=X}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Hse(m,g){return(g<<5)-g+m|0}function DOe(m,g){g=Hse(149417,g);for(let S=0,P=m.length;S<P;S++)g=Hse(m.charCodeAt(S),g);return g}class Wse{constructor(g){this.source=g}getElements(){const g=this.source,S=new Int32Array(g.length);for(let P=0,X=g.length;P<X;P++)S[P]=g.charCodeAt(P);return S}}function ROe(m,g,S){return new YS(new Wse(m),new Wse(g)).ComputeDiff(S).changes}class bI{static Assert(g,S){if(!g)throw new Error(S)}}class EI{static Copy(g,S,P,X,_e){for(let ve=0;ve<_e;ve++)P[X+ve]=g[S+ve]}static Copy2(g,S,P,X,_e){for(let ve=0;ve<_e;ve++)P[X+ve]=g[S+ve]}}class zse{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new XS(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(g,S){this.m_originalStart=Math.min(this.m_originalStart,g),this.m_modifiedStart=Math.min(this.m_modifiedStart,S),this.m_originalCount++}AddModifiedElement(g,S){this.m_originalStart=Math.min(this.m_originalStart,g),this.m_modifiedStart=Math.min(this.m_modifiedStart,S),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class YS{constructor(g,S,P=null){this.ContinueProcessingPredicate=P,this._originalSequence=g,this._modifiedSequence=S;const[X,_e,ve]=YS._getElements(g),[Be,ct,Le]=YS._getElements(S);this._hasStrings=ve&&Le,this._originalStringElements=X,this._originalElementsOrHash=_e,this._modifiedStringElements=Be,this._modifiedElementsOrHash=ct,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(g){return g.length>0&&typeof g[0]=="string"}static _getElements(g){const S=g.getElements();if(YS._isStringArray(S)){const P=new Int32Array(S.length);for(let X=0,_e=S.length;X<_e;X++)P[X]=DOe(S[X],0);return[S,P,!0]}return S instanceof Int32Array?[[],S,!1]:[[],new Int32Array(S),!1]}ElementsAreEqual(g,S){return this._originalElementsOrHash[g]!==this._modifiedElementsOrHash[S]?!1:this._hasStrings?this._originalStringElements[g]===this._modifiedStringElements[S]:!0}ElementsAreStrictEqual(g,S){if(!this.ElementsAreEqual(g,S))return!1;const P=YS._getStrictElement(this._originalSequence,g),X=YS._getStrictElement(this._modifiedSequence,S);return P===X}static _getStrictElement(g,S){return typeof g.getStrictElement=="function"?g.getStrictElement(S):null}OriginalElementsAreEqual(g,S){return this._originalElementsOrHash[g]!==this._originalElementsOrHash[S]?!1:this._hasStrings?this._originalStringElements[g]===this._originalStringElements[S]:!0}ModifiedElementsAreEqual(g,S){return this._modifiedElementsOrHash[g]!==this._modifiedElementsOrHash[S]?!1:this._hasStrings?this._modifiedStringElements[g]===this._modifiedStringElements[S]:!0}ComputeDiff(g){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,g)}_ComputeDiff(g,S,P,X,_e){const ve=[!1];let Be=this.ComputeDiffRecursive(g,S,P,X,ve);return _e&&(Be=this.PrettifyChanges(Be)),{quitEarly:ve[0],changes:Be}}ComputeDiffRecursive(g,S,P,X,_e){for(_e[0]=!1;g<=S&&P<=X&&this.ElementsAreEqual(g,P);)g++,P++;for(;S>=g&&X>=P&&this.ElementsAreEqual(S,X);)S--,X--;if(g>S||P>X){let Xt;return P<=X?(bI.Assert(g===S+1,"originalStart should only be one more than originalEnd"),Xt=[new XS(g,0,P,X-P+1)]):g<=S?(bI.Assert(P===X+1,"modifiedStart should only be one more than modifiedEnd"),Xt=[new XS(g,S-g+1,P,0)]):(bI.Assert(g===S+1,"originalStart should only be one more than originalEnd"),bI.Assert(P===X+1,"modifiedStart should only be one more than modifiedEnd"),Xt=[]),Xt}const ve=[0],Be=[0],ct=this.ComputeRecursionPoint(g,S,P,X,ve,Be,_e),Le=ve[0],Je=Be[0];if(ct!==null)return ct;if(!_e[0]){const Xt=this.ComputeDiffRecursive(g,Le,P,Je,_e);let Jt=[];return _e[0]?Jt=[new XS(Le+1,S-(Le+1)+1,Je+1,X-(Je+1)+1)]:Jt=this.ComputeDiffRecursive(Le+1,S,Je+1,X,_e),this.ConcatenateChanges(Xt,Jt)}return[new XS(g,S-g+1,P,X-P+1)]}WALKTRACE(g,S,P,X,_e,ve,Be,ct,Le,Je,Xt,Jt,dn,Rr,fi,ta,Zn,In){let Yr=null,mi=null,ji=new zse,Uo=S,Ur=P,Oo=dn[0]-ta[0]-X,mc=-1073741824,Wc=this.m_forwardHistory.length-1;do{const yn=Oo+g;yn===Uo||yn<Ur&&Le[yn-1]<Le[yn+1]?(Xt=Le[yn+1],Rr=Xt-Oo-X,Xt<mc&&ji.MarkNextChange(),mc=Xt,ji.AddModifiedElement(Xt+1,Rr),Oo=yn+1-g):(Xt=Le[yn-1]+1,Rr=Xt-Oo-X,Xt<mc&&ji.MarkNextChange(),mc=Xt-1,ji.AddOriginalElement(Xt,Rr+1),Oo=yn-1-g),Wc>=0&&(Le=this.m_forwardHistory[Wc],g=Le[0],Uo=1,Ur=Le.length-1)}while(--Wc>=-1);if(Yr=ji.getReverseChanges(),In[0]){let yn=dn[0]+1,ni=ta[0]+1;if(Yr!==null&&Yr.length>0){const Aa=Yr[Yr.length-1];yn=Math.max(yn,Aa.getOriginalEnd()),ni=Math.max(ni,Aa.getModifiedEnd())}mi=[new XS(yn,Jt-yn+1,ni,fi-ni+1)]}else{ji=new zse,Uo=ve,Ur=Be,Oo=dn[0]-ta[0]-ct,mc=1073741824,Wc=Zn?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const yn=Oo+_e;yn===Uo||yn<Ur&&Je[yn-1]>=Je[yn+1]?(Xt=Je[yn+1]-1,Rr=Xt-Oo-ct,Xt>mc&&ji.MarkNextChange(),mc=Xt+1,ji.AddOriginalElement(Xt+1,Rr+1),Oo=yn+1-_e):(Xt=Je[yn-1],Rr=Xt-Oo-ct,Xt>mc&&ji.MarkNextChange(),mc=Xt,ji.AddModifiedElement(Xt+1,Rr+1),Oo=yn-1-_e),Wc>=0&&(Je=this.m_reverseHistory[Wc],_e=Je[0],Uo=1,Ur=Je.length-1)}while(--Wc>=-1);mi=ji.getChanges()}return this.ConcatenateChanges(Yr,mi)}ComputeRecursionPoint(g,S,P,X,_e,ve,Be){let ct=0,Le=0,Je=0,Xt=0,Jt=0,dn=0;g--,P--,_e[0]=0,ve[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const Rr=S-g+(X-P),fi=Rr+1,ta=new Int32Array(fi),Zn=new Int32Array(fi),In=X-P,Yr=S-g,mi=g-P,ji=S-X,Ur=(Yr-In)%2===0;ta[In]=g,Zn[Yr]=S,Be[0]=!1;for(let Oo=1;Oo<=Rr/2+1;Oo++){let mc=0,Wc=0;Je=this.ClipDiagonalBound(In-Oo,Oo,In,fi),Xt=this.ClipDiagonalBound(In+Oo,Oo,In,fi);for(let ni=Je;ni<=Xt;ni+=2){ni===Je||ni<Xt&&ta[ni-1]<ta[ni+1]?ct=ta[ni+1]:ct=ta[ni-1]+1,Le=ct-(ni-In)-mi;const Aa=ct;for(;ct<S&&Le<X&&this.ElementsAreEqual(ct+1,Le+1);)ct++,Le++;if(ta[ni]=ct,ct+Le>mc+Wc&&(mc=ct,Wc=Le),!Ur&&Math.abs(ni-Yr)<=Oo-1&&ct>=Zn[ni])return _e[0]=ct,ve[0]=Le,Aa<=Zn[ni]&&1447>0&&Oo<=1447+1?this.WALKTRACE(In,Je,Xt,mi,Yr,Jt,dn,ji,ta,Zn,ct,S,_e,Le,X,ve,Ur,Be):null}const yn=(mc-g+(Wc-P)-Oo)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(mc,yn))return Be[0]=!0,_e[0]=mc,ve[0]=Wc,yn>0&&1447>0&&Oo<=1447+1?this.WALKTRACE(In,Je,Xt,mi,Yr,Jt,dn,ji,ta,Zn,ct,S,_e,Le,X,ve,Ur,Be):(g++,P++,[new XS(g,S-g+1,P,X-P+1)]);Jt=this.ClipDiagonalBound(Yr-Oo,Oo,Yr,fi),dn=this.ClipDiagonalBound(Yr+Oo,Oo,Yr,fi);for(let ni=Jt;ni<=dn;ni+=2){ni===Jt||ni<dn&&Zn[ni-1]>=Zn[ni+1]?ct=Zn[ni+1]-1:ct=Zn[ni-1],Le=ct-(ni-Yr)-ji;const Aa=ct;for(;ct>g&&Le>P&&this.ElementsAreEqual(ct,Le);)ct--,Le--;if(Zn[ni]=ct,Ur&&Math.abs(ni-In)<=Oo&&ct<=ta[ni])return _e[0]=ct,ve[0]=Le,Aa>=ta[ni]&&1447>0&&Oo<=1447+1?this.WALKTRACE(In,Je,Xt,mi,Yr,Jt,dn,ji,ta,Zn,ct,S,_e,Le,X,ve,Ur,Be):null}if(Oo<=1447){let ni=new Int32Array(Xt-Je+2);ni[0]=In-Je+1,EI.Copy2(ta,Je,ni,1,Xt-Je+1),this.m_forwardHistory.push(ni),ni=new Int32Array(dn-Jt+2),ni[0]=Yr-Jt+1,EI.Copy2(Zn,Jt,ni,1,dn-Jt+1),this.m_reverseHistory.push(ni)}}return this.WALKTRACE(In,Je,Xt,mi,Yr,Jt,dn,ji,ta,Zn,ct,S,_e,Le,X,ve,Ur,Be)}PrettifyChanges(g){for(let S=0;S<g.length;S++){const P=g[S],X=S<g.length-1?g[S+1].originalStart:this._originalElementsOrHash.length,_e=S<g.length-1?g[S+1].modifiedStart:this._modifiedElementsOrHash.length,ve=P.originalLength>0,Be=P.modifiedLength>0;for(;P.originalStart+P.originalLength<X&&P.modifiedStart+P.modifiedLength<_e&&(!ve||this.OriginalElementsAreEqual(P.originalStart,P.originalStart+P.originalLength))&&(!Be||this.ModifiedElementsAreEqual(P.modifiedStart,P.modifiedStart+P.modifiedLength));){const Le=this.ElementsAreStrictEqual(P.originalStart,P.modifiedStart);if(this.ElementsAreStrictEqual(P.originalStart+P.originalLength,P.modifiedStart+P.modifiedLength)&&!Le)break;P.originalStart++,P.modifiedStart++}const ct=[null];if(S<g.length-1&&this.ChangesOverlap(g[S],g[S+1],ct)){g[S]=ct[0],g.splice(S+1,1),S--;continue}}for(let S=g.length-1;S>=0;S--){const P=g[S];let X=0,_e=0;if(S>0){const Xt=g[S-1];X=Xt.originalStart+Xt.originalLength,_e=Xt.modifiedStart+Xt.modifiedLength}const ve=P.originalLength>0,Be=P.modifiedLength>0;let ct=0,Le=this._boundaryScore(P.originalStart,P.originalLength,P.modifiedStart,P.modifiedLength);for(let Xt=1;;Xt++){const Jt=P.originalStart-Xt,dn=P.modifiedStart-Xt;if(Jt<X||dn<_e||ve&&!this.OriginalElementsAreEqual(Jt,Jt+P.originalLength)||Be&&!this.ModifiedElementsAreEqual(dn,dn+P.modifiedLength))break;const fi=(Jt===X&&dn===_e?5:0)+this._boundaryScore(Jt,P.originalLength,dn,P.modifiedLength);fi>Le&&(Le=fi,ct=Xt)}P.originalStart-=ct,P.modifiedStart-=ct;const Je=[null];if(S>0&&this.ChangesOverlap(g[S-1],g[S],Je)){g[S-1]=Je[0],g.splice(S,1),S++;continue}}if(this._hasStrings)for(let S=1,P=g.length;S<P;S++){const X=g[S-1],_e=g[S],ve=_e.originalStart-X.originalStart-X.originalLength,Be=X.originalStart,ct=_e.originalStart+_e.originalLength,Le=ct-Be,Je=X.modifiedStart,Xt=_e.modifiedStart+_e.modifiedLength,Jt=Xt-Je;if(ve<5&&Le<20&&Jt<20){const dn=this._findBetterContiguousSequence(Be,Le,Je,Jt,ve);if(dn){const[Rr,fi]=dn;(Rr!==X.originalStart+X.originalLength||fi!==X.modifiedStart+X.modifiedLength)&&(X.originalLength=Rr-X.originalStart,X.modifiedLength=fi-X.modifiedStart,_e.originalStart=Rr+ve,_e.modifiedStart=fi+ve,_e.originalLength=ct-_e.originalStart,_e.modifiedLength=Xt-_e.modifiedStart)}}}return g}_findBetterContiguousSequence(g,S,P,X,_e){if(S<_e||X<_e)return null;const ve=g+S-_e+1,Be=P+X-_e+1;let ct=0,Le=0,Je=0;for(let Xt=g;Xt<ve;Xt++)for(let Jt=P;Jt<Be;Jt++){const dn=this._contiguousSequenceScore(Xt,Jt,_e);dn>0&&dn>ct&&(ct=dn,Le=Xt,Je=Jt)}return ct>0?[Le,Je]:null}_contiguousSequenceScore(g,S,P){let X=0;for(let _e=0;_e<P;_e++){if(!this.ElementsAreEqual(g+_e,S+_e))return 0;X+=this._originalStringElements[g+_e].length}return X}_OriginalIsBoundary(g){return g<=0||g>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[g])}_OriginalRegionIsBoundary(g,S){if(this._OriginalIsBoundary(g)||this._OriginalIsBoundary(g-1))return!0;if(S>0){const P=g+S;if(this._OriginalIsBoundary(P-1)||this._OriginalIsBoundary(P))return!0}return!1}_ModifiedIsBoundary(g){return g<=0||g>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[g])}_ModifiedRegionIsBoundary(g,S){if(this._ModifiedIsBoundary(g)||this._ModifiedIsBoundary(g-1))return!0;if(S>0){const P=g+S;if(this._ModifiedIsBoundary(P-1)||this._ModifiedIsBoundary(P))return!0}return!1}_boundaryScore(g,S,P,X){const _e=this._OriginalRegionIsBoundary(g,S)?1:0,ve=this._ModifiedRegionIsBoundary(P,X)?1:0;return _e+ve}ConcatenateChanges(g,S){const P=[];if(g.length===0||S.length===0)return S.length>0?S:g;if(this.ChangesOverlap(g[g.length-1],S[0],P)){const X=new Array(g.length+S.length-1);return EI.Copy(g,0,X,0,g.length-1),X[g.length-1]=P[0],EI.Copy(S,1,X,g.length,S.length-1),X}else{const X=new Array(g.length+S.length);return EI.Copy(g,0,X,0,g.length),EI.Copy(S,0,X,g.length,S.length),X}}ChangesOverlap(g,S,P){if(bI.Assert(g.originalStart<=S.originalStart,"Left change is not less than or equal to right change"),bI.Assert(g.modifiedStart<=S.modifiedStart,"Left change is not less than or equal to right change"),g.originalStart+g.originalLength>=S.originalStart||g.modifiedStart+g.modifiedLength>=S.modifiedStart){const X=g.originalStart;let _e=g.originalLength;const ve=g.modifiedStart;let Be=g.modifiedLength;return g.originalStart+g.originalLength>=S.originalStart&&(_e=S.originalStart+S.originalLength-g.originalStart),g.modifiedStart+g.modifiedLength>=S.modifiedStart&&(Be=S.modifiedStart+S.modifiedLength-g.modifiedStart),P[0]=new XS(X,_e,ve,Be),!0}else return P[0]=null,!1}ClipDiagonalBound(g,S,P,X){if(g>=0&&g<X)return g;const _e=P,ve=X-P-1,Be=S%2===0;if(g<0){const ct=_e%2===0;return Be===ct?0:1}else{const ct=ve%2===0;return Be===ct?X-1:X-2}}}let TI;const Wj=globalThis.vscode;if(typeof Wj!="undefined"&&typeof Wj.process!="undefined"){const m=Wj.process;TI={get platform(){return m.platform},get arch(){return m.arch},get env(){return m.env},cwd(){return m.cwd()}}}else typeof process!="undefined"?TI={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:TI={get platform(){return yR?"win32":cOe?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Q4=TI.cwd,NOe=TI.env,OOe=TI.platform,POe=65,MOe=97,FOe=90,BOe=122,$S=46,Sp=47,dg=92,QS=58,GOe=63;class qse extends Error{constructor(g,S,P){let X;typeof S=="string"&&S.indexOf("not ")===0?(X="must not be",S=S.replace(/^not /,"")):X="must be";const _e=g.indexOf(".")!==-1?"property":"argument";let ve=`The "${g}" ${_e} ${X} of type ${S}`;ve+=`. Received type ${typeof P}`,super(ve),this.code="ERR_INVALID_ARG_TYPE"}}function UOe(m,g){if(m===null||typeof m!="object")throw new qse(g,"Object",m)}function Df(m,g){if(typeof m!="string")throw new qse(g,"string",m)}const ZS=OOe==="win32";function Al(m){return m===Sp||m===dg}function zj(m){return m===Sp}function ex(m){return m>=POe&&m<=FOe||m>=MOe&&m<=BOe}function Z4(m,g,S,P){let X="",_e=0,ve=-1,Be=0,ct=0;for(let Le=0;Le<=m.length;++Le){if(Le<m.length)ct=m.charCodeAt(Le);else{if(P(ct))break;ct=Sp}if(P(ct)){if(!(ve===Le-1||Be===1))if(Be===2){if(X.length<2||_e!==2||X.charCodeAt(X.length-1)!==$S||X.charCodeAt(X.length-2)!==$S){if(X.length>2){const Je=X.lastIndexOf(S);Je===-1?(X="",_e=0):(X=X.slice(0,Je),_e=X.length-1-X.lastIndexOf(S)),ve=Le,Be=0;continue}else if(X.length!==0){X="",_e=0,ve=Le,Be=0;continue}}g&&(X+=X.length>0?`${S}..`:"..",_e=2)}else X.length>0?X+=`${S}${m.slice(ve+1,Le)}`:X=m.slice(ve+1,Le),_e=Le-ve-1;ve=Le,Be=0}else ct===$S&&Be!==-1?++Be:Be=-1}return X}function Jse(m,g){UOe(g,"pathObject");const S=g.dir||g.root,P=g.base||`${g.name||""}${g.ext||""}`;return S?S===g.root?`${S}${P}`:`${S}${m}${P}`:P}const Sh={resolve(...m){let g="",S="",P=!1;for(let X=m.length-1;X>=-1;X--){let _e;if(X>=0){if(_e=m[X],Df(_e,"path"),_e.length===0)continue}else g.length===0?_e=Q4():(_e=NOe[`=${g}`]||Q4(),(_e===void 0||_e.slice(0,2).toLowerCase()!==g.toLowerCase()&&_e.charCodeAt(2)===dg)&&(_e=`${g}\\`));const ve=_e.length;let Be=0,ct="",Le=!1;const Je=_e.charCodeAt(0);if(ve===1)Al(Je)&&(Be=1,Le=!0);else if(Al(Je))if(Le=!0,Al(_e.charCodeAt(1))){let Xt=2,Jt=Xt;for(;Xt<ve&&!Al(_e.charCodeAt(Xt));)Xt++;if(Xt<ve&&Xt!==Jt){const dn=_e.slice(Jt,Xt);for(Jt=Xt;Xt<ve&&Al(_e.charCodeAt(Xt));)Xt++;if(Xt<ve&&Xt!==Jt){for(Jt=Xt;Xt<ve&&!Al(_e.charCodeAt(Xt));)Xt++;(Xt===ve||Xt!==Jt)&&(ct=`\\\\${dn}\\${_e.slice(Jt,Xt)}`,Be=Xt)}}}else Be=1;else ex(Je)&&_e.charCodeAt(1)===QS&&(ct=_e.slice(0,2),Be=2,ve>2&&Al(_e.charCodeAt(2))&&(Le=!0,Be=3));if(ct.length>0)if(g.length>0){if(ct.toLowerCase()!==g.toLowerCase())continue}else g=ct;if(P){if(g.length>0)break}else if(S=`${_e.slice(Be)}\\${S}`,P=Le,Le&&g.length>0)break}return S=Z4(S,!P,"\\",Al),P?`${g}\\${S}`:`${g}${S}`||"."},normalize(m){Df(m,"path");const g=m.length;if(g===0)return".";let S=0,P,X=!1;const _e=m.charCodeAt(0);if(g===1)return zj(_e)?"\\":m;if(Al(_e))if(X=!0,Al(m.charCodeAt(1))){let Be=2,ct=Be;for(;Be<g&&!Al(m.charCodeAt(Be));)Be++;if(Be<g&&Be!==ct){const Le=m.slice(ct,Be);for(ct=Be;Be<g&&Al(m.charCodeAt(Be));)Be++;if(Be<g&&Be!==ct){for(ct=Be;Be<g&&!Al(m.charCodeAt(Be));)Be++;if(Be===g)return`\\\\${Le}\\${m.slice(ct)}\\`;Be!==ct&&(P=`\\\\${Le}\\${m.slice(ct,Be)}`,S=Be)}}}else S=1;else ex(_e)&&m.charCodeAt(1)===QS&&(P=m.slice(0,2),S=2,g>2&&Al(m.charCodeAt(2))&&(X=!0,S=3));let ve=S<g?Z4(m.slice(S),!X,"\\",Al):"";return ve.length===0&&!X&&(ve="."),ve.length>0&&Al(m.charCodeAt(g-1))&&(ve+="\\"),P===void 0?X?`\\${ve}`:ve:X?`${P}\\${ve}`:`${P}${ve}`},isAbsolute(m){Df(m,"path");const g=m.length;if(g===0)return!1;const S=m.charCodeAt(0);return Al(S)||g>2&&ex(S)&&m.charCodeAt(1)===QS&&Al(m.charCodeAt(2))},join(...m){if(m.length===0)return".";let g,S;for(let _e=0;_e<m.length;++_e){const ve=m[_e];Df(ve,"path"),ve.length>0&&(g===void 0?g=S=ve:g+=`\\${ve}`)}if(g===void 0)return".";let P=!0,X=0;if(typeof S=="string"&&Al(S.charCodeAt(0))){++X;const _e=S.length;_e>1&&Al(S.charCodeAt(1))&&(++X,_e>2&&(Al(S.charCodeAt(2))?++X:P=!1))}if(P){for(;X<g.length&&Al(g.charCodeAt(X));)X++;X>=2&&(g=`\\${g.slice(X)}`)}return Sh.normalize(g)},relative(m,g){if(Df(m,"from"),Df(g,"to"),m===g)return"";const S=Sh.resolve(m),P=Sh.resolve(g);if(S===P||(m=S.toLowerCase(),g=P.toLowerCase(),m===g))return"";let X=0;for(;X<m.length&&m.charCodeAt(X)===dg;)X++;let _e=m.length;for(;_e-1>X&&m.charCodeAt(_e-1)===dg;)_e--;const ve=_e-X;let Be=0;for(;Be<g.length&&g.charCodeAt(Be)===dg;)Be++;let ct=g.length;for(;ct-1>Be&&g.charCodeAt(ct-1)===dg;)ct--;const Le=ct-Be,Je=ve<Le?ve:Le;let Xt=-1,Jt=0;for(;Jt<Je;Jt++){const Rr=m.charCodeAt(X+Jt);if(Rr!==g.charCodeAt(Be+Jt))break;Rr===dg&&(Xt=Jt)}if(Jt!==Je){if(Xt===-1)return P}else{if(Le>Je){if(g.charCodeAt(Be+Jt)===dg)return P.slice(Be+Jt+1);if(Jt===2)return P.slice(Be+Jt)}ve>Je&&(m.charCodeAt(X+Jt)===dg?Xt=Jt:Jt===2&&(Xt=3)),Xt===-1&&(Xt=0)}let dn="";for(Jt=X+Xt+1;Jt<=_e;++Jt)(Jt===_e||m.charCodeAt(Jt)===dg)&&(dn+=dn.length===0?"..":"\\..");return Be+=Xt,dn.length>0?`${dn}${P.slice(Be,ct)}`:(P.charCodeAt(Be)===dg&&++Be,P.slice(Be,ct))},toNamespacedPath(m){if(typeof m!="string"||m.length===0)return m;const g=Sh.resolve(m);if(g.length<=2)return m;if(g.charCodeAt(0)===dg){if(g.charCodeAt(1)===dg){const S=g.charCodeAt(2);if(S!==GOe&&S!==$S)return`\\\\?\\UNC\\${g.slice(2)}`}}else if(ex(g.charCodeAt(0))&&g.charCodeAt(1)===QS&&g.charCodeAt(2)===dg)return`\\\\?\\${g}`;return m},dirname(m){Df(m,"path");const g=m.length;if(g===0)return".";let S=-1,P=0;const X=m.charCodeAt(0);if(g===1)return Al(X)?m:".";if(Al(X)){if(S=P=1,Al(m.charCodeAt(1))){let Be=2,ct=Be;for(;Be<g&&!Al(m.charCodeAt(Be));)Be++;if(Be<g&&Be!==ct){for(ct=Be;Be<g&&Al(m.charCodeAt(Be));)Be++;if(Be<g&&Be!==ct){for(ct=Be;Be<g&&!Al(m.charCodeAt(Be));)Be++;if(Be===g)return m;Be!==ct&&(S=P=Be+1)}}}}else ex(X)&&m.charCodeAt(1)===QS&&(S=g>2&&Al(m.charCodeAt(2))?3:2,P=S);let _e=-1,ve=!0;for(let Be=g-1;Be>=P;--Be)if(Al(m.charCodeAt(Be))){if(!ve){_e=Be;break}}else ve=!1;if(_e===-1){if(S===-1)return".";_e=S}return m.slice(0,_e)},basename(m,g){g!==void 0&&Df(g,"ext"),Df(m,"path");let S=0,P=-1,X=!0,_e;if(m.length>=2&&ex(m.charCodeAt(0))&&m.charCodeAt(1)===QS&&(S=2),g!==void 0&&g.length>0&&g.length<=m.length){if(g===m)return"";let ve=g.length-1,Be=-1;for(_e=m.length-1;_e>=S;--_e){const ct=m.charCodeAt(_e);if(Al(ct)){if(!X){S=_e+1;break}}else Be===-1&&(X=!1,Be=_e+1),ve>=0&&(ct===g.charCodeAt(ve)?--ve===-1&&(P=_e):(ve=-1,P=Be))}return S===P?P=Be:P===-1&&(P=m.length),m.slice(S,P)}for(_e=m.length-1;_e>=S;--_e)if(Al(m.charCodeAt(_e))){if(!X){S=_e+1;break}}else P===-1&&(X=!1,P=_e+1);return P===-1?"":m.slice(S,P)},extname(m){Df(m,"path");let g=0,S=-1,P=0,X=-1,_e=!0,ve=0;m.length>=2&&m.charCodeAt(1)===QS&&ex(m.charCodeAt(0))&&(g=P=2);for(let Be=m.length-1;Be>=g;--Be){const ct=m.charCodeAt(Be);if(Al(ct)){if(!_e){P=Be+1;break}continue}X===-1&&(_e=!1,X=Be+1),ct===$S?S===-1?S=Be:ve!==1&&(ve=1):S!==-1&&(ve=-1)}return S===-1||X===-1||ve===0||ve===1&&S===X-1&&S===P+1?"":m.slice(S,X)},format:Jse.bind(null,"\\"),parse(m){Df(m,"path");const g={root:"",dir:"",base:"",ext:"",name:""};if(m.length===0)return g;const S=m.length;let P=0,X=m.charCodeAt(0);if(S===1)return Al(X)?(g.root=g.dir=m,g):(g.base=g.name=m,g);if(Al(X)){if(P=1,Al(m.charCodeAt(1))){let Xt=2,Jt=Xt;for(;Xt<S&&!Al(m.charCodeAt(Xt));)Xt++;if(Xt<S&&Xt!==Jt){for(Jt=Xt;Xt<S&&Al(m.charCodeAt(Xt));)Xt++;if(Xt<S&&Xt!==Jt){for(Jt=Xt;Xt<S&&!Al(m.charCodeAt(Xt));)Xt++;Xt===S?P=Xt:Xt!==Jt&&(P=Xt+1)}}}}else if(ex(X)&&m.charCodeAt(1)===QS){if(S<=2)return g.root=g.dir=m,g;if(P=2,Al(m.charCodeAt(2))){if(S===3)return g.root=g.dir=m,g;P=3}}P>0&&(g.root=m.slice(0,P));let _e=-1,ve=P,Be=-1,ct=!0,Le=m.length-1,Je=0;for(;Le>=P;--Le){if(X=m.charCodeAt(Le),Al(X)){if(!ct){ve=Le+1;break}continue}Be===-1&&(ct=!1,Be=Le+1),X===$S?_e===-1?_e=Le:Je!==1&&(Je=1):_e!==-1&&(Je=-1)}return Be!==-1&&(_e===-1||Je===0||Je===1&&_e===Be-1&&_e===ve+1?g.base=g.name=m.slice(ve,Be):(g.name=m.slice(ve,_e),g.base=m.slice(ve,Be),g.ext=m.slice(_e,Be))),ve>0&&ve!==P?g.dir=m.slice(0,ve-1):g.dir=g.root,g},sep:"\\",delimiter:";",win32:null,posix:null},VOe=(()=>{if(ZS){const m=/\\/g;return()=>{const g=Q4().replace(m,"/");return g.slice(g.indexOf("/"))}}return()=>Q4()})(),fg={resolve(...m){let g="",S=!1;for(let P=m.length-1;P>=-1&&!S;P--){const X=P>=0?m[P]:VOe();Df(X,"path"),X.length!==0&&(g=`${X}/${g}`,S=X.charCodeAt(0)===Sp)}return g=Z4(g,!S,"/",zj),S?`/${g}`:g.length>0?g:"."},normalize(m){if(Df(m,"path"),m.length===0)return".";const g=m.charCodeAt(0)===Sp,S=m.charCodeAt(m.length-1)===Sp;return m=Z4(m,!g,"/",zj),m.length===0?g?"/":S?"./":".":(S&&(m+="/"),g?`/${m}`:m)},isAbsolute(m){return Df(m,"path"),m.length>0&&m.charCodeAt(0)===Sp},join(...m){if(m.length===0)return".";let g;for(let S=0;S<m.length;++S){const P=m[S];Df(P,"path"),P.length>0&&(g===void 0?g=P:g+=`/${P}`)}return g===void 0?".":fg.normalize(g)},relative(m,g){if(Df(m,"from"),Df(g,"to"),m===g||(m=fg.resolve(m),g=fg.resolve(g),m===g))return"";const S=1,P=m.length,X=P-S,_e=1,ve=g.length-_e,Be=X<ve?X:ve;let ct=-1,Le=0;for(;Le<Be;Le++){const Xt=m.charCodeAt(S+Le);if(Xt!==g.charCodeAt(_e+Le))break;Xt===Sp&&(ct=Le)}if(Le===Be)if(ve>Be){if(g.charCodeAt(_e+Le)===Sp)return g.slice(_e+Le+1);if(Le===0)return g.slice(_e+Le)}else X>Be&&(m.charCodeAt(S+Le)===Sp?ct=Le:Le===0&&(ct=0));let Je="";for(Le=S+ct+1;Le<=P;++Le)(Le===P||m.charCodeAt(Le)===Sp)&&(Je+=Je.length===0?"..":"/..");return`${Je}${g.slice(_e+ct)}`},toNamespacedPath(m){return m},dirname(m){if(Df(m,"path"),m.length===0)return".";const g=m.charCodeAt(0)===Sp;let S=-1,P=!0;for(let X=m.length-1;X>=1;--X)if(m.charCodeAt(X)===Sp){if(!P){S=X;break}}else P=!1;return S===-1?g?"/":".":g&&S===1?"//":m.slice(0,S)},basename(m,g){g!==void 0&&Df(g,"ext"),Df(m,"path");let S=0,P=-1,X=!0,_e;if(g!==void 0&&g.length>0&&g.length<=m.length){if(g===m)return"";let ve=g.length-1,Be=-1;for(_e=m.length-1;_e>=0;--_e){const ct=m.charCodeAt(_e);if(ct===Sp){if(!X){S=_e+1;break}}else Be===-1&&(X=!1,Be=_e+1),ve>=0&&(ct===g.charCodeAt(ve)?--ve===-1&&(P=_e):(ve=-1,P=Be))}return S===P?P=Be:P===-1&&(P=m.length),m.slice(S,P)}for(_e=m.length-1;_e>=0;--_e)if(m.charCodeAt(_e)===Sp){if(!X){S=_e+1;break}}else P===-1&&(X=!1,P=_e+1);return P===-1?"":m.slice(S,P)},extname(m){Df(m,"path");let g=-1,S=0,P=-1,X=!0,_e=0;for(let ve=m.length-1;ve>=0;--ve){const Be=m.charCodeAt(ve);if(Be===Sp){if(!X){S=ve+1;break}continue}P===-1&&(X=!1,P=ve+1),Be===$S?g===-1?g=ve:_e!==1&&(_e=1):g!==-1&&(_e=-1)}return g===-1||P===-1||_e===0||_e===1&&g===P-1&&g===S+1?"":m.slice(g,P)},format:Jse.bind(null,"/"),parse(m){Df(m,"path");const g={root:"",dir:"",base:"",ext:"",name:""};if(m.length===0)return g;const S=m.charCodeAt(0)===Sp;let P;S?(g.root="/",P=1):P=0;let X=-1,_e=0,ve=-1,Be=!0,ct=m.length-1,Le=0;for(;ct>=P;--ct){const Je=m.charCodeAt(ct);if(Je===Sp){if(!Be){_e=ct+1;break}continue}ve===-1&&(Be=!1,ve=ct+1),Je===$S?X===-1?X=ct:Le!==1&&(Le=1):X!==-1&&(Le=-1)}if(ve!==-1){const Je=_e===0&&S?1:_e;X===-1||Le===0||Le===1&&X===ve-1&&X===_e+1?g.base=g.name=m.slice(Je,ve):(g.name=m.slice(Je,X),g.base=m.slice(Je,ve),g.ext=m.slice(X,ve))}return _e>0?g.dir=m.slice(0,_e-1):S&&(g.dir="/"),g},sep:"/",delimiter:":",win32:null,posix:null};fg.win32=Sh.win32=Sh,fg.posix=Sh.posix=fg,ZS?Sh.normalize:fg.normalize,ZS?Sh.resolve:fg.resolve,ZS?Sh.relative:fg.relative,ZS?Sh.dirname:fg.dirname,ZS?Sh.basename:fg.basename,ZS?Sh.extname:fg.extname,ZS?Sh.sep:fg.sep;const jOe=/^\w[\w\d+.-]*$/,HOe=/^\//,WOe=/^\/\//;function zOe(m,g){if(!m.scheme&&g)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${m.authority}", path: "${m.path}", query: "${m.query}", fragment: "${m.fragment}"}`);if(m.scheme&&!jOe.test(m.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(m.path){if(m.authority){if(!HOe.test(m.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(WOe.test(m.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function qOe(m,g){return!m&&!g?"file":m}function JOe(m,g){switch(m){case"https":case"http":case"file":g?g[0]!==X0&&(g=X0+g):g=X0;break}return g}const rd="",X0="/",KOe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class IA{static isUri(g){return g instanceof IA?!0:g?typeof g.authority=="string"&&typeof g.fragment=="string"&&typeof g.path=="string"&&typeof g.query=="string"&&typeof g.scheme=="string"&&typeof g.fsPath=="string"&&typeof g.with=="function"&&typeof g.toString=="function":!1}constructor(g,S,P,X,_e,ve=!1){typeof g=="object"?(this.scheme=g.scheme||rd,this.authority=g.authority||rd,this.path=g.path||rd,this.query=g.query||rd,this.fragment=g.fragment||rd):(this.scheme=qOe(g,ve),this.authority=S||rd,this.path=JOe(this.scheme,P||rd),this.query=X||rd,this.fragment=_e||rd,zOe(this,ve))}get fsPath(){return qj(this,!1)}with(g){if(!g)return this;let{scheme:S,authority:P,path:X,query:_e,fragment:ve}=g;return S===void 0?S=this.scheme:S===null&&(S=rd),P===void 0?P=this.authority:P===null&&(P=rd),X===void 0?X=this.path:X===null&&(X=rd),_e===void 0?_e=this.query:_e===null&&(_e=rd),ve===void 0?ve=this.fragment:ve===null&&(ve=rd),S===this.scheme&&P===this.authority&&X===this.path&&_e===this.query&&ve===this.fragment?this:new SI(S,P,X,_e,ve)}static parse(g,S=!1){const P=KOe.exec(g);return P?new SI(P[2]||rd,eM(P[4]||rd),eM(P[5]||rd),eM(P[7]||rd),eM(P[9]||rd),S):new SI(rd,rd,rd,rd,rd)}static file(g){let S=rd;if(yR&&(g=g.replace(/\\/g,X0)),g[0]===X0&&g[1]===X0){const P=g.indexOf(X0,2);P===-1?(S=g.substring(2),g=X0):(S=g.substring(2,P),g=g.substring(P)||X0)}return new SI("file",S,g,rd,rd)}static from(g,S){return new SI(g.scheme,g.authority,g.path,g.query,g.fragment,S)}static joinPath(g,...S){if(!g.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let P;return yR&&g.scheme==="file"?P=IA.file(Sh.join(qj(g,!0),...S)).path:P=fg.join(g.path,...S),g.with({path:P})}toString(g=!1){return Jj(this,g)}toJSON(){return this}static revive(g){var S,P;if(g){if(g instanceof IA)return g;{const X=new SI(g);return X._formatted=(S=g.external)!==null&&S!==void 0?S:null,X._fsPath=g._sep===Kse&&(P=g.fsPath)!==null&&P!==void 0?P:null,X}}else return g}}const Kse=yR?1:void 0;class SI extends IA{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=qj(this,!1)),this._fsPath}toString(g=!1){return g?Jj(this,!0):(this._formatted||(this._formatted=Jj(this,!1)),this._formatted)}toJSON(){const g={$mid:1};return this._fsPath&&(g.fsPath=this._fsPath,g._sep=Kse),this._formatted&&(g.external=this._formatted),this.path&&(g.path=this.path),this.scheme&&(g.scheme=this.scheme),this.authority&&(g.authority=this.authority),this.query&&(g.query=this.query),this.fragment&&(g.fragment=this.fragment),g}}const Xse={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Yse(m,g,S){let P,X=-1;for(let _e=0;_e<m.length;_e++){const ve=m.charCodeAt(_e);if(ve>=97&&ve<=122||ve>=65&&ve<=90||ve>=48&&ve<=57||ve===45||ve===46||ve===95||ve===126||g&&ve===47||S&&ve===91||S&&ve===93||S&&ve===58)X!==-1&&(P+=encodeURIComponent(m.substring(X,_e)),X=-1),P!==void 0&&(P+=m.charAt(_e));else{P===void 0&&(P=m.substr(0,_e));const Be=Xse[ve];Be!==void 0?(X!==-1&&(P+=encodeURIComponent(m.substring(X,_e)),X=-1),P+=Be):X===-1&&(X=_e)}}return X!==-1&&(P+=encodeURIComponent(m.substring(X))),P!==void 0?P:m}function XOe(m){let g;for(let S=0;S<m.length;S++){const P=m.charCodeAt(S);P===35||P===63?(g===void 0&&(g=m.substr(0,S)),g+=Xse[P]):g!==void 0&&(g+=m[S])}return g!==void 0?g:m}function qj(m,g){let S;return m.authority&&m.path.length>1&&m.scheme==="file"?S=`//${m.authority}${m.path}`:m.path.charCodeAt(0)===47&&(m.path.charCodeAt(1)>=65&&m.path.charCodeAt(1)<=90||m.path.charCodeAt(1)>=97&&m.path.charCodeAt(1)<=122)&&m.path.charCodeAt(2)===58?g?S=m.path.substr(1):S=m.path[1].toLowerCase()+m.path.substr(2):S=m.path,yR&&(S=S.replace(/\//g,"\\")),S}function Jj(m,g){const S=g?XOe:Yse;let P="",{scheme:X,authority:_e,path:ve,query:Be,fragment:ct}=m;if(X&&(P+=X,P+=":"),(_e||X==="file")&&(P+=X0,P+=X0),_e){let Le=_e.indexOf("@");if(Le!==-1){const Je=_e.substr(0,Le);_e=_e.substr(Le+1),Le=Je.lastIndexOf(":"),Le===-1?P+=S(Je,!1,!1):(P+=S(Je.substr(0,Le),!1,!1),P+=":",P+=S(Je.substr(Le+1),!1,!0)),P+="@"}_e=_e.toLowerCase(),Le=_e.lastIndexOf(":"),Le===-1?P+=S(_e,!1,!0):(P+=S(_e.substr(0,Le),!1,!0),P+=_e.substr(Le))}if(ve){if(ve.length>=3&&ve.charCodeAt(0)===47&&ve.charCodeAt(2)===58){const Le=ve.charCodeAt(1);Le>=65&&Le<=90&&(ve=`/${String.fromCharCode(Le+32)}:${ve.substr(3)}`)}else if(ve.length>=2&&ve.charCodeAt(1)===58){const Le=ve.charCodeAt(0);Le>=65&&Le<=90&&(ve=`${String.fromCharCode(Le+32)}:${ve.substr(2)}`)}P+=S(ve,!0,!1)}return Be&&(P+="?",P+=S(Be,!1,!1)),ct&&(P+="#",P+=g?ct:Yse(ct,!1,!1)),P}function $se(m){try{return decodeURIComponent(m)}catch(g){return m.length>3?m.substr(0,3)+$se(m.substr(3)):m}}const Qse=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function eM(m){return m.match(Qse)?m.replace(Qse,g=>$se(g)):m}class Qp{constructor(g,S){this.lineNumber=g,this.column=S}with(g=this.lineNumber,S=this.column){return g===this.lineNumber&&S===this.column?this:new Qp(g,S)}delta(g=0,S=0){return this.with(this.lineNumber+g,this.column+S)}equals(g){return Qp.equals(this,g)}static equals(g,S){return!g&&!S?!0:!!g&&!!S&&g.lineNumber===S.lineNumber&&g.column===S.column}isBefore(g){return Qp.isBefore(this,g)}static isBefore(g,S){return g.lineNumber<S.lineNumber?!0:S.lineNumber<g.lineNumber?!1:g.column<S.column}isBeforeOrEqual(g){return Qp.isBeforeOrEqual(this,g)}static isBeforeOrEqual(g,S){return g.lineNumber<S.lineNumber?!0:S.lineNumber<g.lineNumber?!1:g.column<=S.column}static compare(g,S){const P=g.lineNumber|0,X=S.lineNumber|0;if(P===X){const _e=g.column|0,ve=S.column|0;return _e-ve}return P-X}clone(){return new Qp(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(g){return new Qp(g.lineNumber,g.column)}static isIPosition(g){return g&&typeof g.lineNumber=="number"&&typeof g.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class ol{constructor(g,S,P,X){g>P||g===P&&S>X?(this.startLineNumber=P,this.startColumn=X,this.endLineNumber=g,this.endColumn=S):(this.startLineNumber=g,this.startColumn=S,this.endLineNumber=P,this.endColumn=X)}isEmpty(){return ol.isEmpty(this)}static isEmpty(g){return g.startLineNumber===g.endLineNumber&&g.startColumn===g.endColumn}containsPosition(g){return ol.containsPosition(this,g)}static containsPosition(g,S){return!(S.lineNumber<g.startLineNumber||S.lineNumber>g.endLineNumber||S.lineNumber===g.startLineNumber&&S.column<g.startColumn||S.lineNumber===g.endLineNumber&&S.column>g.endColumn)}static strictContainsPosition(g,S){return!(S.lineNumber<g.startLineNumber||S.lineNumber>g.endLineNumber||S.lineNumber===g.startLineNumber&&S.column<=g.startColumn||S.lineNumber===g.endLineNumber&&S.column>=g.endColumn)}containsRange(g){return ol.containsRange(this,g)}static containsRange(g,S){return!(S.startLineNumber<g.startLineNumber||S.endLineNumber<g.startLineNumber||S.startLineNumber>g.endLineNumber||S.endLineNumber>g.endLineNumber||S.startLineNumber===g.startLineNumber&&S.startColumn<g.startColumn||S.endLineNumber===g.endLineNumber&&S.endColumn>g.endColumn)}strictContainsRange(g){return ol.strictContainsRange(this,g)}static strictContainsRange(g,S){return!(S.startLineNumber<g.startLineNumber||S.endLineNumber<g.startLineNumber||S.startLineNumber>g.endLineNumber||S.endLineNumber>g.endLineNumber||S.startLineNumber===g.startLineNumber&&S.startColumn<=g.startColumn||S.endLineNumber===g.endLineNumber&&S.endColumn>=g.endColumn)}plusRange(g){return ol.plusRange(this,g)}static plusRange(g,S){let P,X,_e,ve;return S.startLineNumber<g.startLineNumber?(P=S.startLineNumber,X=S.startColumn):S.startLineNumber===g.startLineNumber?(P=S.startLineNumber,X=Math.min(S.startColumn,g.startColumn)):(P=g.startLineNumber,X=g.startColumn),S.endLineNumber>g.endLineNumber?(_e=S.endLineNumber,ve=S.endColumn):S.endLineNumber===g.endLineNumber?(_e=S.endLineNumber,ve=Math.max(S.endColumn,g.endColumn)):(_e=g.endLineNumber,ve=g.endColumn),new ol(P,X,_e,ve)}intersectRanges(g){return ol.intersectRanges(this,g)}static intersectRanges(g,S){let P=g.startLineNumber,X=g.startColumn,_e=g.endLineNumber,ve=g.endColumn;const Be=S.startLineNumber,ct=S.startColumn,Le=S.endLineNumber,Je=S.endColumn;return P<Be?(P=Be,X=ct):P===Be&&(X=Math.max(X,ct)),_e>Le?(_e=Le,ve=Je):_e===Le&&(ve=Math.min(ve,Je)),P>_e||P===_e&&X>ve?null:new ol(P,X,_e,ve)}equalsRange(g){return ol.equalsRange(this,g)}static equalsRange(g,S){return!g&&!S?!0:!!g&&!!S&&g.startLineNumber===S.startLineNumber&&g.startColumn===S.startColumn&&g.endLineNumber===S.endLineNumber&&g.endColumn===S.endColumn}getEndPosition(){return ol.getEndPosition(this)}static getEndPosition(g){return new Qp(g.endLineNumber,g.endColumn)}getStartPosition(){return ol.getStartPosition(this)}static getStartPosition(g){return new Qp(g.startLineNumber,g.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(g,S){return new ol(this.startLineNumber,this.startColumn,g,S)}setStartPosition(g,S){return new ol(g,S,this.endLineNumber,this.endColumn)}collapseToStart(){return ol.collapseToStart(this)}static collapseToStart(g){return new ol(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn)}collapseToEnd(){return ol.collapseToEnd(this)}static collapseToEnd(g){return new ol(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn)}delta(g){return new ol(this.startLineNumber+g,this.startColumn,this.endLineNumber+g,this.endColumn)}static fromPositions(g,S=g){return new ol(g.lineNumber,g.column,S.lineNumber,S.column)}static lift(g){return g?new ol(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):null}static isIRange(g){return g&&typeof g.startLineNumber=="number"&&typeof g.startColumn=="number"&&typeof g.endLineNumber=="number"&&typeof g.endColumn=="number"}static areIntersectingOrTouching(g,S){return!(g.endLineNumber<S.startLineNumber||g.endLineNumber===S.startLineNumber&&g.endColumn<S.startColumn||S.endLineNumber<g.startLineNumber||S.endLineNumber===g.startLineNumber&&S.endColumn<g.startColumn)}static areIntersecting(g,S){return!(g.endLineNumber<S.startLineNumber||g.endLineNumber===S.startLineNumber&&g.endColumn<=S.startColumn||S.endLineNumber<g.startLineNumber||S.endLineNumber===g.startLineNumber&&S.endColumn<=g.startColumn)}static compareRangesUsingStarts(g,S){if(g&&S){const _e=g.startLineNumber|0,ve=S.startLineNumber|0;if(_e===ve){const Be=g.startColumn|0,ct=S.startColumn|0;if(Be===ct){const Le=g.endLineNumber|0,Je=S.endLineNumber|0;if(Le===Je){const Xt=g.endColumn|0,Jt=S.endColumn|0;return Xt-Jt}return Le-Je}return Be-ct}return _e-ve}return(g?1:0)-(S?1:0)}static compareRangesUsingEnds(g,S){return g.endLineNumber===S.endLineNumber?g.endColumn===S.endColumn?g.startLineNumber===S.startLineNumber?g.startColumn-S.startColumn:g.startLineNumber-S.startLineNumber:g.endColumn-S.endColumn:g.endLineNumber-S.endLineNumber}static spansMultipleLines(g){return g.endLineNumber>g.startLineNumber}toJSON(){return this}}function YOe(m,g,S=(P,X)=>P===X){if(m===g)return!0;if(!m||!g||m.length!==g.length)return!1;for(let P=0,X=m.length;P<X;P++)if(!S(m[P],g[P]))return!1;return!0}function*$Oe(m,g){let S,P;for(const X of m)P!==void 0&&g(P,X)?S.push(X):(S&&(yield S),S=[X]),P=X;S&&(yield S)}function QOe(m,g){for(let S=0;S<=m.length;S++)g(S===0?void 0:m[S-1],S===m.length?void 0:m[S])}function ZOe(m,g){for(let S=0;S<m.length;S++)g(S===0?void 0:m[S-1],m[S],S+1===m.length?void 0:m[S+1])}function e8e(m,g){for(const S of g)m.push(S)}var Zse;(function(m){function g(_e){return _e<0}m.isLessThan=g;function S(_e){return _e<=0}m.isLessThanOrEqual=S;function P(_e){return _e>0}m.isGreaterThan=P;function X(_e){return _e===0}m.isNeitherLessOrGreaterThan=X,m.greaterThan=1,m.lessThan=-1,m.neitherLessOrGreaterThan=0})(Zse||(Zse={}));function tM(m,g){return(S,P)=>g(m(S),m(P))}const nM=(m,g)=>m-g;function t8e(m){return(g,S)=>-m(g,S)}function ele(m){return m<0?0:m>255?255:m|0}function xI(m){return m<0?0:m>4294967295?4294967295:m|0}class n8e{constructor(g){this.values=g,this.prefixSum=new Uint32Array(g.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(g,S){g=xI(g);const P=this.values,X=this.prefixSum,_e=S.length;return _e===0?!1:(this.values=new Uint32Array(P.length+_e),this.values.set(P.subarray(0,g),0),this.values.set(P.subarray(g),g+_e),this.values.set(S,g),g-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=g-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(g,S){return g=xI(g),S=xI(S),this.values[g]===S?!1:(this.values[g]=S,g-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=g-1),!0)}removeValues(g,S){g=xI(g),S=xI(S);const P=this.values,X=this.prefixSum;if(g>=P.length)return!1;const _e=P.length-g;return S>=_e&&(S=_e),S===0?!1:(this.values=new Uint32Array(P.length-S),this.values.set(P.subarray(0,g),0),this.values.set(P.subarray(g+S),g),this.prefixSum=new Uint32Array(this.values.length),g-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=g-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(g){return g<0?0:(g=xI(g),this._getPrefixSum(g))}_getPrefixSum(g){if(g<=this.prefixSumValidIndex[0])return this.prefixSum[g];let S=this.prefixSumValidIndex[0]+1;S===0&&(this.prefixSum[0]=this.values[0],S++),g>=this.values.length&&(g=this.values.length-1);for(let P=S;P<=g;P++)this.prefixSum[P]=this.prefixSum[P-1]+this.values[P];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],g),this.prefixSum[g]}getIndexOf(g){g=Math.floor(g),this.getTotalSum();let S=0,P=this.values.length-1,X=0,_e=0,ve=0;for(;S<=P;)if(X=S+(P-S)/2|0,_e=this.prefixSum[X],ve=_e-this.values[X],g<ve)P=X-1;else if(g>=_e)S=X+1;else break;return new r8e(X,g-ve)}}class r8e{constructor(g,S){this.index=g,this.remainder=S,this._prefixSumIndexOfResultBrand=void 0,this.index=g,this.remainder=S}}class i8e{constructor(g,S,P,X){this._uri=g,this._lines=S,this._eol=P,this._versionId=X,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(g){g.eol&&g.eol!==this._eol&&(this._eol=g.eol,this._lineStarts=null);const S=g.changes;for(const P of S)this._acceptDeleteRange(P.range),this._acceptInsertText(new Qp(P.range.startLineNumber,P.range.startColumn),P.text);this._versionId=g.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const g=this._eol.length,S=this._lines.length,P=new Uint32Array(S);for(let X=0;X<S;X++)P[X]=this._lines[X].length+g;this._lineStarts=new n8e(P)}}_setLineText(g,S){this._lines[g]=S,this._lineStarts&&this._lineStarts.setValue(g,this._lines[g].length+this._eol.length)}_acceptDeleteRange(g){if(g.startLineNumber===g.endLineNumber){if(g.startColumn===g.endColumn)return;this._setLineText(g.startLineNumber-1,this._lines[g.startLineNumber-1].substring(0,g.startColumn-1)+this._lines[g.startLineNumber-1].substring(g.endColumn-1));return}this._setLineText(g.startLineNumber-1,this._lines[g.startLineNumber-1].substring(0,g.startColumn-1)+this._lines[g.endLineNumber-1].substring(g.endColumn-1)),this._lines.splice(g.startLineNumber,g.endLineNumber-g.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(g.startLineNumber,g.endLineNumber-g.startLineNumber)}_acceptInsertText(g,S){if(S.length===0)return;const P=mOe(S);if(P.length===1){this._setLineText(g.lineNumber-1,this._lines[g.lineNumber-1].substring(0,g.column-1)+P[0]+this._lines[g.lineNumber-1].substring(g.column-1));return}P[P.length-1]+=this._lines[g.lineNumber-1].substring(g.column-1),this._setLineText(g.lineNumber-1,this._lines[g.lineNumber-1].substring(0,g.column-1)+P[0]);const X=new Uint32Array(P.length-1);for(let _e=1;_e<P.length;_e++)this._lines.splice(g.lineNumber+_e-1,0,P[_e]),X[_e-1]=P[_e].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(g.lineNumber,X)}}const a8e="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function o8e(m=""){let g="(-?\\d*\\.\\d\\w*)|([^";for(const S of a8e)m.indexOf(S)>=0||(g+="\\"+S);return g+="\\s]+)",new RegExp(g,"g")}const tle=o8e();function nle(m){let g=tle;if(m&&m instanceof RegExp)if(m.global)g=m;else{let S="g";m.ignoreCase&&(S+="i"),m.multiline&&(S+="m"),m.unicode&&(S+="u"),g=new RegExp(m.source,S)}return g.lastIndex=0,g}const rle=new YNe;rle.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Kj(m,g,S,P,X){if(g=nle(g),X||(X=K4.first(rle)),S.length>X.maxLen){let Le=m-X.maxLen/2;return Le<0?Le=0:P+=Le,S=S.substring(Le,m+X.maxLen/2),Kj(m,g,S,P,X)}const _e=Date.now(),ve=m-1-P;let Be=-1,ct=null;for(let Le=1;!(Date.now()-_e>=X.timeBudget);Le++){const Je=ve-X.windowSize*Le;g.lastIndex=Math.max(0,Je);const Xt=s8e(g,S,ve,Be);if(!Xt&&ct||(ct=Xt,Je<=0))break;Be=Je}if(ct){const Le={word:ct[0],startColumn:P+1+ct.index,endColumn:P+1+ct.index+ct[0].length};return g.lastIndex=0,Le}return null}function s8e(m,g,S,P){let X;for(;X=m.exec(g);){const _e=X.index||0;if(_e<=S&&m.lastIndex>=S)return X;if(P>0&&_e>P)return null}return null}class Xj{constructor(g){const S=ele(g);this._defaultValue=S,this._asciiMap=Xj._createAsciiMap(S),this._map=new Map}static _createAsciiMap(g){const S=new Uint8Array(256);return S.fill(g),S}set(g,S){const P=ele(S);g>=0&&g<256?this._asciiMap[g]=P:this._map.set(g,P)}get(g){return g>=0&&g<256?this._asciiMap[g]:this._map.get(g)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class l8e{constructor(g,S,P){const X=new Uint8Array(g*S);for(let _e=0,ve=g*S;_e<ve;_e++)X[_e]=P;this._data=X,this.rows=g,this.cols=S}get(g,S){return this._data[g*this.cols+S]}set(g,S,P){this._data[g*this.cols+S]=P}}class c8e{constructor(g){let S=0,P=0;for(let _e=0,ve=g.length;_e<ve;_e++){const[Be,ct,Le]=g[_e];ct>S&&(S=ct),Be>P&&(P=Be),Le>P&&(P=Le)}S++,P++;const X=new l8e(P,S,0);for(let _e=0,ve=g.length;_e<ve;_e++){const[Be,ct,Le]=g[_e];X.set(Be,ct,Le)}this._states=X,this._maxCharCode=S}nextState(g,S){return S<0||S>=this._maxCharCode?0:this._states.get(g,S)}}let Yj=null;function u8e(){return Yj===null&&(Yj=new c8e([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Yj}let vR=null;function d8e(){if(vR===null){vR=new Xj(0);const m=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let S=0;S<m.length;S++)vR.set(m.charCodeAt(S),1);const g=".,;:";for(let S=0;S<g.length;S++)vR.set(g.charCodeAt(S),2)}return vR}class rM{static _createLink(g,S,P,X,_e){let ve=_e-1;do{const Be=S.charCodeAt(ve);if(g.get(Be)!==2)break;ve--}while(ve>X);if(X>0){const Be=S.charCodeAt(X-1),ct=S.charCodeAt(ve);(Be===40&&ct===41||Be===91&&ct===93||Be===123&&ct===125)&&ve--}return{range:{startLineNumber:P,startColumn:X+1,endLineNumber:P,endColumn:ve+2},url:S.substring(X,ve+1)}}static computeLinks(g,S=u8e()){const P=d8e(),X=[];for(let _e=1,ve=g.getLineCount();_e<=ve;_e++){const Be=g.getLineContent(_e),ct=Be.length;let Le=0,Je=0,Xt=0,Jt=1,dn=!1,Rr=!1,fi=!1,ta=!1;for(;Le<ct;){let Zn=!1;const In=Be.charCodeAt(Le);if(Jt===13){let Yr;switch(In){case 40:dn=!0,Yr=0;break;case 41:Yr=dn?0:1;break;case 91:fi=!0,Rr=!0,Yr=0;break;case 93:fi=!1,Yr=Rr?0:1;break;case 123:ta=!0,Yr=0;break;case 125:Yr=ta?0:1;break;case 39:case 34:case 96:Xt===In?Yr=1:Xt===39||Xt===34||Xt===96?Yr=0:Yr=1;break;case 42:Yr=Xt===42?1:0;break;case 124:Yr=Xt===124?1:0;break;case 32:Yr=fi?0:1;break;default:Yr=P.get(In)}Yr===1&&(X.push(rM._createLink(P,Be,_e,Je,Le)),Zn=!0)}else if(Jt===12){let Yr;In===91?(Rr=!0,Yr=0):Yr=P.get(In),Yr===1?Zn=!0:Jt=13}else Jt=S.nextState(Jt,In),Jt===0&&(Zn=!0);Zn&&(Jt=1,dn=!1,Rr=!1,ta=!1,Je=Le+1,Xt=In),Le++}Jt===13&&X.push(rM._createLink(P,Be,_e,Je,ct))}return X}}function f8e(m){return!m||typeof m.getLineCount!="function"||typeof m.getLineContent!="function"?[]:rM.computeLinks(m)}class $j{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(g,S,P,X,_e){if(g&&S){const ve=this.doNavigateValueSet(S,_e);if(ve)return{range:g,value:ve}}if(P&&X){const ve=this.doNavigateValueSet(X,_e);if(ve)return{range:P,value:ve}}return null}doNavigateValueSet(g,S){const P=this.numberReplace(g,S);return P!==null?P:this.textReplace(g,S)}numberReplace(g,S){const P=Math.pow(10,g.length-(g.lastIndexOf(".")+1));let X=Number(g);const _e=parseFloat(g);return!isNaN(X)&&!isNaN(_e)&&X===_e?X===0&&!S?null:(X=Math.floor(X*P),X+=S?P:-P,String(X/P)):null}textReplace(g,S){return this.valueSetsReplace(this._defaultValueSet,g,S)}valueSetsReplace(g,S,P){let X=null;for(let _e=0,ve=g.length;X===null&&_e<ve;_e++)X=this.valueSetReplace(g[_e],S,P);return X}valueSetReplace(g,S,P){let X=g.indexOf(S);return X>=0?(X+=P?1:-1,X<0?X=g.length-1:X%=g.length,g[X]):null}}$j.INSTANCE=new $j;const ile=Object.freeze(function(m,g){const S=setTimeout(m.bind(g),0);return{dispose(){clearTimeout(S)}}});var iM;(function(m){function g(S){return S===m.None||S===m.Cancelled||S instanceof aM?!0:!S||typeof S!="object"?!1:typeof S.isCancellationRequested=="boolean"&&typeof S.onCancellationRequested=="function"}m.isCancellationToken=g,m.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Nj.None}),m.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:ile})})(iM||(iM={}));class aM{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?ile:(this._emitter||(this._emitter=new J0),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class _8e{constructor(g){this._token=void 0,this._parentListener=void 0,this._parentListener=g&&g.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new aM),this._token}cancel(){this._token?this._token instanceof aM&&this._token.cancel():this._token=iM.Cancelled}dispose(g=!1){var S;g&&this.cancel(),(S=this._parentListener)===null||S===void 0||S.dispose(),this._token?this._token instanceof aM&&this._token.dispose():this._token=iM.None}}class Qj{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(g,S){this._keyCodeToStr[g]=S,this._strToKeyCode[S.toLowerCase()]=g}keyCodeToStr(g){return this._keyCodeToStr[g]}strToKeyCode(g){return this._strToKeyCode[g.toLowerCase()]||0}}const oM=new Qj,Zj=new Qj,eH=new Qj,p8e=new Array(230),m8e=Object.create(null),h8e=Object.create(null);(function(){const m="",g=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",m,m],[1,1,"Hyper",0,m,0,m,m,m],[1,2,"Super",0,m,0,m,m,m],[1,3,"Fn",0,m,0,m,m,m],[1,4,"FnLock",0,m,0,m,m,m],[1,5,"Suspend",0,m,0,m,m,m],[1,6,"Resume",0,m,0,m,m,m],[1,7,"Turbo",0,m,0,m,m,m],[1,8,"Sleep",0,m,0,"VK_SLEEP",m,m],[1,9,"WakeUp",0,m,0,m,m,m],[0,10,"KeyA",31,"A",65,"VK_A",m,m],[0,11,"KeyB",32,"B",66,"VK_B",m,m],[0,12,"KeyC",33,"C",67,"VK_C",m,m],[0,13,"KeyD",34,"D",68,"VK_D",m,m],[0,14,"KeyE",35,"E",69,"VK_E",m,m],[0,15,"KeyF",36,"F",70,"VK_F",m,m],[0,16,"KeyG",37,"G",71,"VK_G",m,m],[0,17,"KeyH",38,"H",72,"VK_H",m,m],[0,18,"KeyI",39,"I",73,"VK_I",m,m],[0,19,"KeyJ",40,"J",74,"VK_J",m,m],[0,20,"KeyK",41,"K",75,"VK_K",m,m],[0,21,"KeyL",42,"L",76,"VK_L",m,m],[0,22,"KeyM",43,"M",77,"VK_M",m,m],[0,23,"KeyN",44,"N",78,"VK_N",m,m],[0,24,"KeyO",45,"O",79,"VK_O",m,m],[0,25,"KeyP",46,"P",80,"VK_P",m,m],[0,26,"KeyQ",47,"Q",81,"VK_Q",m,m],[0,27,"KeyR",48,"R",82,"VK_R",m,m],[0,28,"KeyS",49,"S",83,"VK_S",m,m],[0,29,"KeyT",50,"T",84,"VK_T",m,m],[0,30,"KeyU",51,"U",85,"VK_U",m,m],[0,31,"KeyV",52,"V",86,"VK_V",m,m],[0,32,"KeyW",53,"W",87,"VK_W",m,m],[0,33,"KeyX",54,"X",88,"VK_X",m,m],[0,34,"KeyY",55,"Y",89,"VK_Y",m,m],[0,35,"KeyZ",56,"Z",90,"VK_Z",m,m],[0,36,"Digit1",22,"1",49,"VK_1",m,m],[0,37,"Digit2",23,"2",50,"VK_2",m,m],[0,38,"Digit3",24,"3",51,"VK_3",m,m],[0,39,"Digit4",25,"4",52,"VK_4",m,m],[0,40,"Digit5",26,"5",53,"VK_5",m,m],[0,41,"Digit6",27,"6",54,"VK_6",m,m],[0,42,"Digit7",28,"7",55,"VK_7",m,m],[0,43,"Digit8",29,"8",56,"VK_8",m,m],[0,44,"Digit9",30,"9",57,"VK_9",m,m],[0,45,"Digit0",21,"0",48,"VK_0",m,m],[1,46,"Enter",3,"Enter",13,"VK_RETURN",m,m],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",m,m],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",m,m],[1,49,"Tab",2,"Tab",9,"VK_TAB",m,m],[1,50,"Space",10,"Space",32,"VK_SPACE",m,m],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,m,0,m,m,m],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",m,m],[1,64,"F1",59,"F1",112,"VK_F1",m,m],[1,65,"F2",60,"F2",113,"VK_F2",m,m],[1,66,"F3",61,"F3",114,"VK_F3",m,m],[1,67,"F4",62,"F4",115,"VK_F4",m,m],[1,68,"F5",63,"F5",116,"VK_F5",m,m],[1,69,"F6",64,"F6",117,"VK_F6",m,m],[1,70,"F7",65,"F7",118,"VK_F7",m,m],[1,71,"F8",66,"F8",119,"VK_F8",m,m],[1,72,"F9",67,"F9",120,"VK_F9",m,m],[1,73,"F10",68,"F10",121,"VK_F10",m,m],[1,74,"F11",69,"F11",122,"VK_F11",m,m],[1,75,"F12",70,"F12",123,"VK_F12",m,m],[1,76,"PrintScreen",0,m,0,m,m,m],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",m,m],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",m,m],[1,79,"Insert",19,"Insert",45,"VK_INSERT",m,m],[1,80,"Home",14,"Home",36,"VK_HOME",m,m],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",m,m],[1,82,"Delete",20,"Delete",46,"VK_DELETE",m,m],[1,83,"End",13,"End",35,"VK_END",m,m],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",m,m],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",m],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",m],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",m],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",m],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",m,m],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",m,m],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",m,m],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",m,m],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",m,m],[1,94,"NumpadEnter",3,m,0,m,m,m],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",m,m],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",m,m],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",m,m],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",m,m],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",m,m],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",m,m],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",m,m],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",m,m],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",m,m],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",m,m],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",m,m],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",m,m],[1,107,"ContextMenu",58,"ContextMenu",93,m,m,m],[1,108,"Power",0,m,0,m,m,m],[1,109,"NumpadEqual",0,m,0,m,m,m],[1,110,"F13",71,"F13",124,"VK_F13",m,m],[1,111,"F14",72,"F14",125,"VK_F14",m,m],[1,112,"F15",73,"F15",126,"VK_F15",m,m],[1,113,"F16",74,"F16",127,"VK_F16",m,m],[1,114,"F17",75,"F17",128,"VK_F17",m,m],[1,115,"F18",76,"F18",129,"VK_F18",m,m],[1,116,"F19",77,"F19",130,"VK_F19",m,m],[1,117,"F20",78,"F20",131,"VK_F20",m,m],[1,118,"F21",79,"F21",132,"VK_F21",m,m],[1,119,"F22",80,"F22",133,"VK_F22",m,m],[1,120,"F23",81,"F23",134,"VK_F23",m,m],[1,121,"F24",82,"F24",135,"VK_F24",m,m],[1,122,"Open",0,m,0,m,m,m],[1,123,"Help",0,m,0,m,m,m],[1,124,"Select",0,m,0,m,m,m],[1,125,"Again",0,m,0,m,m,m],[1,126,"Undo",0,m,0,m,m,m],[1,127,"Cut",0,m,0,m,m,m],[1,128,"Copy",0,m,0,m,m,m],[1,129,"Paste",0,m,0,m,m,m],[1,130,"Find",0,m,0,m,m,m],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",m,m],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",m,m],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",m,m],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",m,m],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",m,m],[1,136,"KanaMode",0,m,0,m,m,m],[0,137,"IntlYen",0,m,0,m,m,m],[1,138,"Convert",0,m,0,m,m,m],[1,139,"NonConvert",0,m,0,m,m,m],[1,140,"Lang1",0,m,0,m,m,m],[1,141,"Lang2",0,m,0,m,m,m],[1,142,"Lang3",0,m,0,m,m,m],[1,143,"Lang4",0,m,0,m,m,m],[1,144,"Lang5",0,m,0,m,m,m],[1,145,"Abort",0,m,0,m,m,m],[1,146,"Props",0,m,0,m,m,m],[1,147,"NumpadParenLeft",0,m,0,m,m,m],[1,148,"NumpadParenRight",0,m,0,m,m,m],[1,149,"NumpadBackspace",0,m,0,m,m,m],[1,150,"NumpadMemoryStore",0,m,0,m,m,m],[1,151,"NumpadMemoryRecall",0,m,0,m,m,m],[1,152,"NumpadMemoryClear",0,m,0,m,m,m],[1,153,"NumpadMemoryAdd",0,m,0,m,m,m],[1,154,"NumpadMemorySubtract",0,m,0,m,m,m],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",m,m],[1,156,"NumpadClearEntry",0,m,0,m,m,m],[1,0,m,5,"Ctrl",17,"VK_CONTROL",m,m],[1,0,m,4,"Shift",16,"VK_SHIFT",m,m],[1,0,m,6,"Alt",18,"VK_MENU",m,m],[1,0,m,57,"Meta",91,"VK_COMMAND",m,m],[1,157,"ControlLeft",5,m,0,"VK_LCONTROL",m,m],[1,158,"ShiftLeft",4,m,0,"VK_LSHIFT",m,m],[1,159,"AltLeft",6,m,0,"VK_LMENU",m,m],[1,160,"MetaLeft",57,m,0,"VK_LWIN",m,m],[1,161,"ControlRight",5,m,0,"VK_RCONTROL",m,m],[1,162,"ShiftRight",4,m,0,"VK_RSHIFT",m,m],[1,163,"AltRight",6,m,0,"VK_RMENU",m,m],[1,164,"MetaRight",57,m,0,"VK_RWIN",m,m],[1,165,"BrightnessUp",0,m,0,m,m,m],[1,166,"BrightnessDown",0,m,0,m,m,m],[1,167,"MediaPlay",0,m,0,m,m,m],[1,168,"MediaRecord",0,m,0,m,m,m],[1,169,"MediaFastForward",0,m,0,m,m,m],[1,170,"MediaRewind",0,m,0,m,m,m],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",m,m],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",m,m],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",m,m],[1,174,"Eject",0,m,0,m,m,m],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",m,m],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",m,m],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",m,m],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",m,m],[1,179,"LaunchApp1",0,m,0,"VK_MEDIA_LAUNCH_APP1",m,m],[1,180,"SelectTask",0,m,0,m,m,m],[1,181,"LaunchScreenSaver",0,m,0,m,m,m],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",m,m],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",m,m],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",m,m],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",m,m],[1,186,"BrowserStop",0,m,0,"VK_BROWSER_STOP",m,m],[1,187,"BrowserRefresh",0,m,0,"VK_BROWSER_REFRESH",m,m],[1,188,"BrowserFavorites",0,m,0,"VK_BROWSER_FAVORITES",m,m],[1,189,"ZoomToggle",0,m,0,m,m,m],[1,190,"MailReply",0,m,0,m,m,m],[1,191,"MailForward",0,m,0,m,m,m],[1,192,"MailSend",0,m,0,m,m,m],[1,0,m,114,"KeyInComposition",229,m,m,m],[1,0,m,116,"ABNT_C2",194,"VK_ABNT_C2",m,m],[1,0,m,96,"OEM_8",223,"VK_OEM_8",m,m],[1,0,m,0,m,0,"VK_KANA",m,m],[1,0,m,0,m,0,"VK_HANGUL",m,m],[1,0,m,0,m,0,"VK_JUNJA",m,m],[1,0,m,0,m,0,"VK_FINAL",m,m],[1,0,m,0,m,0,"VK_HANJA",m,m],[1,0,m,0,m,0,"VK_KANJI",m,m],[1,0,m,0,m,0,"VK_CONVERT",m,m],[1,0,m,0,m,0,"VK_NONCONVERT",m,m],[1,0,m,0,m,0,"VK_ACCEPT",m,m],[1,0,m,0,m,0,"VK_MODECHANGE",m,m],[1,0,m,0,m,0,"VK_SELECT",m,m],[1,0,m,0,m,0,"VK_PRINT",m,m],[1,0,m,0,m,0,"VK_EXECUTE",m,m],[1,0,m,0,m,0,"VK_SNAPSHOT",m,m],[1,0,m,0,m,0,"VK_HELP",m,m],[1,0,m,0,m,0,"VK_APPS",m,m],[1,0,m,0,m,0,"VK_PROCESSKEY",m,m],[1,0,m,0,m,0,"VK_PACKET",m,m],[1,0,m,0,m,0,"VK_DBE_SBCSCHAR",m,m],[1,0,m,0,m,0,"VK_DBE_DBCSCHAR",m,m],[1,0,m,0,m,0,"VK_ATTN",m,m],[1,0,m,0,m,0,"VK_CRSEL",m,m],[1,0,m,0,m,0,"VK_EXSEL",m,m],[1,0,m,0,m,0,"VK_EREOF",m,m],[1,0,m,0,m,0,"VK_PLAY",m,m],[1,0,m,0,m,0,"VK_ZOOM",m,m],[1,0,m,0,m,0,"VK_NONAME",m,m],[1,0,m,0,m,0,"VK_PA1",m,m],[1,0,m,0,m,0,"VK_OEM_CLEAR",m,m]],S=[],P=[];for(const X of g){const[_e,ve,Be,ct,Le,Je,Xt,Jt,dn]=X;if(P[ve]||(P[ve]=!0,m8e[Be]=ve,h8e[Be.toLowerCase()]=ve),!S[ct]){if(S[ct]=!0,!Le)throw new Error(`String representation missing for key code ${ct} around scan code ${Be}`);oM.define(ct,Le),Zj.define(ct,Jt||Le),eH.define(ct,dn||Jt||Le)}Je&&(p8e[Je]=ct)}})();var ale;(function(m){function g(Be){return oM.keyCodeToStr(Be)}m.toString=g;function S(Be){return oM.strToKeyCode(Be)}m.fromString=S;function P(Be){return Zj.keyCodeToStr(Be)}m.toUserSettingsUS=P;function X(Be){return eH.keyCodeToStr(Be)}m.toUserSettingsGeneral=X;function _e(Be){return Zj.strToKeyCode(Be)||eH.strToKeyCode(Be)}m.fromUserSettings=_e;function ve(Be){if(Be>=98&&Be<=113)return null;switch(Be){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return oM.keyCodeToStr(Be)}m.toElectronAccelerator=ve})(ale||(ale={}));function g8e(m,g){const S=(g&65535)<<16>>>0;return(m|S)>>>0}class hy extends ol{constructor(g,S,P,X){super(g,S,P,X),this.selectionStartLineNumber=g,this.selectionStartColumn=S,this.positionLineNumber=P,this.positionColumn=X}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(g){return hy.selectionsEqual(this,g)}static selectionsEqual(g,S){return g.selectionStartLineNumber===S.selectionStartLineNumber&&g.selectionStartColumn===S.selectionStartColumn&&g.positionLineNumber===S.positionLineNumber&&g.positionColumn===S.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(g,S){return this.getDirection()===0?new hy(this.startLineNumber,this.startColumn,g,S):new hy(g,S,this.startLineNumber,this.startColumn)}getPosition(){return new Qp(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Qp(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(g,S){return this.getDirection()===0?new hy(g,S,this.endLineNumber,this.endColumn):new hy(this.endLineNumber,this.endColumn,g,S)}static fromPositions(g,S=g){return new hy(g.lineNumber,g.column,S.lineNumber,S.column)}static fromRange(g,S){return S===0?new hy(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):new hy(g.endLineNumber,g.endColumn,g.startLineNumber,g.startColumn)}static liftSelection(g){return new hy(g.selectionStartLineNumber,g.selectionStartColumn,g.positionLineNumber,g.positionColumn)}static selectionsArrEqual(g,S){if(g&&!S||!g&&S)return!1;if(!g&&!S)return!0;if(g.length!==S.length)return!1;for(let P=0,X=g.length;P<X;P++)if(!this.selectionsEqual(g[P],S[P]))return!1;return!0}static isISelection(g){return g&&typeof g.selectionStartLineNumber=="number"&&typeof g.selectionStartColumn=="number"&&typeof g.positionLineNumber=="number"&&typeof g.positionColumn=="number"}static createWithDirection(g,S,P,X,_e){return _e===0?new hy(g,S,P,X):new hy(P,X,g,S)}}const ole=Object.create(null);function ye(m,g){if(nOe(g)){const S=ole[g];if(S===void 0)throw new Error(`${m} references an unknown codicon: ${g}`);g=S}return ole[m]=g,{id:m}}const y8e={add:ye("add",6e4),plus:ye("plus",6e4),gistNew:ye("gist-new",6e4),repoCreate:ye("repo-create",6e4),lightbulb:ye("lightbulb",60001),lightBulb:ye("light-bulb",60001),repo:ye("repo",60002),repoDelete:ye("repo-delete",60002),gistFork:ye("gist-fork",60003),repoForked:ye("repo-forked",60003),gitPullRequest:ye("git-pull-request",60004),gitPullRequestAbandoned:ye("git-pull-request-abandoned",60004),recordKeys:ye("record-keys",60005),keyboard:ye("keyboard",60005),tag:ye("tag",60006),gitPullRequestLabel:ye("git-pull-request-label",60006),tagAdd:ye("tag-add",60006),tagRemove:ye("tag-remove",60006),person:ye("person",60007),personFollow:ye("person-follow",60007),personOutline:ye("person-outline",60007),personFilled:ye("person-filled",60007),gitBranch:ye("git-branch",60008),gitBranchCreate:ye("git-branch-create",60008),gitBranchDelete:ye("git-branch-delete",60008),sourceControl:ye("source-control",60008),mirror:ye("mirror",60009),mirrorPublic:ye("mirror-public",60009),star:ye("star",60010),starAdd:ye("star-add",60010),starDelete:ye("star-delete",60010),starEmpty:ye("star-empty",60010),comment:ye("comment",60011),commentAdd:ye("comment-add",60011),alert:ye("alert",60012),warning:ye("warning",60012),search:ye("search",60013),searchSave:ye("search-save",60013),logOut:ye("log-out",60014),signOut:ye("sign-out",60014),logIn:ye("log-in",60015),signIn:ye("sign-in",60015),eye:ye("eye",60016),eyeUnwatch:ye("eye-unwatch",60016),eyeWatch:ye("eye-watch",60016),circleFilled:ye("circle-filled",60017),primitiveDot:ye("primitive-dot",60017),closeDirty:ye("close-dirty",60017),debugBreakpoint:ye("debug-breakpoint",60017),debugBreakpointDisabled:ye("debug-breakpoint-disabled",60017),debugHint:ye("debug-hint",60017),terminalDecorationSuccess:ye("terminal-decoration-success",60017),primitiveSquare:ye("primitive-square",60018),edit:ye("edit",60019),pencil:ye("pencil",60019),info:ye("info",60020),issueOpened:ye("issue-opened",60020),gistPrivate:ye("gist-private",60021),gitForkPrivate:ye("git-fork-private",60021),lock:ye("lock",60021),mirrorPrivate:ye("mirror-private",60021),close:ye("close",60022),removeClose:ye("remove-close",60022),x:ye("x",60022),repoSync:ye("repo-sync",60023),sync:ye("sync",60023),clone:ye("clone",60024),desktopDownload:ye("desktop-download",60024),beaker:ye("beaker",60025),microscope:ye("microscope",60025),vm:ye("vm",60026),deviceDesktop:ye("device-desktop",60026),file:ye("file",60027),fileText:ye("file-text",60027),more:ye("more",60028),ellipsis:ye("ellipsis",60028),kebabHorizontal:ye("kebab-horizontal",60028),mailReply:ye("mail-reply",60029),reply:ye("reply",60029),organization:ye("organization",60030),organizationFilled:ye("organization-filled",60030),organizationOutline:ye("organization-outline",60030),newFile:ye("new-file",60031),fileAdd:ye("file-add",60031),newFolder:ye("new-folder",60032),fileDirectoryCreate:ye("file-directory-create",60032),trash:ye("trash",60033),trashcan:ye("trashcan",60033),history:ye("history",60034),clock:ye("clock",60034),folder:ye("folder",60035),fileDirectory:ye("file-directory",60035),symbolFolder:ye("symbol-folder",60035),logoGithub:ye("logo-github",60036),markGithub:ye("mark-github",60036),github:ye("github",60036),terminal:ye("terminal",60037),console:ye("console",60037),repl:ye("repl",60037),zap:ye("zap",60038),symbolEvent:ye("symbol-event",60038),error:ye("error",60039),stop:ye("stop",60039),variable:ye("variable",60040),symbolVariable:ye("symbol-variable",60040),array:ye("array",60042),symbolArray:ye("symbol-array",60042),symbolModule:ye("symbol-module",60043),symbolPackage:ye("symbol-package",60043),symbolNamespace:ye("symbol-namespace",60043),symbolObject:ye("symbol-object",60043),symbolMethod:ye("symbol-method",60044),symbolFunction:ye("symbol-function",60044),symbolConstructor:ye("symbol-constructor",60044),symbolBoolean:ye("symbol-boolean",60047),symbolNull:ye("symbol-null",60047),symbolNumeric:ye("symbol-numeric",60048),symbolNumber:ye("symbol-number",60048),symbolStructure:ye("symbol-structure",60049),symbolStruct:ye("symbol-struct",60049),symbolParameter:ye("symbol-parameter",60050),symbolTypeParameter:ye("symbol-type-parameter",60050),symbolKey:ye("symbol-key",60051),symbolText:ye("symbol-text",60051),symbolReference:ye("symbol-reference",60052),goToFile:ye("go-to-file",60052),symbolEnum:ye("symbol-enum",60053),symbolValue:ye("symbol-value",60053),symbolRuler:ye("symbol-ruler",60054),symbolUnit:ye("symbol-unit",60054),activateBreakpoints:ye("activate-breakpoints",60055),archive:ye("archive",60056),arrowBoth:ye("arrow-both",60057),arrowDown:ye("arrow-down",60058),arrowLeft:ye("arrow-left",60059),arrowRight:ye("arrow-right",60060),arrowSmallDown:ye("arrow-small-down",60061),arrowSmallLeft:ye("arrow-small-left",60062),arrowSmallRight:ye("arrow-small-right",60063),arrowSmallUp:ye("arrow-small-up",60064),arrowUp:ye("arrow-up",60065),bell:ye("bell",60066),bold:ye("bold",60067),book:ye("book",60068),bookmark:ye("bookmark",60069),debugBreakpointConditionalUnverified:ye("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:ye("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:ye("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:ye("debug-breakpoint-data-unverified",60072),debugBreakpointData:ye("debug-breakpoint-data",60073),debugBreakpointDataDisabled:ye("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:ye("debug-breakpoint-log-unverified",60074),debugBreakpointLog:ye("debug-breakpoint-log",60075),debugBreakpointLogDisabled:ye("debug-breakpoint-log-disabled",60075),briefcase:ye("briefcase",60076),broadcast:ye("broadcast",60077),browser:ye("browser",60078),bug:ye("bug",60079),calendar:ye("calendar",60080),caseSensitive:ye("case-sensitive",60081),check:ye("check",60082),checklist:ye("checklist",60083),chevronDown:ye("chevron-down",60084),chevronLeft:ye("chevron-left",60085),chevronRight:ye("chevron-right",60086),chevronUp:ye("chevron-up",60087),chromeClose:ye("chrome-close",60088),chromeMaximize:ye("chrome-maximize",60089),chromeMinimize:ye("chrome-minimize",60090),chromeRestore:ye("chrome-restore",60091),circleOutline:ye("circle-outline",60092),circle:ye("circle",60092),debugBreakpointUnverified:ye("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:ye("terminal-decoration-incomplete",60092),circleSlash:ye("circle-slash",60093),circuitBoard:ye("circuit-board",60094),clearAll:ye("clear-all",60095),clippy:ye("clippy",60096),closeAll:ye("close-all",60097),cloudDownload:ye("cloud-download",60098),cloudUpload:ye("cloud-upload",60099),code:ye("code",60100),collapseAll:ye("collapse-all",60101),colorMode:ye("color-mode",60102),commentDiscussion:ye("comment-discussion",60103),creditCard:ye("credit-card",60105),dash:ye("dash",60108),dashboard:ye("dashboard",60109),database:ye("database",60110),debugContinue:ye("debug-continue",60111),debugDisconnect:ye("debug-disconnect",60112),debugPause:ye("debug-pause",60113),debugRestart:ye("debug-restart",60114),debugStart:ye("debug-start",60115),debugStepInto:ye("debug-step-into",60116),debugStepOut:ye("debug-step-out",60117),debugStepOver:ye("debug-step-over",60118),debugStop:ye("debug-stop",60119),debug:ye("debug",60120),deviceCameraVideo:ye("device-camera-video",60121),deviceCamera:ye("device-camera",60122),deviceMobile:ye("device-mobile",60123),diffAdded:ye("diff-added",60124),diffIgnored:ye("diff-ignored",60125),diffModified:ye("diff-modified",60126),diffRemoved:ye("diff-removed",60127),diffRenamed:ye("diff-renamed",60128),diff:ye("diff",60129),diffSidebyside:ye("diff-sidebyside",60129),discard:ye("discard",60130),editorLayout:ye("editor-layout",60131),emptyWindow:ye("empty-window",60132),exclude:ye("exclude",60133),extensions:ye("extensions",60134),eyeClosed:ye("eye-closed",60135),fileBinary:ye("file-binary",60136),fileCode:ye("file-code",60137),fileMedia:ye("file-media",60138),filePdf:ye("file-pdf",60139),fileSubmodule:ye("file-submodule",60140),fileSymlinkDirectory:ye("file-symlink-directory",60141),fileSymlinkFile:ye("file-symlink-file",60142),fileZip:ye("file-zip",60143),files:ye("files",60144),filter:ye("filter",60145),flame:ye("flame",60146),foldDown:ye("fold-down",60147),foldUp:ye("fold-up",60148),fold:ye("fold",60149),folderActive:ye("folder-active",60150),folderOpened:ye("folder-opened",60151),gear:ye("gear",60152),gift:ye("gift",60153),gistSecret:ye("gist-secret",60154),gist:ye("gist",60155),gitCommit:ye("git-commit",60156),gitCompare:ye("git-compare",60157),compareChanges:ye("compare-changes",60157),gitMerge:ye("git-merge",60158),githubAction:ye("github-action",60159),githubAlt:ye("github-alt",60160),globe:ye("globe",60161),grabber:ye("grabber",60162),graph:ye("graph",60163),gripper:ye("gripper",60164),heart:ye("heart",60165),home:ye("home",60166),horizontalRule:ye("horizontal-rule",60167),hubot:ye("hubot",60168),inbox:ye("inbox",60169),issueReopened:ye("issue-reopened",60171),issues:ye("issues",60172),italic:ye("italic",60173),jersey:ye("jersey",60174),json:ye("json",60175),kebabVertical:ye("kebab-vertical",60176),key:ye("key",60177),law:ye("law",60178),lightbulbAutofix:ye("lightbulb-autofix",60179),linkExternal:ye("link-external",60180),link:ye("link",60181),listOrdered:ye("list-ordered",60182),listUnordered:ye("list-unordered",60183),liveShare:ye("live-share",60184),loading:ye("loading",60185),location:ye("location",60186),mailRead:ye("mail-read",60187),mail:ye("mail",60188),markdown:ye("markdown",60189),megaphone:ye("megaphone",60190),mention:ye("mention",60191),milestone:ye("milestone",60192),gitPullRequestMilestone:ye("git-pull-request-milestone",60192),mortarBoard:ye("mortar-board",60193),move:ye("move",60194),multipleWindows:ye("multiple-windows",60195),mute:ye("mute",60196),noNewline:ye("no-newline",60197),note:ye("note",60198),octoface:ye("octoface",60199),openPreview:ye("open-preview",60200),package:ye("package",60201),paintcan:ye("paintcan",60202),pin:ye("pin",60203),play:ye("play",60204),run:ye("run",60204),plug:ye("plug",60205),preserveCase:ye("preserve-case",60206),preview:ye("preview",60207),project:ye("project",60208),pulse:ye("pulse",60209),question:ye("question",60210),quote:ye("quote",60211),radioTower:ye("radio-tower",60212),reactions:ye("reactions",60213),references:ye("references",60214),refresh:ye("refresh",60215),regex:ye("regex",60216),remoteExplorer:ye("remote-explorer",60217),remote:ye("remote",60218),remove:ye("remove",60219),replaceAll:ye("replace-all",60220),replace:ye("replace",60221),repoClone:ye("repo-clone",60222),repoForcePush:ye("repo-force-push",60223),repoPull:ye("repo-pull",60224),repoPush:ye("repo-push",60225),report:ye("report",60226),requestChanges:ye("request-changes",60227),rocket:ye("rocket",60228),rootFolderOpened:ye("root-folder-opened",60229),rootFolder:ye("root-folder",60230),rss:ye("rss",60231),ruby:ye("ruby",60232),saveAll:ye("save-all",60233),saveAs:ye("save-as",60234),save:ye("save",60235),screenFull:ye("screen-full",60236),screenNormal:ye("screen-normal",60237),searchStop:ye("search-stop",60238),server:ye("server",60240),settingsGear:ye("settings-gear",60241),settings:ye("settings",60242),shield:ye("shield",60243),smiley:ye("smiley",60244),sortPrecedence:ye("sort-precedence",60245),splitHorizontal:ye("split-horizontal",60246),splitVertical:ye("split-vertical",60247),squirrel:ye("squirrel",60248),starFull:ye("star-full",60249),starHalf:ye("star-half",60250),symbolClass:ye("symbol-class",60251),symbolColor:ye("symbol-color",60252),symbolConstant:ye("symbol-constant",60253),symbolEnumMember:ye("symbol-enum-member",60254),symbolField:ye("symbol-field",60255),symbolFile:ye("symbol-file",60256),symbolInterface:ye("symbol-interface",60257),symbolKeyword:ye("symbol-keyword",60258),symbolMisc:ye("symbol-misc",60259),symbolOperator:ye("symbol-operator",60260),symbolProperty:ye("symbol-property",60261),wrench:ye("wrench",60261),wrenchSubaction:ye("wrench-subaction",60261),symbolSnippet:ye("symbol-snippet",60262),tasklist:ye("tasklist",60263),telescope:ye("telescope",60264),textSize:ye("text-size",60265),threeBars:ye("three-bars",60266),thumbsdown:ye("thumbsdown",60267),thumbsup:ye("thumbsup",60268),tools:ye("tools",60269),triangleDown:ye("triangle-down",60270),triangleLeft:ye("triangle-left",60271),triangleRight:ye("triangle-right",60272),triangleUp:ye("triangle-up",60273),twitter:ye("twitter",60274),unfold:ye("unfold",60275),unlock:ye("unlock",60276),unmute:ye("unmute",60277),unverified:ye("unverified",60278),verified:ye("verified",60279),versions:ye("versions",60280),vmActive:ye("vm-active",60281),vmOutline:ye("vm-outline",60282),vmRunning:ye("vm-running",60283),watch:ye("watch",60284),whitespace:ye("whitespace",60285),wholeWord:ye("whole-word",60286),window:ye("window",60287),wordWrap:ye("word-wrap",60288),zoomIn:ye("zoom-in",60289),zoomOut:ye("zoom-out",60290),listFilter:ye("list-filter",60291),listFlat:ye("list-flat",60292),listSelection:ye("list-selection",60293),selection:ye("selection",60293),listTree:ye("list-tree",60294),debugBreakpointFunctionUnverified:ye("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:ye("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:ye("debug-breakpoint-function-disabled",60296),debugStackframeActive:ye("debug-stackframe-active",60297),circleSmallFilled:ye("circle-small-filled",60298),debugStackframeDot:ye("debug-stackframe-dot",60298),terminalDecorationMark:ye("terminal-decoration-mark",60298),debugStackframe:ye("debug-stackframe",60299),debugStackframeFocused:ye("debug-stackframe-focused",60299),debugBreakpointUnsupported:ye("debug-breakpoint-unsupported",60300),symbolString:ye("symbol-string",60301),debugReverseContinue:ye("debug-reverse-continue",60302),debugStepBack:ye("debug-step-back",60303),debugRestartFrame:ye("debug-restart-frame",60304),debugAlt:ye("debug-alt",60305),callIncoming:ye("call-incoming",60306),callOutgoing:ye("call-outgoing",60307),menu:ye("menu",60308),expandAll:ye("expand-all",60309),feedback:ye("feedback",60310),gitPullRequestReviewer:ye("git-pull-request-reviewer",60310),groupByRefType:ye("group-by-ref-type",60311),ungroupByRefType:ye("ungroup-by-ref-type",60312),account:ye("account",60313),gitPullRequestAssignee:ye("git-pull-request-assignee",60313),bellDot:ye("bell-dot",60314),debugConsole:ye("debug-console",60315),library:ye("library",60316),output:ye("output",60317),runAll:ye("run-all",60318),syncIgnored:ye("sync-ignored",60319),pinned:ye("pinned",60320),githubInverted:ye("github-inverted",60321),serverProcess:ye("server-process",60322),serverEnvironment:ye("server-environment",60323),pass:ye("pass",60324),issueClosed:ye("issue-closed",60324),stopCircle:ye("stop-circle",60325),playCircle:ye("play-circle",60326),record:ye("record",60327),debugAltSmall:ye("debug-alt-small",60328),vmConnect:ye("vm-connect",60329),cloud:ye("cloud",60330),merge:ye("merge",60331),export:ye("export",60332),graphLeft:ye("graph-left",60333),magnet:ye("magnet",60334),notebook:ye("notebook",60335),redo:ye("redo",60336),checkAll:ye("check-all",60337),pinnedDirty:ye("pinned-dirty",60338),passFilled:ye("pass-filled",60339),circleLargeFilled:ye("circle-large-filled",60340),circleLarge:ye("circle-large",60341),circleLargeOutline:ye("circle-large-outline",60341),combine:ye("combine",60342),gather:ye("gather",60342),table:ye("table",60343),variableGroup:ye("variable-group",60344),typeHierarchy:ye("type-hierarchy",60345),typeHierarchySub:ye("type-hierarchy-sub",60346),typeHierarchySuper:ye("type-hierarchy-super",60347),gitPullRequestCreate:ye("git-pull-request-create",60348),runAbove:ye("run-above",60349),runBelow:ye("run-below",60350),notebookTemplate:ye("notebook-template",60351),debugRerun:ye("debug-rerun",60352),workspaceTrusted:ye("workspace-trusted",60353),workspaceUntrusted:ye("workspace-untrusted",60354),workspaceUnknown:ye("workspace-unknown",60355),terminalCmd:ye("terminal-cmd",60356),terminalDebian:ye("terminal-debian",60357),terminalLinux:ye("terminal-linux",60358),terminalPowershell:ye("terminal-powershell",60359),terminalTmux:ye("terminal-tmux",60360),terminalUbuntu:ye("terminal-ubuntu",60361),terminalBash:ye("terminal-bash",60362),arrowSwap:ye("arrow-swap",60363),copy:ye("copy",60364),personAdd:ye("person-add",60365),filterFilled:ye("filter-filled",60366),wand:ye("wand",60367),debugLineByLine:ye("debug-line-by-line",60368),inspect:ye("inspect",60369),layers:ye("layers",60370),layersDot:ye("layers-dot",60371),layersActive:ye("layers-active",60372),compass:ye("compass",60373),compassDot:ye("compass-dot",60374),compassActive:ye("compass-active",60375),azure:ye("azure",60376),issueDraft:ye("issue-draft",60377),gitPullRequestClosed:ye("git-pull-request-closed",60378),gitPullRequestDraft:ye("git-pull-request-draft",60379),debugAll:ye("debug-all",60380),debugCoverage:ye("debug-coverage",60381),runErrors:ye("run-errors",60382),folderLibrary:ye("folder-library",60383),debugContinueSmall:ye("debug-continue-small",60384),beakerStop:ye("beaker-stop",60385),graphLine:ye("graph-line",60386),graphScatter:ye("graph-scatter",60387),pieChart:ye("pie-chart",60388),bracket:ye("bracket",60175),bracketDot:ye("bracket-dot",60389),bracketError:ye("bracket-error",60390),lockSmall:ye("lock-small",60391),azureDevops:ye("azure-devops",60392),verifiedFilled:ye("verified-filled",60393),newline:ye("newline",60394),layout:ye("layout",60395),layoutActivitybarLeft:ye("layout-activitybar-left",60396),layoutActivitybarRight:ye("layout-activitybar-right",60397),layoutPanelLeft:ye("layout-panel-left",60398),layoutPanelCenter:ye("layout-panel-center",60399),layoutPanelJustify:ye("layout-panel-justify",60400),layoutPanelRight:ye("layout-panel-right",60401),layoutPanel:ye("layout-panel",60402),layoutSidebarLeft:ye("layout-sidebar-left",60403),layoutSidebarRight:ye("layout-sidebar-right",60404),layoutStatusbar:ye("layout-statusbar",60405),layoutMenubar:ye("layout-menubar",60406),layoutCentered:ye("layout-centered",60407),target:ye("target",60408),indent:ye("indent",60409),recordSmall:ye("record-small",60410),errorSmall:ye("error-small",60411),terminalDecorationError:ye("terminal-decoration-error",60411),arrowCircleDown:ye("arrow-circle-down",60412),arrowCircleLeft:ye("arrow-circle-left",60413),arrowCircleRight:ye("arrow-circle-right",60414),arrowCircleUp:ye("arrow-circle-up",60415),layoutSidebarRightOff:ye("layout-sidebar-right-off",60416),layoutPanelOff:ye("layout-panel-off",60417),layoutSidebarLeftOff:ye("layout-sidebar-left-off",60418),blank:ye("blank",60419),heartFilled:ye("heart-filled",60420),map:ye("map",60421),mapHorizontal:ye("map-horizontal",60421),foldHorizontal:ye("fold-horizontal",60421),mapFilled:ye("map-filled",60422),mapHorizontalFilled:ye("map-horizontal-filled",60422),foldHorizontalFilled:ye("fold-horizontal-filled",60422),circleSmall:ye("circle-small",60423),bellSlash:ye("bell-slash",60424),bellSlashDot:ye("bell-slash-dot",60425),commentUnresolved:ye("comment-unresolved",60426),gitPullRequestGoToChanges:ye("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:ye("git-pull-request-new-changes",60428),searchFuzzy:ye("search-fuzzy",60429),commentDraft:ye("comment-draft",60430),send:ye("send",60431),sparkle:ye("sparkle",60432),insert:ye("insert",60433),mic:ye("mic",60434),thumbsdownFilled:ye("thumbsdown-filled",60435),thumbsupFilled:ye("thumbsup-filled",60436),coffee:ye("coffee",60437),snake:ye("snake",60438),game:ye("game",60439),vr:ye("vr",60440),chip:ye("chip",60441),piano:ye("piano",60442),music:ye("music",60443),micFilled:ye("mic-filled",60444),repoFetch:ye("repo-fetch",60445),copilot:ye("copilot",60446),lightbulbSparkle:ye("lightbulb-sparkle",60447),robot:ye("robot",60448),sparkleFilled:ye("sparkle-filled",60449),diffSingle:ye("diff-single",60450),diffMultiple:ye("diff-multiple",60451),surroundWith:ye("surround-with",60452),share:ye("share",60453),gitStash:ye("git-stash",60454),gitStashApply:ye("git-stash-apply",60455),gitStashPop:ye("git-stash-pop",60456),vscode:ye("vscode",60457),vscodeInsiders:ye("vscode-insiders",60458),codeOss:ye("code-oss",60459),runCoverage:ye("run-coverage",60460),runAllCoverage:ye("run-all-coverage",60461),coverage:ye("coverage",60462),githubProject:ye("github-project",60463),mapVertical:ye("map-vertical",60464),foldVertical:ye("fold-vertical",60464),mapVerticalFilled:ye("map-vertical-filled",60465),foldVerticalFilled:ye("fold-vertical-filled",60465),goToSearch:ye("go-to-search",60466),percentage:ye("percentage",60467),sortPercentage:ye("sort-percentage",60467)},v8e={dialogError:ye("dialog-error","error"),dialogWarning:ye("dialog-warning","warning"),dialogInfo:ye("dialog-info","info"),dialogClose:ye("dialog-close","close"),treeItemExpanded:ye("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:ye("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:ye("tree-filter-on-type-off","list-selection"),treeFilterClear:ye("tree-filter-clear","close"),treeItemLoading:ye("tree-item-loading","loading"),menuSelection:ye("menu-selection","check"),menuSubmenu:ye("menu-submenu","chevron-right"),menuBarMore:ye("menubar-more","more"),scrollbarButtonLeft:ye("scrollbar-button-left","triangle-left"),scrollbarButtonRight:ye("scrollbar-button-right","triangle-right"),scrollbarButtonUp:ye("scrollbar-button-up","triangle-up"),scrollbarButtonDown:ye("scrollbar-button-down","triangle-down"),toolBarMore:ye("toolbar-more","more"),quickInputBack:ye("quick-input-back","arrow-left"),dropDownButton:ye("drop-down-button",60084),symbolCustomColor:ye("symbol-customcolor",60252),exportIcon:ye("export",60332),workspaceUnspecified:ye("workspace-unspecified",60355),newLine:ye("newline",60394),thumbsDownFilled:ye("thumbsdown-filled",60435),thumbsUpFilled:ye("thumbsup-filled",60436),gitFetch:ye("git-fetch",60445),lightbulbSparkleAutofix:ye("lightbulb-sparkle-autofix",60447),debugBreakpointPending:ye("debug-breakpoint-pending",60377)},_s=Ti(Ti({},y8e),v8e);class b8e{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new J0,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(g){this._onDidChange.fire({changedLanguages:g,changedColorMap:!1})}register(g,S){return this._tokenizationSupports.set(g,S),this.handleChange([g]),X4(()=>{this._tokenizationSupports.get(g)===S&&(this._tokenizationSupports.delete(g),this.handleChange([g]))})}get(g){return this._tokenizationSupports.get(g)||null}registerFactory(g,S){var P;(P=this._factories.get(g))===null||P===void 0||P.dispose();const X=new E8e(this,g,S);return this._factories.set(g,X),X4(()=>{const _e=this._factories.get(g);!_e||_e!==X||(this._factories.delete(g),_e.dispose())})}getOrCreate(g){return pc(this,null,function*(){const S=this.get(g);if(S)return S;const P=this._factories.get(g);return!P||P.isResolved?null:(yield P.resolve(),this.get(g))})}isResolved(g){if(this.get(g))return!0;const P=this._factories.get(g);return!!(!P||P.isResolved)}setColorMap(g){this._colorMap=g,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class E8e extends gR{get isResolved(){return this._isResolved}constructor(g,S,P){super(),this._registry=g,this._languageId=S,this._factory=P,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return pc(this,null,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return pc(this,null,function*(){const g=yield this._factory.tokenizationSupport;this._isResolved=!0,g&&!this._isDisposed&&this._register(this._registry.register(this._languageId,g))})}}class T8e{constructor(g,S,P){this.offset=g,this.type=S,this.language=P,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var sle;(function(m){m[m.Increase=0]="Increase",m[m.Decrease=1]="Decrease"})(sle||(sle={}));var lle;(function(m){const g=new Map;g.set(0,_s.symbolMethod),g.set(1,_s.symbolFunction),g.set(2,_s.symbolConstructor),g.set(3,_s.symbolField),g.set(4,_s.symbolVariable),g.set(5,_s.symbolClass),g.set(6,_s.symbolStruct),g.set(7,_s.symbolInterface),g.set(8,_s.symbolModule),g.set(9,_s.symbolProperty),g.set(10,_s.symbolEvent),g.set(11,_s.symbolOperator),g.set(12,_s.symbolUnit),g.set(13,_s.symbolValue),g.set(15,_s.symbolEnum),g.set(14,_s.symbolConstant),g.set(15,_s.symbolEnum),g.set(16,_s.symbolEnumMember),g.set(17,_s.symbolKeyword),g.set(27,_s.symbolSnippet),g.set(18,_s.symbolText),g.set(19,_s.symbolColor),g.set(20,_s.symbolFile),g.set(21,_s.symbolReference),g.set(22,_s.symbolCustomColor),g.set(23,_s.symbolFolder),g.set(24,_s.symbolTypeParameter),g.set(25,_s.account),g.set(26,_s.issues);function S(_e){let ve=g.get(_e);return ve||(console.info("No codicon found for CompletionItemKind "+_e),ve=_s.symbolProperty),ve}m.toIcon=S;const P=new Map;P.set("method",0),P.set("function",1),P.set("constructor",2),P.set("field",3),P.set("variable",4),P.set("class",5),P.set("struct",6),P.set("interface",7),P.set("module",8),P.set("property",9),P.set("event",10),P.set("operator",11),P.set("unit",12),P.set("value",13),P.set("constant",14),P.set("enum",15),P.set("enum-member",16),P.set("enumMember",16),P.set("keyword",17),P.set("snippet",27),P.set("text",18),P.set("color",19),P.set("file",20),P.set("reference",21),P.set("customcolor",22),P.set("folder",23),P.set("type-parameter",24),P.set("typeParameter",24),P.set("account",25),P.set("issue",26);function X(_e,ve){let Be=P.get(_e);return typeof Be=="undefined"&&!ve&&(Be=9),Be}m.fromString=X})(lle||(lle={}));var cle;(function(m){m[m.Automatic=0]="Automatic",m[m.Explicit=1]="Explicit"})(cle||(cle={}));var ule;(function(m){m[m.Automatic=0]="Automatic",m[m.PasteAs=1]="PasteAs"})(ule||(ule={}));var dle;(function(m){m[m.Invoke=1]="Invoke",m[m.TriggerCharacter=2]="TriggerCharacter",m[m.ContentChange=3]="ContentChange"})(dle||(dle={}));var fle;(function(m){m[m.Text=0]="Text",m[m.Read=1]="Read",m[m.Write=2]="Write"})(fle||(fle={})),nd("Array","array"),nd("Boolean","boolean"),nd("Class","class"),nd("Constant","constant"),nd("Constructor","constructor"),nd("Enum","enumeration"),nd("EnumMember","enumeration member"),nd("Event","event"),nd("Field","field"),nd("File","file"),nd("Function","function"),nd("Interface","interface"),nd("Key","key"),nd("Method","method"),nd("Module","module"),nd("Namespace","namespace"),nd("Null","null"),nd("Number","number"),nd("Object","object"),nd("Operator","operator"),nd("Package","package"),nd("Property","property"),nd("String","string"),nd("Struct","struct"),nd("TypeParameter","type parameter"),nd("Variable","variable");var _le;(function(m){const g=new Map;g.set(0,_s.symbolFile),g.set(1,_s.symbolModule),g.set(2,_s.symbolNamespace),g.set(3,_s.symbolPackage),g.set(4,_s.symbolClass),g.set(5,_s.symbolMethod),g.set(6,_s.symbolProperty),g.set(7,_s.symbolField),g.set(8,_s.symbolConstructor),g.set(9,_s.symbolEnum),g.set(10,_s.symbolInterface),g.set(11,_s.symbolFunction),g.set(12,_s.symbolVariable),g.set(13,_s.symbolConstant),g.set(14,_s.symbolString),g.set(15,_s.symbolNumber),g.set(16,_s.symbolBoolean),g.set(17,_s.symbolArray),g.set(18,_s.symbolObject),g.set(19,_s.symbolKey),g.set(20,_s.symbolNull),g.set(21,_s.symbolEnumMember),g.set(22,_s.symbolStruct),g.set(23,_s.symbolEvent),g.set(24,_s.symbolOperator),g.set(25,_s.symbolTypeParameter);function S(P){let X=g.get(P);return X||(console.info("No codicon found for SymbolKind "+P),X=_s.symbolProperty),X}m.toIcon=S})(_le||(_le={}));var ple;(function(m){m[m.AIGenerated=1]="AIGenerated"})(ple||(ple={}));var mle;(function(m){m[m.Invoke=0]="Invoke",m[m.Automatic=1]="Automatic"})(mle||(mle={}));var hle;(function(m){function g(S){return!S||typeof S!="object"?!1:typeof S.id=="string"&&typeof S.title=="string"}m.is=g})(hle||(hle={}));var gle;(function(m){m[m.Type=1]="Type",m[m.Parameter=2]="Parameter"})(gle||(gle={})),new b8e;var yle;(function(m){m[m.Invoke=0]="Invoke",m[m.Automatic=1]="Automatic"})(yle||(yle={}));var vle;(function(m){m[m.Unknown=0]="Unknown",m[m.Disabled=1]="Disabled",m[m.Enabled=2]="Enabled"})(vle||(vle={}));var ble;(function(m){m[m.Invoke=1]="Invoke",m[m.Auto=2]="Auto"})(ble||(ble={}));var Ele;(function(m){m[m.None=0]="None",m[m.KeepWhitespace=1]="KeepWhitespace",m[m.InsertAsSnippet=4]="InsertAsSnippet"})(Ele||(Ele={}));var Tle;(function(m){m[m.Method=0]="Method",m[m.Function=1]="Function",m[m.Constructor=2]="Constructor",m[m.Field=3]="Field",m[m.Variable=4]="Variable",m[m.Class=5]="Class",m[m.Struct=6]="Struct",m[m.Interface=7]="Interface",m[m.Module=8]="Module",m[m.Property=9]="Property",m[m.Event=10]="Event",m[m.Operator=11]="Operator",m[m.Unit=12]="Unit",m[m.Value=13]="Value",m[m.Constant=14]="Constant",m[m.Enum=15]="Enum",m[m.EnumMember=16]="EnumMember",m[m.Keyword=17]="Keyword",m[m.Text=18]="Text",m[m.Color=19]="Color",m[m.File=20]="File",m[m.Reference=21]="Reference",m[m.Customcolor=22]="Customcolor",m[m.Folder=23]="Folder",m[m.TypeParameter=24]="TypeParameter",m[m.User=25]="User",m[m.Issue=26]="Issue",m[m.Snippet=27]="Snippet"})(Tle||(Tle={}));var Sle;(function(m){m[m.Deprecated=1]="Deprecated"})(Sle||(Sle={}));var xle;(function(m){m[m.Invoke=0]="Invoke",m[m.TriggerCharacter=1]="TriggerCharacter",m[m.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(xle||(xle={}));var Ale;(function(m){m[m.EXACT=0]="EXACT",m[m.ABOVE=1]="ABOVE",m[m.BELOW=2]="BELOW"})(Ale||(Ale={}));var Cle;(function(m){m[m.NotSet=0]="NotSet",m[m.ContentFlush=1]="ContentFlush",m[m.RecoverFromMarkers=2]="RecoverFromMarkers",m[m.Explicit=3]="Explicit",m[m.Paste=4]="Paste",m[m.Undo=5]="Undo",m[m.Redo=6]="Redo"})(Cle||(Cle={}));var Lle;(function(m){m[m.LF=1]="LF",m[m.CRLF=2]="CRLF"})(Lle||(Lle={}));var Ile;(function(m){m[m.Text=0]="Text",m[m.Read=1]="Read",m[m.Write=2]="Write"})(Ile||(Ile={}));var kle;(function(m){m[m.None=0]="None",m[m.Keep=1]="Keep",m[m.Brackets=2]="Brackets",m[m.Advanced=3]="Advanced",m[m.Full=4]="Full"})(kle||(kle={}));var wle;(function(m){m[m.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",m[m.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",m[m.accessibilitySupport=2]="accessibilitySupport",m[m.accessibilityPageSize=3]="accessibilityPageSize",m[m.ariaLabel=4]="ariaLabel",m[m.ariaRequired=5]="ariaRequired",m[m.autoClosingBrackets=6]="autoClosingBrackets",m[m.autoClosingComments=7]="autoClosingComments",m[m.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",m[m.autoClosingDelete=9]="autoClosingDelete",m[m.autoClosingOvertype=10]="autoClosingOvertype",m[m.autoClosingQuotes=11]="autoClosingQuotes",m[m.autoIndent=12]="autoIndent",m[m.automaticLayout=13]="automaticLayout",m[m.autoSurround=14]="autoSurround",m[m.bracketPairColorization=15]="bracketPairColorization",m[m.guides=16]="guides",m[m.codeLens=17]="codeLens",m[m.codeLensFontFamily=18]="codeLensFontFamily",m[m.codeLensFontSize=19]="codeLensFontSize",m[m.colorDecorators=20]="colorDecorators",m[m.colorDecoratorsLimit=21]="colorDecoratorsLimit",m[m.columnSelection=22]="columnSelection",m[m.comments=23]="comments",m[m.contextmenu=24]="contextmenu",m[m.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",m[m.cursorBlinking=26]="cursorBlinking",m[m.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",m[m.cursorStyle=28]="cursorStyle",m[m.cursorSurroundingLines=29]="cursorSurroundingLines",m[m.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",m[m.cursorWidth=31]="cursorWidth",m[m.disableLayerHinting=32]="disableLayerHinting",m[m.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",m[m.domReadOnly=34]="domReadOnly",m[m.dragAndDrop=35]="dragAndDrop",m[m.dropIntoEditor=36]="dropIntoEditor",m[m.emptySelectionClipboard=37]="emptySelectionClipboard",m[m.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",m[m.extraEditorClassName=39]="extraEditorClassName",m[m.fastScrollSensitivity=40]="fastScrollSensitivity",m[m.find=41]="find",m[m.fixedOverflowWidgets=42]="fixedOverflowWidgets",m[m.folding=43]="folding",m[m.foldingStrategy=44]="foldingStrategy",m[m.foldingHighlight=45]="foldingHighlight",m[m.foldingImportsByDefault=46]="foldingImportsByDefault",m[m.foldingMaximumRegions=47]="foldingMaximumRegions",m[m.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",m[m.fontFamily=49]="fontFamily",m[m.fontInfo=50]="fontInfo",m[m.fontLigatures=51]="fontLigatures",m[m.fontSize=52]="fontSize",m[m.fontWeight=53]="fontWeight",m[m.fontVariations=54]="fontVariations",m[m.formatOnPaste=55]="formatOnPaste",m[m.formatOnType=56]="formatOnType",m[m.glyphMargin=57]="glyphMargin",m[m.gotoLocation=58]="gotoLocation",m[m.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",m[m.hover=60]="hover",m[m.inDiffEditor=61]="inDiffEditor",m[m.inlineSuggest=62]="inlineSuggest",m[m.inlineEdit=63]="inlineEdit",m[m.letterSpacing=64]="letterSpacing",m[m.lightbulb=65]="lightbulb",m[m.lineDecorationsWidth=66]="lineDecorationsWidth",m[m.lineHeight=67]="lineHeight",m[m.lineNumbers=68]="lineNumbers",m[m.lineNumbersMinChars=69]="lineNumbersMinChars",m[m.linkedEditing=70]="linkedEditing",m[m.links=71]="links",m[m.matchBrackets=72]="matchBrackets",m[m.minimap=73]="minimap",m[m.mouseStyle=74]="mouseStyle",m[m.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",m[m.mouseWheelZoom=76]="mouseWheelZoom",m[m.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",m[m.multiCursorModifier=78]="multiCursorModifier",m[m.multiCursorPaste=79]="multiCursorPaste",m[m.multiCursorLimit=80]="multiCursorLimit",m[m.occurrencesHighlight=81]="occurrencesHighlight",m[m.overviewRulerBorder=82]="overviewRulerBorder",m[m.overviewRulerLanes=83]="overviewRulerLanes",m[m.padding=84]="padding",m[m.pasteAs=85]="pasteAs",m[m.parameterHints=86]="parameterHints",m[m.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",m[m.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",m[m.quickSuggestions=89]="quickSuggestions",m[m.quickSuggestionsDelay=90]="quickSuggestionsDelay",m[m.readOnly=91]="readOnly",m[m.readOnlyMessage=92]="readOnlyMessage",m[m.renameOnType=93]="renameOnType",m[m.renderControlCharacters=94]="renderControlCharacters",m[m.renderFinalNewline=95]="renderFinalNewline",m[m.renderLineHighlight=96]="renderLineHighlight",m[m.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",m[m.renderValidationDecorations=98]="renderValidationDecorations",m[m.renderWhitespace=99]="renderWhitespace",m[m.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",m[m.roundedSelection=101]="roundedSelection",m[m.rulers=102]="rulers",m[m.scrollbar=103]="scrollbar",m[m.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",m[m.scrollBeyondLastLine=105]="scrollBeyondLastLine",m[m.scrollPredominantAxis=106]="scrollPredominantAxis",m[m.selectionClipboard=107]="selectionClipboard",m[m.selectionHighlight=108]="selectionHighlight",m[m.selectOnLineNumbers=109]="selectOnLineNumbers",m[m.showFoldingControls=110]="showFoldingControls",m[m.showUnused=111]="showUnused",m[m.snippetSuggestions=112]="snippetSuggestions",m[m.smartSelect=113]="smartSelect",m[m.smoothScrolling=114]="smoothScrolling",m[m.stickyScroll=115]="stickyScroll",m[m.stickyTabStops=116]="stickyTabStops",m[m.stopRenderingLineAfter=117]="stopRenderingLineAfter",m[m.suggest=118]="suggest",m[m.suggestFontSize=119]="suggestFontSize",m[m.suggestLineHeight=120]="suggestLineHeight",m[m.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",m[m.suggestSelection=122]="suggestSelection",m[m.tabCompletion=123]="tabCompletion",m[m.tabIndex=124]="tabIndex",m[m.unicodeHighlighting=125]="unicodeHighlighting",m[m.unusualLineTerminators=126]="unusualLineTerminators",m[m.useShadowDOM=127]="useShadowDOM",m[m.useTabStops=128]="useTabStops",m[m.wordBreak=129]="wordBreak",m[m.wordSegmenterLocales=130]="wordSegmenterLocales",m[m.wordSeparators=131]="wordSeparators",m[m.wordWrap=132]="wordWrap",m[m.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",m[m.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",m[m.wordWrapColumn=135]="wordWrapColumn",m[m.wordWrapOverride1=136]="wordWrapOverride1",m[m.wordWrapOverride2=137]="wordWrapOverride2",m[m.wrappingIndent=138]="wrappingIndent",m[m.wrappingStrategy=139]="wrappingStrategy",m[m.showDeprecated=140]="showDeprecated",m[m.inlayHints=141]="inlayHints",m[m.editorClassName=142]="editorClassName",m[m.pixelRatio=143]="pixelRatio",m[m.tabFocusMode=144]="tabFocusMode",m[m.layoutInfo=145]="layoutInfo",m[m.wrappingInfo=146]="wrappingInfo",m[m.defaultColorDecorators=147]="defaultColorDecorators",m[m.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",m[m.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(wle||(wle={}));var Dle;(function(m){m[m.TextDefined=0]="TextDefined",m[m.LF=1]="LF",m[m.CRLF=2]="CRLF"})(Dle||(Dle={}));var Rle;(function(m){m[m.LF=0]="LF",m[m.CRLF=1]="CRLF"})(Rle||(Rle={}));var Nle;(function(m){m[m.Left=1]="Left",m[m.Center=2]="Center",m[m.Right=3]="Right"})(Nle||(Nle={}));var Ole;(function(m){m[m.Increase=0]="Increase",m[m.Decrease=1]="Decrease"})(Ole||(Ole={}));var Ple;(function(m){m[m.None=0]="None",m[m.Indent=1]="Indent",m[m.IndentOutdent=2]="IndentOutdent",m[m.Outdent=3]="Outdent"})(Ple||(Ple={}));var Mle;(function(m){m[m.Both=0]="Both",m[m.Right=1]="Right",m[m.Left=2]="Left",m[m.None=3]="None"})(Mle||(Mle={}));var Fle;(function(m){m[m.Type=1]="Type",m[m.Parameter=2]="Parameter"})(Fle||(Fle={}));var Ble;(function(m){m[m.Automatic=0]="Automatic",m[m.Explicit=1]="Explicit"})(Ble||(Ble={}));var Gle;(function(m){m[m.Invoke=0]="Invoke",m[m.Automatic=1]="Automatic"})(Gle||(Gle={}));var tH;(function(m){m[m.DependsOnKbLayout=-1]="DependsOnKbLayout",m[m.Unknown=0]="Unknown",m[m.Backspace=1]="Backspace",m[m.Tab=2]="Tab",m[m.Enter=3]="Enter",m[m.Shift=4]="Shift",m[m.Ctrl=5]="Ctrl",m[m.Alt=6]="Alt",m[m.PauseBreak=7]="PauseBreak",m[m.CapsLock=8]="CapsLock",m[m.Escape=9]="Escape",m[m.Space=10]="Space",m[m.PageUp=11]="PageUp",m[m.PageDown=12]="PageDown",m[m.End=13]="End",m[m.Home=14]="Home",m[m.LeftArrow=15]="LeftArrow",m[m.UpArrow=16]="UpArrow",m[m.RightArrow=17]="RightArrow",m[m.DownArrow=18]="DownArrow",m[m.Insert=19]="Insert",m[m.Delete=20]="Delete",m[m.Digit0=21]="Digit0",m[m.Digit1=22]="Digit1",m[m.Digit2=23]="Digit2",m[m.Digit3=24]="Digit3",m[m.Digit4=25]="Digit4",m[m.Digit5=26]="Digit5",m[m.Digit6=27]="Digit6",m[m.Digit7=28]="Digit7",m[m.Digit8=29]="Digit8",m[m.Digit9=30]="Digit9",m[m.KeyA=31]="KeyA",m[m.KeyB=32]="KeyB",m[m.KeyC=33]="KeyC",m[m.KeyD=34]="KeyD",m[m.KeyE=35]="KeyE",m[m.KeyF=36]="KeyF",m[m.KeyG=37]="KeyG",m[m.KeyH=38]="KeyH",m[m.KeyI=39]="KeyI",m[m.KeyJ=40]="KeyJ",m[m.KeyK=41]="KeyK",m[m.KeyL=42]="KeyL",m[m.KeyM=43]="KeyM",m[m.KeyN=44]="KeyN",m[m.KeyO=45]="KeyO",m[m.KeyP=46]="KeyP",m[m.KeyQ=47]="KeyQ",m[m.KeyR=48]="KeyR",m[m.KeyS=49]="KeyS",m[m.KeyT=50]="KeyT",m[m.KeyU=51]="KeyU",m[m.KeyV=52]="KeyV",m[m.KeyW=53]="KeyW",m[m.KeyX=54]="KeyX",m[m.KeyY=55]="KeyY",m[m.KeyZ=56]="KeyZ",m[m.Meta=57]="Meta",m[m.ContextMenu=58]="ContextMenu",m[m.F1=59]="F1",m[m.F2=60]="F2",m[m.F3=61]="F3",m[m.F4=62]="F4",m[m.F5=63]="F5",m[m.F6=64]="F6",m[m.F7=65]="F7",m[m.F8=66]="F8",m[m.F9=67]="F9",m[m.F10=68]="F10",m[m.F11=69]="F11",m[m.F12=70]="F12",m[m.F13=71]="F13",m[m.F14=72]="F14",m[m.F15=73]="F15",m[m.F16=74]="F16",m[m.F17=75]="F17",m[m.F18=76]="F18",m[m.F19=77]="F19",m[m.F20=78]="F20",m[m.F21=79]="F21",m[m.F22=80]="F22",m[m.F23=81]="F23",m[m.F24=82]="F24",m[m.NumLock=83]="NumLock",m[m.ScrollLock=84]="ScrollLock",m[m.Semicolon=85]="Semicolon",m[m.Equal=86]="Equal",m[m.Comma=87]="Comma",m[m.Minus=88]="Minus",m[m.Period=89]="Period",m[m.Slash=90]="Slash",m[m.Backquote=91]="Backquote",m[m.BracketLeft=92]="BracketLeft",m[m.Backslash=93]="Backslash",m[m.BracketRight=94]="BracketRight",m[m.Quote=95]="Quote",m[m.OEM_8=96]="OEM_8",m[m.IntlBackslash=97]="IntlBackslash",m[m.Numpad0=98]="Numpad0",m[m.Numpad1=99]="Numpad1",m[m.Numpad2=100]="Numpad2",m[m.Numpad3=101]="Numpad3",m[m.Numpad4=102]="Numpad4",m[m.Numpad5=103]="Numpad5",m[m.Numpad6=104]="Numpad6",m[m.Numpad7=105]="Numpad7",m[m.Numpad8=106]="Numpad8",m[m.Numpad9=107]="Numpad9",m[m.NumpadMultiply=108]="NumpadMultiply",m[m.NumpadAdd=109]="NumpadAdd",m[m.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",m[m.NumpadSubtract=111]="NumpadSubtract",m[m.NumpadDecimal=112]="NumpadDecimal",m[m.NumpadDivide=113]="NumpadDivide",m[m.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",m[m.ABNT_C1=115]="ABNT_C1",m[m.ABNT_C2=116]="ABNT_C2",m[m.AudioVolumeMute=117]="AudioVolumeMute",m[m.AudioVolumeUp=118]="AudioVolumeUp",m[m.AudioVolumeDown=119]="AudioVolumeDown",m[m.BrowserSearch=120]="BrowserSearch",m[m.BrowserHome=121]="BrowserHome",m[m.BrowserBack=122]="BrowserBack",m[m.BrowserForward=123]="BrowserForward",m[m.MediaTrackNext=124]="MediaTrackNext",m[m.MediaTrackPrevious=125]="MediaTrackPrevious",m[m.MediaStop=126]="MediaStop",m[m.MediaPlayPause=127]="MediaPlayPause",m[m.LaunchMediaPlayer=128]="LaunchMediaPlayer",m[m.LaunchMail=129]="LaunchMail",m[m.LaunchApp2=130]="LaunchApp2",m[m.Clear=131]="Clear",m[m.MAX_VALUE=132]="MAX_VALUE"})(tH||(tH={}));var nH;(function(m){m[m.Hint=1]="Hint",m[m.Info=2]="Info",m[m.Warning=4]="Warning",m[m.Error=8]="Error"})(nH||(nH={}));var rH;(function(m){m[m.Unnecessary=1]="Unnecessary",m[m.Deprecated=2]="Deprecated"})(rH||(rH={}));var Ule;(function(m){m[m.Inline=1]="Inline",m[m.Gutter=2]="Gutter"})(Ule||(Ule={}));var Vle;(function(m){m[m.Normal=1]="Normal",m[m.Underlined=2]="Underlined"})(Vle||(Vle={}));var jle;(function(m){m[m.UNKNOWN=0]="UNKNOWN",m[m.TEXTAREA=1]="TEXTAREA",m[m.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",m[m.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",m[m.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",m[m.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",m[m.CONTENT_TEXT=6]="CONTENT_TEXT",m[m.CONTENT_EMPTY=7]="CONTENT_EMPTY",m[m.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",m[m.CONTENT_WIDGET=9]="CONTENT_WIDGET",m[m.OVERVIEW_RULER=10]="OVERVIEW_RULER",m[m.SCROLLBAR=11]="SCROLLBAR",m[m.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",m[m.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(jle||(jle={}));var Hle;(function(m){m[m.AIGenerated=1]="AIGenerated"})(Hle||(Hle={}));var Wle;(function(m){m[m.Invoke=0]="Invoke",m[m.Automatic=1]="Automatic"})(Wle||(Wle={}));var zle;(function(m){m[m.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",m[m.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",m[m.TOP_CENTER=2]="TOP_CENTER"})(zle||(zle={}));var qle;(function(m){m[m.Left=1]="Left",m[m.Center=2]="Center",m[m.Right=4]="Right",m[m.Full=7]="Full"})(qle||(qle={}));var Jle;(function(m){m[m.Word=0]="Word",m[m.Line=1]="Line",m[m.Suggest=2]="Suggest"})(Jle||(Jle={}));var Kle;(function(m){m[m.Left=0]="Left",m[m.Right=1]="Right",m[m.None=2]="None",m[m.LeftOfInjectedText=3]="LeftOfInjectedText",m[m.RightOfInjectedText=4]="RightOfInjectedText"})(Kle||(Kle={}));var Xle;(function(m){m[m.Off=0]="Off",m[m.On=1]="On",m[m.Relative=2]="Relative",m[m.Interval=3]="Interval",m[m.Custom=4]="Custom"})(Xle||(Xle={}));var Yle;(function(m){m[m.None=0]="None",m[m.Text=1]="Text",m[m.Blocks=2]="Blocks"})(Yle||(Yle={}));var $le;(function(m){m[m.Smooth=0]="Smooth",m[m.Immediate=1]="Immediate"})($le||($le={}));var Qle;(function(m){m[m.Auto=1]="Auto",m[m.Hidden=2]="Hidden",m[m.Visible=3]="Visible"})(Qle||(Qle={}));var iH;(function(m){m[m.LTR=0]="LTR",m[m.RTL=1]="RTL"})(iH||(iH={}));var Zle;(function(m){m.Off="off",m.OnCode="onCode",m.On="on"})(Zle||(Zle={}));var ece;(function(m){m[m.Invoke=1]="Invoke",m[m.TriggerCharacter=2]="TriggerCharacter",m[m.ContentChange=3]="ContentChange"})(ece||(ece={}));var tce;(function(m){m[m.File=0]="File",m[m.Module=1]="Module",m[m.Namespace=2]="Namespace",m[m.Package=3]="Package",m[m.Class=4]="Class",m[m.Method=5]="Method",m[m.Property=6]="Property",m[m.Field=7]="Field",m[m.Constructor=8]="Constructor",m[m.Enum=9]="Enum",m[m.Interface=10]="Interface",m[m.Function=11]="Function",m[m.Variable=12]="Variable",m[m.Constant=13]="Constant",m[m.String=14]="String",m[m.Number=15]="Number",m[m.Boolean=16]="Boolean",m[m.Array=17]="Array",m[m.Object=18]="Object",m[m.Key=19]="Key",m[m.Null=20]="Null",m[m.EnumMember=21]="EnumMember",m[m.Struct=22]="Struct",m[m.Event=23]="Event",m[m.Operator=24]="Operator",m[m.TypeParameter=25]="TypeParameter"})(tce||(tce={}));var nce;(function(m){m[m.Deprecated=1]="Deprecated"})(nce||(nce={}));var rce;(function(m){m[m.Hidden=0]="Hidden",m[m.Blink=1]="Blink",m[m.Smooth=2]="Smooth",m[m.Phase=3]="Phase",m[m.Expand=4]="Expand",m[m.Solid=5]="Solid"})(rce||(rce={}));var ice;(function(m){m[m.Line=1]="Line",m[m.Block=2]="Block",m[m.Underline=3]="Underline",m[m.LineThin=4]="LineThin",m[m.BlockOutline=5]="BlockOutline",m[m.UnderlineThin=6]="UnderlineThin"})(ice||(ice={}));var ace;(function(m){m[m.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",m[m.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",m[m.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",m[m.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ace||(ace={}));var oce;(function(m){m[m.None=0]="None",m[m.Same=1]="Same",m[m.Indent=2]="Indent",m[m.DeepIndent=3]="DeepIndent"})(oce||(oce={}));class bR{static chord(g,S){return g8e(g,S)}}bR.CtrlCmd=2048,bR.Shift=1024,bR.Alt=512,bR.WinCtrl=256;function S8e(){return{editor:void 0,languages:void 0,CancellationTokenSource:_8e,Emitter:J0,KeyCode:tH,KeyMod:bR,Position:Qp,Range:ol,Selection:hy,SelectionDirection:iH,MarkerSeverity:nH,MarkerTag:rH,Uri:IA,Token:T8e}}var sce;class x8e{constructor(){this[sce]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var g;return(g=this._head)===null||g===void 0?void 0:g.value}get last(){var g;return(g=this._tail)===null||g===void 0?void 0:g.value}has(g){return this._map.has(g)}get(g,S=0){const P=this._map.get(g);if(P)return S!==0&&this.touch(P,S),P.value}set(g,S,P=0){let X=this._map.get(g);if(X)X.value=S,P!==0&&this.touch(X,P);else{switch(X={key:g,value:S,next:void 0,previous:void 0},P){case 0:this.addItemLast(X);break;case 1:this.addItemFirst(X);break;case 2:this.addItemLast(X);break;default:this.addItemLast(X);break}this._map.set(g,X),this._size++}return this}delete(g){return!!this.remove(g)}remove(g){const S=this._map.get(g);if(S)return this._map.delete(g),this.removeItem(S),this._size--,S.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const g=this._head;return this._map.delete(g.key),this.removeItem(g),this._size--,g.value}forEach(g,S){const P=this._state;let X=this._head;for(;X;){if(S?g.bind(S)(X.value,X.key,this):g(X.value,X.key,this),this._state!==P)throw new Error("LinkedMap got modified during iteration.");X=X.next}}keys(){const g=this,S=this._state;let P=this._head;const X={[Symbol.iterator](){return X},next(){if(g._state!==S)throw new Error("LinkedMap got modified during iteration.");if(P){const _e={value:P.key,done:!1};return P=P.next,_e}else return{value:void 0,done:!0}}};return X}values(){const g=this,S=this._state;let P=this._head;const X={[Symbol.iterator](){return X},next(){if(g._state!==S)throw new Error("LinkedMap got modified during iteration.");if(P){const _e={value:P.value,done:!1};return P=P.next,_e}else return{value:void 0,done:!0}}};return X}entries(){const g=this,S=this._state;let P=this._head;const X={[Symbol.iterator](){return X},next(){if(g._state!==S)throw new Error("LinkedMap got modified during iteration.");if(P){const _e={value:[P.key,P.value],done:!1};return P=P.next,_e}else return{value:void 0,done:!0}}};return X}[(sce=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(g){if(g>=this.size)return;if(g===0){this.clear();return}let S=this._head,P=this.size;for(;S&&P>g;)this._map.delete(S.key),S=S.next,P--;this._head=S,this._size=P,S&&(S.previous=void 0),this._state++}trimNew(g){if(g>=this.size)return;if(g===0){this.clear();return}let S=this._tail,P=this.size;for(;S&&P>g;)this._map.delete(S.key),S=S.previous,P--;this._tail=S,this._size=P,S&&(S.next=void 0),this._state++}addItemFirst(g){if(!this._head&&!this._tail)this._tail=g;else if(this._head)g.next=this._head,this._head.previous=g;else throw new Error("Invalid list");this._head=g,this._state++}addItemLast(g){if(!this._head&&!this._tail)this._head=g;else if(this._tail)g.previous=this._tail,this._tail.next=g;else throw new Error("Invalid list");this._tail=g,this._state++}removeItem(g){if(g===this._head&&g===this._tail)this._head=void 0,this._tail=void 0;else if(g===this._head){if(!g.next)throw new Error("Invalid list");g.next.previous=void 0,this._head=g.next}else if(g===this._tail){if(!g.previous)throw new Error("Invalid list");g.previous.next=void 0,this._tail=g.previous}else{const S=g.next,P=g.previous;if(!S||!P)throw new Error("Invalid list");S.previous=P,P.next=S}g.next=void 0,g.previous=void 0,this._state++}touch(g,S){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(S!==1&&S!==2)){if(S===1){if(g===this._head)return;const P=g.next,X=g.previous;g===this._tail?(X.next=void 0,this._tail=X):(P.previous=X,X.next=P),g.previous=void 0,g.next=this._head,this._head.previous=g,this._head=g,this._state++}else if(S===2){if(g===this._tail)return;const P=g.next,X=g.previous;g===this._head?(P.previous=void 0,this._head=P):(P.previous=X,X.next=P),g.next=void 0,g.previous=this._tail,this._tail.next=g,this._tail=g,this._state++}}}toJSON(){const g=[];return this.forEach((S,P)=>{g.push([P,S])}),g}fromJSON(g){this.clear();for(const[S,P]of g)this.set(S,P)}}class A8e extends x8e{constructor(g,S=1){super(),this._limit=g,this._ratio=Math.min(Math.max(0,S),1)}get limit(){return this._limit}set limit(g){this._limit=g,this.checkTrim()}get(g,S=2){return super.get(g,S)}peek(g){return super.get(g,0)}set(g,S){return super.set(g,S,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class C8e extends A8e{constructor(g,S=1){super(g,S)}trim(g){this.trimOld(g)}set(g,S){return super.set(g,S),this.checkTrim(),this}}class L8e{constructor(){this.map=new Map}add(g,S){let P=this.map.get(g);P||(P=new Set,this.map.set(g,P)),P.add(S)}delete(g,S){const P=this.map.get(g);P&&(P.delete(S),P.size===0&&this.map.delete(g))}forEach(g,S){const P=this.map.get(g);P&&P.forEach(S)}get(g){const S=this.map.get(g);return S||new Set}}new C8e(10);var lce;(function(m){m[m.Left=1]="Left",m[m.Center=2]="Center",m[m.Right=4]="Right",m[m.Full=7]="Full"})(lce||(lce={}));var cce;(function(m){m[m.Left=1]="Left",m[m.Center=2]="Center",m[m.Right=3]="Right"})(cce||(cce={}));var uce;(function(m){m[m.Both=0]="Both",m[m.Right=1]="Right",m[m.Left=2]="Left",m[m.None=3]="None"})(uce||(uce={}));function I8e(m,g,S,P,X){if(P===0)return!0;const _e=g.charCodeAt(P-1);if(m.get(_e)!==0||_e===13||_e===10)return!0;if(X>0){const ve=g.charCodeAt(P);if(m.get(ve)!==0)return!0}return!1}function k8e(m,g,S,P,X){if(P+X===S)return!0;const _e=g.charCodeAt(P+X);if(m.get(_e)!==0||_e===13||_e===10)return!0;if(X>0){const ve=g.charCodeAt(P+X-1);if(m.get(ve)!==0)return!0}return!1}function w8e(m,g,S,P,X){return I8e(m,g,S,P,X)&&k8e(m,g,S,P,X)}class D8e{constructor(g,S){this._wordSeparators=g,this._searchRegex=S,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(g){this._searchRegex.lastIndex=g,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(g){const S=g.length;let P;do{if(this._prevMatchStartIndex+this._prevMatchLength===S||(P=this._searchRegex.exec(g),!P))return null;const X=P.index,_e=P[0].length;if(X===this._prevMatchStartIndex&&_e===this._prevMatchLength){if(_e===0){bOe(g,S,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=X,this._prevMatchLength=_e,!this._wordSeparators||w8e(this._wordSeparators,g,S,X,_e))return P}while(P);return null}}function R8e(m,g="Unreachable"){throw new Error(g)}function sM(m){if(!m()){debugger;m(),lu(new Wd("Assertion Failed"))}}function dce(m,g){let S=0;for(;S<m.length-1;){const P=m[S],X=m[S+1];if(!g(P,X))return!1;S++}return!0}class N8e{static computeUnicodeHighlights(g,S,P){const X=P?P.startLineNumber:1,_e=P?P.endLineNumber:g.getLineCount(),ve=new fce(S),Be=ve.getCandidateCodePoints();let ct;Be==="allNonBasicAscii"?ct=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):ct=new RegExp(`${O8e(Array.from(Be))}`,"g");const Le=new D8e(null,ct),Je=[];let Xt=!1,Jt,dn=0,Rr=0,fi=0;e:for(let ta=X,Zn=_e;ta<=Zn;ta++){const In=g.getLineContent(ta),Yr=In.length;Le.reset(0);do if(Jt=Le.next(In),Jt){let mi=Jt.index,ji=Jt.index+Jt[0].length;if(mi>0){const mc=In.charCodeAt(mi-1);Hj(mc)&&mi--}if(ji+1<Yr){const mc=In.charCodeAt(ji-1);Hj(mc)&&ji++}const Uo=In.substring(mi,ji);let Ur=Kj(mi+1,tle,In,0);Ur&&Ur.endColumn<=mi+1&&(Ur=null);const Oo=ve.shouldHighlightNonBasicASCII(Uo,Ur?Ur.word:null);if(Oo!==0){Oo===3?dn++:Oo===2?Rr++:Oo===1?fi++:R8e();const mc=1e3;if(Je.length>=mc){Xt=!0;break e}Je.push(new ol(ta,mi+1,ta,ji+1))}}while(Jt)}return{ranges:Je,hasMore:Xt,ambiguousCharacterCount:dn,invisibleCharacterCount:Rr,nonBasicAsciiCharacterCount:fi}}static computeUnicodeHighlightReason(g,S){const P=new fce(S);switch(P.shouldHighlightNonBasicASCII(g,null)){case 0:return null;case 2:return{kind:1};case 3:{const _e=g.codePointAt(0),ve=P.ambiguousCharacters.getPrimaryConfusable(_e),Be=LA.getLocales().filter(ct=>!LA.getInstance(new Set([...S.allowedLocales,ct])).isAmbiguous(_e));return{kind:0,confusableWith:String.fromCodePoint(ve),notAmbiguousInLocales:Be}}case 1:return{kind:2}}}}function O8e(m,g){return`[${pOe(m.map(P=>String.fromCodePoint(P)).join(""))}]`}class fce{constructor(g){this.options=g,this.allowedCodePoints=new Set(g.allowedCodePoints),this.ambiguousCharacters=LA.getInstance(new Set(g.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const g=new Set;if(this.options.invisibleCharacters)for(const S of KS.codePoints)_ce(String.fromCodePoint(S))||g.add(S);if(this.options.ambiguousCharacters)for(const S of this.ambiguousCharacters.getConfusableCodePoints())g.add(S);for(const S of this.allowedCodePoints)g.delete(S);return g}shouldHighlightNonBasicASCII(g,S){const P=g.codePointAt(0);if(this.allowedCodePoints.has(P))return 0;if(this.options.nonBasicASCII)return 1;let X=!1,_e=!1;if(S)for(const ve of S){const Be=ve.codePointAt(0),ct=TOe(ve);X=X||ct,!ct&&!this.ambiguousCharacters.isAmbiguous(Be)&&!KS.isInvisibleCharacter(Be)&&(_e=!0)}return!X&&_e?0:this.options.invisibleCharacters&&!_ce(g)&&KS.isInvisibleCharacter(P)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(P)?3:0}}function _ce(m){return m===" "||m===`
- `||m===" "}class lM{constructor(g,S,P){this.changes=g,this.moves=S,this.hitTimeout=P}}class P8e{constructor(g,S){this.lineRangeMapping=g,this.changes=S}}class Kl{static addRange(g,S){let P=0;for(;P<S.length&&S[P].endExclusive<g.start;)P++;let X=P;for(;X<S.length&&S[X].start<=g.endExclusive;)X++;if(P===X)S.splice(P,0,g);else{const _e=Math.min(g.start,S[P].start),ve=Math.max(g.endExclusive,S[X-1].endExclusive);S.splice(P,X-P,new Kl(_e,ve))}}static tryCreate(g,S){if(!(g>S))return new Kl(g,S)}static ofLength(g){return new Kl(0,g)}static ofStartAndLength(g,S){return new Kl(g,g+S)}constructor(g,S){if(this.start=g,this.endExclusive=S,g>S)throw new Wd(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(g){return new Kl(this.start+g,this.endExclusive+g)}deltaStart(g){return new Kl(this.start+g,this.endExclusive)}deltaEnd(g){return new Kl(this.start,this.endExclusive+g)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(g){return this.start<=g&&g<this.endExclusive}join(g){return new Kl(Math.min(this.start,g.start),Math.max(this.endExclusive,g.endExclusive))}intersect(g){const S=Math.max(this.start,g.start),P=Math.min(this.endExclusive,g.endExclusive);if(S<=P)return new Kl(S,P)}intersects(g){const S=Math.max(this.start,g.start),P=Math.min(this.endExclusive,g.endExclusive);return S<P}isBefore(g){return this.endExclusive<=g.start}isAfter(g){return this.start>=g.endExclusive}slice(g){return g.slice(this.start,this.endExclusive)}substring(g){return g.substring(this.start,this.endExclusive)}clip(g){if(this.isEmpty)throw new Wd(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,g))}clipCyclic(g){if(this.isEmpty)throw new Wd(`Invalid clipping range: ${this.toString()}`);return g<this.start?this.endExclusive-(this.start-g)%this.length:g>=this.endExclusive?this.start+(g-this.start)%this.length:g}forEach(g){for(let S=this.start;S<this.endExclusive;S++)g(S)}}function AI(m,g){const S=ER(m,g);return S===-1?void 0:m[S]}function ER(m,g,S=0,P=m.length){let X=S,_e=P;for(;X<_e;){const ve=Math.floor((X+_e)/2);g(m[ve])?X=ve+1:_e=ve}return X-1}function M8e(m,g){const S=aH(m,g);return S===m.length?void 0:m[S]}function aH(m,g,S=0,P=m.length){let X=S,_e=P;for(;X<_e;){const ve=Math.floor((X+_e)/2);g(m[ve])?_e=ve:X=ve+1}return X}class TR{constructor(g){this._array=g,this._findLastMonotonousLastIdx=0}findLastMonotonous(g){if(TR.assertInvariants){if(this._prevFindLastPredicate){for(const P of this._array)if(this._prevFindLastPredicate(P)&&!g(P))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=g}const S=ER(this._array,g,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=S+1,S===-1?void 0:this._array[S]}}TR.assertInvariants=!1;class Bl{static fromRangeInclusive(g){return new Bl(g.startLineNumber,g.endLineNumber+1)}static joinMany(g){if(g.length===0)return[];let S=new p1(g[0].slice());for(let P=1;P<g.length;P++)S=S.getUnion(new p1(g[P].slice()));return S.ranges}static join(g){if(g.length===0)throw new Wd("lineRanges cannot be empty");let S=g[0].startLineNumber,P=g[0].endLineNumberExclusive;for(let X=1;X<g.length;X++)S=Math.min(S,g[X].startLineNumber),P=Math.max(P,g[X].endLineNumberExclusive);return new Bl(S,P)}static ofLength(g,S){return new Bl(g,g+S)}static deserialize(g){return new Bl(g[0],g[1])}constructor(g,S){if(g>S)throw new Wd(`startLineNumber ${g} cannot be after endLineNumberExclusive ${S}`);this.startLineNumber=g,this.endLineNumberExclusive=S}contains(g){return this.startLineNumber<=g&&g<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(g){return new Bl(this.startLineNumber+g,this.endLineNumberExclusive+g)}deltaLength(g){return new Bl(this.startLineNumber,this.endLineNumberExclusive+g)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(g){return new Bl(Math.min(this.startLineNumber,g.startLineNumber),Math.max(this.endLineNumberExclusive,g.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(g){const S=Math.max(this.startLineNumber,g.startLineNumber),P=Math.min(this.endLineNumberExclusive,g.endLineNumberExclusive);if(S<=P)return new Bl(S,P)}intersectsStrict(g){return this.startLineNumber<g.endLineNumberExclusive&&g.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(g){return this.startLineNumber<=g.endLineNumberExclusive&&g.startLineNumber<=this.endLineNumberExclusive}equals(g){return this.startLineNumber===g.startLineNumber&&this.endLineNumberExclusive===g.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new ol(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new ol(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(g){const S=[];for(let P=this.startLineNumber;P<this.endLineNumberExclusive;P++)S.push(g(P));return S}forEach(g){for(let S=this.startLineNumber;S<this.endLineNumberExclusive;S++)g(S)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(g){return this.startLineNumber<=g&&g<this.endLineNumberExclusive}toOffsetRange(){return new Kl(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class p1{constructor(g=[]){this._normalizedRanges=g}get ranges(){return this._normalizedRanges}addRange(g){if(g.length===0)return;const S=aH(this._normalizedRanges,X=>X.endLineNumberExclusive>=g.startLineNumber),P=ER(this._normalizedRanges,X=>X.startLineNumber<=g.endLineNumberExclusive)+1;if(S===P)this._normalizedRanges.splice(S,0,g);else if(S===P-1){const X=this._normalizedRanges[S];this._normalizedRanges[S]=X.join(g)}else{const X=this._normalizedRanges[S].join(this._normalizedRanges[P-1]).join(g);this._normalizedRanges.splice(S,P-S,X)}}contains(g){const S=AI(this._normalizedRanges,P=>P.startLineNumber<=g);return!!S&&S.endLineNumberExclusive>g}intersects(g){const S=AI(this._normalizedRanges,P=>P.startLineNumber<g.endLineNumberExclusive);return!!S&&S.endLineNumberExclusive>g.startLineNumber}getUnion(g){if(this._normalizedRanges.length===0)return g;if(g._normalizedRanges.length===0)return this;const S=[];let P=0,X=0,_e=null;for(;P<this._normalizedRanges.length||X<g._normalizedRanges.length;){let ve=null;if(P<this._normalizedRanges.length&&X<g._normalizedRanges.length){const Be=this._normalizedRanges[P],ct=g._normalizedRanges[X];Be.startLineNumber<ct.startLineNumber?(ve=Be,P++):(ve=ct,X++)}else P<this._normalizedRanges.length?(ve=this._normalizedRanges[P],P++):(ve=g._normalizedRanges[X],X++);_e===null?_e=ve:_e.endLineNumberExclusive>=ve.startLineNumber?_e=new Bl(_e.startLineNumber,Math.max(_e.endLineNumberExclusive,ve.endLineNumberExclusive)):(S.push(_e),_e=ve)}return _e!==null&&S.push(_e),new p1(S)}subtractFrom(g){const S=aH(this._normalizedRanges,ve=>ve.endLineNumberExclusive>=g.startLineNumber),P=ER(this._normalizedRanges,ve=>ve.startLineNumber<=g.endLineNumberExclusive)+1;if(S===P)return new p1([g]);const X=[];let _e=g.startLineNumber;for(let ve=S;ve<P;ve++){const Be=this._normalizedRanges[ve];Be.startLineNumber>_e&&X.push(new Bl(_e,Be.startLineNumber)),_e=Be.endLineNumberExclusive}return _e<g.endLineNumberExclusive&&X.push(new Bl(_e,g.endLineNumberExclusive)),new p1(X)}toString(){return this._normalizedRanges.map(g=>g.toString()).join(", ")}getIntersection(g){const S=[];let P=0,X=0;for(;P<this._normalizedRanges.length&&X<g._normalizedRanges.length;){const _e=this._normalizedRanges[P],ve=g._normalizedRanges[X],Be=_e.intersect(ve);Be&&!Be.isEmpty&&S.push(Be),_e.endLineNumberExclusive<ve.endLineNumberExclusive?P++:X++}return new p1(S)}getWithDelta(g){return new p1(this._normalizedRanges.map(S=>S.delta(g)))}}class F8e{constructor(g,S){this.range=g,this.text=S}}class Y0{static inverse(g,S,P){const X=[];let _e=1,ve=1;for(const ct of g){const Le=new Y0(new Bl(_e,ct.original.startLineNumber),new Bl(ve,ct.modified.startLineNumber));Le.modified.isEmpty||X.push(Le),_e=ct.original.endLineNumberExclusive,ve=ct.modified.endLineNumberExclusive}const Be=new Y0(new Bl(_e,S+1),new Bl(ve,P+1));return Be.modified.isEmpty||X.push(Be),X}static clip(g,S,P){const X=[];for(const _e of g){const ve=_e.original.intersect(S),Be=_e.modified.intersect(P);ve&&!ve.isEmpty&&Be&&!Be.isEmpty&&X.push(new Y0(ve,Be))}return X}constructor(g,S){this.original=g,this.modified=S}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Y0(this.modified,this.original)}join(g){return new Y0(this.original.join(g.original),this.modified.join(g.modified))}toRangeMapping(){const g=this.original.toInclusiveRange(),S=this.modified.toInclusiveRange();if(g&&S)return new tx(g,S);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new Wd("not a valid diff");return new tx(new ol(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new ol(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new tx(new ol(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new ol(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}}class cT extends Y0{static fromRangeMappings(g){const S=Bl.join(g.map(X=>Bl.fromRangeInclusive(X.originalRange))),P=Bl.join(g.map(X=>Bl.fromRangeInclusive(X.modifiedRange)));return new cT(S,P,g)}constructor(g,S,P){super(g,S),this.innerChanges=P}flip(){var g;return new cT(this.modified,this.original,(g=this.innerChanges)===null||g===void 0?void 0:g.map(S=>S.flip()))}withInnerChangesFromLineRanges(){return new cT(this.original,this.modified,[this.toRangeMapping()])}}class tx{constructor(g,S){this.originalRange=g,this.modifiedRange=S}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new tx(this.modifiedRange,this.originalRange)}toTextEdit(g){const S=g.getValueOfRange(this.modifiedRange);return new F8e(this.originalRange,S)}}const B8e=3;class G8e{computeDiff(g,S,P){var X;const ve=new j8e(g,S,{maxComputationTime:P.maxComputationTimeMs,shouldIgnoreTrimWhitespace:P.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Be=[];let ct=null;for(const Le of ve.changes){let Je;Le.originalEndLineNumber===0?Je=new Bl(Le.originalStartLineNumber+1,Le.originalStartLineNumber+1):Je=new Bl(Le.originalStartLineNumber,Le.originalEndLineNumber+1);let Xt;Le.modifiedEndLineNumber===0?Xt=new Bl(Le.modifiedStartLineNumber+1,Le.modifiedStartLineNumber+1):Xt=new Bl(Le.modifiedStartLineNumber,Le.modifiedEndLineNumber+1);let Jt=new cT(Je,Xt,(X=Le.charChanges)===null||X===void 0?void 0:X.map(dn=>new tx(new ol(dn.originalStartLineNumber,dn.originalStartColumn,dn.originalEndLineNumber,dn.originalEndColumn),new ol(dn.modifiedStartLineNumber,dn.modifiedStartColumn,dn.modifiedEndLineNumber,dn.modifiedEndColumn))));ct&&(ct.modified.endLineNumberExclusive===Jt.modified.startLineNumber||ct.original.endLineNumberExclusive===Jt.original.startLineNumber)&&(Jt=new cT(ct.original.join(Jt.original),ct.modified.join(Jt.modified),ct.innerChanges&&Jt.innerChanges?ct.innerChanges.concat(Jt.innerChanges):void 0),Be.pop()),Be.push(Jt),ct=Jt}return sM(()=>dce(Be,(Le,Je)=>Je.original.startLineNumber-Le.original.endLineNumberExclusive===Je.modified.startLineNumber-Le.modified.endLineNumberExclusive&&Le.original.endLineNumberExclusive<Je.original.startLineNumber&&Le.modified.endLineNumberExclusive<Je.modified.startLineNumber)),new lM(Be,[],ve.quitEarly)}}function pce(m,g,S,P){return new YS(m,g,S).ComputeDiff(P)}let mce=class{constructor(g){const S=[],P=[];for(let X=0,_e=g.length;X<_e;X++)S[X]=oH(g[X],1),P[X]=sH(g[X],1);this.lines=g,this._startColumns=S,this._endColumns=P}getElements(){const g=[];for(let S=0,P=this.lines.length;S<P;S++)g[S]=this.lines[S].substring(this._startColumns[S]-1,this._endColumns[S]-1);return g}getStrictElement(g){return this.lines[g]}getStartLineNumber(g){return g+1}getEndLineNumber(g){return g+1}createCharSequence(g,S,P){const X=[],_e=[],ve=[];let Be=0;for(let ct=S;ct<=P;ct++){const Le=this.lines[ct],Je=g?this._startColumns[ct]:1,Xt=g?this._endColumns[ct]:Le.length+1;for(let Jt=Je;Jt<Xt;Jt++)X[Be]=Le.charCodeAt(Jt-1),_e[Be]=ct+1,ve[Be]=Jt,Be++;!g&&ct<P&&(X[Be]=10,_e[Be]=ct+1,ve[Be]=Le.length+1,Be++)}return new U8e(X,_e,ve)}};class U8e{constructor(g,S,P){this._charCodes=g,this._lineNumbers=S,this._columns=P}toString(){return"["+this._charCodes.map((g,S)=>(g===10?"\\n":String.fromCharCode(g))+`-(${this._lineNumbers[S]},${this._columns[S]})`).join(", ")+"]"}_assertIndex(g,S){if(g<0||g>=S.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(g){return g>0&&g===this._lineNumbers.length?this.getEndLineNumber(g-1):(this._assertIndex(g,this._lineNumbers),this._lineNumbers[g])}getEndLineNumber(g){return g===-1?this.getStartLineNumber(g+1):(this._assertIndex(g,this._lineNumbers),this._charCodes[g]===10?this._lineNumbers[g]+1:this._lineNumbers[g])}getStartColumn(g){return g>0&&g===this._columns.length?this.getEndColumn(g-1):(this._assertIndex(g,this._columns),this._columns[g])}getEndColumn(g){return g===-1?this.getStartColumn(g+1):(this._assertIndex(g,this._columns),this._charCodes[g]===10?1:this._columns[g]+1)}}class CI{constructor(g,S,P,X,_e,ve,Be,ct){this.originalStartLineNumber=g,this.originalStartColumn=S,this.originalEndLineNumber=P,this.originalEndColumn=X,this.modifiedStartLineNumber=_e,this.modifiedStartColumn=ve,this.modifiedEndLineNumber=Be,this.modifiedEndColumn=ct}static createFromDiffChange(g,S,P){const X=S.getStartLineNumber(g.originalStart),_e=S.getStartColumn(g.originalStart),ve=S.getEndLineNumber(g.originalStart+g.originalLength-1),Be=S.getEndColumn(g.originalStart+g.originalLength-1),ct=P.getStartLineNumber(g.modifiedStart),Le=P.getStartColumn(g.modifiedStart),Je=P.getEndLineNumber(g.modifiedStart+g.modifiedLength-1),Xt=P.getEndColumn(g.modifiedStart+g.modifiedLength-1);return new CI(X,_e,ve,Be,ct,Le,Je,Xt)}}function V8e(m){if(m.length<=1)return m;const g=[m[0]];let S=g[0];for(let P=1,X=m.length;P<X;P++){const _e=m[P],ve=_e.originalStart-(S.originalStart+S.originalLength),Be=_e.modifiedStart-(S.modifiedStart+S.modifiedLength);Math.min(ve,Be)<B8e?(S.originalLength=_e.originalStart+_e.originalLength-S.originalStart,S.modifiedLength=_e.modifiedStart+_e.modifiedLength-S.modifiedStart):(g.push(_e),S=_e)}return g}class SR{constructor(g,S,P,X,_e){this.originalStartLineNumber=g,this.originalEndLineNumber=S,this.modifiedStartLineNumber=P,this.modifiedEndLineNumber=X,this.charChanges=_e}static createFromDiffResult(g,S,P,X,_e,ve,Be){let ct,Le,Je,Xt,Jt;if(S.originalLength===0?(ct=P.getStartLineNumber(S.originalStart)-1,Le=0):(ct=P.getStartLineNumber(S.originalStart),Le=P.getEndLineNumber(S.originalStart+S.originalLength-1)),S.modifiedLength===0?(Je=X.getStartLineNumber(S.modifiedStart)-1,Xt=0):(Je=X.getStartLineNumber(S.modifiedStart),Xt=X.getEndLineNumber(S.modifiedStart+S.modifiedLength-1)),ve&&S.originalLength>0&&S.originalLength<20&&S.modifiedLength>0&&S.modifiedLength<20&&_e()){const dn=P.createCharSequence(g,S.originalStart,S.originalStart+S.originalLength-1),Rr=X.createCharSequence(g,S.modifiedStart,S.modifiedStart+S.modifiedLength-1);if(dn.getElements().length>0&&Rr.getElements().length>0){let fi=pce(dn,Rr,_e,!0).changes;Be&&(fi=V8e(fi)),Jt=[];for(let ta=0,Zn=fi.length;ta<Zn;ta++)Jt.push(CI.createFromDiffChange(fi[ta],dn,Rr))}}return new SR(ct,Le,Je,Xt,Jt)}}class j8e{constructor(g,S,P){this.shouldComputeCharChanges=P.shouldComputeCharChanges,this.shouldPostProcessCharChanges=P.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=P.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=P.shouldMakePrettyDiff,this.originalLines=g,this.modifiedLines=S,this.original=new mce(g),this.modified=new mce(S),this.continueLineDiff=hce(P.maxComputationTime),this.continueCharDiff=hce(P.maxComputationTime===0?0:Math.min(P.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const g=pce(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),S=g.changes,P=g.quitEarly;if(this.shouldIgnoreTrimWhitespace){const Be=[];for(let ct=0,Le=S.length;ct<Le;ct++)Be.push(SR.createFromDiffResult(this.shouldIgnoreTrimWhitespace,S[ct],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:P,changes:Be}}const X=[];let _e=0,ve=0;for(let Be=-1,ct=S.length;Be<ct;Be++){const Le=Be+1<ct?S[Be+1]:null,Je=Le?Le.originalStart:this.originalLines.length,Xt=Le?Le.modifiedStart:this.modifiedLines.length;for(;_e<Je&&ve<Xt;){const Jt=this.originalLines[_e],dn=this.modifiedLines[ve];if(Jt!==dn){{let Rr=oH(Jt,1),fi=oH(dn,1);for(;Rr>1&&fi>1;){const ta=Jt.charCodeAt(Rr-2),Zn=dn.charCodeAt(fi-2);if(ta!==Zn)break;Rr--,fi--}(Rr>1||fi>1)&&this._pushTrimWhitespaceCharChange(X,_e+1,1,Rr,ve+1,1,fi)}{let Rr=sH(Jt,1),fi=sH(dn,1);const ta=Jt.length+1,Zn=dn.length+1;for(;Rr<ta&&fi<Zn;){const In=Jt.charCodeAt(Rr-1),Yr=Jt.charCodeAt(fi-1);if(In!==Yr)break;Rr++,fi++}(Rr<ta||fi<Zn)&&this._pushTrimWhitespaceCharChange(X,_e+1,Rr,ta,ve+1,fi,Zn)}}_e++,ve++}Le&&(X.push(SR.createFromDiffResult(this.shouldIgnoreTrimWhitespace,Le,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),_e+=Le.originalLength,ve+=Le.modifiedLength)}return{quitEarly:P,changes:X}}_pushTrimWhitespaceCharChange(g,S,P,X,_e,ve,Be){if(this._mergeTrimWhitespaceCharChange(g,S,P,X,_e,ve,Be))return;let ct;this.shouldComputeCharChanges&&(ct=[new CI(S,P,S,X,_e,ve,_e,Be)]),g.push(new SR(S,S,_e,_e,ct))}_mergeTrimWhitespaceCharChange(g,S,P,X,_e,ve,Be){const ct=g.length;if(ct===0)return!1;const Le=g[ct-1];return Le.originalEndLineNumber===0||Le.modifiedEndLineNumber===0?!1:Le.originalEndLineNumber===S&&Le.modifiedEndLineNumber===_e?(this.shouldComputeCharChanges&&Le.charChanges&&Le.charChanges.push(new CI(S,P,S,X,_e,ve,_e,Be)),!0):Le.originalEndLineNumber+1===S&&Le.modifiedEndLineNumber+1===_e?(Le.originalEndLineNumber=S,Le.modifiedEndLineNumber=_e,this.shouldComputeCharChanges&&Le.charChanges&&Le.charChanges.push(new CI(S,P,S,X,_e,ve,_e,Be)),!0):!1}}function oH(m,g){const S=hOe(m);return S===-1?g:S+1}function sH(m,g){const S=gOe(m);return S===-1?g:S+2}function hce(m){if(m===0)return()=>!0;const g=Date.now();return()=>Date.now()-g<m}class uT{static trivial(g,S){return new uT([new uf(Kl.ofLength(g.length),Kl.ofLength(S.length))],!1)}static trivialTimedOut(g,S){return new uT([new uf(Kl.ofLength(g.length),Kl.ofLength(S.length))],!0)}constructor(g,S){this.diffs=g,this.hitTimeout=S}}class uf{static invert(g,S){const P=[];return QOe(g,(X,_e)=>{P.push(uf.fromOffsetPairs(X?X.getEndExclusives():gy.zero,_e?_e.getStarts():new gy(S,(X?X.seq2Range.endExclusive-X.seq1Range.endExclusive:0)+S)))}),P}static fromOffsetPairs(g,S){return new uf(new Kl(g.offset1,S.offset1),new Kl(g.offset2,S.offset2))}constructor(g,S){this.seq1Range=g,this.seq2Range=S}swap(){return new uf(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(g){return new uf(this.seq1Range.join(g.seq1Range),this.seq2Range.join(g.seq2Range))}delta(g){return g===0?this:new uf(this.seq1Range.delta(g),this.seq2Range.delta(g))}deltaStart(g){return g===0?this:new uf(this.seq1Range.deltaStart(g),this.seq2Range.deltaStart(g))}deltaEnd(g){return g===0?this:new uf(this.seq1Range.deltaEnd(g),this.seq2Range.deltaEnd(g))}intersect(g){const S=this.seq1Range.intersect(g.seq1Range),P=this.seq2Range.intersect(g.seq2Range);if(!(!S||!P))return new uf(S,P)}getStarts(){return new gy(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new gy(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class gy{constructor(g,S){this.offset1=g,this.offset2=S}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(g){return g===0?this:new gy(this.offset1+g,this.offset2+g)}equals(g){return this.offset1===g.offset1&&this.offset2===g.offset2}}gy.zero=new gy(0,0),gy.max=new gy(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class xR{isValid(){return!0}}xR.instance=new xR;class H8e{constructor(g){if(this.timeout=g,this.startTime=Date.now(),this.valid=!0,g<=0)throw new Wd("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class lH{constructor(g,S){this.width=g,this.height=S,this.array=[],this.array=new Array(g*S)}get(g,S){return this.array[g+S*this.width]}set(g,S,P){this.array[g+S*this.width]=P}}function cH(m){return m===32||m===9}class LI{static getKey(g){let S=this.chrKeys.get(g);return S===void 0&&(S=this.chrKeys.size,this.chrKeys.set(g,S)),S}constructor(g,S,P){this.range=g,this.lines=S,this.source=P,this.histogram=[];let X=0;for(let _e=g.startLineNumber-1;_e<g.endLineNumberExclusive-1;_e++){const ve=S[_e];for(let ct=0;ct<ve.length;ct++){X++;const Le=ve[ct],Je=LI.getKey(Le);this.histogram[Je]=(this.histogram[Je]||0)+1}X++;const Be=LI.getKey(`
- `);this.histogram[Be]=(this.histogram[Be]||0)+1}this.totalCount=X}computeSimilarity(g){var S,P;let X=0;const _e=Math.max(this.histogram.length,g.histogram.length);for(let ve=0;ve<_e;ve++)X+=Math.abs(((S=this.histogram[ve])!==null&&S!==void 0?S:0)-((P=g.histogram[ve])!==null&&P!==void 0?P:0));return 1-X/(this.totalCount+g.totalCount)}}LI.chrKeys=new Map;class W8e{compute(g,S,P=xR.instance,X){if(g.length===0||S.length===0)return uT.trivial(g,S);const _e=new lH(g.length,S.length),ve=new lH(g.length,S.length),Be=new lH(g.length,S.length);for(let Rr=0;Rr<g.length;Rr++)for(let fi=0;fi<S.length;fi++){if(!P.isValid())return uT.trivialTimedOut(g,S);const ta=Rr===0?0:_e.get(Rr-1,fi),Zn=fi===0?0:_e.get(Rr,fi-1);let In;g.getElement(Rr)===S.getElement(fi)?(Rr===0||fi===0?In=0:In=_e.get(Rr-1,fi-1),Rr>0&&fi>0&&ve.get(Rr-1,fi-1)===3&&(In+=Be.get(Rr-1,fi-1)),In+=X?X(Rr,fi):1):In=-1;const Yr=Math.max(ta,Zn,In);if(Yr===In){const mi=Rr>0&&fi>0?Be.get(Rr-1,fi-1):0;Be.set(Rr,fi,mi+1),ve.set(Rr,fi,3)}else Yr===ta?(Be.set(Rr,fi,0),ve.set(Rr,fi,1)):Yr===Zn&&(Be.set(Rr,fi,0),ve.set(Rr,fi,2));_e.set(Rr,fi,Yr)}const ct=[];let Le=g.length,Je=S.length;function Xt(Rr,fi){(Rr+1!==Le||fi+1!==Je)&&ct.push(new uf(new Kl(Rr+1,Le),new Kl(fi+1,Je))),Le=Rr,Je=fi}let Jt=g.length-1,dn=S.length-1;for(;Jt>=0&&dn>=0;)ve.get(Jt,dn)===3?(Xt(Jt,dn),Jt--,dn--):ve.get(Jt,dn)===1?Jt--:dn--;return Xt(-1,-1),ct.reverse(),new uT(ct,!1)}}class gce{compute(g,S,P=xR.instance){if(g.length===0||S.length===0)return uT.trivial(g,S);const X=g,_e=S;function ve(fi,ta){for(;fi<X.length&&ta<_e.length&&X.getElement(fi)===_e.getElement(ta);)fi++,ta++;return fi}let Be=0;const ct=new z8e;ct.set(0,ve(0,0));const Le=new q8e;Le.set(0,ct.get(0)===0?null:new yce(null,0,0,ct.get(0)));let Je=0;e:for(;;){if(Be++,!P.isValid())return uT.trivialTimedOut(X,_e);const fi=-Math.min(Be,_e.length+Be%2),ta=Math.min(Be,X.length+Be%2);for(Je=fi;Je<=ta;Je+=2){const Zn=Je===ta?-1:ct.get(Je+1),In=Je===fi?-1:ct.get(Je-1)+1,Yr=Math.min(Math.max(Zn,In),X.length),mi=Yr-Je;if(Yr>X.length||mi>_e.length)continue;const ji=ve(Yr,mi);ct.set(Je,ji);const Uo=Yr===Zn?Le.get(Je+1):Le.get(Je-1);if(Le.set(Je,ji!==Yr?new yce(Uo,Yr,mi,ji-Yr):Uo),ct.get(Je)===X.length&&ct.get(Je)-Je===_e.length)break e}}let Xt=Le.get(Je);const Jt=[];let dn=X.length,Rr=_e.length;for(;;){const fi=Xt?Xt.x+Xt.length:0,ta=Xt?Xt.y+Xt.length:0;if((fi!==dn||ta!==Rr)&&Jt.push(new uf(new Kl(fi,dn),new Kl(ta,Rr))),!Xt)break;dn=Xt.x,Rr=Xt.y,Xt=Xt.prev}return Jt.reverse(),new uT(Jt,!1)}}class yce{constructor(g,S,P,X){this.prev=g,this.x=S,this.y=P,this.length=X}}class z8e{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(g){return g<0?(g=-g-1,this.negativeArr[g]):this.positiveArr[g]}set(g,S){if(g<0){if(g=-g-1,g>=this.negativeArr.length){const P=this.negativeArr;this.negativeArr=new Int32Array(P.length*2),this.negativeArr.set(P)}this.negativeArr[g]=S}else{if(g>=this.positiveArr.length){const P=this.positiveArr;this.positiveArr=new Int32Array(P.length*2),this.positiveArr.set(P)}this.positiveArr[g]=S}}}class q8e{constructor(){this.positiveArr=[],this.negativeArr=[]}get(g){return g<0?(g=-g-1,this.negativeArr[g]):this.positiveArr[g]}set(g,S){g<0?(g=-g-1,this.negativeArr[g]=S):this.positiveArr[g]=S}}class cM{constructor(g,S,P){this.lines=g,this.considerWhitespaceChanges=P,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let X=!1;S.start>0&&S.endExclusive>=g.length&&(S=new Kl(S.start-1,S.endExclusive),X=!0),this.lineRange=S,this.firstCharOffsetByLine[0]=0;for(let _e=this.lineRange.start;_e<this.lineRange.endExclusive;_e++){let ve=g[_e],Be=0;if(X)Be=ve.length,ve="",X=!1;else if(!P){const ct=ve.trimStart();Be=ve.length-ct.length,ve=ct.trimEnd()}this.additionalOffsetByLine.push(Be);for(let ct=0;ct<ve.length;ct++)this.elements.push(ve.charCodeAt(ct));_e<g.length-1&&(this.elements.push(`
- `.charCodeAt(0)),this.firstCharOffsetByLine[_e-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Kl(0,this.length))}getText(g){return this.elements.slice(g.start,g.endExclusive).map(S=>String.fromCharCode(S)).join("")}getElement(g){return this.elements[g]}get length(){return this.elements.length}getBoundaryScore(g){const S=bce(g>0?this.elements[g-1]:-1),P=bce(g<this.elements.length?this.elements[g]:-1);if(S===7&&P===8)return 0;if(S===8)return 150;let X=0;return S!==P&&(X+=10,S===0&&P===1&&(X+=1)),X+=vce(S),X+=vce(P),X}translateOffset(g){if(this.lineRange.isEmpty)return new Qp(this.lineRange.start+1,1);const S=ER(this.firstCharOffsetByLine,P=>P<=g);return new Qp(this.lineRange.start+S+1,g-this.firstCharOffsetByLine[S]+this.additionalOffsetByLine[S]+1)}translateRange(g){return ol.fromPositions(this.translateOffset(g.start),this.translateOffset(g.endExclusive))}findWordContaining(g){if(g<0||g>=this.elements.length||!uH(this.elements[g]))return;let S=g;for(;S>0&&uH(this.elements[S-1]);)S--;let P=g;for(;P<this.elements.length&&uH(this.elements[P]);)P++;return new Kl(S,P)}countLinesIn(g){return this.translateOffset(g.endExclusive).lineNumber-this.translateOffset(g.start).lineNumber}isStronglyEqual(g,S){return this.elements[g]===this.elements[S]}extendToFullLines(g){var S,P;const X=(S=AI(this.firstCharOffsetByLine,ve=>ve<=g.start))!==null&&S!==void 0?S:0,_e=(P=M8e(this.firstCharOffsetByLine,ve=>g.endExclusive<=ve))!==null&&P!==void 0?P:this.elements.length;return new Kl(X,_e)}}function uH(m){return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57}const J8e={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function vce(m){return J8e[m]}function bce(m){return m===10?8:m===13?7:cH(m)?6:m>=97&&m<=122?0:m>=65&&m<=90?1:m>=48&&m<=57?2:m===-1?3:m===44||m===59?5:4}function K8e(m,g,S,P,X,_e){let{moves:ve,excludedChanges:Be}=Y8e(m,g,S,_e);if(!_e.isValid())return[];const ct=m.filter(Je=>!Be.has(Je)),Le=$8e(ct,P,X,g,S,_e);return e8e(ve,Le),ve=Q8e(ve),ve=ve.filter(Je=>{const Xt=Je.original.toOffsetRange().slice(g).map(dn=>dn.trim());return Xt.join(`
- `).length>=15&&X8e(Xt,dn=>dn.length>=2)>=2}),ve=Z8e(m,ve),ve}function X8e(m,g){let S=0;for(const P of m)g(P)&&S++;return S}function Y8e(m,g,S,P){const X=[],_e=m.filter(ct=>ct.modified.isEmpty&&ct.original.length>=3).map(ct=>new LI(ct.original,g,ct)),ve=new Set(m.filter(ct=>ct.original.isEmpty&&ct.modified.length>=3).map(ct=>new LI(ct.modified,S,ct))),Be=new Set;for(const ct of _e){let Le=-1,Je;for(const Xt of ve){const Jt=ct.computeSimilarity(Xt);Jt>Le&&(Le=Jt,Je=Xt)}if(Le>.9&&Je&&(ve.delete(Je),X.push(new Y0(ct.range,Je.range)),Be.add(ct.source),Be.add(Je.source)),!P.isValid())return{moves:X,excludedChanges:Be}}return{moves:X,excludedChanges:Be}}function $8e(m,g,S,P,X,_e){const ve=[],Be=new L8e;for(const Jt of m)for(let dn=Jt.original.startLineNumber;dn<Jt.original.endLineNumberExclusive-2;dn++){const Rr=`${g[dn-1]}:${g[dn+1-1]}:${g[dn+2-1]}`;Be.add(Rr,{range:new Bl(dn,dn+3)})}const ct=[];m.sort(tM(Jt=>Jt.modified.startLineNumber,nM));for(const Jt of m){let dn=[];for(let Rr=Jt.modified.startLineNumber;Rr<Jt.modified.endLineNumberExclusive-2;Rr++){const fi=`${S[Rr-1]}:${S[Rr+1-1]}:${S[Rr+2-1]}`,ta=new Bl(Rr,Rr+3),Zn=[];Be.forEach(fi,({range:In})=>{for(const mi of dn)if(mi.originalLineRange.endLineNumberExclusive+1===In.endLineNumberExclusive&&mi.modifiedLineRange.endLineNumberExclusive+1===ta.endLineNumberExclusive){mi.originalLineRange=new Bl(mi.originalLineRange.startLineNumber,In.endLineNumberExclusive),mi.modifiedLineRange=new Bl(mi.modifiedLineRange.startLineNumber,ta.endLineNumberExclusive),Zn.push(mi);return}const Yr={modifiedLineRange:ta,originalLineRange:In};ct.push(Yr),Zn.push(Yr)}),dn=Zn}if(!_e.isValid())return[]}ct.sort(t8e(tM(Jt=>Jt.modifiedLineRange.length,nM)));const Le=new p1,Je=new p1;for(const Jt of ct){const dn=Jt.modifiedLineRange.startLineNumber-Jt.originalLineRange.startLineNumber,Rr=Le.subtractFrom(Jt.modifiedLineRange),fi=Je.subtractFrom(Jt.originalLineRange).getWithDelta(dn),ta=Rr.getIntersection(fi);for(const Zn of ta.ranges){if(Zn.length<3)continue;const In=Zn,Yr=Zn.delta(-dn);ve.push(new Y0(Yr,In)),Le.addRange(In),Je.addRange(Yr)}}ve.sort(tM(Jt=>Jt.original.startLineNumber,nM));const Xt=new TR(m);for(let Jt=0;Jt<ve.length;Jt++){const dn=ve[Jt],Rr=Xt.findLastMonotonous(Uo=>Uo.original.startLineNumber<=dn.original.startLineNumber),fi=AI(m,Uo=>Uo.modified.startLineNumber<=dn.modified.startLineNumber),ta=Math.max(dn.original.startLineNumber-Rr.original.startLineNumber,dn.modified.startLineNumber-fi.modified.startLineNumber),Zn=Xt.findLastMonotonous(Uo=>Uo.original.startLineNumber<dn.original.endLineNumberExclusive),In=AI(m,Uo=>Uo.modified.startLineNumber<dn.modified.endLineNumberExclusive),Yr=Math.max(Zn.original.endLineNumberExclusive-dn.original.endLineNumberExclusive,In.modified.endLineNumberExclusive-dn.modified.endLineNumberExclusive);let mi;for(mi=0;mi<ta;mi++){const Uo=dn.original.startLineNumber-mi-1,Ur=dn.modified.startLineNumber-mi-1;if(Uo>P.length||Ur>X.length||Le.contains(Ur)||Je.contains(Uo)||!Ece(P[Uo-1],X[Ur-1],_e))break}mi>0&&(Je.addRange(new Bl(dn.original.startLineNumber-mi,dn.original.startLineNumber)),Le.addRange(new Bl(dn.modified.startLineNumber-mi,dn.modified.startLineNumber)));let ji;for(ji=0;ji<Yr;ji++){const Uo=dn.original.endLineNumberExclusive+ji,Ur=dn.modified.endLineNumberExclusive+ji;if(Uo>P.length||Ur>X.length||Le.contains(Ur)||Je.contains(Uo)||!Ece(P[Uo-1],X[Ur-1],_e))break}ji>0&&(Je.addRange(new Bl(dn.original.endLineNumberExclusive,dn.original.endLineNumberExclusive+ji)),Le.addRange(new Bl(dn.modified.endLineNumberExclusive,dn.modified.endLineNumberExclusive+ji))),(mi>0||ji>0)&&(ve[Jt]=new Y0(new Bl(dn.original.startLineNumber-mi,dn.original.endLineNumberExclusive+ji),new Bl(dn.modified.startLineNumber-mi,dn.modified.endLineNumberExclusive+ji)))}return ve}function Ece(m,g,S){if(m.trim()===g.trim())return!0;if(m.length>300&&g.length>300)return!1;const X=new gce().compute(new cM([m],new Kl(0,1),!1),new cM([g],new Kl(0,1),!1),S);let _e=0;const ve=uf.invert(X.diffs,m.length);for(const Je of ve)Je.seq1Range.forEach(Xt=>{cH(m.charCodeAt(Xt))||_e++});function Be(Je){let Xt=0;for(let Jt=0;Jt<m.length;Jt++)cH(Je.charCodeAt(Jt))||Xt++;return Xt}const ct=Be(m.length>g.length?m:g);return _e/ct>.6&&ct>10}function Q8e(m){if(m.length===0)return m;m.sort(tM(S=>S.original.startLineNumber,nM));const g=[m[0]];for(let S=1;S<m.length;S++){const P=g[g.length-1],X=m[S],_e=X.original.startLineNumber-P.original.endLineNumberExclusive,ve=X.modified.startLineNumber-P.modified.endLineNumberExclusive;if(_e>=0&&ve>=0&&_e+ve<=2){g[g.length-1]=P.join(X);continue}g.push(X)}return g}function Z8e(m,g){const S=new TR(m);return g=g.filter(P=>{const X=S.findLastMonotonous(Be=>Be.original.startLineNumber<P.original.endLineNumberExclusive)||new Y0(new Bl(1,1),new Bl(1,1)),_e=AI(m,Be=>Be.modified.startLineNumber<P.modified.endLineNumberExclusive);return X!==_e}),g}function Tce(m,g,S){let P=S;return P=Sce(m,g,P),P=Sce(m,g,P),P=e6e(m,g,P),P}function Sce(m,g,S){if(S.length===0)return S;const P=[];P.push(S[0]);for(let _e=1;_e<S.length;_e++){const ve=P[P.length-1];let Be=S[_e];if(Be.seq1Range.isEmpty||Be.seq2Range.isEmpty){const ct=Be.seq1Range.start-ve.seq1Range.endExclusive;let Le;for(Le=1;Le<=ct&&!(m.getElement(Be.seq1Range.start-Le)!==m.getElement(Be.seq1Range.endExclusive-Le)||g.getElement(Be.seq2Range.start-Le)!==g.getElement(Be.seq2Range.endExclusive-Le));Le++);if(Le--,Le===ct){P[P.length-1]=new uf(new Kl(ve.seq1Range.start,Be.seq1Range.endExclusive-ct),new Kl(ve.seq2Range.start,Be.seq2Range.endExclusive-ct));continue}Be=Be.delta(-Le)}P.push(Be)}const X=[];for(let _e=0;_e<P.length-1;_e++){const ve=P[_e+1];let Be=P[_e];if(Be.seq1Range.isEmpty||Be.seq2Range.isEmpty){const ct=ve.seq1Range.start-Be.seq1Range.endExclusive;let Le;for(Le=0;Le<ct&&!(!m.isStronglyEqual(Be.seq1Range.start+Le,Be.seq1Range.endExclusive+Le)||!g.isStronglyEqual(Be.seq2Range.start+Le,Be.seq2Range.endExclusive+Le));Le++);if(Le===ct){P[_e+1]=new uf(new Kl(Be.seq1Range.start+ct,ve.seq1Range.endExclusive),new Kl(Be.seq2Range.start+ct,ve.seq2Range.endExclusive));continue}Le>0&&(Be=Be.delta(Le))}X.push(Be)}return P.length>0&&X.push(P[P.length-1]),X}function e6e(m,g,S){if(!m.getBoundaryScore||!g.getBoundaryScore)return S;for(let P=0;P<S.length;P++){const X=P>0?S[P-1]:void 0,_e=S[P],ve=P+1<S.length?S[P+1]:void 0,Be=new Kl(X?X.seq1Range.endExclusive+1:0,ve?ve.seq1Range.start-1:m.length),ct=new Kl(X?X.seq2Range.endExclusive+1:0,ve?ve.seq2Range.start-1:g.length);_e.seq1Range.isEmpty?S[P]=xce(_e,m,g,Be,ct):_e.seq2Range.isEmpty&&(S[P]=xce(_e.swap(),g,m,ct,Be).swap())}return S}function xce(m,g,S,P,X){let ve=1;for(;m.seq1Range.start-ve>=P.start&&m.seq2Range.start-ve>=X.start&&S.isStronglyEqual(m.seq2Range.start-ve,m.seq2Range.endExclusive-ve)&&ve<100;)ve++;ve--;let Be=0;for(;m.seq1Range.start+Be<P.endExclusive&&m.seq2Range.endExclusive+Be<X.endExclusive&&S.isStronglyEqual(m.seq2Range.start+Be,m.seq2Range.endExclusive+Be)&&Be<100;)Be++;if(ve===0&&Be===0)return m;let ct=0,Le=-1;for(let Je=-ve;Je<=Be;Je++){const Xt=m.seq2Range.start+Je,Jt=m.seq2Range.endExclusive+Je,dn=m.seq1Range.start+Je,Rr=g.getBoundaryScore(dn)+S.getBoundaryScore(Xt)+S.getBoundaryScore(Jt);Rr>Le&&(Le=Rr,ct=Je)}return m.delta(ct)}function t6e(m,g,S){const P=[];for(const X of S){const _e=P[P.length-1];if(!_e){P.push(X);continue}X.seq1Range.start-_e.seq1Range.endExclusive<=2||X.seq2Range.start-_e.seq2Range.endExclusive<=2?P[P.length-1]=new uf(_e.seq1Range.join(X.seq1Range),_e.seq2Range.join(X.seq2Range)):P.push(X)}return P}function n6e(m,g,S){const P=uf.invert(S,m.length),X=[];let _e=new gy(0,0);function ve(ct,Le){if(ct.offset1<_e.offset1||ct.offset2<_e.offset2)return;const Je=m.findWordContaining(ct.offset1),Xt=g.findWordContaining(ct.offset2);if(!Je||!Xt)return;let Jt=new uf(Je,Xt);const dn=Jt.intersect(Le);let Rr=dn.seq1Range.length,fi=dn.seq2Range.length;for(;P.length>0;){const ta=P[0];if(!(ta.seq1Range.intersects(Jt.seq1Range)||ta.seq2Range.intersects(Jt.seq2Range)))break;const In=m.findWordContaining(ta.seq1Range.start),Yr=g.findWordContaining(ta.seq2Range.start),mi=new uf(In,Yr),ji=mi.intersect(ta);if(Rr+=ji.seq1Range.length,fi+=ji.seq2Range.length,Jt=Jt.join(mi),Jt.seq1Range.endExclusive>=ta.seq1Range.endExclusive)P.shift();else break}Rr+fi<(Jt.seq1Range.length+Jt.seq2Range.length)*2/3&&X.push(Jt),_e=Jt.getEndExclusives()}for(;P.length>0;){const ct=P.shift();ct.seq1Range.isEmpty||(ve(ct.getStarts(),ct),ve(ct.getEndExclusives().delta(-1),ct))}return r6e(S,X)}function r6e(m,g){const S=[];for(;m.length>0||g.length>0;){const P=m[0],X=g[0];let _e;P&&(!X||P.seq1Range.start<X.seq1Range.start)?_e=m.shift():_e=g.shift(),S.length>0&&S[S.length-1].seq1Range.endExclusive>=_e.seq1Range.start?S[S.length-1]=S[S.length-1].join(_e):S.push(_e)}return S}function i6e(m,g,S){let P=S;if(P.length===0)return P;let X=0,_e;do{_e=!1;const ve=[P[0]];for(let Be=1;Be<P.length;Be++){let Je=function(Jt,dn){const Rr=new Kl(Le.seq1Range.endExclusive,ct.seq1Range.start);return m.getText(Rr).replace(/\s/g,"").length<=4&&(Jt.seq1Range.length+Jt.seq2Range.length>5||dn.seq1Range.length+dn.seq2Range.length>5)};const ct=P[Be],Le=ve[ve.length-1];Je(Le,ct)?(_e=!0,ve[ve.length-1]=ve[ve.length-1].join(ct)):ve.push(ct)}P=ve}while(X++<10&&_e);return P}function a6e(m,g,S){let P=S;if(P.length===0)return P;let X=0,_e;do{_e=!1;const Be=[P[0]];for(let ct=1;ct<P.length;ct++){let Xt=function(dn,Rr){const fi=new Kl(Je.seq1Range.endExclusive,Le.seq1Range.start);if(m.countLinesIn(fi)>5||fi.length>500)return!1;const Zn=m.getText(fi).trim();if(Zn.length>20||Zn.split(/\r\n|\r|\n/).length>1)return!1;const In=m.countLinesIn(dn.seq1Range),Yr=dn.seq1Range.length,mi=g.countLinesIn(dn.seq2Range),ji=dn.seq2Range.length,Uo=m.countLinesIn(Rr.seq1Range),Ur=Rr.seq1Range.length,Oo=g.countLinesIn(Rr.seq2Range),mc=Rr.seq2Range.length,Wc=2*40+50;function yn(ni){return Math.min(ni,Wc)}return Math.pow(Math.pow(yn(In*40+Yr),1.5)+Math.pow(yn(mi*40+ji),1.5),1.5)+Math.pow(Math.pow(yn(Uo*40+Ur),1.5)+Math.pow(yn(Oo*40+mc),1.5),1.5)>q4(q4(Wc,1.5),1.5)*1.3};const Le=P[ct],Je=Be[Be.length-1];Xt(Je,Le)?(_e=!0,Be[Be.length-1]=Be[Be.length-1].join(Le)):Be.push(Le)}P=Be}while(X++<10&&_e);const ve=[];return ZOe(P,(Be,ct,Le)=>{let Je=ct;function Xt(Zn){return Zn.length>0&&Zn.trim().length<=3&&ct.seq1Range.length+ct.seq2Range.length>100}const Jt=m.extendToFullLines(ct.seq1Range),dn=m.getText(new Kl(Jt.start,ct.seq1Range.start));Xt(dn)&&(Je=Je.deltaStart(-dn.length));const Rr=m.getText(new Kl(ct.seq1Range.endExclusive,Jt.endExclusive));Xt(Rr)&&(Je=Je.deltaEnd(Rr.length));const fi=uf.fromOffsetPairs(Be?Be.getEndExclusives():gy.zero,Le?Le.getStarts():gy.max),ta=Je.intersect(fi);ve.length>0&&ta.getStarts().equals(ve[ve.length-1].getEndExclusives())?ve[ve.length-1]=ve[ve.length-1].join(ta):ve.push(ta)}),ve}class Ace{constructor(g,S){this.trimmedHash=g,this.lines=S}getElement(g){return this.trimmedHash[g]}get length(){return this.trimmedHash.length}getBoundaryScore(g){const S=g===0?0:Cce(this.lines[g-1]),P=g===this.lines.length?0:Cce(this.lines[g]);return 1e3-(S+P)}getText(g){return this.lines.slice(g.start,g.endExclusive).join(`
- `)}isStronglyEqual(g,S){return this.lines[g]===this.lines[S]}}function Cce(m){let g=0;for(;g<m.length&&(m.charCodeAt(g)===32||m.charCodeAt(g)===9);)g++;return g}class o6e{constructor(){this.dynamicProgrammingDiffing=new W8e,this.myersDiffingAlgorithm=new gce}computeDiff(g,S,P){if(g.length<=1&&YOe(g,S,(ji,Uo)=>ji===Uo))return new lM([],[],!1);if(g.length===1&&g[0].length===0||S.length===1&&S[0].length===0)return new lM([new cT(new Bl(1,g.length+1),new Bl(1,S.length+1),[new tx(new ol(1,1,g.length,g[g.length-1].length+1),new ol(1,1,S.length,S[S.length-1].length+1))])],[],!1);const X=P.maxComputationTimeMs===0?xR.instance:new H8e(P.maxComputationTimeMs),_e=!P.ignoreTrimWhitespace,ve=new Map;function Be(ji){let Uo=ve.get(ji);return Uo===void 0&&(Uo=ve.size,ve.set(ji,Uo)),Uo}const ct=g.map(ji=>Be(ji.trim())),Le=S.map(ji=>Be(ji.trim())),Je=new Ace(ct,g),Xt=new Ace(Le,S),Jt=(()=>Je.length+Xt.length<1700?this.dynamicProgrammingDiffing.compute(Je,Xt,X,(ji,Uo)=>g[ji]===S[Uo]?S[Uo].length===0?.1:1+Math.log(1+S[Uo].length):.99):this.myersDiffingAlgorithm.compute(Je,Xt))();let dn=Jt.diffs,Rr=Jt.hitTimeout;dn=Tce(Je,Xt,dn),dn=i6e(Je,Xt,dn);const fi=[],ta=ji=>{if(_e)for(let Uo=0;Uo<ji;Uo++){const Ur=Zn+Uo,Oo=In+Uo;if(g[Ur]!==S[Oo]){const mc=this.refineDiff(g,S,new uf(new Kl(Ur,Ur+1),new Kl(Oo,Oo+1)),X,_e);for(const Wc of mc.mappings)fi.push(Wc);mc.hitTimeout&&(Rr=!0)}}};let Zn=0,In=0;for(const ji of dn){sM(()=>ji.seq1Range.start-Zn===ji.seq2Range.start-In);const Uo=ji.seq1Range.start-Zn;ta(Uo),Zn=ji.seq1Range.endExclusive,In=ji.seq2Range.endExclusive;const Ur=this.refineDiff(g,S,ji,X,_e);Ur.hitTimeout&&(Rr=!0);for(const Oo of Ur.mappings)fi.push(Oo)}ta(g.length-Zn);const Yr=Lce(fi,g,S);let mi=[];return P.computeMoves&&(mi=this.computeMoves(Yr,g,S,ct,Le,X,_e)),sM(()=>{function ji(Ur,Oo){if(Ur.lineNumber<1||Ur.lineNumber>Oo.length)return!1;const mc=Oo[Ur.lineNumber-1];return!(Ur.column<1||Ur.column>mc.length+1)}function Uo(Ur,Oo){return!(Ur.startLineNumber<1||Ur.startLineNumber>Oo.length+1||Ur.endLineNumberExclusive<1||Ur.endLineNumberExclusive>Oo.length+1)}for(const Ur of Yr){if(!Ur.innerChanges)return!1;for(const Oo of Ur.innerChanges)if(!(ji(Oo.modifiedRange.getStartPosition(),S)&&ji(Oo.modifiedRange.getEndPosition(),S)&&ji(Oo.originalRange.getStartPosition(),g)&&ji(Oo.originalRange.getEndPosition(),g)))return!1;if(!Uo(Ur.modified,S)||!Uo(Ur.original,g))return!1}return!0}),new lM(Yr,mi,Rr)}computeMoves(g,S,P,X,_e,ve,Be){return K8e(g,S,P,X,_e,ve).map(Je=>{const Xt=this.refineDiff(S,P,new uf(Je.original.toOffsetRange(),Je.modified.toOffsetRange()),ve,Be),Jt=Lce(Xt.mappings,S,P,!0);return new P8e(Je,Jt)})}refineDiff(g,S,P,X,_e){const ve=new cM(g,P.seq1Range,_e),Be=new cM(S,P.seq2Range,_e),ct=ve.length+Be.length<500?this.dynamicProgrammingDiffing.compute(ve,Be,X):this.myersDiffingAlgorithm.compute(ve,Be,X);let Le=ct.diffs;return Le=Tce(ve,Be,Le),Le=n6e(ve,Be,Le),Le=t6e(ve,Be,Le),Le=a6e(ve,Be,Le),{mappings:Le.map(Xt=>new tx(ve.translateRange(Xt.seq1Range),Be.translateRange(Xt.seq2Range))),hitTimeout:ct.hitTimeout}}}function Lce(m,g,S,P=!1){const X=[];for(const _e of $Oe(m.map(ve=>s6e(ve,g,S)),(ve,Be)=>ve.original.overlapOrTouch(Be.original)||ve.modified.overlapOrTouch(Be.modified))){const ve=_e[0],Be=_e[_e.length-1];X.push(new cT(ve.original.join(Be.original),ve.modified.join(Be.modified),_e.map(ct=>ct.innerChanges[0])))}return sM(()=>!P&&X.length>0&&(X[0].modified.startLineNumber!==X[0].original.startLineNumber||S.length-X[X.length-1].modified.endLineNumberExclusive!==g.length-X[X.length-1].original.endLineNumberExclusive)?!1:dce(X,(_e,ve)=>ve.original.startLineNumber-_e.original.endLineNumberExclusive===ve.modified.startLineNumber-_e.modified.endLineNumberExclusive&&_e.original.endLineNumberExclusive<ve.original.startLineNumber&&_e.modified.endLineNumberExclusive<ve.modified.startLineNumber)),X}function s6e(m,g,S){let P=0,X=0;m.modifiedRange.endColumn===1&&m.originalRange.endColumn===1&&m.originalRange.startLineNumber+P<=m.originalRange.endLineNumber&&m.modifiedRange.startLineNumber+P<=m.modifiedRange.endLineNumber&&(X=-1),m.modifiedRange.startColumn-1>=S[m.modifiedRange.startLineNumber-1].length&&m.originalRange.startColumn-1>=g[m.originalRange.startLineNumber-1].length&&m.originalRange.startLineNumber<=m.originalRange.endLineNumber+X&&m.modifiedRange.startLineNumber<=m.modifiedRange.endLineNumber+X&&(P=1);const _e=new Bl(m.originalRange.startLineNumber+P,m.originalRange.endLineNumber+1+X),ve=new Bl(m.modifiedRange.startLineNumber+P,m.modifiedRange.endLineNumber+1+X);return new cT(_e,ve,[m])}const Ice={getLegacy:()=>new G8e,getDefault:()=>new o6e};function nx(m,g){const S=Math.pow(10,g);return Math.round(m*S)/S}class U_{constructor(g,S,P,X=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,g))|0,this.g=Math.min(255,Math.max(0,S))|0,this.b=Math.min(255,Math.max(0,P))|0,this.a=nx(Math.max(Math.min(1,X),0),3)}static equals(g,S){return g.r===S.r&&g.g===S.g&&g.b===S.b&&g.a===S.a}}class Lv{constructor(g,S,P,X){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,g),0)|0,this.s=nx(Math.max(Math.min(1,S),0),3),this.l=nx(Math.max(Math.min(1,P),0),3),this.a=nx(Math.max(Math.min(1,X),0),3)}static equals(g,S){return g.h===S.h&&g.s===S.s&&g.l===S.l&&g.a===S.a}static fromRGBA(g){const S=g.r/255,P=g.g/255,X=g.b/255,_e=g.a,ve=Math.max(S,P,X),Be=Math.min(S,P,X);let ct=0,Le=0;const Je=(Be+ve)/2,Xt=ve-Be;if(Xt>0){switch(Le=Math.min(Je<=.5?Xt/(2*Je):Xt/(2-2*Je),1),ve){case S:ct=(P-X)/Xt+(P<X?6:0);break;case P:ct=(X-S)/Xt+2;break;case X:ct=(S-P)/Xt+4;break}ct*=60,ct=Math.round(ct)}return new Lv(ct,Le,Je,_e)}static _hue2rgb(g,S,P){return P<0&&(P+=1),P>1&&(P-=1),P<1/6?g+(S-g)*6*P:P<1/2?S:P<2/3?g+(S-g)*(2/3-P)*6:g}static toRGBA(g){const S=g.h/360,{s:P,l:X,a:_e}=g;let ve,Be,ct;if(P===0)ve=Be=ct=X;else{const Le=X<.5?X*(1+P):X+P-X*P,Je=2*X-Le;ve=Lv._hue2rgb(Je,Le,S+1/3),Be=Lv._hue2rgb(Je,Le,S),ct=Lv._hue2rgb(Je,Le,S-1/3)}return new U_(Math.round(ve*255),Math.round(Be*255),Math.round(ct*255),_e)}}class II{constructor(g,S,P,X){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,g),0)|0,this.s=nx(Math.max(Math.min(1,S),0),3),this.v=nx(Math.max(Math.min(1,P),0),3),this.a=nx(Math.max(Math.min(1,X),0),3)}static equals(g,S){return g.h===S.h&&g.s===S.s&&g.v===S.v&&g.a===S.a}static fromRGBA(g){const S=g.r/255,P=g.g/255,X=g.b/255,_e=Math.max(S,P,X),ve=Math.min(S,P,X),Be=_e-ve,ct=_e===0?0:Be/_e;let Le;return Be===0?Le=0:_e===S?Le=((P-X)/Be%6+6)%6:_e===P?Le=(X-S)/Be+2:Le=(S-P)/Be+4,new II(Math.round(Le*60),ct,_e,g.a)}static toRGBA(g){const{h:S,s:P,v:X,a:_e}=g,ve=X*P,Be=ve*(1-Math.abs(S/60%2-1)),ct=X-ve;let[Le,Je,Xt]=[0,0,0];return S<60?(Le=ve,Je=Be):S<120?(Le=Be,Je=ve):S<180?(Je=ve,Xt=Be):S<240?(Je=Be,Xt=ve):S<300?(Le=Be,Xt=ve):S<=360&&(Le=ve,Xt=Be),Le=Math.round((Le+ct)*255),Je=Math.round((Je+ct)*255),Xt=Math.round((Xt+ct)*255),new U_(Le,Je,Xt,_e)}}class Hc{static fromHex(g){return Hc.Format.CSS.parseHex(g)||Hc.red}static equals(g,S){return!g&&!S?!0:!g||!S?!1:g.equals(S)}get hsla(){return this._hsla?this._hsla:Lv.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:II.fromRGBA(this.rgba)}constructor(g){if(g)if(g instanceof U_)this.rgba=g;else if(g instanceof Lv)this._hsla=g,this.rgba=Lv.toRGBA(g);else if(g instanceof II)this._hsva=g,this.rgba=II.toRGBA(g);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(g){return!!g&&U_.equals(this.rgba,g.rgba)&&Lv.equals(this.hsla,g.hsla)&&II.equals(this.hsva,g.hsva)}getRelativeLuminance(){const g=Hc._relativeLuminanceForComponent(this.rgba.r),S=Hc._relativeLuminanceForComponent(this.rgba.g),P=Hc._relativeLuminanceForComponent(this.rgba.b),X=.2126*g+.7152*S+.0722*P;return nx(X,4)}static _relativeLuminanceForComponent(g){const S=g/255;return S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(g){const S=this.getRelativeLuminance(),P=g.getRelativeLuminance();return S>P}isDarkerThan(g){const S=this.getRelativeLuminance(),P=g.getRelativeLuminance();return S<P}lighten(g){return new Hc(new Lv(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*g,this.hsla.a))}darken(g){return new Hc(new Lv(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*g,this.hsla.a))}transparent(g){const{r:S,g:P,b:X,a:_e}=this.rgba;return new Hc(new U_(S,P,X,_e*g))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Hc(new U_(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(g){if(this.isOpaque()||g.rgba.a!==1)return this;const{r:S,g:P,b:X,a:_e}=this.rgba;return new Hc(new U_(g.rgba.r-_e*(g.rgba.r-S),g.rgba.g-_e*(g.rgba.g-P),g.rgba.b-_e*(g.rgba.b-X),1))}toString(){return this._toString||(this._toString=Hc.Format.CSS.format(this)),this._toString}static getLighterColor(g,S,P){if(g.isLighterThan(S))return g;P=P||.5;const X=g.getRelativeLuminance(),_e=S.getRelativeLuminance();return P=P*(_e-X)/_e,g.lighten(P)}static getDarkerColor(g,S,P){if(g.isDarkerThan(S))return g;P=P||.5;const X=g.getRelativeLuminance(),_e=S.getRelativeLuminance();return P=P*(X-_e)/X,g.darken(P)}}Hc.white=new Hc(new U_(255,255,255,1)),Hc.black=new Hc(new U_(0,0,0,1)),Hc.red=new Hc(new U_(255,0,0,1)),Hc.blue=new Hc(new U_(0,0,255,1)),Hc.green=new Hc(new U_(0,255,0,1)),Hc.cyan=new Hc(new U_(0,255,255,1)),Hc.lightgrey=new Hc(new U_(211,211,211,1)),Hc.transparent=new Hc(new U_(0,0,0,0)),function(m){(function(g){(function(S){function P(dn){return dn.rgba.a===1?`rgb(${dn.rgba.r}, ${dn.rgba.g}, ${dn.rgba.b})`:m.Format.CSS.formatRGBA(dn)}S.formatRGB=P;function X(dn){return`rgba(${dn.rgba.r}, ${dn.rgba.g}, ${dn.rgba.b}, ${+dn.rgba.a.toFixed(2)})`}S.formatRGBA=X;function _e(dn){return dn.hsla.a===1?`hsl(${dn.hsla.h}, ${(dn.hsla.s*100).toFixed(2)}%, ${(dn.hsla.l*100).toFixed(2)}%)`:m.Format.CSS.formatHSLA(dn)}S.formatHSL=_e;function ve(dn){return`hsla(${dn.hsla.h}, ${(dn.hsla.s*100).toFixed(2)}%, ${(dn.hsla.l*100).toFixed(2)}%, ${dn.hsla.a.toFixed(2)})`}S.formatHSLA=ve;function Be(dn){const Rr=dn.toString(16);return Rr.length!==2?"0"+Rr:Rr}function ct(dn){return`#${Be(dn.rgba.r)}${Be(dn.rgba.g)}${Be(dn.rgba.b)}`}S.formatHex=ct;function Le(dn,Rr=!1){return Rr&&dn.rgba.a===1?m.Format.CSS.formatHex(dn):`#${Be(dn.rgba.r)}${Be(dn.rgba.g)}${Be(dn.rgba.b)}${Be(Math.round(dn.rgba.a*255))}`}S.formatHexA=Le;function Je(dn){return dn.isOpaque()?m.Format.CSS.formatHex(dn):m.Format.CSS.formatRGBA(dn)}S.format=Je;function Xt(dn){const Rr=dn.length;if(Rr===0||dn.charCodeAt(0)!==35)return null;if(Rr===7){const fi=16*Jt(dn.charCodeAt(1))+Jt(dn.charCodeAt(2)),ta=16*Jt(dn.charCodeAt(3))+Jt(dn.charCodeAt(4)),Zn=16*Jt(dn.charCodeAt(5))+Jt(dn.charCodeAt(6));return new m(new U_(fi,ta,Zn,1))}if(Rr===9){const fi=16*Jt(dn.charCodeAt(1))+Jt(dn.charCodeAt(2)),ta=16*Jt(dn.charCodeAt(3))+Jt(dn.charCodeAt(4)),Zn=16*Jt(dn.charCodeAt(5))+Jt(dn.charCodeAt(6)),In=16*Jt(dn.charCodeAt(7))+Jt(dn.charCodeAt(8));return new m(new U_(fi,ta,Zn,In/255))}if(Rr===4){const fi=Jt(dn.charCodeAt(1)),ta=Jt(dn.charCodeAt(2)),Zn=Jt(dn.charCodeAt(3));return new m(new U_(16*fi+fi,16*ta+ta,16*Zn+Zn))}if(Rr===5){const fi=Jt(dn.charCodeAt(1)),ta=Jt(dn.charCodeAt(2)),Zn=Jt(dn.charCodeAt(3)),In=Jt(dn.charCodeAt(4));return new m(new U_(16*fi+fi,16*ta+ta,16*Zn+Zn,(16*In+In)/255))}return null}S.parseHex=Xt;function Jt(dn){switch(dn){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(g.CSS||(g.CSS={}))})(m.Format||(m.Format={}))}(Hc||(Hc={}));function kce(m){const g=[];for(const S of m){const P=Number(S);(P||P===0&&S.replace(/\s/g,"")!=="")&&g.push(P)}return g}function dH(m,g,S,P){return{red:m/255,blue:S/255,green:g/255,alpha:P}}function AR(m,g){const S=g.index,P=g[0].length;if(!S)return;const X=m.positionAt(S);return{startLineNumber:X.lineNumber,startColumn:X.column,endLineNumber:X.lineNumber,endColumn:X.column+P}}function l6e(m,g){if(!m)return;const S=Hc.Format.CSS.parseHex(g);if(S)return{range:m,color:dH(S.rgba.r,S.rgba.g,S.rgba.b,S.rgba.a)}}function wce(m,g,S){if(!m||g.length!==1)return;const X=g[0].values(),_e=kce(X);return{range:m,color:dH(_e[0],_e[1],_e[2],S?_e[3]:1)}}function Dce(m,g,S){if(!m||g.length!==1)return;const X=g[0].values(),_e=kce(X),ve=new Hc(new Lv(_e[0],_e[1]/100,_e[2]/100,S?_e[3]:1));return{range:m,color:dH(ve.rgba.r,ve.rgba.g,ve.rgba.b,ve.rgba.a)}}function CR(m,g){return typeof m=="string"?[...m.matchAll(g)]:m.findMatches(g)}function c6e(m){const g=[],P=CR(m,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(P.length>0)for(const X of P){const _e=X.filter(Le=>Le!==void 0),ve=_e[1],Be=_e[2];if(!Be)continue;let ct;if(ve==="rgb"){const Le=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;ct=wce(AR(m,X),CR(Be,Le),!1)}else if(ve==="rgba"){const Le=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;ct=wce(AR(m,X),CR(Be,Le),!0)}else if(ve==="hsl"){const Le=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;ct=Dce(AR(m,X),CR(Be,Le),!1)}else if(ve==="hsla"){const Le=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;ct=Dce(AR(m,X),CR(Be,Le),!0)}else ve==="#"&&(ct=l6e(AR(m,X),ve+Be));ct&&g.push(ct)}return g}function u6e(m){return!m||typeof m.getValue!="function"||typeof m.positionAt!="function"?[]:c6e(m)}const Rce=new RegExp("\\bMARK:\\s*(.*)$","d"),d6e=/^-+|-+$/g;function f6e(m,g){var S;let P=[];if(g.findRegionSectionHeaders&&(!((S=g.foldingRules)===null||S===void 0)&&S.markers)){const X=_6e(m,g);P=P.concat(X)}if(g.findMarkSectionHeaders){const X=p6e(m);P=P.concat(X)}return P}function _6e(m,g){const S=[],P=m.getLineCount();for(let X=1;X<=P;X++){const _e=m.getLineContent(X),ve=_e.match(g.foldingRules.markers.start);if(ve){const Be={startLineNumber:X,startColumn:ve[0].length+1,endLineNumber:X,endColumn:_e.length+1};if(Be.endColumn>Be.startColumn){const ct=Ka(Ti({range:Be},Nce(_e.substring(ve[0].length))),{shouldBeInComments:!1});(ct.text||ct.hasSeparatorLine)&&S.push(ct)}}}return S}function p6e(m){const g=[],S=m.getLineCount();for(let P=1;P<=S;P++){const X=m.getLineContent(P);m6e(X,P,g)}return g}function m6e(m,g,S){Rce.lastIndex=0;const P=Rce.exec(m);if(P){const X=P.indices[1][0]+1,_e=P.indices[1][1]+1,ve={startLineNumber:g,startColumn:X,endLineNumber:g,endColumn:_e};if(ve.endColumn>ve.startColumn){const Be=Ka(Ti({range:ve},Nce(P[1])),{shouldBeInComments:!0});(Be.text||Be.hasSeparatorLine)&&S.push(Be)}}}function Nce(m){m=m.trim();const g=m.startsWith("-");return m=m.replace(d6e,""),{text:m,hasSeparatorLine:g}}class h6e extends i8e{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(g){const S=[];for(let P=0;P<this._lines.length;P++){const X=this._lines[P],_e=this.offsetAt(new Qp(P+1,1)),ve=X.matchAll(g);for(const Be of ve)(Be.index||Be.index===0)&&(Be.index=Be.index+_e),S.push(Be)}return S}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(g){return this._lines[g-1]}getWordAtPosition(g,S){const P=Kj(g.column,nle(S),this._lines[g.lineNumber-1],0);return P?new ol(g.lineNumber,P.startColumn,g.lineNumber,P.endColumn):null}words(g){const S=this._lines,P=this._wordenize.bind(this);let X=0,_e="",ve=0,Be=[];return{*[Symbol.iterator](){for(;;)if(ve<Be.length){const ct=_e.substring(Be[ve].start,Be[ve].end);ve+=1,yield ct}else if(X<S.length)_e=S[X],Be=P(_e,g),ve=0,X+=1;else break}}}getLineWords(g,S){const P=this._lines[g-1],X=this._wordenize(P,S),_e=[];for(const ve of X)_e.push({word:P.substring(ve.start,ve.end),startColumn:ve.start+1,endColumn:ve.end+1});return _e}_wordenize(g,S){const P=[];let X;for(S.lastIndex=0;(X=S.exec(g))&&X[0].length!==0;)P.push({start:X.index,end:X.index+X[0].length});return P}getValueInRange(g){if(g=this._validateRange(g),g.startLineNumber===g.endLineNumber)return this._lines[g.startLineNumber-1].substring(g.startColumn-1,g.endColumn-1);const S=this._eol,P=g.startLineNumber-1,X=g.endLineNumber-1,_e=[];_e.push(this._lines[P].substring(g.startColumn-1));for(let ve=P+1;ve<X;ve++)_e.push(this._lines[ve]);return _e.push(this._lines[X].substring(0,g.endColumn-1)),_e.join(S)}offsetAt(g){return g=this._validatePosition(g),this._ensureLineStarts(),this._lineStarts.getPrefixSum(g.lineNumber-2)+(g.column-1)}positionAt(g){g=Math.floor(g),g=Math.max(0,g),this._ensureLineStarts();const S=this._lineStarts.getIndexOf(g),P=this._lines[S.index].length;return{lineNumber:1+S.index,column:1+Math.min(S.remainder,P)}}_validateRange(g){const S=this._validatePosition({lineNumber:g.startLineNumber,column:g.startColumn}),P=this._validatePosition({lineNumber:g.endLineNumber,column:g.endColumn});return S.lineNumber!==g.startLineNumber||S.column!==g.startColumn||P.lineNumber!==g.endLineNumber||P.column!==g.endColumn?{startLineNumber:S.lineNumber,startColumn:S.column,endLineNumber:P.lineNumber,endColumn:P.column}:g}_validatePosition(g){if(!Qp.isIPosition(g))throw new Error("bad position");let{lineNumber:S,column:P}=g,X=!1;if(S<1)S=1,P=1,X=!0;else if(S>this._lines.length)S=this._lines.length,P=this._lines[S-1].length+1,X=!0;else{const _e=this._lines[S-1].length+1;P<1?(P=1,X=!0):P>_e&&(P=_e,X=!0)}return X?{lineNumber:S,column:P}:g}}class kA{constructor(g,S){this._host=g,this._models=Object.create(null),this._foreignModuleFactory=S,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(g){return this._models[g]}_getModels(){const g=[];return Object.keys(this._models).forEach(S=>g.push(this._models[S])),g}acceptNewModel(g){this._models[g.url]=new h6e(IA.parse(g.url),g.lines,g.EOL,g.versionId)}acceptModelChanged(g,S){if(!this._models[g])return;this._models[g].onEvents(S)}acceptRemovedModel(g){this._models[g]&&delete this._models[g]}computeUnicodeHighlights(g,S,P){return pc(this,null,function*(){const X=this._getModel(g);return X?N8e.computeUnicodeHighlights(X,S,P):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}findSectionHeaders(g,S){return pc(this,null,function*(){const P=this._getModel(g);return P?f6e(P,S):[]})}computeDiff(g,S,P,X){return pc(this,null,function*(){const _e=this._getModel(g),ve=this._getModel(S);return!_e||!ve?null:kA.computeDiff(_e,ve,P,X)})}static computeDiff(g,S,P,X){const _e=X==="advanced"?Ice.getDefault():Ice.getLegacy(),ve=g.getLinesContent(),Be=S.getLinesContent(),ct=_e.computeDiff(ve,Be,P),Le=ct.changes.length>0?!1:this._modelsAreIdentical(g,S);function Je(Xt){return Xt.map(Jt=>{var dn;return[Jt.original.startLineNumber,Jt.original.endLineNumberExclusive,Jt.modified.startLineNumber,Jt.modified.endLineNumberExclusive,(dn=Jt.innerChanges)===null||dn===void 0?void 0:dn.map(Rr=>[Rr.originalRange.startLineNumber,Rr.originalRange.startColumn,Rr.originalRange.endLineNumber,Rr.originalRange.endColumn,Rr.modifiedRange.startLineNumber,Rr.modifiedRange.startColumn,Rr.modifiedRange.endLineNumber,Rr.modifiedRange.endColumn])]})}return{identical:Le,quitEarly:ct.hitTimeout,changes:Je(ct.changes),moves:ct.moves.map(Xt=>[Xt.lineRangeMapping.original.startLineNumber,Xt.lineRangeMapping.original.endLineNumberExclusive,Xt.lineRangeMapping.modified.startLineNumber,Xt.lineRangeMapping.modified.endLineNumberExclusive,Je(Xt.changes)])}}static _modelsAreIdentical(g,S){const P=g.getLineCount(),X=S.getLineCount();if(P!==X)return!1;for(let _e=1;_e<=P;_e++){const ve=g.getLineContent(_e),Be=S.getLineContent(_e);if(ve!==Be)return!1}return!0}computeMoreMinimalEdits(g,S,P){return pc(this,null,function*(){const X=this._getModel(g);if(!X)return S;const _e=[];let ve;S=S.slice(0).sort((ct,Le)=>{if(ct.range&&Le.range)return ol.compareRangesUsingStarts(ct.range,Le.range);const Je=ct.range?0:1,Xt=Le.range?0:1;return Je-Xt});let Be=0;for(let ct=1;ct<S.length;ct++)ol.getEndPosition(S[Be].range).equals(ol.getStartPosition(S[ct].range))?(S[Be].range=ol.fromPositions(ol.getStartPosition(S[Be].range),ol.getEndPosition(S[ct].range)),S[Be].text+=S[ct].text):(Be++,S[Be]=S[ct]);S.length=Be+1;for(let{range:ct,text:Le,eol:Je}of S){if(typeof Je=="number"&&(ve=Je),ol.isEmpty(ct)&&!Le)continue;const Xt=X.getValueInRange(ct);if(Le=Le.replace(/\r\n|\n|\r/g,X.eol),Xt===Le)continue;if(Math.max(Le.length,Xt.length)>kA._diffLimit){_e.push({range:ct,text:Le});continue}const Jt=ROe(Xt,Le,P),dn=X.offsetAt(ol.lift(ct).getStartPosition());for(const Rr of Jt){const fi=X.positionAt(dn+Rr.originalStart),ta=X.positionAt(dn+Rr.originalStart+Rr.originalLength),Zn={text:Le.substr(Rr.modifiedStart,Rr.modifiedLength),range:{startLineNumber:fi.lineNumber,startColumn:fi.column,endLineNumber:ta.lineNumber,endColumn:ta.column}};X.getValueInRange(Zn.range)!==Zn.text&&_e.push(Zn)}}return typeof ve=="number"&&_e.push({eol:ve,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),_e})}computeLinks(g){return pc(this,null,function*(){const S=this._getModel(g);return S?f8e(S):null})}computeDefaultDocumentColors(g){return pc(this,null,function*(){const S=this._getModel(g);return S?u6e(S):null})}textualSuggest(g,S,P,X){return pc(this,null,function*(){const _e=new Y4,ve=new RegExp(P,X),Be=new Set;e:for(const ct of g){const Le=this._getModel(ct);if(Le){for(const Je of Le.words(ve))if(!(Je===S||!isNaN(Number(Je)))&&(Be.add(Je),Be.size>kA._suggestionsLimit))break e}}return{words:Array.from(Be),duration:_e.elapsed()}})}computeWordRanges(g,S,P,X){return pc(this,null,function*(){const _e=this._getModel(g);if(!_e)return Object.create(null);const ve=new RegExp(P,X),Be=Object.create(null);for(let ct=S.startLineNumber;ct<S.endLineNumber;ct++){const Le=_e.getLineWords(ct,ve);for(const Je of Le){if(!isNaN(Number(Je.word)))continue;let Xt=Be[Je.word];Xt||(Xt=[],Be[Je.word]=Xt),Xt.push({startLineNumber:ct,startColumn:Je.startColumn,endLineNumber:ct,endColumn:Je.endColumn})}}return Be})}navigateValueSet(g,S,P,X,_e){return pc(this,null,function*(){const ve=this._getModel(g);if(!ve)return null;const Be=new RegExp(X,_e);S.startColumn===S.endColumn&&(S={startLineNumber:S.startLineNumber,startColumn:S.startColumn,endLineNumber:S.endLineNumber,endColumn:S.endColumn+1});const ct=ve.getValueInRange(S),Le=ve.getWordAtPosition({lineNumber:S.startLineNumber,column:S.startColumn},Be);if(!Le)return null;const Je=ve.getValueInRange(Le);return $j.INSTANCE.navigateValueSet(S,ct,Le,Je,P)})}loadForeignModule(g,S,P){const ve={host:iOe(P,(Be,ct)=>this._host.fhr(Be,ct)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(ve,S),Promise.resolve(Mj(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(g,S){if(!this._foreignModule||typeof this._foreignModule[g]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+g));try{return Promise.resolve(this._foreignModule[g].apply(this._foreignModule,S))}catch(P){return Promise.reject(P)}}}kA._diffLimit=1e5,kA._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=S8e());let fH=!1;function Oce(m){if(fH)return;fH=!0;const g=new wOe(S=>{globalThis.postMessage(S)},S=>new kA(S,m));globalThis.onmessage=S=>{g.onmessage(S.data)}}globalThis.onmessage=m=>{fH||Oce(null)};/*!-----------------------------------------------------------------------------
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
- * Released under the MIT license
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
- *-----------------------------------------------------------------------------*/var g6e=Object.defineProperty,y6e=(m,g)=>{for(var S in g)g6e(m,S,{get:g[S],enumerable:!0})},Pce={};y6e(Pce,{EndOfLineState:()=>E6e,IndentStyle:()=>S6e,ScriptKind:()=>wA,ScriptTarget:()=>x6e,TokenClass:()=>A6e,createClassifier:()=>v6e,createLanguageService:()=>Mce,displayPartsToString:()=>b6e,flattenDiagnosticMessageText:()=>T6e,typescript:()=>Fce});var $0=void 0,uM={exports:{}},Q0=(()=>{var m=Object.defineProperty,g=Object.getOwnPropertyNames,S=(e,t)=>function(){return e&&(t=(0,e[g(e)[0]])(e=0)),t},P=(e,t)=>function(){return t||(0,e[g(e)[0]])((t={exports:{}}).exports,t),t.exports},X=(e,t)=>{for(var r in t)m(e,r,{get:t[r],enumerable:!0})},_e,ve,Be,ct=S({"src/compiler/corePublic.ts"(){_e="5.0",ve="5.0.2",Be=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Be||{})}});function Le(e){return e?e.length:0}function Je(e,t){if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}}function Xt(e,t){if(e)for(let r=e.length-1;r>=0;r--){const i=t(e[r],r);if(i)return i}}function Jt(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i!==void 0)return i}}function dn(e,t){for(const r of e){const i=t(r);if(i!==void 0)return i}}function Rr(e,t,r){let i=r;if(e){let o=0;for(const s of e)i=t(i,s,o),o++}return i}function fi(e,t,r){const i=[];D.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)i.push(r(e[o],t[o],o));return i}function ta(e,t){if(e.length<=1)return e;const r=[];for(let i=0,o=e.length;i<o;i++)i&&r.push(t),r.push(e[i]);return r}function Zn(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function In(e,t,r){if(e!==void 0)for(let i=r!=null?r:0;i<e.length;i++){const o=e[i];if(t(o,i))return o}}function Yr(e,t,r){if(e!==void 0)for(let i=r!=null?r:e.length-1;i>=0;i--){const o=e[i];if(t(o,i))return o}}function mi(e,t,r){if(e===void 0)return-1;for(let i=r!=null?r:0;i<e.length;i++)if(t(e[i],i))return i;return-1}function ji(e,t,r){if(e===void 0)return-1;for(let i=r!=null?r:e.length-1;i>=0;i--)if(t(e[i],i))return i;return-1}function Uo(e,t){for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}return D.fail()}function Ur(e,t,r=tb){if(e){for(const i of e)if(r(i,t))return!0}return!1}function Oo(e,t,r=tb){return e.length===t.length&&e.every((i,o)=>r(i,t[o]))}function mc(e,t,r){for(let i=r||0;i<e.length;i++)if(Ur(t,e.charCodeAt(i)))return i;return-1}function Wc(e,t){let r=0;if(e)for(let i=0;i<e.length;i++){const o=e[i];t(o,i)&&r++}return r}function yn(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;if(i<r){const o=e.slice(0,i);for(i++;i<r;){const s=e[i];t(s)&&o.push(s),i++}return o}}return e}function ni(e,t){let r=0;for(let i=0;i<e.length;i++)t(e[i],i,e)&&(e[r]=e[i],r++);e.length=r}function Aa(e){e.length=0}function zt(e,t){let r;if(e){r=[];for(let i=0;i<e.length;i++)r.push(t(e[i],i))}return r}function*us(e,t){for(const r of e)yield t(r)}function no(e,t){if(e)for(let r=0;r<e.length;r++){const i=e[r],o=t(i,r);if(i!==o){const s=e.slice(0,r);for(s.push(o),r++;r<e.length;r++)s.push(t(e[r],r));return s}}return e}function Ds(e){const t=[];for(const r of e)r&&(Va(r)?Ai(t,r):t.push(r));return t}function Ga(e,t){let r;if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(Va(o)?r=Ai(r,o):r=Bn(r,o))}return r||rt}function Rf(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(Va(o)?Ai(r,o):r.push(o))}return r}function*m1(e,t){for(const r of e){const i=t(r);i&&(yield*Rj(i))}}function DA(e,t){let r;if(e)for(let i=0;i<e.length;i++){const o=e[i],s=t(o,i);(r||o!==s||Va(s))&&(r||(r=e.slice(0,i)),Va(s)?Ai(r,s):r.push(s))}return r||e}function Z0(e,t){const r=[];for(let i=0;i<e.length;i++){const o=t(e[i],i);if(o===void 0)return;r.push(o)}return r}function pa(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o!==void 0&&r.push(o)}return r}function*h1(e,t){for(const r of e){const i=t(r);i!==void 0&&(yield i)}}function _H(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const s=t(o,i);if(s!==void 0){const[c,f]=s;c!==void 0&&f!==void 0&&r.set(c,f)}}),r}function RA(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function g1(e,t){return e.has(t)?!1:(e.add(t),!0)}function*L6e(e){yield e}function dM(e,t,r){let i;if(e){i=[];const o=e.length;let s,c,f=0,d=0;for(;f<o;){for(;d<o;){const v=e[d];if(c=t(v,d),d===0)s=c;else if(c!==s)break;d++}if(f<d){const v=r(e.slice(f,d),s,f,d);v&&i.push(v),f=d}s=c,d++}}return i}function Gce(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const[s,c]=t(o,i);r.set(s,c)}),r}function kt(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function pH(e,t,r){let i;for(let o=0;o<e.length;o++)t(e[o])?i=i===void 0?o:i:i!==void 0&&(r(i,o),i=void 0);i!==void 0&&r(i,e.length)}function ya(e,t){return kt(t)?kt(e)?[...e,...t]:t:e}function I6e(e,t){return t}function LR(e){return e.map(I6e)}function k6e(e,t,r){const i=LR(e);jce(e,i,r);let o=e[i[0]];const s=[i[0]];for(let c=1;c<i.length;c++){const f=i[c],d=e[f];t(o,d)||(s.push(f),o=d)}return s.sort(),s.map(c=>e[c])}function w6e(e,t){const r=[];for(const i of e)v_(r,i,t);return r}function NA(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?k6e(e,t,r):w6e(e,t)}function D6e(e,t){if(e.length===0)return rt;let r=e[0];const i=[r];for(let o=1;o<e.length;o++){const s=e[o];switch(t(s,r)){case!0:case 0:continue;case-1:return D.fail("Array is unsorted.")}i.push(r=s)}return i}function mH(){return[]}function Iv(e,t,r,i){if(e.length===0)return e.push(t),!0;const o=kv(e,t,yl,r);return o<0?(e.splice(~o,0,t),!0):i?(e.splice(o,0,t),!0):!1}function IR(e,t,r){return D6e(kI(e,t),r||t||Uu)}function Uce(e,t){if(e.length<2)return!0;for(let r=1,i=e.length;r<i;r++)if(t(e[r-1],e[r])===1)return!1;return!0}function fM(e,t,r,i){let o=3;if(e.length<2)return o;let s=t(e[0]);for(let c=1,f=e.length;c<f&&o!==0;c++){const d=t(e[c]);o&1&&r(s,d)>0&&(o&=-2),o&2&&i(s,d)>0&&(o&=-3),s=d}return o}function Zp(e,t,r=tb){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!r(e[i],t[i],i))return!1;return!0}function kR(e){let t;if(e)for(let r=0;r<e.length;r++){const i=e[r];(t||!i)&&(t||(t=e.slice(0,r)),i&&t.push(i))}return t||e}function Vce(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;const i=[];e:for(let o=0,s=0;s<t.length;s++){s>0&&D.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(const c=o;o<e.length;o++)switch(o>c&&D.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function Bn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function OA(e,t){return e===void 0?t:t===void 0?e:Va(e)?Va(t)?ya(e,t):Bn(e,t):Va(t)?Bn(t,e):[e,t]}function hH(e,t){return t<0?e.length+t:t}function Ai(e,t,r,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,i);r=r===void 0?0:hH(t,r),i=i===void 0?t.length:hH(t,i);for(let o=r;o<i&&o<t.length;o++)t[o]!==void 0&&e.push(t[o]);return e}function v_(e,t,r){return Ur(e,t,r)?!1:(e.push(t),!0)}function yy(e,t,r){return e?(v_(e,t,r),e):[t]}function jce(e,t,r){t.sort((i,o)=>r(e[i],e[o])||qs(i,o))}function kI(e,t){return e.length===0?e:e.slice().sort(t)}function*R6e(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function vy(e,t){const r=LR(e);return jce(e,r,t),r.map(i=>e[i])}function gH(e,t,r,i){for(;r<i;){if(e[r]!==t[r])return!1;r++}return!0}function tu(e){return e===void 0||e.length===0?void 0:e[0]}function _M(e){if(e)for(const t of e)return t}function ds(e){return D.assert(e.length!==0),e[0]}function Hce(e){for(const t of e)return t;D.fail("iterator is empty")}function rl(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Jo(e){return D.assert(e.length!==0),e[e.length-1]}function Om(e){return e&&e.length===1?e[0]:void 0}function yH(e){return D.checkDefined(Om(e))}function Pm(e){return e&&e.length===1?e[0]:e}function vH(e,t,r){const i=e.slice(0);return i[t]=r,i}function kv(e,t,r,i,o){return rx(e,r(t),r,i,o)}function rx(e,t,r,i,o){if(!kt(e))return-1;let s=o||0,c=e.length-1;for(;s<=c;){const f=s+(c-s>>1),d=r(e[f],f);switch(i(d,t)){case-1:s=f+1;break;case 0:return f;case 1:c=f-1;break}}return~s}function Gu(e,t,r,i,o){if(e&&e.length>0){const s=e.length;if(s>0){let c=i===void 0||i<0?0:i;const f=o===void 0||c+o>s-1?s-1:c+o;let d;for(arguments.length<=2?(d=e[c],c++):d=r;c<=f;)d=t(d,e[c],c),c++;return d}}return r}function Fs(e,t){return Ty.call(e,t)}function wR(e,t){return Ty.call(e,t)?e[t]:void 0}function _g(e){const t=[];for(const r in e)Ty.call(e,r)&&t.push(r);return t}function N6e(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)v_(t,i)}while(e=Object.getPrototypeOf(e));return t}function ix(e){const t=[];for(const r in e)Ty.call(e,r)&&t.push(e[r]);return t}function Wce(e,t){const r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i);return r}function No(e,t){const r=[];for(const i of e)r.push(t?t(i):i);return r}function DR(e,...t){for(const r of t)if(r!==void 0)for(const i in r)Fs(r,i)&&(e[i]=r[i]);return e}function zce(e,t,r=tb){if(e===t)return!0;if(!e||!t)return!1;for(const i in e)if(Ty.call(e,i)&&(!Ty.call(t,i)||!r(e[i],t[i])))return!1;for(const i in t)if(Ty.call(t,i)&&!Ty.call(e,i))return!1;return!0}function y1(e,t,r=yl){const i=new Map;for(const o of e){const s=t(o);s!==void 0&&i.set(s,r(o))}return i}function qce(e,t,r=yl){const i=[];for(const o of e)i[t(o)]=r(o);return i}function RR(e,t,r=yl){const i=b_();for(const o of e)i.add(t(o),r(o));return i}function wI(e,t,r=yl){return No(RR(e,t).values(),r)}function Jce(e,t){var r;const i={};if(e)for(const o of e){const s=`${t(o)}`;((r=i[s])!=null?r:i[s]=[]).push(o)}return i}function bH(e){const t={};for(const r in e)Ty.call(e,r)&&(t[r]=e[r]);return t}function pM(e,t){const r={};for(const i in t)Ty.call(t,i)&&(r[i]=t[i]);for(const i in e)Ty.call(e,i)&&(r[i]=e[i]);return r}function EH(e,t){for(const r in t)Ty.call(t,r)&&(e[r]=t[r])}function Vo(e,t){return t?t.bind(e):void 0}function b_(){const e=new Map;return e.add=O6e,e.remove=P6e,e}function O6e(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function P6e(e,t){const r=this.get(e);r&&(PR(r,t),r.length||this.delete(e))}function Kce(){return b_()}function TH(e){const t=(e==null?void 0:e.slice())||[];let r=0;function i(){return r===t.length}function o(...c){t.push(...c)}function s(){if(i())throw new Error("Queue is empty");const c=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){const f=t.length-r;t.copyWithin(0,r),t.length=f,r=0}return c}return{enqueue:o,dequeue:s,isEmpty:i}}function M6e(e,t){const r=new Map;let i=0;function*o(){for(const c of r.values())Va(c)?yield*Rj(c):yield c}const s={has(c){const f=e(c);if(!r.has(f))return!1;const d=r.get(f);if(!Va(d))return t(d,c);for(const v of d)if(t(v,c))return!0;return!1},add(c){const f=e(c);if(r.has(f)){const d=r.get(f);if(Va(d))Ur(d,c,t)||(d.push(c),i++);else{const v=d;t(v,c)||(r.set(f,[v,c]),i++)}}else r.set(f,c),i++;return this},delete(c){const f=e(c);if(!r.has(f))return!1;const d=r.get(f);if(Va(d)){for(let v=0;v<d.length;v++)if(t(d[v],c))return d.length===1?r.delete(f):d.length===2?r.set(f,d[1-v]):xH(d,v),i--,!0}else if(t(d,c))return r.delete(f),i--,!0;return!1},clear(){r.clear(),i=0},get size(){return i},forEach(c){for(const f of No(r.values()))if(Va(f))for(const d of f)c(d,d,s);else{const d=f;c(d,d,s)}},keys(){return o()},values(){return o()},*entries(){for(const c of o())yield[c,c]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function Va(e){return Array.isArray(e)}function NR(e){return Va(e)?e:[e]}function Ha(e){return typeof e=="string"}function by(e){return typeof e=="number"}function si(e,t){return e!==void 0&&t(e)?e:void 0}function so(e,t){return e!==void 0&&t(e)?e:D.fail(`Invalid cast. The supplied value ${e} did not pass the test '${D.getFunctionName(t)}'.`)}function lo(e){}function v1(){return!1}function b1(){return!0}function eb(){}function yl(e){return e}function Xce(e){return e.toLowerCase()}function V_(e){return kH.test(e)?e.replace(kH,Xce):e}function Wa(){throw new Error("Not implemented")}function Ld(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Mm(e){const t=new Map;return r=>{const i=`${typeof r}:${r}`;let o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function F6e(e){const t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function Yce(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function B6e(e,t,r,i,o){if(o){const s=[];for(let c=0;c<arguments.length;c++)s[c]=arguments[c];return c=>Gu(s,(f,d)=>d(f),c)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function tb(e,t){return e===t}function ax(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function ox(e,t){return tb(e,t)}function $ce(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function qs(e,t){return $ce(e,t)}function mM(e,t){return qs(e==null?void 0:e.start,t==null?void 0:t.start)||qs(e==null?void 0:e.length,t==null?void 0:t.length)}function SH(e,t){return Gu(e,(r,i)=>t(r,i)===-1?r:i)}function hM(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:e>t?1:0)}function Qce(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:e>t?1:0)}function Uu(e,t){return $ce(e,t)}function gM(e){return e?hM:Uu}function Zce(){return AM}function eue(e){AM!==e&&(AM=e,DH=void 0)}function OR(e,t){return(DH||(DH=due(AM)))(e,t)}function tue(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function E1(e,t){return qs(e?1:0,t?1:0)}function DI(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let o=Math.floor(e.length*.4)+1,s;for(const c of t){const f=r(c);if(f!==void 0&&Math.abs(f.length-e.length)<=i){if(f===e||f.length<3&&f.toLowerCase()!==e.toLowerCase())continue;const d=G6e(e,f,o-.1);if(d===void 0)continue;D.assert(d<o),o=d,s=c}}return s}function G6e(e,t,r){let i=new Array(t.length+1),o=new Array(t.length+1);const s=r+.01;for(let f=0;f<=t.length;f++)i[f]=f;for(let f=1;f<=e.length;f++){const d=e.charCodeAt(f-1),v=Math.ceil(f>r?f-r:1),h=Math.floor(t.length>r+f?r+f:t.length);o[0]=f;let E=f;for(let L=1;L<v;L++)o[L]=s;for(let L=v;L<=h;L++){const I=e[f-1].toLowerCase()===t[L-1].toLowerCase()?i[L-1]+.1:i[L-1]+2,O=d===t.charCodeAt(L-1)?i[L-1]:Math.min(i[L]+1,o[L-1]+1,I);o[L]=O,E=Math.min(E,O)}for(let L=h+1;L<=t.length;L++)o[L]=s;if(E>r)return;const C=i;i=o,o=C}const c=i[t.length];return c>r?void 0:c}function cc(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function PA(e,t){return cc(e,t)?e.slice(0,e.length-t.length):e}function nue(e,t){return cc(e,t)?e.slice(0,e.length-t.length):void 0}function bu(e,t){return e.indexOf(t)!==-1}function rue(e){let t=e.length;for(let r=t-1;r>0;r--){let i=e.charCodeAt(r);if(i>=48&&i<=57)do--r,i=e.charCodeAt(r);while(r>0&&i>=48&&i<=57);else if(r>4&&(i===110||i===78)){if(--r,i=e.charCodeAt(r),i!==105&&i!==73||(--r,i=e.charCodeAt(r),i!==109&&i!==77))break;--r,i=e.charCodeAt(r)}else break;if(i!==45&&i!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function yM(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return T1(e,r),!0;return!1}function T1(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function xH(e,t){e[t]=e[e.length-1],e.pop()}function PR(e,t){return U6e(e,r=>r===t)}function U6e(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return xH(e,r),!0;return!1}function cu(e){return e?yl:V_}function iue({prefix:e,suffix:t}){return`${e}*${t}`}function aue(e,t){return D.assert(vM(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function AH(e,t,r){let i,o=-1;for(const s of e){const c=t(s);vM(c,r)&&c.prefix.length>o&&(o=c.prefix.length,i=s)}return i}function Ta(e,t){return e.lastIndexOf(t,0)===0}function RI(e,t){return Ta(e,t)?e.substr(t.length):e}function CH(e,t,r=yl){return Ta(r(e),r(t))?e.substring(t.length):void 0}function vM({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&Ta(r,e)&&cc(r,t)}function bM(e,t){return r=>e(r)&&t(r)}function Fm(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function EM(e){return(...t)=>!e(...t)}function V6e(e){}function dT(e){return e===void 0?void 0:[e]}function oue(e,t,r,i,o,s){s=s||lo;let c=0,f=0;const d=e.length,v=t.length;let h=!1;for(;c<d&&f<v;){const E=e[c],C=t[f],L=r(E,C);L===-1?(i(E),c++,h=!0):L===1?(o(C),f++,h=!0):(s(C,E),c++,f++)}for(;c<d;)i(e[c++]),h=!0;for(;f<v;)o(t[f++]),h=!0;return h}function sue(e){const t=[];return lue(e,t,void 0,0),t}function lue(e,t,r,i){for(const o of e[i]){let s;r?(s=r.slice(),s.push(o)):s=[o],i===e.length-1?t.push(s):lue(e,t,s,i+1)}}function sx(e,t,r=" "){return t<=e.length?e:r.repeat(t-e.length)+e}function j6e(e,t,r=" "){return t<=e.length?e:e+r.repeat(t-e.length)}function TM(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(0,i)}}function cue(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(i)}}function H6e(e){let t=e.length-1;for(;t>=0&&gg(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function LH(){return typeof process!="undefined"&&process.nextTick&&!process.browser&&typeof uM=="object"}var rt,SM,uue,IH,Ey,Ty,xM,kH,wH,due,DH,AM,S1,MR,NI,W6e=S({"src/compiler/core.ts"(){Na(),rt=[],SM=new Map,uue=new Set,IH=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(IH||{}),Ey=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=hH(e,t),t<e.length))return e[t]},Ty=Object.prototype.hasOwnProperty,xM={push:lo,length:0},kH=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g,wH=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(wH||{}),due=(()=>{let e,t;const r=f();return d;function i(v,h,E){if(v===h)return 0;if(v===void 0)return-1;if(h===void 0)return 1;const C=E(v,h);return C<0?-1:C>0?1:0}function o(v){const h=new Intl.Collator(v,{usage:"sort",sensitivity:"variant"}).compare;return(E,C)=>i(E,C,h)}function s(v){if(v!==void 0)return c();return(E,C)=>i(E,C,h);function h(E,C){return E.localeCompare(C)}}function c(){return(E,C)=>i(E,C,v);function v(E,C){return h(E.toUpperCase(),C.toUpperCase())||h(E,C)}function h(E,C){return E<C?-1:E>C?1:0}}function f(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?o:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?s:c}function d(v){return v===void 0?e||(e=r(v)):v==="en-US"?t||(t=r(v)):r(v)}})(),S1=String.prototype.trim?e=>e.trim():e=>MR(NI(e)),MR=String.prototype.trimEnd?e=>e.trimEnd():H6e,NI=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),RH,D,z6e=S({"src/compiler/debug.ts"(){Na(),Na(),RH=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(RH||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Ht){return e.currentLogLevel<=Ht}e.shouldLog=r;function i(Ht,un){e.loggingHost&&r(Ht)&&e.loggingHost.log(Ht,un)}function o(Ht){i(3,Ht)}e.log=o,(Ht=>{function un(vi){i(1,vi)}Ht.error=un;function ir(vi){i(2,vi)}Ht.warn=ir;function cr(vi){i(3,vi)}Ht.log=cr;function Mi(vi){i(4,vi)}Ht.trace=Mi})(o=e.log||(e.log={}));const s={};function c(){return t}e.getAssertionLevel=c;function f(Ht){const un=t;if(t=Ht,Ht>un)for(const ir of _g(s)){const cr=s[ir];cr!==void 0&&e[ir]!==cr.assertion&&Ht>=cr.level&&(e[ir]=cr,s[ir]=void 0)}}e.setAssertionLevel=f;function d(Ht){return t>=Ht}e.shouldAssert=d;function v(Ht,un){return d(Ht)?!0:(s[un]={level:Ht,assertion:e[un]},e[un]=lo,!1)}function h(Ht,un){const ir=new Error(Ht?`Debug Failure. ${Ht}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(ir,un||h),ir}e.fail=h;function E(Ht,un,ir){return h(`${un||"Unexpected node."}\r
- Node ${Qe(Ht.kind)} was unexpected.`,ir||E)}e.failBadSyntaxKind=E;function C(Ht,un,ir,cr){Ht||(un=un?`False expression: ${un}`:"False expression.",ir&&(un+=`\r
- Verbose Debug Information: `+(typeof ir=="string"?ir:ir())),h(un,cr||C))}e.assert=C;function L(Ht,un,ir,cr,Mi){if(Ht!==un){const vi=ir?cr?`${ir} ${cr}`:ir:"";h(`Expected ${Ht} === ${un}. ${vi}`,Mi||L)}}e.assertEqual=L;function I(Ht,un,ir,cr){Ht>=un&&h(`Expected ${Ht} < ${un}. ${ir||""}`,cr||I)}e.assertLessThan=I;function O(Ht,un,ir){Ht>un&&h(`Expected ${Ht} <= ${un}`,ir||O)}e.assertLessThanOrEqual=O;function k(Ht,un,ir){Ht<un&&h(`Expected ${Ht} >= ${un}`,ir||k)}e.assertGreaterThanOrEqual=k;function G(Ht,un,ir){Ht==null&&h(un,ir||G)}e.assertIsDefined=G;function V(Ht,un,ir){return G(Ht,un,ir||V),Ht}e.checkDefined=V;function H(Ht,un,ir){for(const cr of Ht)G(cr,un,ir||H)}e.assertEachIsDefined=H;function ne(Ht,un,ir){return H(Ht,un,ir||ne),Ht}e.checkEachDefined=ne;function Y(Ht,un="Illegal value:",ir){const cr=typeof Ht=="object"&&Fs(Ht,"kind")&&Fs(Ht,"pos")?"SyntaxKind: "+Qe(Ht.kind):JSON.stringify(Ht);return h(`${un} ${cr}`,ir||Y)}e.assertNever=Y;function $(Ht,un,ir,cr){v(1,"assertEachNode")&&C(un===void 0||Zn(Ht,un),ir||"Unexpected node.",()=>`Node array did not pass test '${ce(un)}'.`,cr||$)}e.assertEachNode=$;function M(Ht,un,ir,cr){v(1,"assertNode")&&C(Ht!==void 0&&(un===void 0||un(Ht)),ir||"Unexpected node.",()=>`Node ${Qe(Ht==null?void 0:Ht.kind)} did not pass test '${ce(un)}'.`,cr||M)}e.assertNode=M;function de(Ht,un,ir,cr){v(1,"assertNotNode")&&C(Ht===void 0||un===void 0||!un(Ht),ir||"Unexpected node.",()=>`Node ${Qe(Ht.kind)} should not have passed test '${ce(un)}'.`,cr||de)}e.assertNotNode=de;function re(Ht,un,ir,cr){v(1,"assertOptionalNode")&&C(un===void 0||Ht===void 0||un(Ht),ir||"Unexpected node.",()=>`Node ${Qe(Ht==null?void 0:Ht.kind)} did not pass test '${ce(un)}'.`,cr||re)}e.assertOptionalNode=re;function be(Ht,un,ir,cr){v(1,"assertOptionalToken")&&C(un===void 0||Ht===void 0||Ht.kind===un,ir||"Unexpected node.",()=>`Node ${Qe(Ht==null?void 0:Ht.kind)} was not a '${Qe(un)}' token.`,cr||be)}e.assertOptionalToken=be;function ae(Ht,un,ir){v(1,"assertMissingNode")&&C(Ht===void 0,un||"Unexpected node.",()=>`Node ${Qe(Ht.kind)} was unexpected'.`,ir||ae)}e.assertMissingNode=ae;function W(Ht){}e.type=W;function ce(Ht){if(typeof Ht!="function")return"";if(Fs(Ht,"name"))return Ht.name;{const un=Function.prototype.toString.call(Ht),ir=/^function\s+([\w\$]+)\s*\(/.exec(un);return ir?ir[1]:""}}e.getFunctionName=ce;function me(Ht){return`{ name: ${ra(Ht.escapedName)}; flags: ${Ye(Ht.flags)}; declarations: ${zt(Ht.declarations,un=>Qe(un.kind))} }`}e.formatSymbol=me;function Ee(Ht=0,un,ir){const cr=te(un);if(Ht===0)return cr.length>0&&cr[0][0]===0?cr[0][1]:"0";if(ir){const Mi=[];let vi=Ht;for(const[Nn,rn]of cr){if(Nn>Ht)break;Nn!==0&&Nn&Ht&&(Mi.push(rn),vi&=~Nn)}if(vi===0)return Mi.join("|")}else for(const[Mi,vi]of cr)if(Mi===Ht)return vi;return Ht.toString()}e.formatEnum=Ee;const xe=new Map;function te(Ht){const un=xe.get(Ht);if(un)return un;const ir=[];for(const Mi in Ht){const vi=Ht[Mi];typeof vi=="number"&&ir.push([vi,Mi])}const cr=vy(ir,(Mi,vi)=>qs(Mi[0],vi[0]));return xe.set(Ht,cr),cr}function Qe(Ht){return Ee(Ht,wM,!1)}e.formatSyntaxKind=Qe;function Ve(Ht){return Ee(Ht,jM,!1)}e.formatSnippetKind=Ve;function Ge(Ht){return Ee(Ht,DM,!0)}e.formatNodeFlags=Ge;function ze(Ht){return Ee(Ht,RM,!0)}e.formatModifierFlags=ze;function Oe(Ht){return Ee(Ht,VM,!0)}e.formatTransformFlags=Oe;function Me(Ht){return Ee(Ht,HM,!0)}e.formatEmitFlags=Me;function Ye(Ht){return Ee(Ht,MM,!0)}e.formatSymbolFlags=Ye;function We(Ht){return Ee(Ht,FM,!0)}e.formatTypeFlags=We;function Fe(Ht){return Ee(Ht,GM,!0)}e.formatSignatureFlags=Fe;function st(Ht){return Ee(Ht,BM,!0)}e.formatObjectFlags=st;function Ct(Ht){return Ee(Ht,UR,!0)}e.formatFlowFlags=Ct;function Et(Ht){return Ee(Ht,NM,!0)}e.formatRelationComparisonResult=Et;function Vt(Ht){return Ee(Ht,hF,!0)}e.formatCheckMode=Vt;function tt(Ht){return Ee(Ht,gF,!0)}e.formatSignatureCheckMode=tt;function at(Ht){return Ee(Ht,pF,!0)}e.formatTypeFacts=at;let on=!1,Qt;function Pn(Ht){"__debugFlowFlags"in Ht||Object.defineProperties(Ht,{__tsDebuggerDisplay:{value(){const un=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",ir=this.flags&~(2048-1);return`${un}${ir?` (${Ct(ir)})`:""}`}},__debugFlowFlags:{get(){return Ee(this.flags,UR,!0)}},__debugToString:{value(){return vn(this)}}})}function Hn(Ht){on&&(typeof Object.setPrototypeOf=="function"?(Qt||(Qt=Object.create(Object.prototype),Pn(Qt)),Object.setPrototypeOf(Ht,Qt)):Pn(Ht))}e.attachFlowNodeDebugInfo=Hn;let kn;function Zt(Ht){"__tsDebuggerDisplay"in Ht||Object.defineProperties(Ht,{__tsDebuggerDisplay:{value(un){return un=String(un).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${un}`}}})}function _r(Ht){on&&(typeof Object.setPrototypeOf=="function"?(kn||(kn=Object.create(Array.prototype),Zt(kn)),Object.setPrototypeOf(Ht,kn)):Zt(Ht))}e.attachNodeArrayDebugInfo=_r;function wi(){if(on)return;const Ht=new WeakMap,un=new WeakMap;Object.defineProperties(Kc.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const cr=this.flags&33554432?"TransientSymbol":"Symbol",Mi=this.flags&-33554433;return`${cr} '${Gl(this)}'${Mi?` (${Ye(Mi)})`:""}`}},__debugFlags:{get(){return Ye(this.flags)}}}),Object.defineProperties(Kc.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const cr=this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?`IntrinsicType ${this.intrinsicName}`:this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Mi=this.flags&524288?this.objectFlags&-1344:0;return`${cr}${this.symbol?` '${Gl(this.symbol)}'`:""}${Mi?` (${st(Mi)})`:""}`}},__debugFlags:{get(){return We(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?st(this.objectFlags):""}},__debugTypeToString:{value(){let cr=Ht.get(this);return cr===void 0&&(cr=this.checker.typeToString(this),Ht.set(this,cr)),cr}}}),Object.defineProperties(Kc.getSignatureConstructor().prototype,{__debugFlags:{get(){return Fe(this.flags)}},__debugSignatureToString:{value(){var cr;return(cr=this.checker)==null?void 0:cr.signatureToString(this)}}});const ir=[Kc.getNodeConstructor(),Kc.getIdentifierConstructor(),Kc.getTokenConstructor(),Kc.getSourceFileConstructor()];for(const cr of ir)Fs(cr.prototype,"__debugKind")||Object.defineProperties(cr.prototype,{__tsDebuggerDisplay:{value(){return`${Ll(this)?"GeneratedIdentifier":je(this)?`Identifier '${Mr(this)}'`:Oi(this)?`PrivateIdentifier '${Mr(this)}'`:Ho(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:L_(this)?`NumericLiteral ${this.text}`:l5(this)?`BigIntLiteral ${this.text}n`:Ul(this)?"TypeParameterDeclaration":Fa(this)?"ParameterDeclaration":Yl(this)?"ConstructorDeclaration":Z_(this)?"GetAccessorDeclaration":c_(this)?"SetAccessorDeclaration":OC(this)?"CallSignatureDeclaration":XO(this)?"ConstructSignatureDeclaration":Wx(this)?"IndexSignatureDeclaration":f5(this)?"TypePredicateNode":ep(this)?"TypeReferenceNode":Mh(this)?"FunctionTypeNode":Qk(this)?"ConstructorTypeNode":Zk(this)?"TypeQueryNode":yf(this)?"TypeLiteralNode":uK(this)?"ArrayTypeNode":PC(this)?"TupleTypeNode":dK(this)?"OptionalTypeNode":fK(this)?"RestTypeNode":zx(this)?"UnionTypeNode":YO(this)?"IntersectionTypeNode":MC(this)?"ConditionalTypeNode":FC(this)?"InferTypeNode":qx(this)?"ParenthesizedTypeNode":_5(this)?"ThisTypeNode":Jx(this)?"TypeOperatorNode":Kx(this)?"IndexedAccessTypeNode":tw(this)?"MappedTypeNode":gb(this)?"LiteralTypeNode":ew(this)?"NamedTupleMember":kg(this)?"ImportTypeNode":Qe(this.kind)}${this.flags?` (${Ge(this.flags)})`:""}`}},__debugKind:{get(){return Qe(this.kind)}},__debugNodeFlags:{get(){return Ge(this.flags)}},__debugModifierFlags:{get(){return ze(S_e(this))}},__debugTransformFlags:{get(){return Oe(this.transformFlags)}},__debugIsParseTreeNode:{get(){return zI(this)}},__debugEmitFlags:{get(){return Me(bo(this))}},__debugGetText:{value(Mi){if(tl(this))return"";let vi=un.get(this);if(vi===void 0){const Nn=va(this),rn=Nn&&er(Nn);vi=rn?N1(rn,Nn,Mi):"",un.set(this,vi)}return vi}}});on=!0}e.enableDebugInfo=wi;function Qi(Ht){const un=Ht&7;let ir=un===0?"in out":un===3?"[bivariant]":un===2?"in":un===1?"out":un===4?"[independent]":"";return Ht&8?ir+=" (unmeasurable)":Ht&16&&(ir+=" (unreliable)"),ir}e.formatVariance=Qi;class Zi{__debugToString(){var un;switch(this.kind){case 3:return((un=this.debugInfo)==null?void 0:un.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return fi(this.sources,this.targets||zt(this.sources,()=>"any"),(ir,cr)=>`${ir.__debugTypeToString()} -> ${typeof cr=="string"?cr:cr.__debugTypeToString()}`).join(", ");case 2:return fi(this.sources,this.targets,(ir,cr)=>`${ir.__debugTypeToString()} -> ${cr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
- `).join(`
- `)}
- m2: ${this.mapper2.__debugToString().split(`
- `).join(`
- `)}`;default:return Y(this)}}}e.DebugTypeMapper=Zi;function Or(Ht){return e.isDebugging?Object.setPrototypeOf(Ht,Zi.prototype):Ht}e.attachDebugPrototypeIfDebug=Or;function At(Ht){return console.log(vn(Ht))}e.printControlFlowGraph=At;function vn(Ht){let un=-1;function ir(K){return K.id||(K.id=un,un--),K.id}let cr;(K=>{K.lr="─",K.ud="│",K.dr="╭",K.dl="╮",K.ul="╯",K.ur="╰",K.udr="├",K.udl="┤",K.dlr="┬",K.ulr="┴",K.udlr="╫"})(cr||(cr={}));let Mi;(K=>{K[K.None=0]="None",K[K.Up=1]="Up",K[K.Down=2]="Down",K[K.Left=4]="Left",K[K.Right=8]="Right",K[K.UpDown=3]="UpDown",K[K.LeftRight=12]="LeftRight",K[K.UpLeft=5]="UpLeft",K[K.UpRight=9]="UpRight",K[K.DownLeft=6]="DownLeft",K[K.DownRight=10]="DownRight",K[K.UpDownLeft=7]="UpDownLeft",K[K.UpDownRight=11]="UpDownRight",K[K.UpLeftRight=13]="UpLeftRight",K[K.DownLeftRight=14]="DownLeftRight",K[K.UpDownLeftRight=15]="UpDownLeftRight",K[K.NoChildren=16]="NoChildren"})(Mi||(Mi={}));const vi=2032,Nn=882,rn=Object.create(null),Mn=[],Ar=he(Ht,new Set);for(const K of Mn)K.text=Er(K.flowNode,K.circular),He(K);const Hr=Ze(Ar),we=Xe(Hr);return Ut(Ar,0),ue();function yt(K){return!!(K.flags&128)}function Nt(K){return!!(K.flags&12)&&!!K.antecedents}function Ce(K){return!!(K.flags&vi)}function pt(K){return!!(K.flags&Nn)}function pe(K){const Pe=[];for(const ee of K.edges)ee.source===K&&Pe.push(ee.target);return Pe}function ie(K){const Pe=[];for(const ee of K.edges)ee.target===K&&Pe.push(ee.source);return Pe}function he(K,Pe){const ee=ir(K);let Re=rn[ee];if(Re&&Pe.has(K))return Re.circular=!0,Re={id:-1,flowNode:K,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Mn.push(Re),Re;if(Pe.add(K),!Re)if(rn[ee]=Re={id:ee,flowNode:K,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Mn.push(Re),Nt(K))for(const q of K.antecedents)j(Re,q,Pe);else Ce(K)&&j(Re,K.antecedent,Pe);return Pe.delete(K),Re}function j(K,Pe,ee){const Re=he(Pe,ee),q={source:K,target:Re};K.edges.push(q),Re.edges.push(q)}function He(K){if(K.level!==-1)return K.level;let Pe=0;for(const ee of ie(K))Pe=Math.max(Pe,He(ee)+1);return K.level=Pe}function Ze(K){let Pe=0;for(const ee of pe(K))Pe=Math.max(Pe,Ze(ee));return Pe+1}function Xe(K){const Pe=Wt(Array(K),0);for(const ee of Mn)Pe[ee.level]=Math.max(Pe[ee.level],ee.text.length);return Pe}function Ut(K,Pe){if(K.lane===-1){K.lane=Pe,K.endLane=Pe;const ee=pe(K);for(let Re=0;Re<ee.length;Re++){Re>0&&Pe++;const q=ee[Re];Ut(q,Pe),q.endLane>K.endLane&&(Pe=q.endLane)}K.endLane=Pe}}function ln(K){if(K&2)return"Start";if(K&4)return"Branch";if(K&8)return"Loop";if(K&16)return"Assignment";if(K&32)return"True";if(K&64)return"False";if(K&128)return"SwitchClause";if(K&256)return"ArrayMutation";if(K&512)return"Call";if(K&1024)return"ReduceLabel";if(K&1)return"Unreachable";throw new Error}function Sn(K){const Pe=er(K);return N1(Pe,K,!1)}function Er(K,Pe){let ee=ln(K.flags);if(Pe&&(ee=`${ee}#${ir(K)}`),pt(K))K.node&&(ee+=` (${Sn(K.node)})`);else if(yt(K)){const Re=[];for(let q=K.clauseStart;q<K.clauseEnd;q++){const Rt=K.switchStatement.caseBlock.clauses[q];r8(Rt)?Re.push("default"):Re.push(Sn(Rt.expression))}ee+=` (${Re.join(", ")})`}return Pe==="circularity"?`Circular(${ee})`:ee}function ue(){const K=we.length,Pe=Mn.reduce((gt,ft)=>Math.max(gt,ft.lane),0)+1,ee=Wt(Array(Pe),""),Re=we.map(()=>Array(Pe)),q=we.map(()=>Wt(Array(Pe),0));for(const gt of Mn){Re[gt.level][gt.lane]=gt;const ft=pe(gt);for(let $n=0;$n<ft.length;$n++){const li=ft[$n];let Ii=8;li.lane===gt.lane&&(Ii|=4),$n>0&&(Ii|=1),$n<ft.length-1&&(Ii|=2),q[gt.level][li.lane]|=Ii}ft.length===0&&(q[gt.level][gt.lane]|=16);const fn=ie(gt);for(let $n=0;$n<fn.length;$n++){const li=fn[$n];let Ii=4;$n>0&&(Ii|=1),$n<fn.length-1&&(Ii|=2),q[gt.level-1][li.lane]|=Ii}}for(let gt=0;gt<K;gt++)for(let ft=0;ft<Pe;ft++){const fn=gt>0?q[gt-1][ft]:0,$n=ft>0?q[gt][ft-1]:0;let li=q[gt][ft];li||(fn&8&&(li|=12),$n&2&&(li|=3),q[gt][ft]=li)}for(let gt=0;gt<K;gt++)for(let ft=0;ft<ee.length;ft++){const fn=q[gt][ft],$n=fn&4?"─":" ",li=Re[gt][ft];li?(Rt(ft,li.text),gt<K-1&&(Rt(ft," "),Rt(ft,it($n,we[gt]-li.text.length)))):gt<K-1&&Rt(ft,it($n,we[gt]+1)),Rt(ft,mt(fn)),Rt(ft,fn&8&><K-1&&!Re[gt+1][ft]?"─":" ")}return`
- ${ee.join(`
- `)}
- `;function Rt(gt,ft){ee[gt]+=ft}}function mt(K){switch(K){case 3:return"│";case 12:return"─";case 5:return"╯";case 9:return"╰";case 6:return"╮";case 10:return"╭";case 7:return"┤";case 11:return"├";case 13:return"┴";case 14:return"┬";case 15:return"╫"}return" "}function Wt(K,Pe){if(K.fill)K.fill(Pe);else for(let ee=0;ee<K.length;ee++)K[ee]=Pe;return K}function it(K,Pe){if(K.repeat)return Pe>0?K.repeat(Pe):"";let ee="";for(;ee.length<Pe;)ee+=K;return ee}}e.formatControlFlowGraph=vn})(D||(D={}))}});function fue(e){const t=pue.exec(e);if(!t)return;const[,r,i="0",o="0",s="",c=""]=t;if(!(s&&!mue.test(s))&&!(c&&!gue.test(c)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:c}}function q6e(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;const r=Math.min(e.length,t.length);for(let i=0;i<r;i++){const o=e[i],s=t[i];if(o===s)continue;const c=OH.test(o),f=OH.test(s);if(c||f){if(c!==f)return c?-1:1;const d=qs(+o,+s);if(d)return d}else{const d=Uu(o,s);if(d)return d}}return qs(e.length,t.length)}function _ue(e){const t=[];for(let r of S1(e).split(vue)){if(!r)continue;const i=[];r=S1(r);const o=Tue.exec(r);if(o){if(!J6e(o[1],o[2],i))return}else for(const s of r.split(bue)){const c=Sue.exec(S1(s));if(!c||!K6e(c[1],c[2],i))return}t.push(i)}return t}function NH(e){const t=Eue.exec(e);if(!t)return;const[,r,i="*",o="*",s,c]=t;return{version:new j_(t_(r)?0:parseInt(r,10),t_(r)||t_(i)?0:parseInt(i,10),t_(r)||t_(i)||t_(o)?0:parseInt(o,10),s,c),major:r,minor:i,patch:o}}function J6e(e,t,r){const i=NH(e);if(!i)return!1;const o=NH(t);return o?(t_(i.major)||r.push(em(">=",i.version)),t_(o.major)||r.push(t_(o.minor)?em("<",o.version.increment("major")):t_(o.patch)?em("<",o.version.increment("minor")):em("<=",o.version)),!0):!1}function K6e(e,t,r){const i=NH(t);if(!i)return!1;const{version:o,major:s,minor:c,patch:f}=i;if(t_(s))(e==="<"||e===">")&&r.push(em("<",j_.zero));else switch(e){case"~":r.push(em(">=",o)),r.push(em("<",o.increment(t_(c)?"major":"minor")));break;case"^":r.push(em(">=",o)),r.push(em("<",o.increment(o.major>0||t_(c)?"major":o.minor>0||t_(f)?"minor":"patch")));break;case"<":case">=":r.push(t_(c)||t_(f)?em(e,o.with({prerelease:"0"})):em(e,o));break;case"<=":case">":r.push(t_(c)?em(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):t_(f)?em(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):em(e,o));break;case"=":case void 0:t_(c)||t_(f)?(r.push(em(">=",o.with({prerelease:"0"}))),r.push(em("<",o.increment(t_(c)?"major":"minor").with({prerelease:"0"})))):r.push(em("=",o));break;default:return!1}return!0}function t_(e){return e==="*"||e==="x"||e==="X"}function em(e,t){return{operator:e,operand:t}}function X6e(e,t){if(t.length===0)return!0;for(const r of t)if(Y6e(e,r))return!0;return!1}function Y6e(e,t){for(const r of t)if(!$6e(e,r.operator,r.operand))return!1;return!0}function $6e(e,t,r){const i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return D.assertNever(t)}}function Q6e(e){return zt(e,Z6e).join(" || ")||"*"}function Z6e(e){return zt(e,ePe).join(" ")}function ePe(e){return`${e.operator}${e.operand}`}var pue,mue,hue,gue,yue,OH,lx,j_,MA,vue,bue,Eue,Tue,Sue,tPe=S({"src/compiler/semver.ts"(){Na(),pue=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,mue=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,hue=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,gue=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,yue=/^[a-z0-9-]+$/i,OH=/^(0|[1-9]\d*)$/,lx=class{constructor(e,t=0,r=0,i="",o=""){typeof e=="string"&&({major:e,minor:t,patch:r,prerelease:i,build:o}=D.checkDefined(fue(e),"Invalid version")),D.assert(e>=0,"Invalid argument: major"),D.assert(t>=0,"Invalid argument: minor"),D.assert(r>=0,"Invalid argument: patch");const s=i?Va(i)?i:i.split("."):rt,c=o?Va(o)?o:o.split("."):rt;D.assert(Zn(s,f=>hue.test(f)),"Invalid argument: prerelease"),D.assert(Zn(c,f=>yue.test(f)),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=r,this.prerelease=s,this.build=c}static tryParse(e){const t=fue(e);if(!t)return;const{major:r,minor:i,patch:o,prerelease:s,build:c}=t;return new lx(r,i,o,s,c)}compareTo(e){return this===e?0:e===void 0?1:qs(this.major,e.major)||qs(this.minor,e.minor)||qs(this.patch,e.patch)||q6e(this.prerelease,e.prerelease)}increment(e){switch(e){case"major":return new lx(this.major+1,0,0);case"minor":return new lx(this.major,this.minor+1,0);case"patch":return new lx(this.major,this.minor,this.patch+1);default:return D.assertNever(e)}}with(e){const{major:t=this.major,minor:r=this.minor,patch:i=this.patch,prerelease:o=this.prerelease,build:s=this.build}=e;return new lx(t,r,i,o,s)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return kt(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),kt(this.build)&&(e+=`+${this.build.join(".")}`),e}},j_=lx,j_.zero=new lx(0,0,0,["0"]),MA=class{constructor(e){this._alternatives=e?D.checkDefined(_ue(e),"Invalid range spec."):rt}static tryParse(e){const t=_ue(e);if(t){const r=new MA("");return r._alternatives=t,r}}test(e){return typeof e=="string"&&(e=new j_(e)),X6e(e,this._alternatives)}toString(){return Q6e(this._alternatives)}},vue=/\|\|/g,bue=/\s+/g,Eue=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Tue=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Sue=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function xue(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function nPe(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&xue(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function rPe(){if(LH())try{let e;const{performance:t,PerformanceObserver:r}=$0("perf_hooks");if(xue(t,r)){e=t;const i=new j_(process.versions.node);return new MA("<12.16.3 || 13 <13.13").test(i)&&(e={get timeOrigin(){return t.timeOrigin},now(){return t.now()},mark(s){return t.mark(s)},measure(s,c="nodeStart",f){f===void 0&&(f="__performance.measure-fix__",t.mark(f)),t.measure(s,c,f),f==="__performance.measure-fix__"&&t.clearMarks("__performance.measure-fix__")},clearMarks(s){return t.clearMarks(s)},clearMeasures(s){return t.clearMeasures(s)}}),{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:r}}}catch(e){}}function Aue(){return CM}var CM,PH,sl,iPe=S({"src/compiler/performanceCore.ts"(){Na(),CM=nPe()||rPe(),PH=CM==null?void 0:CM.performance,sl=PH?()=>PH.now():Date.now?Date.now:()=>+new Date}}),Cue,FR,Lue,tm,aPe=S({"src/compiler/perfLogger.ts"(){Na(),Cue={logEvent:lo,logErrEvent:lo,logPerfEvent:lo,logInfoEvent:lo,logStartCommand:lo,logStopCommand:lo,logStartUpdateProgram:lo,logStopUpdateProgram:lo,logStartUpdateGraph:lo,logStopUpdateGraph:lo,logStartResolveModule:lo,logStopResolveModule:lo,logStartParseSourceFile:lo,logStopParseSourceFile:lo,logStartReadFile:lo,logStopReadFile:lo,logStartBindFile:lo,logStopBindFile:lo,logStartScheduledOperation:lo,logStopScheduledOperation:lo};try{const e=(Lue=process.env.TS_ETW_MODULE_PATH)!=null?Lue:"./node_modules/@microsoft/typescript-etw";FR=$0(e)}catch(e){FR=void 0}tm=FR!=null&&FR.logEvent?FR:Cue}});function Iue(e,t,r,i){return e?LM(t,r,i):IM}function LM(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&ll(t)}function s(){--i===0?(ll(r),n_(e,t,r)):i<0&&D.fail("enter/exit count does not match.")}}function ll(e){var t;if(cx){const r=(t=FA.get(e))!=null?t:0;FA.set(e,r+1),ux.set(e,sl()),x1==null||x1.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function n_(e,t,r){var i,o;if(cx){const s=(i=r!==void 0?ux.get(r):void 0)!=null?i:sl(),c=(o=t!==void 0?ux.get(t):void 0)!=null?o:MH,f=dx.get(e)||0;dx.set(e,f+(s-c)),x1==null||x1.measure(e,t,r)}}function oPe(e){return FA.get(e)||0}function sPe(e){return dx.get(e)||0}function lPe(e){dx.forEach((t,r)=>e(r,t))}function cPe(e){ux.forEach((t,r)=>e(r))}function uPe(e){e!==void 0?dx.delete(e):dx.clear(),x1==null||x1.clearMeasures(e)}function dPe(e){e!==void 0?(FA.delete(e),ux.delete(e)):(FA.clear(),ux.clear()),x1==null||x1.clearMarks(e)}function fPe(){return cx}function _Pe(e=nu){var t;return cx||(cx=!0,OI||(OI=Aue()),OI&&(MH=OI.performance.timeOrigin,(OI.shouldWriteNativeEvents||(t=e==null?void 0:e.cpuProfilingEnabled)!=null&&t.call(e)||e!=null&&e.debugMode)&&(x1=OI.performance))),!0}function pPe(){cx&&(ux.clear(),FA.clear(),dx.clear(),x1=void 0,cx=!1)}var OI,x1,IM,cx,MH,ux,FA,dx,mPe=S({"src/compiler/performance.ts"(){Na(),IM={enter:lo,exit:lo},cx=!1,MH=sl(),ux=new Map,FA=new Map,dx=new Map}}),BR={};X(BR,{clearMarks:()=>dPe,clearMeasures:()=>uPe,createTimer:()=>LM,createTimerIf:()=>Iue,disable:()=>pPe,enable:()=>_Pe,forEachMark:()=>cPe,forEachMeasure:()=>lPe,getCount:()=>oPe,getDuration:()=>sPe,isEnabled:()=>fPe,mark:()=>ll,measure:()=>n_,nullTimer:()=>IM});var A1=S({"src/compiler/_namespaces/ts.performance.ts"(){mPe()}}),Si,GR,kue,wue,hPe=S({"src/compiler/tracing.ts"(){Na(),A1(),(e=>{let t,r=0,i=0,o;const s=[];let c;const f=[];function d($,M,de){if(D.assert(!Si,"Tracing already started"),t===void 0)try{t=$0("fs")}catch(ce){throw new Error(`tracing requires having fs
- (original error: ${ce.message||ce})`)}o=$,s.length=0,c===void 0&&(c=Bi(M,"legend.json")),t.existsSync(M)||t.mkdirSync(M,{recursive:!0});const re=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",be=Bi(M,`trace${re}.json`),ae=Bi(M,`types${re}.json`);f.push({configFilePath:de,tracePath:be,typesPath:ae}),i=t.openSync(be,"w"),Si=e;const W={cat:"__metadata",ph:"M",ts:1e3*sl(),pid:1,tid:1};t.writeSync(i,`[
- `+[Ti({name:"process_name",args:{name:"tsc"}},W),Ti({name:"thread_name",args:{name:"Main"}},W),Ka(Ti({name:"TracingStartedInBrowser"},W),{cat:"disabled-by-default-devtools.timeline"})].map(ce=>JSON.stringify(ce)).join(`,
- `))}e.startTracing=d;function v(){D.assert(Si,"Tracing is not in progress"),D.assert(!!s.length==(o!=="server")),t.writeSync(i,`
- ]
- `),t.closeSync(i),Si=void 0,s.length?ne(s):f[f.length-1].typesPath=void 0}e.stopTracing=v;function h($){o!=="server"&&s.push($)}e.recordType=h,($=>{$.Parse="parse",$.Program="program",$.Bind="bind",$.Check="check",$.CheckTypes="checkTypes",$.Emit="emit",$.Session="session"})(e.Phase||(e.Phase={}));function E($,M,de){V("I",$,M,de,'"s":"g"')}e.instant=E;const C=[];function L($,M,de,re=!1){re&&V("B",$,M,de),C.push({phase:$,name:M,args:de,time:1e3*sl(),separateBeginAndEnd:re})}e.push=L;function I($){D.assert(C.length>0),G(C.length-1,1e3*sl(),$),C.length--}e.pop=I;function O(){const $=1e3*sl();for(let M=C.length-1;M>=0;M--)G(M,$);C.length=0}e.popAll=O;const k=1e3*10;function G($,M,de){const{phase:re,name:be,args:ae,time:W,separateBeginAndEnd:ce}=C[$];ce?(D.assert(!de,"`results` are not supported for events with `separateBeginAndEnd`"),V("E",re,be,ae,void 0,M)):k-W%k<=M-W&&V("X",re,be,Ka(Ti({},ae),{results:de}),`"dur":${M-W}`,W)}function V($,M,de,re,be,ae=1e3*sl()){o==="server"&&M==="checkTypes"||(ll("beginTracing"),t.writeSync(i,`,
- {"pid":1,"tid":1,"ph":"${$}","cat":"${M}","ts":${ae},"name":"${de}"`),be&&t.writeSync(i,`,${be}`),re&&t.writeSync(i,`,"args":${JSON.stringify(re)}`),t.writeSync(i,"}"),ll("endTracing"),n_("Tracing","beginTracing","endTracing"))}function H($){const M=er($);return M?{path:M.path,start:de(cl(M,$.pos)),end:de(cl(M,$.end))}:void 0;function de(re){return{line:re.line+1,character:re.character+1}}}function ne($){var M,de,re,be,ae,W,ce,me,Ee,xe,te,Qe,Ve,Ge,ze,Oe,Me,Ye,We,Fe,st,Ct;ll("beginDumpTypes");const Et=f[f.length-1].typesPath,Vt=t.openSync(Et,"w"),tt=new Map;t.writeSync(Vt,"[");const at=$.length;for(let on=0;on<at;on++){const Qt=$[on],Pn=Qt.objectFlags,Hn=(M=Qt.aliasSymbol)!=null?M:Qt.symbol;let kn;if(Pn&16|Qt.flags&2944)try{kn=(de=Qt.checker)==null?void 0:de.typeToString(Qt)}catch(un){kn=void 0}let Zt={};if(Qt.flags&8388608){const un=Qt;Zt={indexedAccessObjectType:(re=un.objectType)==null?void 0:re.id,indexedAccessIndexType:(be=un.indexType)==null?void 0:be.id}}let _r={};if(Pn&4){const un=Qt;_r={instantiatedType:(ae=un.target)==null?void 0:ae.id,typeArguments:(W=un.resolvedTypeArguments)==null?void 0:W.map(ir=>ir.id),referenceLocation:H(un.node)}}let wi={};if(Qt.flags&16777216){const un=Qt;wi={conditionalCheckType:(ce=un.checkType)==null?void 0:ce.id,conditionalExtendsType:(me=un.extendsType)==null?void 0:me.id,conditionalTrueType:(xe=(Ee=un.resolvedTrueType)==null?void 0:Ee.id)!=null?xe:-1,conditionalFalseType:(Qe=(te=un.resolvedFalseType)==null?void 0:te.id)!=null?Qe:-1}}let Qi={};if(Qt.flags&33554432){const un=Qt;Qi={substitutionBaseType:(Ve=un.baseType)==null?void 0:Ve.id,constraintType:(Ge=un.constraint)==null?void 0:Ge.id}}let Zi={};if(Pn&1024){const un=Qt;Zi={reverseMappedSourceType:(ze=un.source)==null?void 0:ze.id,reverseMappedMappedType:(Oe=un.mappedType)==null?void 0:Oe.id,reverseMappedConstraintType:(Me=un.constraintType)==null?void 0:Me.id}}let Or={};if(Pn&256){const un=Qt;Or={evolvingArrayElementType:un.elementType.id,evolvingArrayFinalType:(Ye=un.finalArrayType)==null?void 0:Ye.id}}let At;const vn=Qt.checker.getRecursionIdentity(Qt);vn&&(At=tt.get(vn),At||(At=tt.size,tt.set(vn,At)));const Ht=Ka(Ti(Ti(Ti(Ti(Ti(Ti({id:Qt.id,intrinsicName:Qt.intrinsicName,symbolName:(Hn==null?void 0:Hn.escapedName)&&ra(Hn.escapedName),recursionId:At,isTuple:Pn&8?!0:void 0,unionTypes:Qt.flags&1048576?(We=Qt.types)==null?void 0:We.map(un=>un.id):void 0,intersectionTypes:Qt.flags&2097152?Qt.types.map(un=>un.id):void 0,aliasTypeArguments:(Fe=Qt.aliasTypeArguments)==null?void 0:Fe.map(un=>un.id),keyofType:Qt.flags&4194304?(st=Qt.type)==null?void 0:st.id:void 0},Zt),_r),wi),Qi),Zi),Or),{destructuringPattern:H(Qt.pattern),firstDeclaration:H((Ct=Hn==null?void 0:Hn.declarations)==null?void 0:Ct[0]),flags:D.formatTypeFlags(Qt.flags).split("|"),display:kn});t.writeSync(Vt,JSON.stringify(Ht)),on<at-1&&t.writeSync(Vt,`,
- `)}t.writeSync(Vt,`]
- `),t.closeSync(Vt),ll("endDumpTypes"),n_("Dump types","beginDumpTypes","endDumpTypes")}function Y(){c&&t.writeFileSync(c,JSON.stringify(f))}e.dumpLegend=Y})(GR||(GR={})),kue=GR.startTracing,wue=GR.dumpLegend}});function kM(e,t=!0){const r=VR[e.category];return t?r.toLowerCase():r}var wM,DM,RM,FH,NM,OM,BH,UR,GH,PI,PM,UH,VH,jH,HH,WH,zH,qH,JH,KH,XH,YH,$H,QH,ZH,MM,eW,tW,nW,rW,FM,BM,iW,aW,oW,sW,lW,GM,cW,uW,dW,fW,_W,pW,VR,jR,mW,hW,gW,yW,UM,vW,bW,EW,TW,SW,xW,AW,CW,LW,VM,jM,HM,IW,kW,wW,DW,RW,NW,OW,PW,HR,Due=S({"src/compiler/types.ts"(){wM=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.HashToken=62]="HashToken",e[e.EqualsToken=63]="EqualsToken",e[e.PlusEqualsToken=64]="PlusEqualsToken",e[e.MinusEqualsToken=65]="MinusEqualsToken",e[e.AsteriskEqualsToken=66]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=68]="SlashEqualsToken",e[e.PercentEqualsToken=69]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=73]="AmpersandEqualsToken",e[e.BarEqualsToken=74]="BarEqualsToken",e[e.BarBarEqualsToken=75]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=78]="CaretEqualsToken",e[e.Identifier=79]="Identifier",e[e.PrivateIdentifier=80]="PrivateIdentifier",e[e.BreakKeyword=81]="BreakKeyword",e[e.CaseKeyword=82]="CaseKeyword",e[e.CatchKeyword=83]="CatchKeyword",e[e.ClassKeyword=84]="ClassKeyword",e[e.ConstKeyword=85]="ConstKeyword",e[e.ContinueKeyword=86]="ContinueKeyword",e[e.DebuggerKeyword=87]="DebuggerKeyword",e[e.DefaultKeyword=88]="DefaultKeyword",e[e.DeleteKeyword=89]="DeleteKeyword",e[e.DoKeyword=90]="DoKeyword",e[e.ElseKeyword=91]="ElseKeyword",e[e.EnumKeyword=92]="EnumKeyword",e[e.ExportKeyword=93]="ExportKeyword",e[e.ExtendsKeyword=94]="ExtendsKeyword",e[e.FalseKeyword=95]="FalseKeyword",e[e.FinallyKeyword=96]="FinallyKeyword",e[e.ForKeyword=97]="ForKeyword",e[e.FunctionKeyword=98]="FunctionKeyword",e[e.IfKeyword=99]="IfKeyword",e[e.ImportKeyword=100]="ImportKeyword",e[e.InKeyword=101]="InKeyword",e[e.InstanceOfKeyword=102]="InstanceOfKeyword",e[e.NewKeyword=103]="NewKeyword",e[e.NullKeyword=104]="NullKeyword",e[e.ReturnKeyword=105]="ReturnKeyword",e[e.SuperKeyword=106]="SuperKeyword",e[e.SwitchKeyword=107]="SwitchKeyword",e[e.ThisKeyword=108]="ThisKeyword",e[e.ThrowKeyword=109]="ThrowKeyword",e[e.TrueKeyword=110]="TrueKeyword",e[e.TryKeyword=111]="TryKeyword",e[e.TypeOfKeyword=112]="TypeOfKeyword",e[e.VarKeyword=113]="VarKeyword",e[e.VoidKeyword=114]="VoidKeyword",e[e.WhileKeyword=115]="WhileKeyword",e[e.WithKeyword=116]="WithKeyword",e[e.ImplementsKeyword=117]="ImplementsKeyword",e[e.InterfaceKeyword=118]="InterfaceKeyword",e[e.LetKeyword=119]="LetKeyword",e[e.PackageKeyword=120]="PackageKeyword",e[e.PrivateKeyword=121]="PrivateKeyword",e[e.ProtectedKeyword=122]="ProtectedKeyword",e[e.PublicKeyword=123]="PublicKeyword",e[e.StaticKeyword=124]="StaticKeyword",e[e.YieldKeyword=125]="YieldKeyword",e[e.AbstractKeyword=126]="AbstractKeyword",e[e.AccessorKeyword=127]="AccessorKeyword",e[e.AsKeyword=128]="AsKeyword",e[e.AssertsKeyword=129]="AssertsKeyword",e[e.AssertKeyword=130]="AssertKeyword",e[e.AnyKeyword=131]="AnyKeyword",e[e.AsyncKeyword=132]="AsyncKeyword",e[e.AwaitKeyword=133]="AwaitKeyword",e[e.BooleanKeyword=134]="BooleanKeyword",e[e.ConstructorKeyword=135]="ConstructorKeyword",e[e.DeclareKeyword=136]="DeclareKeyword",e[e.GetKeyword=137]="GetKeyword",e[e.InferKeyword=138]="InferKeyword",e[e.IntrinsicKeyword=139]="IntrinsicKeyword",e[e.IsKeyword=140]="IsKeyword",e[e.KeyOfKeyword=141]="KeyOfKeyword",e[e.ModuleKeyword=142]="ModuleKeyword",e[e.NamespaceKeyword=143]="NamespaceKeyword",e[e.NeverKeyword=144]="NeverKeyword",e[e.OutKeyword=145]="OutKeyword",e[e.ReadonlyKeyword=146]="ReadonlyKeyword",e[e.RequireKeyword=147]="RequireKeyword",e[e.NumberKeyword=148]="NumberKeyword",e[e.ObjectKeyword=149]="ObjectKeyword",e[e.SatisfiesKeyword=150]="SatisfiesKeyword",e[e.SetKeyword=151]="SetKeyword",e[e.StringKeyword=152]="StringKeyword",e[e.SymbolKeyword=153]="SymbolKeyword",e[e.TypeKeyword=154]="TypeKeyword",e[e.UndefinedKeyword=155]="UndefinedKeyword",e[e.UniqueKeyword=156]="UniqueKeyword",e[e.UnknownKeyword=157]="UnknownKeyword",e[e.FromKeyword=158]="FromKeyword",e[e.GlobalKeyword=159]="GlobalKeyword",e[e.BigIntKeyword=160]="BigIntKeyword",e[e.OverrideKeyword=161]="OverrideKeyword",e[e.OfKeyword=162]="OfKeyword",e[e.QualifiedName=163]="QualifiedName",e[e.ComputedPropertyName=164]="ComputedPropertyName",e[e.TypeParameter=165]="TypeParameter",e[e.Parameter=166]="Parameter",e[e.Decorator=167]="Decorator",e[e.PropertySignature=168]="PropertySignature",e[e.PropertyDeclaration=169]="PropertyDeclaration",e[e.MethodSignature=170]="MethodSignature",e[e.MethodDeclaration=171]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=172]="ClassStaticBlockDeclaration",e[e.Constructor=173]="Constructor",e[e.GetAccessor=174]="GetAccessor",e[e.SetAccessor=175]="SetAccessor",e[e.CallSignature=176]="CallSignature",e[e.ConstructSignature=177]="ConstructSignature",e[e.IndexSignature=178]="IndexSignature",e[e.TypePredicate=179]="TypePredicate",e[e.TypeReference=180]="TypeReference",e[e.FunctionType=181]="FunctionType",e[e.ConstructorType=182]="ConstructorType",e[e.TypeQuery=183]="TypeQuery",e[e.TypeLiteral=184]="TypeLiteral",e[e.ArrayType=185]="ArrayType",e[e.TupleType=186]="TupleType",e[e.OptionalType=187]="OptionalType",e[e.RestType=188]="RestType",e[e.UnionType=189]="UnionType",e[e.IntersectionType=190]="IntersectionType",e[e.ConditionalType=191]="ConditionalType",e[e.InferType=192]="InferType",e[e.ParenthesizedType=193]="ParenthesizedType",e[e.ThisType=194]="ThisType",e[e.TypeOperator=195]="TypeOperator",e[e.IndexedAccessType=196]="IndexedAccessType",e[e.MappedType=197]="MappedType",e[e.LiteralType=198]="LiteralType",e[e.NamedTupleMember=199]="NamedTupleMember",e[e.TemplateLiteralType=200]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=201]="TemplateLiteralTypeSpan",e[e.ImportType=202]="ImportType",e[e.ObjectBindingPattern=203]="ObjectBindingPattern",e[e.ArrayBindingPattern=204]="ArrayBindingPattern",e[e.BindingElement=205]="BindingElement",e[e.ArrayLiteralExpression=206]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=207]="ObjectLiteralExpression",e[e.PropertyAccessExpression=208]="PropertyAccessExpression",e[e.ElementAccessExpression=209]="ElementAccessExpression",e[e.CallExpression=210]="CallExpression",e[e.NewExpression=211]="NewExpression",e[e.TaggedTemplateExpression=212]="TaggedTemplateExpression",e[e.TypeAssertionExpression=213]="TypeAssertionExpression",e[e.ParenthesizedExpression=214]="ParenthesizedExpression",e[e.FunctionExpression=215]="FunctionExpression",e[e.ArrowFunction=216]="ArrowFunction",e[e.DeleteExpression=217]="DeleteExpression",e[e.TypeOfExpression=218]="TypeOfExpression",e[e.VoidExpression=219]="VoidExpression",e[e.AwaitExpression=220]="AwaitExpression",e[e.PrefixUnaryExpression=221]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=222]="PostfixUnaryExpression",e[e.BinaryExpression=223]="BinaryExpression",e[e.ConditionalExpression=224]="ConditionalExpression",e[e.TemplateExpression=225]="TemplateExpression",e[e.YieldExpression=226]="YieldExpression",e[e.SpreadElement=227]="SpreadElement",e[e.ClassExpression=228]="ClassExpression",e[e.OmittedExpression=229]="OmittedExpression",e[e.ExpressionWithTypeArguments=230]="ExpressionWithTypeArguments",e[e.AsExpression=231]="AsExpression",e[e.NonNullExpression=232]="NonNullExpression",e[e.MetaProperty=233]="MetaProperty",e[e.SyntheticExpression=234]="SyntheticExpression",e[e.SatisfiesExpression=235]="SatisfiesExpression",e[e.TemplateSpan=236]="TemplateSpan",e[e.SemicolonClassElement=237]="SemicolonClassElement",e[e.Block=238]="Block",e[e.EmptyStatement=239]="EmptyStatement",e[e.VariableStatement=240]="VariableStatement",e[e.ExpressionStatement=241]="ExpressionStatement",e[e.IfStatement=242]="IfStatement",e[e.DoStatement=243]="DoStatement",e[e.WhileStatement=244]="WhileStatement",e[e.ForStatement=245]="ForStatement",e[e.ForInStatement=246]="ForInStatement",e[e.ForOfStatement=247]="ForOfStatement",e[e.ContinueStatement=248]="ContinueStatement",e[e.BreakStatement=249]="BreakStatement",e[e.ReturnStatement=250]="ReturnStatement",e[e.WithStatement=251]="WithStatement",e[e.SwitchStatement=252]="SwitchStatement",e[e.LabeledStatement=253]="LabeledStatement",e[e.ThrowStatement=254]="ThrowStatement",e[e.TryStatement=255]="TryStatement",e[e.DebuggerStatement=256]="DebuggerStatement",e[e.VariableDeclaration=257]="VariableDeclaration",e[e.VariableDeclarationList=258]="VariableDeclarationList",e[e.FunctionDeclaration=259]="FunctionDeclaration",e[e.ClassDeclaration=260]="ClassDeclaration",e[e.InterfaceDeclaration=261]="InterfaceDeclaration",e[e.TypeAliasDeclaration=262]="TypeAliasDeclaration",e[e.EnumDeclaration=263]="EnumDeclaration",e[e.ModuleDeclaration=264]="ModuleDeclaration",e[e.ModuleBlock=265]="ModuleBlock",e[e.CaseBlock=266]="CaseBlock",e[e.NamespaceExportDeclaration=267]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=268]="ImportEqualsDeclaration",e[e.ImportDeclaration=269]="ImportDeclaration",e[e.ImportClause=270]="ImportClause",e[e.NamespaceImport=271]="NamespaceImport",e[e.NamedImports=272]="NamedImports",e[e.ImportSpecifier=273]="ImportSpecifier",e[e.ExportAssignment=274]="ExportAssignment",e[e.ExportDeclaration=275]="ExportDeclaration",e[e.NamedExports=276]="NamedExports",e[e.NamespaceExport=277]="NamespaceExport",e[e.ExportSpecifier=278]="ExportSpecifier",e[e.MissingDeclaration=279]="MissingDeclaration",e[e.ExternalModuleReference=280]="ExternalModuleReference",e[e.JsxElement=281]="JsxElement",e[e.JsxSelfClosingElement=282]="JsxSelfClosingElement",e[e.JsxOpeningElement=283]="JsxOpeningElement",e[e.JsxClosingElement=284]="JsxClosingElement",e[e.JsxFragment=285]="JsxFragment",e[e.JsxOpeningFragment=286]="JsxOpeningFragment",e[e.JsxClosingFragment=287]="JsxClosingFragment",e[e.JsxAttribute=288]="JsxAttribute",e[e.JsxAttributes=289]="JsxAttributes",e[e.JsxSpreadAttribute=290]="JsxSpreadAttribute",e[e.JsxExpression=291]="JsxExpression",e[e.CaseClause=292]="CaseClause",e[e.DefaultClause=293]="DefaultClause",e[e.HeritageClause=294]="HeritageClause",e[e.CatchClause=295]="CatchClause",e[e.AssertClause=296]="AssertClause",e[e.AssertEntry=297]="AssertEntry",e[e.ImportTypeAssertionContainer=298]="ImportTypeAssertionContainer",e[e.PropertyAssignment=299]="PropertyAssignment",e[e.ShorthandPropertyAssignment=300]="ShorthandPropertyAssignment",e[e.SpreadAssignment=301]="SpreadAssignment",e[e.EnumMember=302]="EnumMember",e[e.UnparsedPrologue=303]="UnparsedPrologue",e[e.UnparsedPrepend=304]="UnparsedPrepend",e[e.UnparsedText=305]="UnparsedText",e[e.UnparsedInternalText=306]="UnparsedInternalText",e[e.UnparsedSyntheticReference=307]="UnparsedSyntheticReference",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.UnparsedSource=310]="UnparsedSource",e[e.InputFiles=311]="InputFiles",e[e.JSDocTypeExpression=312]="JSDocTypeExpression",e[e.JSDocNameReference=313]="JSDocNameReference",e[e.JSDocMemberName=314]="JSDocMemberName",e[e.JSDocAllType=315]="JSDocAllType",e[e.JSDocUnknownType=316]="JSDocUnknownType",e[e.JSDocNullableType=317]="JSDocNullableType",e[e.JSDocNonNullableType=318]="JSDocNonNullableType",e[e.JSDocOptionalType=319]="JSDocOptionalType",e[e.JSDocFunctionType=320]="JSDocFunctionType",e[e.JSDocVariadicType=321]="JSDocVariadicType",e[e.JSDocNamepathType=322]="JSDocNamepathType",e[e.JSDoc=323]="JSDoc",e[e.JSDocComment=323]="JSDocComment",e[e.JSDocText=324]="JSDocText",e[e.JSDocTypeLiteral=325]="JSDocTypeLiteral",e[e.JSDocSignature=326]="JSDocSignature",e[e.JSDocLink=327]="JSDocLink",e[e.JSDocLinkCode=328]="JSDocLinkCode",e[e.JSDocLinkPlain=329]="JSDocLinkPlain",e[e.JSDocTag=330]="JSDocTag",e[e.JSDocAugmentsTag=331]="JSDocAugmentsTag",e[e.JSDocImplementsTag=332]="JSDocImplementsTag",e[e.JSDocAuthorTag=333]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=334]="JSDocDeprecatedTag",e[e.JSDocClassTag=335]="JSDocClassTag",e[e.JSDocPublicTag=336]="JSDocPublicTag",e[e.JSDocPrivateTag=337]="JSDocPrivateTag",e[e.JSDocProtectedTag=338]="JSDocProtectedTag",e[e.JSDocReadonlyTag=339]="JSDocReadonlyTag",e[e.JSDocOverrideTag=340]="JSDocOverrideTag",e[e.JSDocCallbackTag=341]="JSDocCallbackTag",e[e.JSDocOverloadTag=342]="JSDocOverloadTag",e[e.JSDocEnumTag=343]="JSDocEnumTag",e[e.JSDocParameterTag=344]="JSDocParameterTag",e[e.JSDocReturnTag=345]="JSDocReturnTag",e[e.JSDocThisTag=346]="JSDocThisTag",e[e.JSDocTypeTag=347]="JSDocTypeTag",e[e.JSDocTemplateTag=348]="JSDocTemplateTag",e[e.JSDocTypedefTag=349]="JSDocTypedefTag",e[e.JSDocSeeTag=350]="JSDocSeeTag",e[e.JSDocPropertyTag=351]="JSDocPropertyTag",e[e.JSDocThrowsTag=352]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=353]="JSDocSatisfiesTag",e[e.SyntaxList=354]="SyntaxList",e[e.NotEmittedStatement=355]="NotEmittedStatement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.MergeDeclarationMarker=358]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=359]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=360]="SyntheticReferenceExpression",e[e.Count=361]="Count",e[e.FirstAssignment=63]="FirstAssignment",e[e.LastAssignment=78]="LastAssignment",e[e.FirstCompoundAssignment=64]="FirstCompoundAssignment",e[e.LastCompoundAssignment=78]="LastCompoundAssignment",e[e.FirstReservedWord=81]="FirstReservedWord",e[e.LastReservedWord=116]="LastReservedWord",e[e.FirstKeyword=81]="FirstKeyword",e[e.LastKeyword=162]="LastKeyword",e[e.FirstFutureReservedWord=117]="FirstFutureReservedWord",e[e.LastFutureReservedWord=125]="LastFutureReservedWord",e[e.FirstTypeNode=179]="FirstTypeNode",e[e.LastTypeNode=202]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=78]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=162]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=78]="LastBinaryOperator",e[e.FirstStatement=240]="FirstStatement",e[e.LastStatement=256]="LastStatement",e[e.FirstNode=163]="FirstNode",e[e.FirstJSDocNode=312]="FirstJSDocNode",e[e.LastJSDocNode=353]="LastJSDocNode",e[e.FirstJSDocTagNode=330]="FirstJSDocTagNode",e[e.LastJSDocTagNode=353]="LastJSDocTagNode",e[e.FirstContextualKeyword=126]="FirstContextualKeyword",e[e.LastContextualKeyword=162]="LastContextualKeyword",e))(wM||{}),DM=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=131072]="ThisNodeHasError",e[e.JavaScriptFile=262144]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=1048576]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",e[e.JSDoc=8388608]="JSDoc",e[e.Ambient=16777216]="Ambient",e[e.InWithStatement=33554432]="InWithStatement",e[e.JsonFile=67108864]="JsonFile",e[e.TypeCached=134217728]="TypeCached",e[e.Deprecated=268435456]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=50720768]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=2048]="IdentifierIsInJSDocNamespace",e))(DM||{}),RM=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(RM||{}),FH=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(FH||{}),NM=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(NM||{}),OM=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(OM||{}),BH=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",e))(BH||{}),UR=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(UR||{}),GH=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(GH||{}),PI=class{},PM=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(PM||{}),UH=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(UH||{}),VH=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(VH||{}),jH=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(jH||{}),HH=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(HH||{}),WH=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(WH||{}),zH=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(zH||{}),qH=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(qH||{}),JH=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(JH||{}),KH=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(KH||{}),XH=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(XH||{}),YH=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(YH||{}),$H=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))($H||{}),QH=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(QH||{}),ZH=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(ZH||{}),MM=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(MM||{}),eW=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(eW||{}),tW=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(tW||{}),nW=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(nW||{}),rW=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=65536]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=131072]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=262144]="NeedsLoopOutParameter",e[e.AssignmentsMarked=524288]="AssignmentsMarked",e[e.ClassWithConstructorReference=1048576]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=2097152]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=4194304]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=8388608]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=16777216]="InCheckIdentifier",e))(rW||{}),FM=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=134348796]="Primitive",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=205258751]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",e))(FM||{}),BM=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(BM||{}),iW=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(iW||{}),aW=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(aW||{}),oW=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(oW||{}),sW=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(sW||{}),lW=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(lW||{}),GM=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(GM||{}),cW=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(cW||{}),uW=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(uW||{}),dW=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(dW||{}),fW=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(fW||{}),_W=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(_W||{}),pW=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(pW||{}),VR=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(VR||{}),jR=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(jR||{}),mW=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(mW||{}),hW=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(hW||{}),gW=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(gW||{}),yW=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(yW||{}),UM=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(UM||{}),vW=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(vW||{}),bW=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(bW||{}),EW=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(EW||{}),TW=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(TW||{}),SW=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(SW||{}),xW=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(xW||{}),AW=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(AW||{}),CW=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(CW||{}),LW=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(LW||{}),VM=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(VM||{}),jM=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(jM||{}),HM=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.HasEndOfDeclarationMarker=8388608]="HasEndOfDeclarationMarker",e[e.Iterator=16777216]="Iterator",e[e.NoAsciiEscaping=33554432]="NoAsciiEscaping",e))(HM||{}),IW=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(IW||{}),kW=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(kW||{}),wW=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(wW||{}),DW=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(DW||{}),RW=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(RW||{}),NW=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(NW||{}),OW=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(OW||{}),PW=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(PW||{}),HR={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}});function WR(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}function gPe(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function fx(e,t){return e.getModifiedTime(t)||pg}function MW(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function yPe(e){if(!e.getEnvironmentVariable)return;const t=o("TSC_WATCH_POLLINGINTERVAL",WM);JR=s("TSC_WATCH_POLLINGCHUNKSIZE",qR)||JR,KR=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",qR)||KR;function r(c,f){return e.getEnvironmentVariable(`${c}_${f.toUpperCase()}`)}function i(c){let f;return d("Low"),d("Medium"),d("High"),f;function d(v){const h=r(c,v);h&&((f||(f={}))[v]=Number(h))}}function o(c,f){const d=i(c);if(d)return v("Low"),v("Medium"),v("High"),!0;return!1;function v(h){f[h]=d[h]||f[h]}}function s(c,f){const d=i(c);return(t||d)&&MW(d?Ti(Ti({},f),d):f)}}function Rue(e,t,r,i,o){let s=r;for(let f=t.length;i&&f;c(),f--){const d=t[r];if(d){if(d.isClosed){t[r]=void 0;continue}}else continue;i--;const v=TPe(d,fx(e,d.fileName));if(d.isClosed){t[r]=void 0;continue}o==null||o(d,r,v),t[r]&&(s<r&&(t[s]=d,t[r]=void 0),s++)}return r;function c(){r++,r===t.length&&(s<r&&(t.length=s),r=0,s=0)}}function vPe(e){const t=[],r=[],i=f(250),o=f(500),s=f(2e3);return c;function c(k,G,V){const H={fileName:k,callback:G,unchangedPolls:0,mtime:fx(e,k)};return t.push(H),C(H,V),{close:()=>{H.isClosed=!0,PR(t,H)}}}function f(k){const G=[];return G.pollingInterval=k,G.pollIndex=0,G.pollScheduled=!1,G}function d(k){k.pollIndex=h(k,k.pollingInterval,k.pollIndex,JR[k.pollingInterval]),k.length?O(k.pollingInterval):(D.assert(k.pollIndex===0),k.pollScheduled=!1)}function v(k){h(r,250,0,r.length),d(k),!k.pollScheduled&&r.length&&O(250)}function h(k,G,V,H){return Rue(e,k,V,H,ne);function ne(Y,$,M){M?(Y.unchangedPolls=0,k!==r&&(k[$]=void 0,L(Y))):Y.unchangedPolls!==KR[G]?Y.unchangedPolls++:k===r?(Y.unchangedPolls=1,k[$]=void 0,C(Y,250)):G!==2e3&&(Y.unchangedPolls++,k[$]=void 0,C(Y,G===250?500:2e3))}}function E(k){switch(k){case 250:return i;case 500:return o;case 2e3:return s}}function C(k,G){E(G).push(k),I(G)}function L(k){r.push(k),I(250)}function I(k){E(k).pollScheduled||O(k)}function O(k){E(k).pollScheduled=e.setTimeout(k===250?v:d,k,E(k))}}function bPe(e,t){const r=b_(),i=new Map,o=cu(t);return s;function s(f,d,v,h){const E=o(f);r.add(E,d);const C=yi(E)||".",L=i.get(C)||c(yi(f)||".",C,h);return L.referenceCount++,{close:()=>{L.referenceCount===1?(L.close(),i.delete(C)):L.referenceCount--,r.remove(E,d)}}}function c(f,d,v){const h=e(f,1,(E,C,L)=>{if(!Ha(C))return;const I=Oa(C,f),O=I&&r.get(o(I));if(O)for(const k of O)k(I,1,L)},!1,500,v);return h.referenceCount=0,i.set(d,h),h}}function EPe(e){const t=[];let r=0,i;return o;function o(f,d){const v={fileName:f,callback:d,mtime:fx(e,f)};return t.push(v),c(),{close:()=>{v.isClosed=!0,PR(t,v)}}}function s(){i=void 0,r=Rue(e,t,r,JR[250]),c()}function c(){!t.length||i||(i=e.setTimeout(s,2e3))}}function Nue(e,t,r,i,o){const c=cu(t)(r),f=e.get(c);return f?f.callbacks.push(i):e.set(c,{watcher:o((d,v,h)=>{var E;return(E=e.get(c))==null?void 0:E.callbacks.slice().forEach(C=>C(d,v,h))}),callbacks:[i]}),{close:()=>{const d=e.get(c);d&&(!yM(d.callbacks,i)||d.callbacks.length||(e.delete(c),rh(d)))}}}function TPe(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,Oue(r,i),t),!0):!1}function Oue(e,t){return e===0?0:t===0?2:1}function zR(e){return BW(e)}function Pue(e){BW=e}function SPe({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:c,clearTimeout:f}){const d=new Map,v=b_(),h=new Map;let E;const C=gM(!t),L=cu(t);return(M,de,re,be)=>re?I(M,be,de):e(M,de,re,be);function I(M,de,re){const be=L(M);let ae=d.get(be);ae?ae.refCount++:(ae={watcher:e(M,ce=>{Y(ce,de)||(de!=null&&de.synchronousWatchDirectory?(O(be,ce),ne(M,be,de)):k(M,be,ce,de))},!1,de),refCount:1,childWatches:rt},d.set(be,ae),ne(M,be,de));const W=re&&{dirName:M,callback:re};return W&&v.add(be,W),{dirName:M,close:()=>{const ce=D.checkDefined(d.get(be));W&&v.remove(be,W),ce.refCount--,!ce.refCount&&(d.delete(be),rh(ce),ce.childWatches.forEach(Xm))}}}function O(M,de,re){let be,ae;Ha(de)?be=de:ae=de,v.forEach((W,ce)=>{if(!(ae&&ae.get(ce)===!0)&&(ce===M||Ta(M,ce)&&M[ce.length]===Bs))if(ae)if(re){const me=ae.get(ce);me?me.push(...re):ae.set(ce,re.slice())}else ae.set(ce,!0);else W.forEach(({callback:me})=>me(be))})}function k(M,de,re,be){const ae=d.get(de);if(ae&&o(M,1)){G(M,de,re,be);return}O(de,re),H(ae)}function G(M,de,re,be){const ae=h.get(de);ae?ae.fileNames.push(re):h.set(de,{dirName:M,options:be,fileNames:[re]}),E&&(f(E),E=void 0),E=c(V,1e3)}function V(){E=void 0,zR(`sysLog:: onTimerToUpdateChildWatches:: ${h.size}`);const M=sl(),de=new Map;for(;!E&&h.size;){const be=h.entries().next();D.assert(!be.done);const{value:[ae,{dirName:W,options:ce,fileNames:me}]}=be;h.delete(ae);const Ee=ne(W,ae,ce);O(ae,de,Ee?void 0:me)}zR(`sysLog:: invokingWatchers:: Elapsed:: ${sl()-M}ms:: ${h.size}`),v.forEach((be,ae)=>{const W=de.get(ae);W&&be.forEach(({callback:ce,dirName:me})=>{Va(W)?W.forEach(ce):ce(me)})});const re=sl()-M;zR(`sysLog:: Elapsed:: ${re}ms:: onTimerToUpdateChildWatches:: ${h.size} ${E}`)}function H(M){if(!M)return;const de=M.childWatches;M.childWatches=rt;for(const re of de)re.close(),H(d.get(L(re.dirName)))}function ne(M,de,re){const be=d.get(de);if(!be)return!1;let ae;const W=oue(o(M,1)?pa(i(M),Ee=>{const xe=Oa(Ee,M);return!Y(xe,re)&&C(xe,Ko(s(xe)))===0?xe:void 0}):rt,be.childWatches,(Ee,xe)=>C(Ee,xe.dirName),ce,Xm,me);return be.childWatches=ae||rt,W;function ce(Ee){const xe=I(Ee,re);me(xe)}function me(Ee){(ae||(ae=[])).push(Ee)}}function Y(M,de){return kt(XR,re=>$(M,re))||Mue(M,de,t,r)}function $(M,de){return bu(M,de)?!0:t?!1:bu(L(M),de)}}function xPe(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function APe(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||pg),t(e,s!==pg?0:2,s)):t(e,1,s)}}function Mue(e,t,r,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&(V5(e,t==null?void 0:t.excludeFiles,r,i())||V5(e,t==null?void 0:t.excludeDirectories,r,i()))}function Fue(e,t,r,i,o){return(s,c)=>{if(s==="rename"){const f=c?Ko(Bi(e,c)):e;(!c||!Mue(f,r,i,o))&&t(f)}}}function Bue({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:c,getCurrentDirectory:f,fsSupportsRecursiveFsWatch:d,getAccessibleSortedChildDirectories:v,realpath:h,tscWatchFile:E,useNonPollingWatchers:C,tscWatchDirectory:L,inodeWatching:I,sysLog:O}){const k=new Map,G=new Map,V=new Map;let H,ne,Y,$,M=!1;return{watchFile:de,watchDirectory:ce};function de(Ve,Ge,ze,Oe){Oe=ae(Oe,C);const Me=D.checkDefined(Oe.watchFile);switch(Me){case 0:return xe(Ve,Ge,250,void 0);case 1:return xe(Ve,Ge,ze,void 0);case 2:return re()(Ve,Ge,ze,void 0);case 3:return be()(Ve,Ge,void 0,void 0);case 4:return te(Ve,0,APe(Ve,Ge,t),!1,ze,Q8(Oe));case 5:return Y||(Y=bPe(te,c)),Y(Ve,Ge,ze,Q8(Oe));default:D.assertNever(Me)}}function re(){return H||(H=vPe({getModifiedTime:t,setTimeout:r}))}function be(){return ne||(ne=EPe({getModifiedTime:t,setTimeout:r}))}function ae(Ve,Ge){if(Ve&&Ve.watchFile!==void 0)return Ve;switch(E){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return W(4,1,Ve);case"UseFsEventsWithFallbackDynamicPolling":return W(4,2,Ve);case"UseFsEventsOnParentDirectory":Ge=!0;default:return Ge?W(5,1,Ve):{watchFile:4}}}function W(Ve,Ge,ze){const Oe=ze==null?void 0:ze.fallbackPolling;return{watchFile:Ve,fallbackPolling:Oe===void 0?Ge:Oe}}function ce(Ve,Ge,ze,Oe){return d?te(Ve,1,Fue(Ve,Ge,Oe,c,f),ze,500,Q8(Oe)):($||($=SPe({useCaseSensitiveFileNames:c,getCurrentDirectory:f,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:v,watchDirectory:me,realpath:h,setTimeout:r,clearTimeout:i})),$(Ve,Ge,ze,Oe))}function me(Ve,Ge,ze,Oe){D.assert(!ze);const Me=Ee(Oe),Ye=D.checkDefined(Me.watchDirectory);switch(Ye){case 1:return xe(Ve,()=>Ge(Ve),500,void 0);case 2:return re()(Ve,()=>Ge(Ve),500,void 0);case 3:return be()(Ve,()=>Ge(Ve),void 0,void 0);case 0:return te(Ve,1,Fue(Ve,Ge,Oe,c,f),ze,500,Q8(Me));default:D.assertNever(Ye)}}function Ee(Ve){if(Ve&&Ve.watchDirectory!==void 0)return Ve;switch(L){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Ge=Ve==null?void 0:Ve.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ge!==void 0?Ge:void 0}}}function xe(Ve,Ge,ze,Oe){return Nue(k,c,Ve,Ge,Me=>e(Ve,Me,ze,Oe))}function te(Ve,Ge,ze,Oe,Me,Ye){return Nue(Oe?V:G,c,Ve,ze,We=>Qe(Ve,Ge,We,Oe,Me,Ye))}function Qe(Ve,Ge,ze,Oe,Me,Ye){let We,Fe;I&&(We=Ve.substring(Ve.lastIndexOf(Bs)),Fe=We.slice(Bs.length));let st=s(Ve,Ge)?Et():at();return{close:()=>{st&&(st.close(),st=void 0)}};function Ct(on){st&&(O(`sysLog:: ${Ve}:: Changing watcher to ${on===Et?"Present":"Missing"}FileSystemEntryWatcher`),st.close(),st=on())}function Et(){if(M)return O(`sysLog:: ${Ve}:: Defaulting to watchFile`),tt();try{const on=o(Ve,Oe,I?Vt:ze);return on.on("error",()=>{ze("rename",""),Ct(at)}),on}catch(on){return M||(M=on.code==="ENOSPC"),O(`sysLog:: ${Ve}:: Changing to watchFile`),tt()}}function Vt(on,Qt){let Pn;if(Qt&&cc(Qt,"~")&&(Pn=Qt,Qt=Qt.slice(0,Qt.length-1)),on==="rename"&&(!Qt||Qt===Fe||cc(Qt,We))){const Hn=t(Ve)||pg;Pn&&ze(on,Pn,Hn),ze(on,Qt,Hn),I?Ct(Hn===pg?at:Et):Hn===pg&&Ct(at)}else Pn&&ze(on,Pn),ze(on,Qt)}function tt(){return de(Ve,xPe(ze),Me,Ye)}function at(){return de(Ve,(on,Qt,Pn)=>{Qt===0&&(Pn||(Pn=t(Ve)||pg),Pn!==pg&&(ze("rename","",Pn),Ct(Et)))},Me,Ye)}}}function Gue(e){const t=e.writeFile;e.writeFile=(r,i,o)=>Pq(r,i,!!o,(s,c,f)=>t.call(e,s,c,f),s=>e.createDirectory(s),s=>e.directoryExists(s))}function CPe(e){nu=e}var FW,WM,pg,qR,JR,KR,XR,BW,GW,nu,LPe=S({"src/compiler/sys.ts"(){Na(),FW=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(FW||{}),WM=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(WM||{}),pg=new Date(0),qR={Low:32,Medium:64,High:256},JR=MW(qR),KR=MW(qR),XR=["/node_modules/.","/.git","/.#"],BW=lo,GW=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(GW||{}),nu=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=$0("fs"),s=$0("path"),c=$0("os");let f;try{f=$0("crypto")}catch(Et){f=void 0}let d,v="./profile.cpuprofile";const h=$0("buffer").Buffer,E=process.platform==="linux"||process.platform==="darwin",C=c.platform(),L=be(),I=o.realpathSync.native?process.platform==="win32"?Me:o.realpathSync.native:o.realpathSync,O=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,k=process.platform==="win32"||process.platform==="darwin",G=Ld(()=>process.cwd()),{watchFile:V,watchDirectory:H}=Bue({pollingWatchFileWorker:W,getModifiedTime:We,setTimeout,clearTimeout,fsWatchWorker:ce,useCaseSensitiveFileNames:L,getCurrentDirectory:G,fileSystemEntryExists:Ve,fsSupportsRecursiveFsWatch:k,getAccessibleSortedChildDirectories:Et=>te(Et).directories,realpath:Ye,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:E,sysLog:zR}),ne={args:process.argv.slice(2),newLine:c.EOL,useCaseSensitiveFileNames:L,write(Et){process.stdout.write(Et)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:Ee,writeFile:xe,watchFile:V,watchDirectory:H,resolvePath:Et=>s.resolve(Et),fileExists:Ge,directoryExists:ze,createDirectory(Et){if(!ne.directoryExists(Et))try{o.mkdirSync(Et)}catch(Vt){if(Vt.code!=="EEXIST")throw Vt}},getExecutingFilePath(){return O},getCurrentDirectory:G,getDirectories:Oe,getEnvironmentVariable(Et){return process.env[Et]||""},readDirectory:Qe,getModifiedTime:We,setModifiedTime:Fe,deleteFile:st,createHash:f?Ct:WR,createSHA256Hash:f?Ct:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(Et){try{const Vt=Y(Et);if(Vt!=null&&Vt.isFile())return Vt.size}catch(Vt){}return 0},exit(Et){de(()=>process.exit(Et))},enableCPUProfiler:$,disableCPUProfiler:de,cpuProfilingEnabled:()=>!!d||Ur(process.execArgv,"--cpu-prof")||Ur(process.execArgv,"--prof"),realpath:Ye,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||kt(process.execArgv,Et=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(Et)),tryEnableSourceMapsForHost(){try{$0("source-map-support").install()}catch(Et){}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:re,base64decode:Et=>re(Et,"base64").toString("utf8"),base64encode:Et=>re(Et).toString("base64"),require:(Et,Vt)=>{try{const tt=gge(Vt,Et,ne);return{module:$0(tt),modulePath:tt,error:void 0}}catch(tt){return{module:void 0,modulePath:void 0,error:tt}}}};return ne;function Y(Et){return o.statSync(Et,{throwIfNoEntry:!1})}function $(Et,Vt){if(d)return Vt(),!1;const tt=$0("inspector");if(!tt||!tt.Session)return Vt(),!1;const at=new tt.Session;return at.connect(),at.post("Profiler.enable",()=>{at.post("Profiler.start",()=>{d=at,v=Et,Vt()})}),!0}function M(Et){let Vt=0;const tt=new Map,at=ru(s.dirname(O)),on=`file://${nm(at)===1?"":"/"}${at}`;for(const Qt of Et.nodes)if(Qt.callFrame.url){const Pn=ru(Qt.callFrame.url);Rv(on,Pn,L)?Qt.callFrame.url=_x(on,Pn,on,cu(L),!0):i.test(Pn)||(Qt.callFrame.url=(tt.has(Pn)?tt:tt.set(Pn,`external${Vt}.js`)).get(Pn),Vt++)}return Et}function de(Et){if(d&&d!=="stopping"){const Vt=d;return d.post("Profiler.stop",(tt,{profile:at})=>{var on;if(!tt){try{(on=Y(v))!=null&&on.isDirectory()&&(v=s.join(v,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch(Qt){}try{o.mkdirSync(s.dirname(v),{recursive:!0})}catch(Qt){}o.writeFileSync(v,JSON.stringify(M(at)))}d=void 0,Vt.disconnect(),Et()}),d="stopping",!0}else return Et(),!1}function re(Et,Vt){return h.from&&h.from!==Int8Array.from?h.from(Et,Vt):new h(Et,Vt)}function be(){return C==="win32"||C==="win64"?!1:!Ge(ae(__filename))}function ae(Et){return Et.replace(/\w/g,Vt=>{const tt=Vt.toUpperCase();return Vt===tt?Vt.toLowerCase():tt})}function W(Et,Vt,tt){o.watchFile(Et,{persistent:!0,interval:tt},on);let at;return{close:()=>o.unwatchFile(Et,on)};function on(Qt,Pn){const Hn=+Pn.mtime==0||at===2;if(+Qt.mtime==0){if(Hn)return;at=2}else if(Hn)at=0;else{if(+Qt.mtime==+Pn.mtime)return;at=1}Vt(Et,at,Qt.mtime)}}function ce(Et,Vt,tt){return o.watch(Et,k?{persistent:!0,recursive:!!Vt}:{persistent:!0},tt)}function me(Et,Vt){let tt;try{tt=o.readFileSync(Et)}catch(on){return}let at=tt.length;if(at>=2&&tt[0]===254&&tt[1]===255){at&=-2;for(let on=0;on<at;on+=2){const Qt=tt[on];tt[on]=tt[on+1],tt[on+1]=Qt}return tt.toString("utf16le",2)}return at>=2&&tt[0]===255&&tt[1]===254?tt.toString("utf16le",2):at>=3&&tt[0]===239&&tt[1]===187&&tt[2]===191?tt.toString("utf8",3):tt.toString("utf8")}function Ee(Et,Vt){tm.logStartReadFile(Et);const tt=me(Et);return tm.logStopReadFile(),tt}function xe(Et,Vt,tt){tm.logEvent("WriteFile: "+Et),tt&&(Vt=e+Vt);let at;try{at=o.openSync(Et,"w"),o.writeSync(at,Vt,void 0,"utf8")}finally{at!==void 0&&o.closeSync(at)}}function te(Et){tm.logEvent("ReadDir: "+(Et||"."));try{const Vt=o.readdirSync(Et||".",{withFileTypes:!0}),tt=[],at=[];for(const on of Vt){const Qt=typeof on=="string"?on:on.name;if(Qt==="."||Qt==="..")continue;let Pn;if(typeof on=="string"||on.isSymbolicLink()){const Hn=Bi(Et,Qt);try{if(Pn=Y(Hn),!Pn)continue}catch(kn){continue}}else Pn=on;Pn.isFile()?tt.push(Qt):Pn.isDirectory()&&at.push(Qt)}return tt.sort(),at.sort(),{files:tt,directories:at}}catch(Vt){return N7}}function Qe(Et,Vt,tt,at,on){return uJ(Et,Vt,tt,at,L,process.cwd(),on,te,Ye)}function Ve(Et,Vt){const tt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const at=Y(Et);if(!at)return!1;switch(Vt){case 0:return at.isFile();case 1:return at.isDirectory();default:return!1}}catch(at){return!1}finally{Error.stackTraceLimit=tt}}function Ge(Et){return Ve(Et,0)}function ze(Et){return Ve(Et,1)}function Oe(Et){return te(Et).directories.slice()}function Me(Et){return Et.length<260?o.realpathSync.native(Et):o.realpathSync(Et)}function Ye(Et){try{return I(Et)}catch(Vt){return Et}}function We(Et){var Vt;const tt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Vt=Y(Et))==null?void 0:Vt.mtime}catch(at){return}finally{Error.stackTraceLimit=tt}}function Fe(Et,Vt){try{o.utimesSync(Et,Vt,Vt)}catch(tt){return}}function st(Et){try{return o.unlinkSync(Et)}catch(Vt){return}}function Ct(Et){const Vt=f.createHash("sha256");return Vt.update(Et),Vt.digest("hex")}}let r;return LH()&&(r=t()),r&&Gue(r),r})(),nu&&nu.getEnvironmentVariable&&(yPe(nu),D.setAssertionLevel(/^development$/i.test(nu.getEnvironmentVariable("NODE_ENV"))?1:0)),nu&&nu.debugMode&&(D.isDebugging=!0)}});function UW(e){return e===47||e===92}function Uue(e){return YR(e)<0}function Bm(e){return YR(e)>0}function IPe(e){const t=YR(e);return t>0&&t===e.length}function MI(e){return YR(e)!==0}function Nf(e){return/^\.\.?($|[\\/])/.test(e)}function VW(e){return!MI(e)&&!Nf(e)}function BA(e){return bu(Eu(e),".")}function hc(e,t){return e.length>t.length&&cc(e,t)}function Ic(e,t){for(const r of t)if(hc(e,r))return!0;return!1}function wv(e){return e.length>0&&UW(e.charCodeAt(e.length-1))}function Vue(e){return e>=97&&e<=122||e>=65&&e<=90}function kPe(e,t){const r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){const i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function YR(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?Bs:ZR,2);return i<0?e.length:i+1}if(Vue(t)&&e.charCodeAt(1)===58){const i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}const r=e.indexOf(JW);if(r!==-1){const i=r+JW.length,o=e.indexOf(Bs,i);if(o!==-1){const s=e.slice(0,r),c=e.slice(i,o);if(s==="file"&&(c===""||c==="localhost")&&Vue(e.charCodeAt(o+1))){const f=kPe(e,o+2);if(f!==-1){if(e.charCodeAt(f)===47)return~(f+1);if(f===e.length)return~f}}return~(o+1)}return~e.length}return 0}function nm(e){const t=YR(e);return t<0?~t:t}function yi(e){e=ru(e);const t=nm(e);return t===e.length?e:(e=_T(e),e.slice(0,Math.max(t,e.lastIndexOf(Bs))))}function Eu(e,t,r){if(e=ru(e),nm(e)===e.length)return"";e=_T(e);const o=e.slice(Math.max(nm(e),e.lastIndexOf(Bs)+1)),s=t!==void 0&&r!==void 0?zM(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function jue(e,t,r){if(Ta(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(r(i,t))return i}}function wPe(e,t,r){if(typeof t=="string")return jue(e,t,r)||"";for(const i of t){const o=jue(e,i,r);if(o)return o}return""}function zM(e,t,r){if(t)return wPe(_T(e),t,r?ax:ox);const i=Eu(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function DPe(e,t){const r=e.substring(0,t),i=e.substring(t).split(Bs);return i.length&&!rl(i)&&i.pop(),[r,...i]}function pd(e,t=""){return e=Bi(t,e),DPe(e,nm(e))}function C1(e){return e.length===0?"":(e[0]&&Vu(e[0]))+e.slice(1).join(Bs)}function ru(e){return e.indexOf("\\")!==-1?e.replace(Hue,Bs):e}function fT(e){if(!kt(e))return[];const t=[e[0]];for(let r=1;r<e.length;r++){const i=e[r];if(i&&i!=="."){if(i===".."){if(t.length>1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Bi(e,...t){e&&(e=ru(e));for(let r of t)r&&(r=ru(r),!e||nm(r)!==0?e=r:e=Vu(e)+r);return e}function Dv(e,...t){return Ko(kt(t)?Bi(e,...t):ru(e))}function $R(e,t){return fT(pd(e,t))}function Oa(e,t){return C1($R(e,t))}function Ko(e){if(e=ru(e),!eN.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!eN.test(e)))return e;const r=C1(fT(pd(e)));return r&&wv(e)?Vu(r):r}function RPe(e){return e.length===0?"":e.slice(1).join(Bs)}function jW(e,t){return RPe($R(e,t))}function Js(e,t,r){const i=Bm(e)?Ko(e):Oa(e,t);return r(i)}function _T(e){return wv(e)?e.substr(0,e.length-1):e}function Vu(e){return wv(e)?e:e+Bs}function L1(e){return!MI(e)&&!Nf(e)?"./"+e:e}function HW(e,t,r,i){const o=r!==void 0&&i!==void 0?zM(e,r,i):zM(e);return o?e.slice(0,e.length-o.length)+(Ta(t,".")?t:"."+t):e}function WW(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;const i=e.substring(0,nm(e)),o=t.substring(0,nm(t)),s=hM(i,o);if(s!==0)return s;const c=e.substring(i.length),f=t.substring(o.length);if(!eN.test(c)&&!eN.test(f))return r(c,f);const d=fT(pd(e)),v=fT(pd(t)),h=Math.min(d.length,v.length);for(let E=1;E<h;E++){const C=r(d[E],v[E]);if(C!==0)return C}return qs(d.length,v.length)}function NPe(e,t){return WW(e,t,Uu)}function OPe(e,t){return WW(e,t,hM)}function pT(e,t,r,i){return typeof r=="string"?(e=Bi(r,e),t=Bi(r,t)):typeof r=="boolean"&&(i=r),WW(e,t,gM(i))}function Rv(e,t,r,i){if(typeof r=="string"?(e=Bi(r,e),t=Bi(r,t)):typeof r=="boolean"&&(i=r),e===void 0||t===void 0)return!1;if(e===t)return!0;const o=fT(pd(e)),s=fT(pd(t));if(s.length<o.length)return!1;const c=i?ax:ox;for(let f=0;f<o.length;f++)if(!(f===0?ax:c)(o[f],s[f]))return!1;return!0}function zW(e,t,r){const i=r(e),o=r(t);return Ta(i,o+"/")||Ta(i,o+"\\")}function qW(e,t,r,i){const o=fT(pd(e)),s=fT(pd(t));let c;for(c=0;c<o.length&&c<s.length;c++){const v=i(o[c]),h=i(s[c]);if(!(c===0?ax:r)(v,h))break}if(c===0)return s;const f=s.slice(c),d=[];for(;c<o.length;c++)d.push("..");return["",...d,...f]}function Gm(e,t,r){D.assert(nm(e)>0==nm(t)>0,"Paths must either both be absolute or both be relative");const s=qW(e,t,(typeof r=="boolean"?r:!1)?ax:ox,typeof r=="function"?r:yl);return C1(s)}function FI(e,t,r){return Bm(e)?_x(t,e,t,r,!1):e}function QR(e,t,r){return L1(Gm(yi(e),t,r))}function _x(e,t,r,i,o){const s=qW(Dv(r,e),Dv(r,t),ox,i),c=s[0];if(o&&Bm(c)){const f=c.charAt(0)===Bs?"file://":"file:///";s[0]=f+c}return C1(s)}function mg(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=yi(e);if(i===e)return;e=i}}function qM(e){return cc(e,"/node_modules")}var Bs,ZR,JW,Hue,eN,PPe=S({"src/compiler/path.ts"(){Na(),Bs="/",ZR="\\",JW="://",Hue=/\\/g,eN=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function T(e,t,r,i,o,s,c){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:c}}var _,MPe=S({"src/compiler/diagnosticInformationMap.generated.ts"(){Due(),_={Unterminated_string_literal:T(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:T(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:T(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:T(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:T(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:T(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:T(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:T(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:T(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:T(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:T(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:T(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:T(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:T(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:T(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:T(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:T(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:T(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:T(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:T(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:T(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:T(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:T(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:T(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:T(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:T(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:T(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:T(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:T(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:T(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:T(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:T(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:T(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:T(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:T(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:T(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:T(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:T(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:T(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:T(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:T(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:T(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:T(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:T(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:T(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:T(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:T(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:T(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:T(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:T(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:T(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:T(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:T(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:T(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:T(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:T(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:T(1085,1,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:T(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:T(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:T(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:T(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:T(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:T(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:T(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:T(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:T(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:T(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:T(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:T(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:T(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:T(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:T(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:T(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:T(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:T(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:T(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:T(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:T(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:T(1110,1,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:T(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:T(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:T(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:T(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:T(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:T(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:T(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:T(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:T(1121,1,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:T(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:T(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:T(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:T(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:T(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:T(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:T(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:T(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:T(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:T(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:T(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:T(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:T(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:T(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:T(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:T(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:T(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:T(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:T(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:T(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:T(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:T(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:T(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:T(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:T(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:T(1155,1,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:T(1156,1,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:T(1157,1,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:T(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:T(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:T(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:T(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:T(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:T(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:T(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:T(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:T(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:T(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:T(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:T(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:T(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:T(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:T(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:T(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:T(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:T(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:T(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:T(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:T(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:T(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:T(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:T(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:T(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:T(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:T(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:T(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:T(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:T(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:T(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:T(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:T(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:T(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:T(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:T(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:T(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:T(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:T(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:T(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:T(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:T(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:T(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:T(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:T(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:T(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:T(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:T(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:T(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:T(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:T(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:T(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:T(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:T(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:T(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:T(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:T(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:T(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:T(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:T(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:T(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:T(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:T(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:T(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:T(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:T(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:T(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:T(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:T(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:T(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:T(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:T(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:T(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:T(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:T(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:T(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:T(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:T(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:T(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:T(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:T(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:T(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:T(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:T(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:T(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:T(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:T(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:T(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:T(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:T(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:T(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:T(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:T(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:T(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:T(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:T(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:T(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:T(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:T(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:T(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:T(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:T(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:T(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:T(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:T(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:T(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:T(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:T(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:T(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:T(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:T(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:T(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:T(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:T(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:T(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:T(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:T(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:T(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:T(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:T(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:T(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:T(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:T(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:T(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:T(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:T(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:T(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:T(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:T(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:T(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:T(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:T(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:T(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:T(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:T(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:T(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:T(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:T(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:T(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:T(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:T(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:T(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:T(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:T(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:T(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:T(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:T(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:T(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:T(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:T(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:T(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:T(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:T(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:T(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:T(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:T(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:T(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:T(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:T(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:T(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:T(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:T(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:T(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:T(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:T(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:T(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:T(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:T(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:T(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:T(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:T(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:T(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:T(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:T(1373,3,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:T(1374,3,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:T(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:T(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:T(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:T(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:T(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:T(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:T(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:T(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:T(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:T(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:T(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:T(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:T(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:T(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:T(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:T(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:T(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:T(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:T(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:T(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:T(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:T(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:T(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:T(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:T(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:T(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:T(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:T(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:T(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:T(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:T(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:T(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:T(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:T(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:T(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:T(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:T(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:T(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:T(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:T(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:T(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:T(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:T(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:T(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:T(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:T(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:T(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:T(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:T(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:T(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:T(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:T(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:T(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:T(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:T(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:T(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:T(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:T(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:T(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:T(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:T(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:T(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:T(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:T(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:T(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:T(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:T(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:T(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:T(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:T(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:T(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:T(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:T(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:T(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:T(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:T(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:T(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:T(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:T(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:T(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:T(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:T(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:T(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:T(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:T(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:T(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:T(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:T(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:T(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:T(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:T(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:T(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:T(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:T(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:T(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:T(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:T(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:T(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:T(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),The_types_of_0_are_incompatible_between_these_types:T(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:T(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:T(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:T(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:T(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:T(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:T(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:T(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:T(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:T(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:T(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:T(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:T(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:T(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:T(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:T(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:T(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:T(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:T(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:T(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:T(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:T(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:T(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:T(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:T(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:T(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:T(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:T(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:T(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:T(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:T(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:T(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:T(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:T(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:T(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:T(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:T(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:T(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:T(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:T(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:T(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:T(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:T(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:T(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:T(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:T(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:T(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:T(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:T(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:T(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:T(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:T(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:T(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:T(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:T(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:T(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:T(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:T(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:T(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:T(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:T(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:T(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:T(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:T(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:T(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:T(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:T(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:T(2355,1,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:T(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:T(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:T(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:T(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:T(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:T(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:T(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:T(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:T(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:T(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:T(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:T(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:T(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:T(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:T(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:T(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:T(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:T(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:T(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:T(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:T(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:T(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:T(2380,1,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:T(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:T(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:T(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:T(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:T(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:T(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:T(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:T(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:T(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:T(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:T(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:T(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:T(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:T(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:T(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:T(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:T(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:T(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:T(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:T(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:T(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:T(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:T(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:T(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:T(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:T(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:T(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:T(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:T(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:T(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:T(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:T(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:T(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:T(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:T(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:T(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:T(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:T(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:T(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:T(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:T(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:T(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:T(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:T(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:T(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:T(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:T(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:T(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:T(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:T(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:T(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:T(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:T(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:T(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:T(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:T(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:T(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:T(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:T(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:T(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:T(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:T(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:T(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:T(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:T(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:T(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:T(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:T(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:T(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:T(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:T(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:T(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:T(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:T(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:T(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:T(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:T(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:T(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:T(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:T(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:T(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:T(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:T(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:T(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:T(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:T(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:T(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:T(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:T(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:T(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:T(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:T(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:T(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:T(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:T(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:T(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:T(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:T(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:T(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:T(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:T(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:T(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:T(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:T(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:T(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:T(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:T(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:T(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:T(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:T(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:T(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:T(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:T(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:T(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:T(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:T(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:T(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:T(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:T(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:T(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:T(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:T(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:T(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:T(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:T(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:T(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:T(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:T(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:T(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:T(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:T(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:T(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:T(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:T(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:T(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:T(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:T(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:T(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:T(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:T(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:T(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:T(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:T(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:T(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:T(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:T(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:T(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:T(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:T(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:T(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:T(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:T(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:T(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:T(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:T(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:T(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:T(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:T(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:T(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:T(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:T(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:T(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:T(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:T(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:T(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:T(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:T(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:T(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:T(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:T(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:T(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:T(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:T(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:T(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:T(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:T(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:T(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:T(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:T(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:T(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:T(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:T(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:T(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:T(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:T(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:T(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:T(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:T(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:T(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:T(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:T(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:T(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:T(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:T(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:T(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:T(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:T(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:T(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:T(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:T(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:T(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:T(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:T(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:T(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:T(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:T(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:T(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:T(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:T(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:T(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:T(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:T(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:T(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:T(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:T(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:T(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:T(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:T(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:T(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:T(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:T(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:T(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:T(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:T(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:T(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:T(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:T(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:T(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:T(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:T(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:T(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:T(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:T(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:T(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:T(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:T(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:T(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:T(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:T(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:T(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:T(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:T(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:T(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:T(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:T(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:T(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:T(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:T(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:T(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:T(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:T(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:T(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:T(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:T(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:T(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:T(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:T(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:T(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:T(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:T(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:T(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:T(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:T(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:T(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:T(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:T(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:T(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:T(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:T(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:T(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:T(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:T(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:T(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:T(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:T(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:T(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:T(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:T(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:T(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:T(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:T(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:T(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:T(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:T(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:T(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:T(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:T(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:T(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:T(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:T(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:T(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:T(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:T(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:T(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:T(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:T(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:T(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:T(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:T(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:T(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:T(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:T(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:T(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:T(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:T(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:T(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:T(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:T(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:T(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:T(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:T(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:T(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:T(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:T(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:T(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:T(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:T(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:T(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:T(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:T(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:T(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:T(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:T(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:T(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:T(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:T(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:T(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:T(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:T(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:T(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:T(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:T(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:T(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:T(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:T(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:T(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:T(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:T(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:T(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:T(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:T(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:T(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:T(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:T(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:T(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:T(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:T(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:T(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:T(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:T(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:T(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:T(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:T(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:T(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:T(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:T(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:T(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:T(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:T(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:T(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:T(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:T(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:T(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:T(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:T(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:T(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:T(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:T(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:T(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:T(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:T(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:T(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:T(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:T(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:T(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:T(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:T(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:T(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:T(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:T(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:T(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:T(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:T(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:T(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:T(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:T(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:T(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:T(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:T(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:T(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:T(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:T(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:T(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:T(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:T(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:T(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:T(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:T(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:T(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:T(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:T(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:T(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:T(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:T(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:T(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:T(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:T(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:T(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:T(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:T(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),Import_declaration_0_is_using_private_name_1:T(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:T(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:T(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:T(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:T(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:T(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:T(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:T(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:T(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:T(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:T(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:T(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:T(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:T(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:T(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:T(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:T(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:T(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:T(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:T(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:T(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:T(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:T(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:T(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:T(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:T(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:T(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:T(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:T(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:T(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:T(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:T(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:T(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:T(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:T(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:T(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:T(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:T(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:T(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:T(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:T(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:T(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:T(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:T(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:T(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:T(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:T(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:T(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:T(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:T(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:T(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:T(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:T(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:T(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:T(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:T(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:T(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:T(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:T(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:T(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:T(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:T(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:T(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:T(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:T(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:T(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:T(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:T(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:T(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:T(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:T(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:T(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:T(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:T(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:T(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:T(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:T(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:T(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:T(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:T(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:T(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:T(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:T(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:T(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:T(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:T(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:T(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:T(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:T(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:T(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:T(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:T(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:T(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:T(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:T(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:T(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:T(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:T(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:T(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:T(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:T(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:T(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:T(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:T(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:T(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:T(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:T(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:T(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:T(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:T(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:T(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:T(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:T(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:T(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:T(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:T(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:T(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:T(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:T(5084,1,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:T(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:T(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:T(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:T(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:T(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:T(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:T(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:T(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:T(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:T(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:T(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:T(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:T(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:T(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:T(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:T(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:T(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:T(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:T(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:T(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:T(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:T(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:T(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:T(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:T(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:T(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:T(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:T(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:T(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:T(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:T(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:T(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:T(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:T(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:T(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:T(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:T(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:T(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:T(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:T(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:T(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:T(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:T(6024,3,"options_6024","options"),file:T(6025,3,"file_6025","file"),Examples_Colon_0:T(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:T(6027,3,"Options_Colon_6027","Options:"),Version_0:T(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:T(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:T(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:T(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:T(6034,3,"KIND_6034","KIND"),FILE:T(6035,3,"FILE_6035","FILE"),VERSION:T(6036,3,"VERSION_6036","VERSION"),LOCATION:T(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:T(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:T(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:T(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:T(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:T(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:T(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:T(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:T(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:T(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:T(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:T(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:T(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:T(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:T(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:T(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:T(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:T(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:T(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:T(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:T(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:T(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:T(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:T(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:T(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:T(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:T(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:T(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:T(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:T(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:T(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:T(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:T(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:T(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:T(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:T(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:T(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:T(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:T(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:T(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:T(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:T(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:T(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:T(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:T(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:T(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:T(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:T(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:T(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:T(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:T(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:T(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:T(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:T(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:T(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:T(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:T(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:T(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:T(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:T(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:T(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:T(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:T(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:T(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:T(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:T(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:T(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:T(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:T(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:T(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:T(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:T(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:T(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:T(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:T(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:T(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:T(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:T(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:T(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:T(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:T(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:T(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:T(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:T(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:T(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:T(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:T(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:T(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:T(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:T(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:T(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:T(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:T(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:T(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:T(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:T(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:T(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:T(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:T(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:T(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:T(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:T(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:T(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:T(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:T(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:T(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:T(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:T(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:T(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:T(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:T(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:T(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:T(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:T(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:T(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:T(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:T(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:T(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:T(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:T(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:T(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:T(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:T(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:T(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:T(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:T(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:T(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:T(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:T(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:T(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:T(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:T(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:T(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:T(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:T(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:T(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:T(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:T(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:T(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:T(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:T(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:T(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:T(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:T(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:T(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:T(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:T(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:T(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:T(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:T(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:T(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:T(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:T(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:T(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:T(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:T(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:T(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:T(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:T(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:T(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:T(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:T(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:T(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:T(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:T(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:T(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:T(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:T(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:T(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:T(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:T(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:T(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:T(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:T(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:T(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:T(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:T(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:T(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:T(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:T(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:T(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:T(6244,3,"Modules_6244","Modules"),File_Management:T(6245,3,"File_Management_6245","File Management"),Emit:T(6246,3,"Emit_6246","Emit"),JavaScript_Support:T(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:T(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:T(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:T(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:T(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:T(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:T(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:T(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:T(6255,3,"Projects_6255","Projects"),Output_Formatting:T(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:T(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:T(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:T(6259,3,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:T(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:T(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:T(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:T(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:T(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:T(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:T(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:T(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:T(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:T(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:T(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:T(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:T(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:T(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Enable_project_compilation:T(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:T(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:T(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:T(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:T(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:T(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:T(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:T(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:T(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:T(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:T(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:T(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:T(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:T(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:T(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:T(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:T(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:T(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:T(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:T(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:T(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:T(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:T(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:T(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:T(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:T(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:T(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:T(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:T(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:T(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:T(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:T(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:T(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:T(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:T(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:T(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:T(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:T(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:T(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:T(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:T(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:T(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:T(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:T(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:T(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:T(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:T(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:T(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:T(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:T(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:T(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:T(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:T(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:T(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:T(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:T(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:T(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:T(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:T(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:T(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:T(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:T(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:T(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:T(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:T(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:T(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:T(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:T(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:T(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:T(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:T(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:T(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:T(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:T(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:T(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:T(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:T(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:T(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:T(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:T(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:T(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:T(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:T(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:T(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:T(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:T(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:T(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:T(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:T(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:T(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:T(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:T(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:T(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:T(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:T(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:T(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:T(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:T(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:T(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:T(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:T(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:T(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:T(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:T(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:T(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:T(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:T(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:T(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:T(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:T(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:T(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:T(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:T(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:T(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:T(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:T(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:T(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:T(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:T(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:T(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:T(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:T(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:T(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:T(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:T(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:T(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:T(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:T(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:T(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:T(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:T(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:T(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:T(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:T(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:T(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:T(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:T(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:T(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:T(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:T(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:T(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:T(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:T(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:T(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:T(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:T(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:T(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:T(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:T(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:T(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:T(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:T(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:T(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:T(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:T(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:T(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:T(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:T(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:T(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:T(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:T(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:T(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:T(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:T(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:T(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:T(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:T(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:T(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:T(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:T(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:T(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:T(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:T(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:T(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:T(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:T(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:T(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:T(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:T(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:T(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:T(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:T(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:T(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:T(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:T(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:T(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:T(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:T(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:T(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:T(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:T(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:T(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:T(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:T(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:T(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:T(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:T(6902,3,"type_Colon_6902","type:"),default_Colon:T(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:T(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:T(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:T(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:T(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:T(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:T(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:T(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:T(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:T(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:T(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:T(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:T(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:T(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:T(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:T(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:T(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:T(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:T(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:T(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:T(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:T(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:T(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:T(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:T(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:T(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:T(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:T(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:T(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:T(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:T(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:T(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:T(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:T(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:T(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:T(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:T(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:T(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:T(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:T(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:T(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:T(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:T(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:T(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:T(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:T(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:T(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:T(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:T(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:T(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:T(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:T(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:T(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:T(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:T(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:T(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:T(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:T(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:T(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:T(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:T(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:T(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:T(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:T(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:T(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:T(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:T(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:T(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:T(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:T(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:T(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:T(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:T(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:T(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:T(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:T(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:T(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:T(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:T(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:T(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:T(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:T(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:T(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:T(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:T(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:T(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:T(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:T(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:T(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:T(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:T(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:T(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:T(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:T(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:T(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:T(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:T(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:T(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:T(8017,1,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:T(8018,1,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:T(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:T(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:T(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:T(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:T(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:T(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:T(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:T(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:T(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:T(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:T(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:T(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:T(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:T(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:T(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:T(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:T(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:T(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:T(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:T(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:T(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:T(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:T(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:T(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:T(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:T(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:T(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:T(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:T(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:T(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:T(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:T(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:T(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:T(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:T(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:T(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:T(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:T(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:T(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:T(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:T(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:T(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:T(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:T(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:T(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:T(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:T(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:T(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:T(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:T(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:T(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:T(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:T(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:T(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:T(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:T(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:T(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:T(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:T(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:T(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:T(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:T(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:T(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:T(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:T(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:T(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:T(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:T(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:T(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:T(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:T(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:T(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:T(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:T(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:T(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:T(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:T(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:T(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:T(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:T(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:T(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:T(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:T(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:T(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:T(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:T(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:T(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:T(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:T(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:T(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:T(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:T(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:T(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:T(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:T(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:T(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:T(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:T(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:T(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:T(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:T(95005,3,"Extract_function_95005","Extract function"),Extract_constant:T(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:T(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:T(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:T(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:T(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:T(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:T(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:T(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:T(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:T(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:T(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:T(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:T(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:T(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:T(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:T(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:T(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:T(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:T(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:T(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:T(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:T(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:T(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:T(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:T(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:T(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:T(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:T(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:T(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:T(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:T(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:T(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:T(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:T(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:T(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:T(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:T(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:T(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:T(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:T(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:T(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:T(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:T(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:T(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:T(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:T(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:T(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:T(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:T(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:T(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:T(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:T(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:T(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:T(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:T(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:T(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:T(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:T(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:T(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:T(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:T(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:T(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:T(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:T(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:T(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:T(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:T(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:T(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:T(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:T(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:T(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:T(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:T(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:T(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:T(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:T(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:T(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:T(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:T(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:T(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:T(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:T(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:T(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:T(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:T(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:T(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:T(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:T(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:T(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:T(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:T(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:T(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:T(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:T(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:T(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:T(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:T(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:T(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:T(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:T(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:T(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:T(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:T(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:T(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:T(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:T(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:T(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:T(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:T(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:T(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:T(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:T(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:T(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:T(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:T(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:T(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:T(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:T(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:T(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:T(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:T(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:T(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:T(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:T(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:T(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:T(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:T(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:T(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:T(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:T(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:T(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:T(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:T(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:T(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:T(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:T(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:T(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:T(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:T(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:T(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:T(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:T(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:T(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:T(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:T(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:T(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:T(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:T(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:T(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:T(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:T(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:T(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:T(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:T(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:T(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:T(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:T(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:T(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:T(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:T(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:T(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:T(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:T(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:T(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:T(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:T(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:T(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:T(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:T(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:T(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:T(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:T(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:T(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:T(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:T(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:T(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:T(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:T(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:T(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:T(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:T(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:T(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:T(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:T(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:T(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:T(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:T(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:T(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:T(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:T(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:T(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:T(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:T(18037,1,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:T(18038,1,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:T(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:T(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:T(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:T(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:T(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:T(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:T(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:T(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:T(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:T(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:T(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:T(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string.")}}});function id(e){return e>=79}function Wue(e){return e===31||id(e)}function BI(e,t){if(e<t[0])return!1;let r=0,i=t.length,o;for(;r+1<i;){if(o=r+(i-r)/2,o-=o%2,t[o]<=e&&e<=t[o+1])return!0;e<t[o]?i=o:r=o+2}return!1}function JM(e,t){return t>=2?BI(e,ede):t===1?BI(e,Que):BI(e,Yue)}function FPe(e,t){return t>=2?BI(e,tde):t===1?BI(e,Zue):BI(e,$ue)}function BPe(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function vo(e){return ide[e]}function mT(e){return QW.get(e)}function tN(e){const t=[];let r=0,i=0;for(;r<e.length;){const o=e.charCodeAt(r);switch(r++,o){case 13:e.charCodeAt(r)===10&&r++;case 10:t.push(i),i=r;break;default:o>127&&Tu(o)&&(t.push(i),i=r);break}}return t.push(i),t}function nN(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):KW(hg(e),t,r,e.text,i)}function KW(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:D.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Oo(e,tN(i)):"unknown"}`));const s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t<e.length-1?D.assert(s<e[t+1]):i!==void 0&&D.assert(s<=i.length),s)}function hg(e){return e.lineMap||(e.lineMap=tN(e.text))}function rN(e,t){const r=GI(e,t);return{line:r,character:t-e[r]}}function GI(e,t,r){let i=kv(e,t,yl,qs,r);return i<0&&(i=~i-1,D.assert(i!==-1,"position cannot precede the beginning of the file")),i}function UI(e,t,r){if(t===r)return 0;const i=hg(e),o=Math.min(t,r),s=o===r,c=s?t:r,f=GI(i,o),d=GI(i,c,f);return s?f-d:d-f}function cl(e,t){return rN(hg(e),t)}function gg(e){return Um(e)||Tu(e)}function Um(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Tu(e){return e===10||e===13||e===8232||e===8233}function VI(e){return e>=48&&e<=57}function KM(e){return VI(e)||e>=65&&e<=70||e>=97&&e<=102}function GPe(e){return e<=1114111}function XW(e){return e>=48&&e<=55}function zue(e,t){const r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function Xo(e,t,r,i,o){if(lm(t))return t;let s=!1;for(;;){const c=e.charCodeAt(t);switch(c){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&!Tu(e.charCodeAt(t));)t++;s=!1;continue}if(e.charCodeAt(t+1)===42){for(t+=2;t<e.length;){if(e.charCodeAt(t)===42&&e.charCodeAt(t+1)===47){t+=2;break}t++}s=!1;continue}break;case 60:case 124:case 61:case 62:if(GA(e,t)){t=jI(e,t),s=!1;continue}break;case 35:if(t===0&&YW(e,t)){t=$W(e,t),s=!1;continue}break;case 42:if(s){t++,s=!1;continue}break;default:if(c>127&&gg(c)){t++;continue}break}return t}}function GA(e,t){if(D.assert(t>=0),t===0||Tu(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+sN<e.length){for(let i=0;i<sN;i++)if(e.charCodeAt(t+i)!==r)return!1;return r===61||e.charCodeAt(t+sN)===32}}return!1}function jI(e,t,r){r&&r(_.Merge_conflict_marker_encountered,t,sN);const i=e.charCodeAt(t),o=e.length;if(i===60||i===62)for(;t<o&&!Tu(e.charCodeAt(t));)t++;else for(D.assert(i===124||i===61);t<o;){const s=e.charCodeAt(t);if((s===61||s===62)&&s!==i&&GA(e,t))break;t++}return t}function YW(e,t){return D.assert(t===0),$M.test(e)}function $W(e,t){const r=$M.exec(e)[0];return t=t+r.length,t}function XM(e,t,r,i,o,s,c){let f,d,v,h,E=!1,C=i,L=c;if(r===0){C=!0;const I=YM(t);I&&(r=I.length)}e:for(;r>=0&&r<t.length;){const I=t.charCodeAt(r);switch(I){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)break e;C=!0,E&&(h=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:const O=t.charCodeAt(r+1);let k=!1;if(O===47||O===42){const G=O===47?2:3,V=r;if(r+=2,O===47)for(;r<t.length;){if(Tu(t.charCodeAt(r))){k=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(C){if(E&&(L=o(f,d,v,h,s,L),!e&&L))return L;f=V,d=r,v=G,h=k,E=!0}continue}break e;default:if(I>127&&gg(I)){E&&Tu(I)&&(h=!0),r++;continue}break e}}return E&&(L=o(f,d,v,h,s,L)),L}function iN(e,t,r,i){return XM(!1,e,t,!1,r,i)}function aN(e,t,r,i){return XM(!1,e,t,!0,r,i)}function que(e,t,r,i,o){return XM(!0,e,t,!1,r,i,o)}function Jue(e,t,r,i,o){return XM(!0,e,t,!0,r,i,o)}function Kue(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function xh(e,t){return que(e,t,Kue,void 0,void 0)}function nb(e,t){return Jue(e,t,Kue,void 0,void 0)}function YM(e){const t=$M.exec(e);if(t)return t[0]}function Ah(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&JM(e,t)}function rb(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&FPe(e,t)}function H_(e,t,r){let i=xy(e,0);if(!Ah(i,t))return!1;for(let o=Nv(i);o<e.length;o+=Nv(i))if(!rb(i=xy(e,o),t,r))return!1;return!0}function Sy(e,t,r=0,i,o,s,c){var f=i,d,v,h,E,C,L,I,O,k=0;Ht(f,s,c);var G={getStartPos:()=>h,getTextPos:()=>d,getToken:()=>C,getTokenPos:()=>E,getTokenText:()=>f.substring(E,d),getTokenValue:()=>L,hasUnicodeEscape:()=>(I&1024)!==0,hasExtendedUnicodeEscape:()=>(I&8)!==0,hasPrecedingLineBreak:()=>(I&1)!==0,hasPrecedingJSDocComment:()=>(I&2)!==0,isIdentifier:()=>C===79||C>116,isReservedWord:()=>C>=81&&C<=116,isUnterminated:()=>(I&4)!==0,getCommentDirectives:()=>O,getNumericLiteralFlags:()=>I&1008,getTokenFlags:()=>I,reScanGreaterToken:Ye,reScanAsteriskEqualsToken:We,reScanSlashToken:Fe,reScanTemplateToken:Et,reScanTemplateHeadOrNoSubstitutionTemplate:Vt,scanJsxIdentifier:Hn,scanJsxAttributeValue:kn,reScanJsxAttributeValue:Zt,reScanJsxToken:tt,reScanLessThanToken:at,reScanHashToken:on,reScanQuestionToken:Qt,reScanInvalidIdentifier:Oe,scanJsxToken:Pn,scanJsDocToken:_r,scan:ze,getText:At,clearCommentDirectives:vn,setText:Ht,setScriptTarget:ir,setLanguageVariant:cr,setOnError:un,setTextPos:Mi,setInJSDocType:vi,tryScan:Or,lookAhead:Zi,scanRange:Qi};return D.isDebugging&&Object.defineProperty(G,"__debugShowCurrentPositionInText",{get:()=>{const Nn=G.getText();return Nn.slice(0,G.getStartPos())+"║"+Nn.slice(G.getStartPos())}}),G;function V(Nn,rn=d,Mn){if(o){const Ar=d;d=rn,o(Nn,Mn||0),d=Ar}}function H(){let Nn=d,rn=!1,Mn=!1,Ar="";for(;;){const Hr=f.charCodeAt(d);if(Hr===95){I|=512,rn?(rn=!1,Mn=!0,Ar+=f.substring(Nn,d)):V(Mn?_.Multiple_consecutive_numeric_separators_are_not_permitted:_.Numeric_separators_are_not_allowed_here,d,1),d++,Nn=d;continue}if(VI(Hr)){rn=!0,Mn=!1,d++;continue}break}return f.charCodeAt(d-1)===95&&V(_.Numeric_separators_are_not_allowed_here,d-1,1),Ar+f.substring(Nn,d)}function ne(){const Nn=d,rn=H();let Mn,Ar;f.charCodeAt(d)===46&&(d++,Mn=H());let Hr=d;if(f.charCodeAt(d)===69||f.charCodeAt(d)===101){d++,I|=16,(f.charCodeAt(d)===43||f.charCodeAt(d)===45)&&d++;const yt=d,Nt=H();Nt?(Ar=f.substring(Hr,yt)+Nt,Hr=d):V(_.Digit_expected)}let we;if(I&512?(we=rn,Mn&&(we+="."+Mn),Ar&&(we+=Ar)):we=f.substring(Nn,Hr),Mn!==void 0||I&16)return Y(Nn,Mn===void 0&&!!(I&16)),{type:8,value:""+ +we};{L=we;const yt=Ge();return Y(Nn),{type:yt,value:L}}}function Y(Nn,rn){if(!Ah(xy(f,d),e))return;const Mn=d,{length:Ar}=te();Ar===1&&f[Mn]==="n"?V(rn?_.A_bigint_literal_cannot_use_exponential_notation:_.A_bigint_literal_must_be_an_integer,Nn,Mn-Nn+1):(V(_.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Mn,Ar),d=Mn)}function $(){const Nn=d;for(;XW(f.charCodeAt(d));)d++;return+f.substring(Nn,d)}function M(Nn,rn){const Mn=re(Nn,!1,rn);return Mn?parseInt(Mn,16):-1}function de(Nn,rn){return re(Nn,!0,rn)}function re(Nn,rn,Mn){let Ar=[],Hr=!1,we=!1;for(;Ar.length<Nn||rn;){let yt=f.charCodeAt(d);if(Mn&&yt===95){I|=512,Hr?(Hr=!1,we=!0):V(we?_.Multiple_consecutive_numeric_separators_are_not_permitted:_.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(Hr=Mn,yt>=65&&yt<=70)yt+=97-65;else if(!(yt>=48&&yt<=57||yt>=97&&yt<=102))break;Ar.push(yt),d++,we=!1}return Ar.length<Nn&&(Ar=[]),f.charCodeAt(d-1)===95&&V(_.Numeric_separators_are_not_allowed_here,d-1,1),String.fromCharCode(...Ar)}function be(Nn=!1){const rn=f.charCodeAt(d);d++;let Mn="",Ar=d;for(;;){if(d>=v){Mn+=f.substring(Ar,d),I|=4,V(_.Unterminated_string_literal);break}const Hr=f.charCodeAt(d);if(Hr===rn){Mn+=f.substring(Ar,d),d++;break}if(Hr===92&&!Nn){Mn+=f.substring(Ar,d),Mn+=W(),Ar=d;continue}if(Tu(Hr)&&!Nn){Mn+=f.substring(Ar,d),I|=4,V(_.Unterminated_string_literal);break}d++}return Mn}function ae(Nn){const rn=f.charCodeAt(d)===96;d++;let Mn=d,Ar="",Hr;for(;;){if(d>=v){Ar+=f.substring(Mn,d),I|=4,V(_.Unterminated_template_literal),Hr=rn?14:17;break}const we=f.charCodeAt(d);if(we===96){Ar+=f.substring(Mn,d),d++,Hr=rn?14:17;break}if(we===36&&d+1<v&&f.charCodeAt(d+1)===123){Ar+=f.substring(Mn,d),d+=2,Hr=rn?15:16;break}if(we===92){Ar+=f.substring(Mn,d),Ar+=W(Nn),Mn=d;continue}if(we===13){Ar+=f.substring(Mn,d),d++,d<v&&f.charCodeAt(d)===10&&d++,Ar+=`
- `,Mn=d;continue}d++}return D.assert(Hr!==void 0),L=Ar,Hr}function W(Nn){const rn=d;if(d++,d>=v)return V(_.Unexpected_end_of_text),"";const Mn=f.charCodeAt(d);switch(d++,Mn){case 48:return Nn&&d<v&&VI(f.charCodeAt(d))?(d++,I|=2048,f.substring(rn,d)):"\0";case 98:return"\b";case 116:return" ";case 110:return`
- `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(Nn){for(let Ar=d;Ar<d+4;Ar++)if(Ar<v&&!KM(f.charCodeAt(Ar))&&f.charCodeAt(Ar)!==123)return d=Ar,I|=2048,f.substring(rn,d)}if(d<v&&f.charCodeAt(d)===123){if(d++,Nn&&!KM(f.charCodeAt(d)))return I|=2048,f.substring(rn,d);if(Nn){const Ar=d,Hr=de(1,!1),we=Hr?parseInt(Hr,16):-1;if(!GPe(we)||f.charCodeAt(d)!==125)return I|=2048,f.substring(rn,d);d=Ar}return I|=8,me()}return I|=1024,ce(4);case 120:if(Nn)if(KM(f.charCodeAt(d))){if(!KM(f.charCodeAt(d+1)))return d++,I|=2048,f.substring(rn,d)}else return I|=2048,f.substring(rn,d);return ce(2);case 13:d<v&&f.charCodeAt(d)===10&&d++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(Mn)}}function ce(Nn){const rn=M(Nn,!1);return rn>=0?String.fromCharCode(rn):(V(_.Hexadecimal_digit_expected),"")}function me(){const Nn=de(1,!1),rn=Nn?parseInt(Nn,16):-1;let Mn=!1;return rn<0?(V(_.Hexadecimal_digit_expected),Mn=!0):rn>1114111&&(V(_.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Mn=!0),d>=v?(V(_.Unexpected_end_of_text),Mn=!0):f.charCodeAt(d)===125?d++:(V(_.Unterminated_Unicode_escape_sequence),Mn=!0),Mn?"":HI(rn)}function Ee(){if(d+5<v&&f.charCodeAt(d+1)===117){const Nn=d;d+=2;const rn=M(4,!1);return d=Nn,rn}return-1}function xe(){if(xy(f,d+1)===117&&xy(f,d+2)===123){const Nn=d;d+=3;const rn=de(1,!1),Mn=rn?parseInt(rn,16):-1;return d=Nn,Mn}return-1}function te(){let Nn="",rn=d;for(;d<v;){let Mn=xy(f,d);if(rb(Mn,e))d+=Nv(Mn);else if(Mn===92){if(Mn=xe(),Mn>=0&&rb(Mn,e)){d+=3,I|=8,Nn+=me(),rn=d;continue}if(Mn=Ee(),!(Mn>=0&&rb(Mn,e)))break;I|=1024,Nn+=f.substring(rn,d),Nn+=HI(Mn),d+=6,rn=d}else break}return Nn+=f.substring(rn,d),Nn}function Qe(){const Nn=L.length;if(Nn>=2&&Nn<=12){const rn=L.charCodeAt(0);if(rn>=97&&rn<=122){const Mn=Xue.get(L);if(Mn!==void 0)return C=Mn}}return C=79}function Ve(Nn){let rn="",Mn=!1,Ar=!1;for(;;){const Hr=f.charCodeAt(d);if(Hr===95){I|=512,Mn?(Mn=!1,Ar=!0):V(Ar?_.Multiple_consecutive_numeric_separators_are_not_permitted:_.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(Mn=!0,!VI(Hr)||Hr-48>=Nn)break;rn+=f[d],d++,Ar=!1}return f.charCodeAt(d-1)===95&&V(_.Numeric_separators_are_not_allowed_here,d-1,1),rn}function Ge(){return f.charCodeAt(d)===110?(L+="n",I&384&&(L=Bk(L)+"n"),d++,9):(L=""+(I&128?parseInt(L.slice(2),2):I&256?parseInt(L.slice(2),8):+L),8)}function ze(){h=d,I=0;let Nn=!1;for(;;){if(E=d,d>=v)return C=1;const rn=xy(f,d);if(rn===35&&d===0&&YW(f,d)){if(d=$W(f,d),t)continue;return C=6}switch(rn){case 10:case 13:if(I|=1,t){d++;continue}else return rn===13&&d+1<v&&f.charCodeAt(d+1)===10?d+=2:d++,C=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(t){d++;continue}else{for(;d<v&&Um(f.charCodeAt(d));)d++;return C=5}case 33:return f.charCodeAt(d+1)===61?f.charCodeAt(d+2)===61?(d+=3,C=37):(d+=2,C=35):(d++,C=53);case 34:case 39:return L=be(),C=10;case 96:return C=ae(!1);case 37:return f.charCodeAt(d+1)===61?(d+=2,C=69):(d++,C=44);case 38:return f.charCodeAt(d+1)===38?f.charCodeAt(d+2)===61?(d+=3,C=76):(d+=2,C=55):f.charCodeAt(d+1)===61?(d+=2,C=73):(d++,C=50);case 40:return d++,C=20;case 41:return d++,C=21;case 42:if(f.charCodeAt(d+1)===61)return d+=2,C=66;if(f.charCodeAt(d+1)===42)return f.charCodeAt(d+2)===61?(d+=3,C=67):(d+=2,C=42);if(d++,k&&!Nn&&I&1){Nn=!0;continue}return C=41;case 43:return f.charCodeAt(d+1)===43?(d+=2,C=45):f.charCodeAt(d+1)===61?(d+=2,C=64):(d++,C=39);case 44:return d++,C=27;case 45:return f.charCodeAt(d+1)===45?(d+=2,C=46):f.charCodeAt(d+1)===61?(d+=2,C=65):(d++,C=40);case 46:return VI(f.charCodeAt(d+1))?(L=ne().value,C=8):f.charCodeAt(d+1)===46&&f.charCodeAt(d+2)===46?(d+=3,C=25):(d++,C=24);case 47:if(f.charCodeAt(d+1)===47){for(d+=2;d<v&&!Tu(f.charCodeAt(d));)d++;if(O=st(O,f.slice(E,d),nde,E),t)continue;return C=2}if(f.charCodeAt(d+1)===42){d+=2,f.charCodeAt(d)===42&&f.charCodeAt(d+1)!==47&&(I|=2);let Nt=!1,Ce=E;for(;d<v;){const pt=f.charCodeAt(d);if(pt===42&&f.charCodeAt(d+1)===47){d+=2,Nt=!0;break}d++,Tu(pt)&&(Ce=d,I|=1)}if(O=st(O,f.slice(Ce,d),rde,Ce),Nt||V(_.Asterisk_Slash_expected),t)continue;return Nt||(I|=4),C=3}return f.charCodeAt(d+1)===61?(d+=2,C=68):(d++,C=43);case 48:if(d+2<v&&(f.charCodeAt(d+1)===88||f.charCodeAt(d+1)===120))return d+=2,L=de(1,!0),L||(V(_.Hexadecimal_digit_expected),L="0"),L="0x"+L,I|=64,C=Ge();if(d+2<v&&(f.charCodeAt(d+1)===66||f.charCodeAt(d+1)===98))return d+=2,L=Ve(2),L||(V(_.Binary_digit_expected),L="0"),L="0b"+L,I|=128,C=Ge();if(d+2<v&&(f.charCodeAt(d+1)===79||f.charCodeAt(d+1)===111))return d+=2,L=Ve(8),L||(V(_.Octal_digit_expected),L="0"),L="0o"+L,I|=256,C=Ge();if(d+1<v&&XW(f.charCodeAt(d+1)))return L=""+$(),I|=32,C=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return{type:C,value:L}=ne(),C;case 58:return d++,C=58;case 59:return d++,C=26;case 60:if(GA(f,d)){if(d=jI(f,d,V),t)continue;return C=7}return f.charCodeAt(d+1)===60?f.charCodeAt(d+2)===61?(d+=3,C=70):(d+=2,C=47):f.charCodeAt(d+1)===61?(d+=2,C=32):r===1&&f.charCodeAt(d+1)===47&&f.charCodeAt(d+2)!==42?(d+=2,C=30):(d++,C=29);case 61:if(GA(f,d)){if(d=jI(f,d,V),t)continue;return C=7}return f.charCodeAt(d+1)===61?f.charCodeAt(d+2)===61?(d+=3,C=36):(d+=2,C=34):f.charCodeAt(d+1)===62?(d+=2,C=38):(d++,C=63);case 62:if(GA(f,d)){if(d=jI(f,d,V),t)continue;return C=7}return d++,C=31;case 63:return f.charCodeAt(d+1)===46&&!VI(f.charCodeAt(d+2))?(d+=2,C=28):f.charCodeAt(d+1)===63?f.charCodeAt(d+2)===61?(d+=3,C=77):(d+=2,C=60):(d++,C=57);case 91:return d++,C=22;case 93:return d++,C=23;case 94:return f.charCodeAt(d+1)===61?(d+=2,C=78):(d++,C=52);case 123:return d++,C=18;case 124:if(GA(f,d)){if(d=jI(f,d,V),t)continue;return C=7}return f.charCodeAt(d+1)===124?f.charCodeAt(d+2)===61?(d+=3,C=75):(d+=2,C=56):f.charCodeAt(d+1)===61?(d+=2,C=74):(d++,C=51);case 125:return d++,C=19;case 126:return d++,C=54;case 64:return d++,C=59;case 92:const Mn=xe();if(Mn>=0&&Ah(Mn,e))return d+=3,I|=8,L=me()+te(),C=Qe();const Ar=Ee();return Ar>=0&&Ah(Ar,e)?(d+=6,I|=1024,L=String.fromCharCode(Ar)+te(),C=Qe()):(V(_.Invalid_character),d++,C=0);case 35:if(d!==0&&f[d+1]==="!")return V(_.can_only_be_used_at_the_start_of_a_file),d++,C=0;const Hr=xy(f,d+1);if(Hr===92){d++;const Nt=xe();if(Nt>=0&&Ah(Nt,e))return d+=3,I|=8,L="#"+me()+te(),C=80;const Ce=Ee();if(Ce>=0&&Ah(Ce,e))return d+=6,I|=1024,L="#"+String.fromCharCode(Ce)+te(),C=80;d--}return Ah(Hr,e)?(d++,Me(Hr,e)):(L="#",V(_.Invalid_character,d++,Nv(rn))),C=80;default:const we=Me(rn,e);if(we)return C=we;if(Um(rn)){d+=Nv(rn);continue}else if(Tu(rn)){I|=1,d+=Nv(rn);continue}const yt=Nv(rn);return V(_.Invalid_character,d,yt),d+=yt,C=0}}}function Oe(){D.assert(C===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),d=E=h,I=0;const Nn=xy(f,d),rn=Me(Nn,99);return rn?C=rn:(d+=Nv(Nn),C)}function Me(Nn,rn){let Mn=Nn;if(Ah(Mn,rn)){for(d+=Nv(Mn);d<v&&rb(Mn=xy(f,d),rn);)d+=Nv(Mn);return L=f.substring(E,d),Mn===92&&(L+=te()),Qe()}}function Ye(){if(C===31){if(f.charCodeAt(d)===62)return f.charCodeAt(d+1)===62?f.charCodeAt(d+2)===61?(d+=3,C=72):(d+=2,C=49):f.charCodeAt(d+1)===61?(d+=2,C=71):(d++,C=48);if(f.charCodeAt(d)===61)return d++,C=33}return C}function We(){return D.assert(C===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),d=E+1,C=63}function Fe(){if(C===43||C===68){let Nn=E+1,rn=!1,Mn=!1;for(;;){if(Nn>=v){I|=4,V(_.Unterminated_regular_expression_literal);break}const Ar=f.charCodeAt(Nn);if(Tu(Ar)){I|=4,V(_.Unterminated_regular_expression_literal);break}if(rn)rn=!1;else if(Ar===47&&!Mn){Nn++;break}else Ar===91?Mn=!0:Ar===92?rn=!0:Ar===93&&(Mn=!1);Nn++}for(;Nn<v&&rb(f.charCodeAt(Nn),e);)Nn++;d=Nn,L=f.substring(E,d),C=13}return C}function st(Nn,rn,Mn,Ar){const Hr=Ct(NI(rn),Mn);return Hr===void 0?Nn:Bn(Nn,{range:{pos:Ar,end:d},type:Hr})}function Ct(Nn,rn){const Mn=rn.exec(Nn);if(Mn)switch(Mn[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function Et(Nn){return D.assert(C===19,"'reScanTemplateToken' should only be called on a '}'"),d=E,C=ae(Nn)}function Vt(){return d=E,C=ae(!0)}function tt(Nn=!0){return d=E=h,C=Pn(Nn)}function at(){return C===47?(d=E+1,C=29):C}function on(){return C===80?(d=E+1,C=62):C}function Qt(){return D.assert(C===60,"'reScanQuestionToken' should only be called on a '??'"),d=E+1,C=57}function Pn(Nn=!0){if(h=E=d,d>=v)return C=1;let rn=f.charCodeAt(d);if(rn===60)return f.charCodeAt(d+1)===47?(d+=2,C=30):(d++,C=29);if(rn===123)return d++,C=18;let Mn=0;for(;d<v&&(rn=f.charCodeAt(d),rn!==123);){if(rn===60){if(GA(f,d))return d=jI(f,d,V),C=7;break}if(rn===62&&V(_.Unexpected_token_Did_you_mean_or_gt,d,1),rn===125&&V(_.Unexpected_token_Did_you_mean_or_rbrace,d,1),Tu(rn)&&Mn===0)Mn=-1;else{if(!Nn&&Tu(rn)&&Mn>0)break;gg(rn)||(Mn=d)}d++}return L=f.substring(h,d),Mn===-1?12:11}function Hn(){if(id(C)){let Nn=!1;for(;d<v;){const rn=f.charCodeAt(d);if(rn===45){L+="-",d++;continue}else if(rn===58&&!Nn){L+=":",d++,Nn=!0,C=79;continue}const Mn=d;if(L+=te(),d===Mn)break}return L.slice(-1)===":"&&(L=L.slice(0,-1),d--),Qe()}return C}function kn(){switch(h=d,f.charCodeAt(d)){case 34:case 39:return L=be(!0),C=10;default:return ze()}}function Zt(){return d=E=h,kn()}function _r(){if(h=E=d,I=0,d>=v)return C=1;const Nn=xy(f,d);switch(d+=Nv(Nn),Nn){case 9:case 11:case 12:case 32:for(;d<v&&Um(f.charCodeAt(d));)d++;return C=5;case 64:return C=59;case 13:f.charCodeAt(d)===10&&d++;case 10:return I|=1,C=4;case 42:return C=41;case 123:return C=18;case 125:return C=19;case 91:return C=22;case 93:return C=23;case 60:return C=29;case 62:return C=31;case 61:return C=63;case 44:return C=27;case 46:return C=24;case 96:return C=61;case 35:return C=62;case 92:d--;const rn=xe();if(rn>=0&&Ah(rn,e))return d+=3,I|=8,L=me()+te(),C=Qe();const Mn=Ee();return Mn>=0&&Ah(Mn,e)?(d+=6,I|=1024,L=String.fromCharCode(Mn)+te(),C=Qe()):(d++,C=0)}if(Ah(Nn,e)){let rn=Nn;for(;d<v&&rb(rn=xy(f,d),e)||f.charCodeAt(d)===45;)d+=Nv(rn);return L=f.substring(E,d),rn===92&&(L+=te()),C=Qe()}else return C=0}function wi(Nn,rn){const Mn=d,Ar=h,Hr=E,we=C,yt=L,Nt=I,Ce=Nn();return(!Ce||rn)&&(d=Mn,h=Ar,E=Hr,C=we,L=yt,I=Nt),Ce}function Qi(Nn,rn,Mn){const Ar=v,Hr=d,we=h,yt=E,Nt=C,Ce=L,pt=I,pe=O;Ht(f,Nn,rn);const ie=Mn();return v=Ar,d=Hr,h=we,E=yt,C=Nt,L=Ce,I=pt,O=pe,ie}function Zi(Nn){return wi(Nn,!0)}function Or(Nn){return wi(Nn,!1)}function At(){return f}function vn(){O=void 0}function Ht(Nn,rn,Mn){f=Nn||"",v=Mn===void 0?f.length:rn+Mn,Mi(rn||0)}function un(Nn){o=Nn}function ir(Nn){e=Nn}function cr(Nn){r=Nn}function Mi(Nn){D.assert(Nn>=0),d=Nn,h=Nn,E=Nn,C=0,L=void 0,I=0}function vi(Nn){k+=Nn?1:-1}}function Nv(e){return e>=65536?2:1}function UPe(e){if(D.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function HI(e){return ade(e)}var oN,Xue,QW,Yue,$ue,Que,Zue,ede,tde,nde,rde,ide,sN,$M,xy,ade,VPe=S({"src/compiler/scanner.ts"(){Na(),oN={abstract:126,accessor:127,any:131,as:128,asserts:129,assert:130,bigint:160,boolean:134,break:81,case:82,catch:83,class:84,continue:86,const:85,constructor:135,debugger:87,declare:136,default:88,delete:89,do:90,else:91,enum:92,export:93,extends:94,false:95,finally:96,for:97,from:158,function:98,get:137,if:99,implements:117,import:100,in:101,infer:138,instanceof:102,interface:118,intrinsic:139,is:140,keyof:141,let:119,module:142,namespace:143,never:144,new:103,null:104,number:148,object:149,package:120,private:121,protected:122,public:123,override:161,out:145,readonly:146,require:147,global:159,return:105,satisfies:150,set:151,static:124,string:152,super:106,switch:107,symbol:153,this:108,throw:109,true:110,try:111,type:154,typeof:112,undefined:155,unique:156,unknown:157,var:113,void:114,while:115,with:116,yield:125,async:132,await:133,of:162},Xue=new Map(Object.entries(oN)),QW=new Map(Object.entries(Ka(Ti({},oN),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),Yue=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],$ue=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Que=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Zue=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],ede=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],tde=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],nde=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,rde=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,ide=BPe(QW),sN=7,$M=/^#!.*/,xy=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(t,r){const i=t.length;if(r<0||r>=i)return;const o=t.charCodeAt(r);if(o>=55296&&o<=56319&&i>r+1){const s=t.charCodeAt(r+1);if(s>=56320&&s<=57343)return(o-55296)*1024+s-56320+65536}return o},ade=String.fromCodePoint?e=>String.fromCodePoint(e):UPe}});function zc(e){return Nf(e)||Bm(e)}function UA(e){return IR(e,Nk)}function QM(e){switch(ts(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function uu(e){return e.start+e.length}function ode(e){return e.length===0}function ZW(e,t){return t>=e.start&&t<uu(e)}function ZM(e,t){return t>=e.pos&&t<=e.end}function sde(e,t){return t.start>=e.start&&uu(t)<=uu(e)}function jPe(e,t){return lde(e,t)!==void 0}function lde(e,t){const r=ude(e,t);return r&&r.length===0?void 0:r}function HPe(e,t){return t3(e.start,e.length,t.start,t.length)}function e3(e,t,r){return t3(e.start,e.length,t,r)}function t3(e,t,r,i){const o=e+t,s=r+i;return r<=o&&s>=e}function cde(e,t){return t<=uu(e)&&t>=e.start}function ude(e,t){const r=Math.max(e.start,t.start),i=Math.min(uu(e),uu(t));return r<=i?Tc(r,i):void 0}function Pc(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Tc(e,t){return Pc(e,t-e)}function WI(e){return Pc(e.span.start,e.newLength)}function dde(e){return ode(e.span)&&e.newLength===0}function lN(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function WPe(e){if(e.length===0)return wz;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=uu(t.span),o=r+t.newLength;for(let s=1;s<e.length;s++){const c=e[s],f=r,d=i,v=o,h=c.span.start,E=uu(c.span),C=h+c.newLength;r=Math.min(f,h),i=Math.max(d,d+(E-v)),o=Math.max(C,C+(v-E))}return lN(Tc(r,i),o-r)}function zPe(e){if(e&&e.kind===165){for(let t=e;t;t=t.parent)if(Xa(t)||_i(t)||t.kind===261)return t}}function df(e,t){return Fa(e)&&$r(e,16476)&&t.kind===173}function fde(e){return Ya(e)?Zn(e.elements,_de):!1}function _de(e){return Fc(e)?!0:fde(e.name)}function VA(e){let t=e.parent;for(;ms(t.parent);)t=t.parent.parent;return t.parent}function ez(e,t){ms(e)&&(e=VA(e));let r=t(e);return e.kind===257&&(e=e.parent),e&&e.kind===258&&(r|=t(e),e=e.parent),e&&e.kind===240&&(r|=t(e)),r}function Ay(e){return ez(e,Hu)}function tz(e){return ez(e,E_e)}function xp(e){return ez(e,t=>t.flags)}function qPe(e,t,r){const i=e.toLowerCase(),o=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(!o){r&&r.push(Gs(_.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}const s=o[1],c=o[3];Ur(Dz,i)&&!f(s,c,r)&&f(s,void 0,r),eue(e);function f(d,v,h){const E=Ko(t.getExecutingFilePath()),C=yi(E);let L=Bi(C,d);if(v&&(L=L+"-"+v),L=t.resolvePath(Bi(L,"diagnosticMessages.generated.json")),!t.fileExists(L))return!1;let I="";try{I=t.readFile(L)}catch(O){return h&&h.push(Gs(_.Unable_to_open_file_0,L)),!1}try{H_e(JSON.parse(I))}catch(O){return h&&h.push(Gs(_.Corrupted_locale_file_0,L)),!1}return!0}}function Cl(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function rr(e,t){for(;e;){const r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function zI(e){return(e.flags&8)===0}function va(e,t){if(e===void 0||zI(e))return e;for(e=e.original;e;){if(zI(e))return!t||t(e)?e:void 0;e=e.original}}function ul(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function ra(e){const t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Mr(e){return ra(e.escapedText)}function ib(e){const t=mT(e.escapedText);return t?si(t,Dd):void 0}function Gl(e){return e.valueDeclaration&&ad(e.valueDeclaration)?Mr(e.valueDeclaration.name):ra(e.escapedName)}function pde(e){const t=e.parent.parent;if(t){if(Au(t))return n3(t);switch(t.kind){case 240:if(t.declarationList&&t.declarationList.declarations[0])return n3(t.declarationList.declarations[0]);break;case 241:let r=t.expression;switch(r.kind===223&&r.operatorToken.kind===63&&(r=r.left),r.kind){case 208:return r.name;case 209:const i=r.argumentExpression;if(je(i))return i}break;case 214:return n3(t.expression);case 253:{if(Au(t.statement)||vt(t.statement))return n3(t.statement);break}}}}function n3(e){const t=Ia(e);return t&&je(t)?t:void 0}function cN(e,t){return!!(Su(e)&&je(e.name)&&Mr(e.name)===Mr(t)||gc(e)&&kt(e.declarationList.declarations,r=>cN(r,t)))}function mde(e){return e.name||pde(e)}function Su(e){return!!e.name}function nz(e){switch(e.kind){case 79:return e;case 351:case 344:{const{name:r}=e;if(r.kind===163)return r.right;break}case 210:case 223:{const r=e;switch(wl(r)){case 1:case 4:case 5:case 3:return J3(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 349:return mde(e);case 343:return pde(e);case 274:{const{expression:r}=e;return je(r)?r:void 0}case 209:const t=e;if(q3(t))return t.argumentExpression}return e.name}function Ia(e){if(e!==void 0)return nz(e)||(Us(e)||Xs(e)||qu(e)?rz(e):void 0)}function rz(e){if(e.parent){if($c(e.parent)||ms(e.parent))return e.parent.name;if(br(e.parent)&&e===e.parent.right){if(je(e.parent.left))return e.parent.left;if(dl(e.parent.left))return J3(e.parent.left)}else if(Xi(e.parent)&&je(e.parent.name))return e.parent.name}else return}function Ov(e){if(o_(e))return yn(e.modifiers,Wu)}function hT(e){if($r(e,126975))return yn(e.modifiers,_o)}function hde(e,t){if(e.name)if(je(e.name)){const r=e.name.escapedText;return JI(e.parent,t).filter(i=>_m(i)&&je(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);D.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=JI(e.parent,t).filter(_m);if(r<i.length)return[i[r]]}return rt}function qI(e){return hde(e,!1)}function gde(e){return hde(e,!0)}function yde(e,t){const r=e.name.escapedText;return JI(e.parent,t).filter(i=>kp(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function vde(e){return yde(e,!1)}function bde(e){return yde(e,!0)}function Ede(e){return!!r_(e,_m)}function Tde(e){return r_(e,zC)}function Sde(e){return lz(e,LK)}function iz(e){return r_(e,xme)}function JPe(e){return r_(e,EK)}function xde(e){return r_(e,EK,!0)}function KPe(e){return r_(e,TK)}function Ade(e){return r_(e,TK,!0)}function XPe(e){return r_(e,SK)}function Cde(e){return r_(e,SK,!0)}function YPe(e){return r_(e,xK)}function Lde(e){return r_(e,xK,!0)}function Ide(e){return r_(e,b5,!0)}function az(e){return r_(e,AK)}function kde(e){return r_(e,AK,!0)}function oz(e){return r_(e,i8)}function r3(e){return r_(e,Ame)}function wde(e){return r_(e,E5)}function $Pe(e){return r_(e,kp)}function sz(e){return r_(e,T5)}function I1(e){const t=r_(e,uw);if(t&&t.typeExpression&&t.typeExpression.type)return t}function Pv(e){let t=r_(e,uw);return!t&&Fa(e)&&(t=In(qI(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function uN(e){const t=wde(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=I1(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(yf(i)){const o=In(i.members,OC);return o&&o.type}if(Mh(i)||WC(i))return i.type}}function JI(e,t){var r,i;if(!KN(e))return rt;let o=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(o===void 0||t){const s=pq(e,t);D.assert(s.length<2||s[0]!==s[1]),o=Ga(s,c=>th(c)?c.tags:c),t||((i=e.jsDoc)!=null||(e.jsDoc=[]),e.jsDoc.jsDocCache=o)}return o}function k1(e){return JI(e,!1)}function QPe(e){return JI(e,!0)}function r_(e,t,r){return In(JI(e,r),t)}function lz(e,t){return k1(e).filter(t)}function ZPe(e,t){return k1(e).filter(r=>r.kind===t)}function dN(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===324?t.text:e4e(t)).join("")}function e4e(e){const t=e.kind===327?"link":e.kind===328?"linkcode":"linkplain",r=e.name?Pf(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Mv(e){if(Z1(e)){if(cw(e.parent)){const t=_k(e.parent);if(t&&Le(t.tags))return Ga(t.tags,r=>kp(r)?r.typeParameters:void 0)}return rt}if(S_(e))return D.assert(e.parent.kind===323),Ga(e.parent.tags,t=>kp(t)?t.typeParameters:void 0);if(e.typeParameters||Mme(e)&&e.typeParameters)return e.typeParameters;if(fr(e)){const t=i7(e);if(t.length)return t;const r=Pv(e);if(r&&Mh(r)&&r.typeParameters)return r.typeParameters}return rt}function jA(e){return e.constraint?e.constraint:kp(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function yg(e){return e.kind===79||e.kind===80}function i3(e){return e.kind===175||e.kind===174}function a3(e){return Fr(e)&&!!(e.flags&32)}function cz(e){return fl(e)&&!!(e.flags&32)}function gT(e){return io(e)&&!!(e.flags&32)}function xu(e){const t=e.kind;return!!(e.flags&32)&&(t===208||t===209||t===210||t===232)}function KI(e){return xu(e)&&!Yx(e)&&!!e.questionDotToken}function o3(e){return KI(e.parent)&&e.parent.expression===e}function XI(e){return!xu(e.parent)||KI(e.parent)||e!==e.parent.expression}function uz(e){return e.kind===223&&e.operatorToken.kind===60}function vg(e){return ep(e)&&je(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function W_(e){return Cu(e,8)}function s3(e){return Yx(e)&&!!(e.flags&32)}function YI(e){return e.kind===249||e.kind===248}function dz(e){return e.kind===277||e.kind===276}function Dde(e){switch(e.kind){case 305:case 306:return!0;default:return!1}}function fz(e){return Dde(e)||e.kind===303||e.kind===307}function l3(e){return e.kind===351||e.kind===344}function t4e(e){return fN(e.kind)}function fN(e){return e>=163}function _z(e){return e>=0&&e<=162}function px(e){return _z(e.kind)}function w1(e){return Fs(e,"pos")&&Fs(e,"end")}function $I(e){return 8<=e&&e<=14}function yT(e){return $I(e.kind)}function pz(e){switch(e.kind){case 207:case 206:case 13:case 215:case 228:return!0}return!1}function Fv(e){return 14<=e&&e<=17}function Rde(e){return Fv(e.kind)}function c3(e){const t=e.kind;return t===16||t===17}function mx(e){return Nd(e)||gd(e)}function mz(e){switch(e.kind){case 273:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 271:return e.parent.isTypeOnly;case 270:case 268:return e.isTypeOnly}return!1}function Nde(e){switch(e.kind){case 278:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 275:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 277:return e.parent.isTypeOnly}return!1}function D1(e){return mz(e)||Nde(e)}function Ode(e){return Ho(e)||je(e)}function hz(e){return e.kind===10||Fv(e.kind)}function Ll(e){var t;return je(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function hx(e){var t;return Oi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function ad(e){return(ro(e)||zA(e))&&Oi(e.name)}function HA(e){return Fr(e)&&Oi(e.name)}function Cy(e){switch(e){case 126:case 127:case 132:case 85:case 136:case 88:case 93:case 101:case 123:case 121:case 122:case 146:case 124:case 145:case 161:return!0}return!1}function QI(e){return!!(Rx(e)&16476)}function gz(e){return QI(e)||e===124||e===161||e===127}function _o(e){return Cy(e.kind)}function ff(e){const t=e.kind;return t===163||t===79}function El(e){const t=e.kind;return t===79||t===80||t===10||t===8||t===164}function Ch(e){const t=e.kind;return t===79||t===203||t===204}function Xa(e){return!!e&&gx(e.kind)}function WA(e){return!!e&&(gx(e.kind)||Rl(e))}function el(e){return e&&Mde(e.kind)}function Pde(e){return e.kind===110||e.kind===95}function Mde(e){switch(e){case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function gx(e){switch(e){case 170:case 176:case 326:case 177:case 178:case 181:case 320:case 182:return!0;default:return Mde(e)}}function yz(e){return Ji(e)||dm(e)||uo(e)&&Xa(e.parent)}function qc(e){const t=e.kind;return t===173||t===169||t===171||t===174||t===175||t===178||t===172||t===237}function _i(e){return e&&(e.kind===260||e.kind===228)}function ab(e){return e&&(e.kind===174||e.kind===175)}function _f(e){return ro(e)&&Jm(e)}function zA(e){switch(e.kind){case 171:case 174:case 175:return!0;default:return!1}}function Fde(e){switch(e.kind){case 171:case 174:case 175:case 169:return!0;default:return!1}}function il(e){return _o(e)||Wu(e)}function vT(e){const t=e.kind;return t===177||t===176||t===168||t===170||t===178||t===174||t===175}function u3(e){return vT(e)||qc(e)}function Ly(e){const t=e.kind;return t===299||t===300||t===301||t===171||t===174||t===175}function Gi(e){return Qq(e.kind)}function Bde(e){switch(e.kind){case 181:case 182:return!0}return!1}function Ya(e){if(e){const t=e.kind;return t===204||t===203}return!1}function ZI(e){const t=e.kind;return t===206||t===207}function d3(e){const t=e.kind;return t===205||t===229}function _N(e){switch(e.kind){case 257:case 166:case 205:return!0}return!1}function Gde(e){return Xi(e)||Fa(e)||mN(e)||hN(e)}function pN(e){return vz(e)||bz(e)}function vz(e){switch(e.kind){case 203:case 207:return!0}return!1}function mN(e){switch(e.kind){case 205:case 299:case 300:case 301:return!0}return!1}function bz(e){switch(e.kind){case 204:case 206:return!0}return!1}function hN(e){switch(e.kind){case 205:case 229:case 227:case 206:case 207:case 79:case 208:case 209:return!0}return ld(e,!0)}function Ude(e){const t=e.kind;return t===208||t===163||t===202}function Vde(e){const t=e.kind;return t===208||t===163}function yx(e){switch(e.kind){case 283:case 282:case 210:case 211:case 212:case 167:return!0;default:return!1}}function bg(e){return e.kind===210||e.kind===211}function qA(e){const t=e.kind;return t===225||t===14}function Id(e){return jde(W_(e).kind)}function jde(e){switch(e){case 208:case 209:case 211:case 210:case 281:case 282:case 285:case 212:case 206:case 214:case 207:case 228:case 215:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 225:case 95:case 104:case 108:case 110:case 106:case 232:case 230:case 233:case 100:case 279:return!0;default:return!1}}function Ez(e){return Hde(W_(e).kind)}function Hde(e){switch(e){case 221:case 222:case 217:case 218:case 219:case 220:case 213:return!0;default:return jde(e)}}function Wde(e){switch(e.kind){case 222:return!0;case 221:return e.operator===45||e.operator===46;default:return!1}}function zde(e){switch(e.kind){case 104:case 110:case 95:case 221:return!0;default:return yT(e)}}function vt(e){return n4e(W_(e).kind)}function n4e(e){switch(e){case 224:case 226:case 216:case 223:case 227:case 231:case 229:case 357:case 356:case 235:return!0;default:return Hde(e)}}function bT(e){const t=e.kind;return t===213||t===231}function r4e(e){return gK(e)||h5(e)}function Bv(e,t){switch(e.kind){case 245:case 246:case 247:case 243:case 244:return!0;case 253:return t&&Bv(e.statement,t)}return!1}function qde(e){return Vl(e)||au(e)}function Jde(e){return kt(e,qde)}function f3(e){return!AN(e)&&!Vl(e)&&!$r(e,1)&&!ju(e)}function gN(e){return AN(e)||Vl(e)||$r(e,1)}function JA(e){return e.kind===246||e.kind===247}function _3(e){return uo(e)||vt(e)}function Tz(e){return uo(e)}function rm(e){return Ju(e)||vt(e)}function Kde(e){const t=e.kind;return t===265||t===264||t===79}function i4e(e){const t=e.kind;return t===265||t===264}function a4e(e){const t=e.kind;return t===79||t===264}function Sz(e){const t=e.kind;return t===272||t===271}function yN(e){return e.kind===264||e.kind===263}function Vm(e){switch(e.kind){case 216:case 223:case 205:case 210:case 176:case 260:case 228:case 172:case 173:case 182:case 177:case 209:case 263:case 302:case 274:case 275:case 278:case 259:case 215:case 181:case 174:case 79:case 270:case 268:case 273:case 178:case 261:case 341:case 343:case 320:case 344:case 351:case 326:case 349:case 325:case 288:case 289:case 290:case 197:case 171:case 170:case 264:case 199:case 277:case 267:case 271:case 211:case 14:case 8:case 207:case 166:case 208:case 299:case 169:case 168:case 175:case 300:case 308:case 301:case 10:case 262:case 184:case 165:case 257:return!0;default:return!1}}function jm(e){switch(e.kind){case 216:case 238:case 176:case 266:case 295:case 172:case 191:case 173:case 182:case 177:case 245:case 246:case 247:case 259:case 215:case 181:case 174:case 178:case 341:case 343:case 320:case 326:case 349:case 197:case 171:case 170:case 264:case 175:case 308:case 262:return!0;default:return!1}}function o4e(e){return e===216||e===205||e===260||e===228||e===172||e===173||e===263||e===302||e===278||e===259||e===215||e===174||e===270||e===268||e===273||e===261||e===288||e===171||e===170||e===264||e===267||e===271||e===277||e===166||e===299||e===169||e===168||e===175||e===300||e===262||e===165||e===257||e===349||e===341||e===351}function xz(e){return e===259||e===279||e===260||e===261||e===262||e===263||e===264||e===269||e===268||e===275||e===274||e===267}function Az(e){return e===249||e===248||e===256||e===243||e===241||e===239||e===246||e===247||e===245||e===242||e===253||e===250||e===252||e===254||e===255||e===240||e===244||e===251||e===355||e===359||e===358}function Au(e){return e.kind===165?e.parent&&e.parent.kind!==348||fr(e):o4e(e.kind)}function Xde(e){return xz(e.kind)}function vN(e){return Az(e.kind)}function ka(e){const t=e.kind;return Az(t)||xz(t)||s4e(e)}function s4e(e){return e.kind!==238||e.parent!==void 0&&(e.parent.kind===255||e.parent.kind===295)?!1:!CT(e)}function Yde(e){const t=e.kind;return Az(t)||xz(t)||t===238}function $de(e){const t=e.kind;return t===280||t===163||t===79}function ek(e){const t=e.kind;return t===108||t===79||t===208}function bN(e){const t=e.kind;return t===281||t===291||t===282||t===11||t===285}function p3(e){const t=e.kind;return t===288||t===290}function Qde(e){const t=e.kind;return t===10||t===291}function od(e){const t=e.kind;return t===283||t===282}function Cz(e){const t=e.kind;return t===292||t===293}function KA(e){return e.kind>=312&&e.kind<=353}function Lz(e){return e.kind===323||e.kind===322||e.kind===324||vx(e)||tk(e)||lw(e)||Z1(e)}function tk(e){return e.kind>=330&&e.kind<=353}function Iy(e){return e.kind===175}function Gv(e){return e.kind===174}function Of(e){if(!KN(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function m3(e){return!!e.type}function Uv(e){return!!e.initializer}function ET(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:case 302:return!0;default:return!1}}function Iz(e){return e.kind===288||e.kind===290||Ly(e)}function h3(e){return e.kind===180||e.kind===230}function Zde(e){let t=Rz;for(const r of e){if(!r.length)continue;let i=0;for(;i<r.length&&i<t&&gg(r.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===Rz?void 0:t}function As(e){return e.kind===10||e.kind===14}function vx(e){return e.kind===327||e.kind===328||e.kind===329}function kz(e){const t=rl(e.parameters);return!!t&&Lh(t)}function Lh(e){const t=_m(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===321}var wz,Dz,Rz,l4e=S({"src/compiler/utilitiesPublic.ts"(){Na(),wz=lN(Pc(0,0),0),Dz=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],Rz=1073741823}});function Il(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function efe(e,t){return yn(e.declarations||rt,r=>r.kind===t)}function co(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function Hm(e){return(e.flags&33554432)!==0}function c4e(){var e="";const t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&gg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:lo,decreaseIndent:lo,clear:()=>e=""}}function Nz(e,t){return e.configFilePath!==t.configFilePath||tfe(e,t)}function tfe(e,t){return XA(e,t,H5)}function nfe(e,t){return XA(e,t,gX)}function XA(e,t,r){return e!==t&&r.some(i=>!gJ(m7(e,i),m7(t,i)))}function rfe(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Ji(e))return;e=e.parent}}function pf(e,t){const r=e.entries();for(const[i,o]of r){const s=t(o,i);if(s)return s}}function nk(e,t){const r=e.keys();for(const i of r){const o=t(i);if(o)return o}}function EN(e,t){e.forEach((r,i)=>{t.set(i,r)})}function rk(e){const t=Wk.getText();try{return e(Wk),Wk.getText()}finally{Wk.clear(),Wk.writeKeyword(t)}}function TN(e){return e.end-e.pos}function YA(e,t,r){var i,o;return(o=(i=e==null?void 0:e.resolvedModules)==null?void 0:i.get(t,r))==null?void 0:o.resolvedModule}function ife(e,t,r,i){e.resolvedModules||(e.resolvedModules=YT()),e.resolvedModules.set(t,i,r)}function afe(e,t,r,i){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=YT()),e.resolvedTypeReferenceDirectiveNames.set(t,i,r)}function u4e(e,t,r){var i,o;return(o=(i=e==null?void 0:e.resolvedTypeReferenceDirectiveNames)==null?void 0:i.get(t,r))==null?void 0:o.resolvedTypeReferenceDirective}function Oz(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function ofe(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&d4e(e.resolvedModule.packageId,t.resolvedModule.packageId)}function d4e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function g3({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function TT(e){return`${g3(e)}@${e.version}`}function sfe(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function Pz(e,t,r,i,o,s){D.assert(e.length===r.length);for(let c=0;c<e.length;c++){const f=r[c],d=e[c],v=s.getName(d),h=s.getMode(d,t),E=i&&i.get(v,h);if(E?!f||!o(E,f):f)return!0}return!1}function SN(e){return f4e(e),(e.flags&524288)!==0}function f4e(e){e.flags&1048576||((e.flags&131072||Pa(e,SN))&&(e.flags|=524288),e.flags|=1048576)}function er(e){for(;e&&e.kind!==308;)e=e.parent;return e}function y3(e){return er(e.valueDeclaration||Wz(e))}function v3(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function lfe(e){switch(e.kind){case 238:case 266:case 245:case 246:case 247:return!0}return!1}function Vv(e,t){return D.assert(e>=0),hg(t)[e]}function _4e(e){const t=er(e),r=cl(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function xN(e,t){D.assert(e>=0);const r=hg(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{const s=r[i];let c=r[i+1]-1;for(D.assert(Tu(o.charCodeAt(c)));s<=c&&Tu(o.charCodeAt(c));)c--;return c}}function b3(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function kl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function E_(e){return!kl(e)}function cfe(e,t){return Ul(e)?t===e.expression:Rl(e)?t===e.modifiers:Bf(e)?t===e.initializer:ro(e)?t===e.questionToken&&_f(e):$c(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||ik(e.modifiers,t,il):u_(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||ik(e.modifiers,t,il):uc(e)?t===e.exclamationToken:Yl(e)?t===e.typeParameters||t===e.type||ik(e.typeParameters,t,Ul):Z_(e)?t===e.typeParameters||ik(e.typeParameters,t,Ul):c_(e)?t===e.typeParameters||t===e.type||ik(e.typeParameters,t,Ul):n8(e)?t===e.modifiers||ik(e.modifiers,t,il):!1}function ik(e,t,r){return!e||Va(t)||!r(t)?!1:Ur(e,t)}function ufe(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i<e.length&&r(e[i]);++i);return e.splice(i,0,...t),e}function dfe(e,t,r){if(t===void 0)return e;let i=0;for(;i<e.length&&r(e[i]);++i);return e.splice(i,0,t),e}function ffe(e){return Ap(e)||!!(bo(e)&2097152)}function Wm(e,t){return ufe(e,t,Ap)}function Mz(e,t){return ufe(e,t,ffe)}function p4e(e,t){return dfe(e,t,Ap)}function R1(e,t){return dfe(e,t,ffe)}function Fz(e,t,r){if(e.charCodeAt(t+1)===47&&t+2<r&&e.charCodeAt(t+2)===47){const i=e.substring(t,r);return!!(LJ.test(i)||IJ.test(i)||vpe.test(i)||bpe.test(i))}return!1}function E3(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function _fe(e,t){const r=new Map(t.map(c=>[`${cl(e,c.range.end).line}`,c])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return No(r.entries()).filter(([c,f])=>f.type===0&&!i.get(c)).map(([c,f])=>f)}function s(c){return r.has(`${c}`)?(i.set(`${c}`,!0),!0):!1}}function ST(e,t,r){return kl(e)?e.pos:KA(e)||e.kind===11?Xo((t||er(e)).text,e.pos,!1,!0):r&&Of(e)?ST(e.jsDoc[0],t):e.kind===354&&e._children.length>0?ST(e._children[0],t,r):Xo((t||er(e)).text,e.pos,!1,!1,NN(e))}function Bz(e,t){const r=!kl(e)&&np(e)?Yr(e.modifiers,Wu):void 0;return r?Xo((t||er(e)).text,r.end):ST(e,t)}function N1(e,t,r=!1){return ak(e.text,t,r)}function m4e(e){return!!rr(e,qT)}function T3(e){return!!(au(e)&&e.exportClause&&Bh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function ak(e,t,r=!1){if(kl(t))return"";let i=e.substring(r?t.pos:Xo(e,t.pos),t.end);return m4e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>NI(o.replace(/^\s*\*/,""))).join(`
- `)),i}function kc(e,t=!1){return N1(er(e),e,t)}function h4e(e){return e.pos}function $A(e,t){return kv(e,t,h4e,qs)}function bo(e){const t=e.emitNode;return t&&t.flags||0}function z_(e){const t=e.emitNode;return t&&t.internalFlags||0}function Gz(){return new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:rt})),AsyncIterator:new Map(Object.entries({es2015:rt})),Atomics:new Map(Object.entries({es2017:rt})),SharedArrayBuffer:new Map(Object.entries({es2017:rt})),AsyncIterable:new Map(Object.entries({es2018:rt})),AsyncIterableIterator:new Map(Object.entries({es2018:rt})),AsyncGenerator:new Map(Object.entries({es2018:rt})),AsyncGeneratorFunction:new Map(Object.entries({es2018:rt})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:rt,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:rt})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:rt,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:rt,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function pfe(e,t,r){var i;if(t&&g4e(e,r))return N1(t,e);switch(e.kind){case 10:{const o=r&2?Lq:r&1||bo(e)&33554432?Ix:oO;return e.singleQuote?"'"+o(e.text,39)+"'":'"'+o(e.text,34)+'"'}case 14:case 15:case 16:case 17:{const o=r&1||bo(e)&33554432?Ix:oO,s=(i=e.rawText)!=null?i:B4e(o(e.text,96));switch(e.kind){case 14:return"`"+s+"`";case 15:return"`"+s+"${";case 16:return"}"+s+"${";case 17:return"}"+s+"`"}break}case 8:case 9:return e.text;case 13:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return D.fail(`Literal kind '${e.kind}' not accounted for.`)}function g4e(e,t){return tl(e)||!e.parent||t&4&&e.isUnterminated?!1:L_(e)&&e.numericLiteralFlags&512?!!(t&8):!l5(e)}function mfe(e){return Ha(e)?'"'+oO(e)+'"':""+e}function hfe(e){return Eu(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function Uz(e){return(xp(e)&3)!==0||Vz(e)}function Vz(e){const t=qm(e);return t.kind===257&&t.parent.kind===295}function ju(e){return $l(e)&&(e.name.kind===10||im(e))}function S3(e){return $l(e)&&e.name.kind===10}function jz(e){return $l(e)&&Ho(e.name)}function gfe(e){return $l(e)||je(e)}function ok(e){return y4e(e.valueDeclaration)}function y4e(e){return!!e&&e.kind===264&&!e.body}function yfe(e){return e.kind===308||e.kind===264||WA(e)}function im(e){return!!(e.flags&1024)}function O1(e){return ju(e)&&Hz(e)}function Hz(e){switch(e.parent.kind){case 308:return rc(e.parent);case 265:return ju(e.parent.parent)&&Ji(e.parent.parent.parent)&&!rc(e.parent.parent.parent)}return!1}function Wz(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!O1(r)&&!($l(r)&&im(r)))}function v4e(e){return e===1||e===100||e===199}function bx(e,t){return rc(e)||Y_(t)||v4e(du(t))&&!!e.commonJsModuleIndicator}function zz(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:C_(t,"alwaysStrict")||Dme(e.statements)?!0:rc(e)||Y_(t)?du(t)>=5?!0:!t.noImplicitUseStrict:!1}function qz(e){return!!(e.flags&16777216)||$r(e,2)}function Jz(e,t){switch(e.kind){case 308:case 266:case 295:case 264:case 245:case 246:case 247:case 173:case 171:case 174:case 175:case 259:case 215:case 216:case 169:case 172:return!0;case 238:return!WA(t)}return!1}function Kz(e){switch(D.type(e),e.kind){case 341:case 349:case 326:return!0;default:return Xz(e)}}function Xz(e){switch(D.type(e),e.kind){case 176:case 177:case 170:case 178:case 181:case 182:case 320:case 260:case 228:case 261:case 262:case 348:case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function xT(e){switch(e.kind){case 269:case 268:return!0;default:return!1}}function vfe(e){return xT(e)||B1(e)}function x3(e){switch(e.kind){case 269:case 268:case 240:case 260:case 259:case 264:case 262:case 261:case 263:return!0;default:return!1}}function bfe(e){return AN(e)||$l(e)||kg(e)||hf(e)}function AN(e){return xT(e)||au(e)}function zm(e){return rr(e.parent,t=>Jz(t,t.parent))}function Efe(e,t){let r=zm(e);for(;r;)t(r),r=zm(r)}function Rs(e){return!e||TN(e)===0?"(Missing)":kc(e)}function Tfe(e){return e.declaration?Rs(e.declaration.parameters[0].name):void 0}function CN(e){return e.kind===164&&!i_(e.expression)}function A3(e){var t;switch(e.kind){case 79:case 80:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 10:case 8:case 14:return ul(e.text);case 164:return i_(e.expression)?ul(e.expression.text):void 0;default:return D.assertNever(e)}}function QA(e){return D.checkDefined(A3(e))}function Pf(e){switch(e.kind){case 108:return"this";case 80:case 79:return TN(e)===0?Mr(e):kc(e);case 163:return Pf(e.left)+"."+Pf(e.right);case 208:return je(e.name)||Oi(e.name)?Pf(e.expression)+"."+Pf(e.name):D.assertNever(e.name);case 314:return Pf(e.left)+Pf(e.right);default:return D.assertNever(e)}}function Nr(e,t,r,i,o,s){const c=er(e);return md(c,e,t,r,i,o,s)}function ZA(e,t,r,i,o,s,c){const f=Xo(e.text,t.pos);return Mc(e,f,t.end-f,r,i,o,s,c)}function md(e,t,r,i,o,s,c){const f=P1(e,t);return Mc(e,f.start,f.length,r,i,o,s,c)}function Eg(e,t,r,i){const o=P1(e,t);return C3(e,o.start,o.length,r,i)}function LN(e,t,r,i){const o=Xo(e.text,t.pos);return C3(e,o,t.end-o,r,i)}function Yz(e,t,r){D.assertGreaterThanOrEqual(t,0),D.assertGreaterThanOrEqual(r,0),e&&(D.assertLessThanOrEqual(t,e.text.length),D.assertLessThanOrEqual(t+r,e.text.length))}function C3(e,t,r,i,o){return Yz(e,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function $z(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function Sfe(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Qz(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function ky(e,t){const r=Sy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenPos();return Tc(i,r.getTextPos())}function xfe(e,t){const r=Sy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function b4e(e,t){const r=Xo(e.text,t.pos);if(t.body&&t.body.kind===238){const{line:i}=cl(e,t.body.pos),{line:o}=cl(e,t.body.end);if(i<o)return Pc(r,xN(i,e)-r+1)}return Tc(r,t.end)}function P1(e,t){let r=t;switch(t.kind){case 308:const s=Xo(e.text,0,!1);return s===e.text.length?Pc(0,0):ky(e,s);case 257:case 205:case 260:case 228:case 261:case 264:case 263:case 302:case 259:case 215:case 171:case 174:case 175:case 262:case 169:case 168:case 271:r=t.name;break;case 216:return b4e(e,t);case 292:case 293:const c=Xo(e.text,t.pos),f=t.statements.length>0?t.statements[0].pos:t.end;return Tc(c,f)}if(r===void 0)return ky(e,t.pos);D.assert(!th(r));const i=kl(r),o=i||Vx(t)?r.pos:Xo(e.text,r.pos);return i?(D.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),D.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(D.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),D.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Tc(o,r.end)}function mf(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function T_(e){return e.scriptKind===6}function M1(e){return!!(Ay(e)&2048)}function L3(e){return!!(Ay(e)&64&&!df(e,e.parent))}function Tg(e){return!!(xp(e)&2)}function sk(e){return!!(xp(e)&1)}function eC(e){return e.kind===210&&e.expression.kind===106}function hf(e){return e.kind===210&&e.expression.kind===100}function tC(e){return nw(e)&&e.keywordToken===100&&e.name.escapedText==="meta"}function ob(e){return kg(e)&&gb(e.argument)&&Ho(e.argument.literal)}function Ap(e){return e.kind===241&&e.expression.kind===10}function I3(e){return!!(bo(e)&2097152)}function k3(e){return I3(e)&&xc(e)}function E4e(e){return je(e.name)&&!e.initializer}function w3(e){return I3(e)&&gc(e)&&Zn(e.declarationList.declarations,E4e)}function Zz(e,t){return e.kind!==11?xh(t.text,e.pos):void 0}function eq(e,t){const r=e.kind===166||e.kind===165||e.kind===215||e.kind===216||e.kind===214||e.kind===257||e.kind===278?ya(nb(t,e.pos),xh(t,e.pos)):xh(t,e.pos);return yn(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function Ih(e){if(179<=e.kind&&e.kind<=202)return!0;switch(e.kind){case 131:case 157:case 148:case 160:case 152:case 134:case 153:case 149:case 155:case 144:return!0;case 114:return e.parent.kind!==219;case 230:return Kd(e.parent)&&!fO(e);case 165:return e.parent.kind===197||e.parent.kind===192;case 79:(e.parent.kind===163&&e.parent.right===e||e.parent.kind===208&&e.parent.name===e)&&(e=e.parent),D.assert(e.kind===79||e.kind===163||e.kind===208,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 163:case 208:case 108:{const{parent:t}=e;if(t.kind===183)return!1;if(t.kind===202)return!t.isTypeOf;if(179<=t.kind&&t.kind<=202)return!0;switch(t.kind){case 230:return Kd(t.parent)&&!fO(t);case 165:return e===t.constraint;case 348:return e===t.constraint;case 169:case 168:case 166:case 257:return e===t.type;case 259:case 215:case 216:case 173:case 171:case 170:case 174:case 175:return e===t.type;case 176:case 177:case 178:return e===t.type;case 213:return e===t.type;case 210:case 211:return Ur(t.typeArguments,e);case 212:return!1}}}return!1}function tq(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function AT(e,t){return r(e);function r(i){switch(i.kind){case 250:return t(i);case 266:case 238:case 242:case 243:case 244:case 245:case 246:case 247:case 251:case 252:case 292:case 293:case 253:case 255:case 295:return Pa(i,r)}}}function Afe(e,t){return r(e);function r(i){switch(i.kind){case 226:t(i);const o=i.expression;o&&r(o);return;case 263:case 261:case 264:case 262:return;default:if(Xa(i)){if(i.name&&i.name.kind===164){r(i.name.expression);return}}else Ih(i)||Pa(i,r)}}}function nq(e){return e&&e.kind===185?e.elementType:e&&e.kind===180?Om(e.typeArguments):void 0}function Cfe(e){switch(e.kind){case 261:case 260:case 228:case 184:return e.members;case 207:return e.properties}}function nC(e){if(e)switch(e.kind){case 205:case 302:case 166:case 299:case 169:case 168:case 300:case 257:return!0}return!1}function Lfe(e){return nC(e)||ab(e)}function D3(e){return e.parent.kind===258&&e.parent.parent.kind===240}function Ife(e){return fr(e)?Is(e.parent)&&br(e.parent.parent)&&wl(e.parent.parent)===2||R3(e.parent):!1}function R3(e){return fr(e)?br(e)&&wl(e)===1:!1}function kfe(e){return(Xi(e)?Tg(e)&&je(e.name)&&D3(e):ro(e)?Tk(e)&&Sc(e):Bf(e)&&Tk(e))||R3(e)}function wfe(e){switch(e.kind){case 171:case 170:case 173:case 174:case 175:case 259:case 215:return!0}return!1}function rq(e,t){for(;;){if(t&&t(e),e.statement.kind!==253)return e.statement;e=e.statement}}function CT(e){return e&&e.kind===238&&Xa(e.parent)}function q_(e){return e&&e.kind===171&&e.parent.kind===207}function N3(e){return(e.kind===171||e.kind===174||e.kind===175)&&(e.parent.kind===207||e.parent.kind===228)}function Dfe(e){return e&&e.kind===1}function T4e(e){return e&&e.kind===0}function rC(e,t,r){return e.properties.filter(i=>{if(i.kind===299){const o=A3(i.name);return t===o||!!r&&r===o}return!1})}function Rfe(e,t,r){return Jt(rC(e,t),i=>zu(i.initializer)?In(i.initializer.elements,o=>Ho(o)&&o.text===r):void 0)}function lk(e){if(e&&e.statements.length){const t=e.statements[0].expression;return si(t,Is)}}function O3(e,t,r){return Jt(IN(e,t),i=>zu(i.initializer)?In(i.initializer.elements,o=>Ho(o)&&o.text===r):void 0)}function IN(e,t){const r=lk(e);return r?rC(r,t):rt}function Mf(e){return rr(e.parent,Xa)}function Nfe(e){return rr(e.parent,el)}function wc(e){return rr(e.parent,_i)}function S4e(e){return rr(e.parent,t=>_i(t)||Xa(t)?"quit":Rl(t))}function P3(e){return rr(e.parent,WA)}function kd(e,t,r){for(D.assert(e.kind!==308);;){if(e=e.parent,!e)return D.fail();switch(e.kind){case 164:if(r&&_i(e.parent.parent))return e;e=e.parent.parent;break;case 167:e.parent.kind===166&&qc(e.parent.parent)?e=e.parent.parent:qc(e.parent)&&(e=e.parent);break;case 216:if(!t)continue;case 259:case 215:case 264:case 172:case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 176:case 177:case 178:case 263:case 308:return e}}}function Ofe(e){switch(e.kind){case 216:case 259:case 215:case 169:return!0;case 238:switch(e.parent.kind){case 173:case 171:case 174:case 175:return!0;default:return!1}default:return!1}}function M3(e){je(e)&&(Bc(e.parent)||xc(e.parent))&&e.parent.name===e&&(e=e.parent);const t=kd(e,!0,!1);return Ji(t)}function Pfe(e){const t=kd(e,!1,!1);if(t)switch(t.kind){case 173:case 259:case 215:return t}}function kN(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 164:e=e.parent;break;case 259:case 215:case 216:if(!t)continue;case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 172:return e;case 167:e.parent.kind===166&&qc(e.parent.parent)?e=e.parent.parent:qc(e.parent)&&(e=e.parent);break}}}function LT(e){if(e.kind===215||e.kind===216){let t=e,r=e.parent;for(;r.kind===214;)t=r,r=r.parent;if(r.kind===210&&r.expression===t)return r}}function x4e(e){return e.kind===106||hd(e)}function hd(e){const t=e.kind;return(t===208||t===209)&&e.expression.kind===106}function wN(e){const t=e.kind;return(t===208||t===209)&&e.expression.kind===108}function F3(e){var t;return!!e&&Xi(e)&&((t=e.initializer)==null?void 0:t.kind)===108}function Mfe(e){return!!e&&(u_(e)||$c(e))&&br(e.parent.parent)&&e.parent.parent.operatorToken.kind===63&&e.parent.parent.right.kind===108}function DN(e){switch(e.kind){case 180:return e.typeName;case 230:return Xl(e.expression)?e.expression:void 0;case 79:case 163:return e}}function B3(e){switch(e.kind){case 212:return e.tag;case 283:case 282:return e.tagName;default:return e.expression}}function G3(e,t,r,i){if(e&&Su(t)&&Oi(t.name))return!1;switch(t.kind){case 260:return!0;case 228:return!e;case 169:return r!==void 0&&(e?Bc(r):_i(r)&&!H1(t)&&!Bq(t));case 174:case 175:case 171:return t.body!==void 0&&r!==void 0&&(e?Bc(r):_i(r));case 166:return e?r!==void 0&&r.body!==void 0&&(r.kind===173||r.kind===171||r.kind===175)&&V1(r)!==t&&i!==void 0&&i.kind===260:!1}return!1}function iC(e,t,r,i){return o_(t)&&G3(e,t,r,i)}function RN(e,t,r,i){return iC(e,t,r,i)||ck(e,t,r)}function ck(e,t,r){switch(t.kind){case 260:return kt(t.members,i=>RN(e,i,t,r));case 228:return!e&&kt(t.members,i=>RN(e,i,t,r));case 171:case 175:case 173:return kt(t.parameters,i=>iC(e,i,t,r));default:return!1}}function F1(e,t){if(iC(e,t))return!0;const r=Dh(t);return!!r&&ck(e,r,t)}function iq(e,t,r){let i;if(ab(t)){const{firstAccessor:o,secondAccessor:s,setAccessor:c}=PT(r.members,t),f=o_(o)?o:s&&o_(s)?s:void 0;if(!f||t!==f)return!1;i=c==null?void 0:c.parameters}else uc(t)&&(i=t.parameters);if(iC(e,t,r))return!0;if(i){for(const o of i)if(!j1(o)&&iC(e,o,t,r))return!0}return!1}function aq(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 10:return aq(e.textSourceNode);case 14:return e.text===""}return!1}return e.text===""}function uk(e){const{parent:t}=e;return t.kind===283||t.kind===282||t.kind===284?t.tagName===e:!1}function Sg(e){switch(e.kind){case 106:case 104:case 110:case 95:case 13:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 231:case 213:case 235:case 232:case 214:case 215:case 228:case 216:case 219:case 217:case 218:case 221:case 222:case 223:case 224:case 227:case 225:case 229:case 281:case 282:case 285:case 226:case 220:case 233:return!0;case 230:return!Kd(e.parent)&&!zC(e.parent);case 163:for(;e.parent.kind===163;)e=e.parent;return e.parent.kind===183||vx(e.parent)||sw(e.parent)||vb(e.parent)||uk(e);case 314:for(;vb(e.parent);)e=e.parent;return e.parent.kind===183||vx(e.parent)||sw(e.parent)||vb(e.parent)||uk(e);case 80:return br(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===101;case 79:if(e.parent.kind===183||vx(e.parent)||sw(e.parent)||vb(e.parent)||uk(e))return!0;case 8:case 9:case 10:case 14:case 108:return U3(e);default:return!1}}function U3(e){const{parent:t}=e;switch(t.kind){case 257:case 166:case 169:case 168:case 302:case 299:case 205:return t.initializer===e;case 241:case 242:case 243:case 244:case 250:case 251:case 252:case 292:case 254:return t.expression===e;case 245:const r=t;return r.initializer===e&&r.initializer.kind!==258||r.condition===e||r.incrementor===e;case 246:case 247:const i=t;return i.initializer===e&&i.initializer.kind!==258||i.expression===e;case 213:case 231:return e===t.expression;case 236:return e===t.expression;case 164:return e===t.expression;case 167:case 291:case 290:case 301:return!0;case 230:return t.expression===e&&!Ih(t);case 300:return t.objectAssignmentInitializer===e;case 235:return e===t.expression;default:return Sg(t)}}function V3(e){for(;e.kind===163||e.kind===79;)e=e.parent;return e.kind===183}function Ffe(e){return Bh(e)&&!!e.parent.moduleSpecifier}function sb(e){return e.kind===268&&e.moduleReference.kind===280}function dk(e){return D.assert(sb(e)),e.moduleReference.expression}function oq(e){return B1(e)&&Dk(e.initializer).arguments[0]}function aC(e){return e.kind===268&&e.moduleReference.kind!==280}function sd(e){return fr(e)}function A4e(e){return!fr(e)}function fr(e){return!!e&&!!(e.flags&262144)}function j3(e){return!!e&&!!(e.flags&67108864)}function sq(e){return!T_(e)}function NN(e){return!!e&&!!(e.flags&8388608)}function H3(e){return ep(e)&&je(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===152||e.typeArguments[0].kind===148)}function wd(e,t){if(e.kind!==210)return!1;const{expression:r,arguments:i}=e;if(r.kind!==79||r.escapedText!=="require"||i.length!==1)return!1;const o=i[0];return!t||As(o)}function lq(e){return Gfe(e,!1)}function B1(e){return Gfe(e,!0)}function Bfe(e){return ms(e)&&B1(e.parent.parent)}function Gfe(e,t){return Xi(e)&&!!e.initializer&&wd(t?Dk(e.initializer):e.initializer,!0)}function cq(e){return gc(e)&&e.declarationList.declarations.length>0&&Zn(e.declarationList.declarations,t=>lq(t))}function ON(e){return e===39||e===34}function W3(e,t){return N1(t,e).charCodeAt(0)===34}function fk(e){return br(e)||dl(e)||je(e)||io(e)}function PN(e){return fr(e)&&e.initializer&&br(e.initializer)&&(e.initializer.operatorToken.kind===56||e.initializer.operatorToken.kind===60)&&e.name&&Xl(e.name)&&oC(e.name,e.initializer.left)?e.initializer.right:e.initializer}function MN(e){const t=PN(e);return t&&lb(t,fb(e.name))}function C4e(e,t){return Je(e.properties,r=>$c(r)&&je(r.name)&&r.name.escapedText==="value"&&r.initializer&&lb(r.initializer,t))}function Ex(e){if(e&&e.parent&&br(e.parent)&&e.parent.operatorToken.kind===63){const t=fb(e.parent.left);return lb(e.parent.right,t)||L4e(e.parent.left,e.parent.right,t)}if(e&&io(e)&&Tx(e)){const t=C4e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function lb(e,t){if(io(e)){const r=Ws(e.expression);return r.kind===215||r.kind===216?e:void 0}if(e.kind===215||e.kind===228||e.kind===216||Is(e)&&(e.properties.length===0||t))return e}function L4e(e,t,r){const i=br(t)&&(t.operatorToken.kind===56||t.operatorToken.kind===60)&&lb(t.right,r);if(i&&oC(e,t.left))return i}function Ufe(e){const t=Xi(e.parent)?e.parent.name:br(e.parent)&&e.parent.operatorToken.kind===63?e.parent.left:void 0;return t&&lb(e.right,fb(t))&&Xl(t)&&oC(t,e.left)}function uq(e){if(br(e.parent)){const t=(e.parent.operatorToken.kind===56||e.parent.operatorToken.kind===60)&&br(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===63&&je(t.left))return t.left}else if(Xi(e.parent))return e.parent.name}function oC(e,t){return J_(e)&&J_(t)?K_(e)===K_(t):yg(e)&&z3(t)&&(t.expression.kind===108||je(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?oC(e,GN(t)):z3(e)&&z3(t)?xg(e)===xg(t)&&oC(e.expression,t.expression):!1}function FN(e){for(;ld(e,!0);)e=e.right;return e}function IT(e){return je(e)&&e.escapedText==="exports"}function dq(e){return je(e)&&e.escapedText==="module"}function kh(e){return(Fr(e)||BN(e))&&dq(e.expression)&&xg(e)==="exports"}function wl(e){const t=I4e(e);return t===5||fr(e)?t:0}function Tx(e){return Le(e.arguments)===3&&Fr(e.expression)&&je(e.expression.expression)&&Mr(e.expression.expression)==="Object"&&Mr(e.expression.name)==="defineProperty"&&i_(e.arguments[1])&&Sx(e.arguments[0],!0)}function z3(e){return Fr(e)||BN(e)}function BN(e){return fl(e)&&i_(e.argumentExpression)}function kT(e,t){return Fr(e)&&(!t&&e.expression.kind===108||je(e.name)&&Sx(e.expression,!0))||q3(e,t)}function q3(e,t){return BN(e)&&(!t&&e.expression.kind===108||Xl(e.expression)||kT(e.expression,!0))}function Sx(e,t){return Xl(e)||kT(e,t)}function GN(e){return Fr(e)?e.name:e.argumentExpression}function I4e(e){if(io(e)){if(!Tx(e))return 0;const t=e.arguments[0];return IT(t)||kh(t)?8:kT(t)&&xg(t)==="prototype"?9:7}return e.operatorToken.kind!==63||!dl(e.left)||k4e(FN(e))?0:Sx(e.left.expression,!0)&&xg(e.left)==="prototype"&&Is(fq(e))?6:UN(e.left)}function k4e(e){return Xx(e)&&L_(e.expression)&&e.expression.text==="0"}function J3(e){if(Fr(e))return e.name;const t=Ws(e.argumentExpression);return L_(t)||As(t)?t:e}function xg(e){const t=J3(e);if(t){if(je(t))return t.escapedText;if(As(t)||L_(t))return ul(t.text)}}function UN(e){if(e.expression.kind===108)return 4;if(kh(e))return 2;if(Sx(e.expression,!0)){if(fb(e.expression))return 3;let t=e;for(;!je(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&xg(t)==="exports")&&kT(e))return 1;if(Sx(e,!0)||fl(e)&&Z3(e))return 5}return 0}function fq(e){for(;br(e.right);)e=e.right;return e.right}function VN(e){return br(e)&&wl(e)===3}function Vfe(e){return fr(e)&&e.parent&&e.parent.kind===241&&(!fl(e)||BN(e))&&!!I1(e.parent)}function jN(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&16777216&&!fr(t)&&!(r.flags&16777216))&&fk(r)&&!fk(t)||r.kind!==t.kind&&gfe(r))&&(e.valueDeclaration=t)}function jfe(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===259||Xi(t)&&t.initializer&&Xa(t.initializer)}function HN(e){var t,r;switch(e.kind){case 257:case 205:return(t=rr(e.initializer,i=>wd(i,!0)))==null?void 0:t.arguments[0];case 269:return si(e.moduleSpecifier,As);case 268:return si((r=si(e.moduleReference,eh))==null?void 0:r.expression,As);case 270:case 277:return si(e.parent.moduleSpecifier,As);case 271:case 278:return si(e.parent.parent.moduleSpecifier,As);case 273:return si(e.parent.parent.parent.moduleSpecifier,As);default:D.assertNever(e)}}function WN(e){return zN(e)||D.failBadSyntaxKind(e.parent)}function zN(e){switch(e.parent.kind){case 269:case 275:return e.parent;case 280:return e.parent.parent;case 210:return hf(e.parent)||wd(e.parent,!1)?e.parent:void 0;case 198:return D.assert(Ho(e)),si(e.parent.parent,kg);default:return}}function sC(e){switch(e.kind){case 269:case 275:return e.moduleSpecifier;case 268:return e.moduleReference.kind===280?e.moduleReference.expression:void 0;case 202:return ob(e)?e.argument.literal:void 0;case 210:return e.arguments[0];case 264:return e.name.kind===10?e.name:void 0;default:return D.assertNever(e)}}function lC(e){switch(e.kind){case 269:return e.importClause&&si(e.importClause.namedBindings,Yv);case 268:return e;case 275:return e.exportClause&&si(e.exportClause,Bh);default:return D.assertNever(e)}}function xx(e){return e.kind===269&&!!e.importClause&&!!e.importClause.name}function K3(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=Yv(e.namedBindings)?t(e.namedBindings):Je(e.namedBindings.elements,t);if(r)return r}}function Ax(e){if(e)switch(e.kind){case 166:case 171:case 170:case 300:case 299:case 169:case 168:return e.questionToken!==void 0}return!1}function cC(e){const t=WC(e)?tu(e.parameters):void 0,r=si(t&&t.name,je);return!!r&&r.escapedText==="new"}function S_(e){return e.kind===349||e.kind===341||e.kind===343}function qN(e){return S_(e)||um(e)}function w4e(e){return fu(e)&&br(e.expression)&&e.expression.operatorToken.kind===63?FN(e.expression):void 0}function Hfe(e){return fu(e)&&br(e.expression)&&wl(e.expression)!==0&&br(e.expression.right)&&(e.expression.right.operatorToken.kind===56||e.expression.right.operatorToken.kind===60)?e.expression.right.right:void 0}function _q(e){switch(e.kind){case 240:const t=uC(e);return t&&t.initializer;case 169:return e.initializer;case 299:return e.initializer}}function uC(e){return gc(e)?tu(e.declarationList.declarations):void 0}function Wfe(e){return $l(e)&&e.body&&e.body.kind===264?e.body:void 0}function JN(e){if(e.kind>=240&&e.kind<=256)return!0;switch(e.kind){case 79:case 108:case 106:case 163:case 233:case 209:case 208:case 205:case 215:case 216:case 171:case 174:case 175:return!0;default:return!1}}function KN(e){switch(e.kind){case 216:case 223:case 238:case 249:case 176:case 292:case 260:case 228:case 172:case 173:case 182:case 177:case 248:case 256:case 243:case 209:case 239:case 1:case 263:case 302:case 274:case 275:case 278:case 241:case 246:case 247:case 245:case 259:case 215:case 181:case 174:case 79:case 242:case 269:case 268:case 178:case 261:case 320:case 326:case 253:case 171:case 170:case 264:case 199:case 267:case 207:case 166:case 214:case 208:case 299:case 169:case 168:case 250:case 175:case 300:case 301:case 252:case 254:case 255:case 262:case 165:case 257:case 240:case 244:case 251:return!0;default:return!1}}function pq(e,t){let r;nC(e)&&Uv(e)&&Of(e.initializer)&&(r=Ai(r,zfe(e,Jo(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(Of(i)&&(r=Ai(r,zfe(e,Jo(i.jsDoc)))),i.kind===166){r=Ai(r,(t?gde:qI)(i));break}if(i.kind===165){r=Ai(r,(t?bde:vde)(i));break}i=mq(i)}return r||rt}function zfe(e,t){if(th(t)){const r=yn(t.tags,i=>qfe(e,i));return t.tags===r?[t]:r}return qfe(e,t)?[t]:void 0}function qfe(e,t){return!(uw(t)||T5(t))||!t.parent||!th(t.parent)||!Jd(t.parent.parent)||t.parent.parent===e}function mq(e){const t=e.parent;if(t.kind===299||t.kind===274||t.kind===169||t.kind===241&&e.kind===208||t.kind===250||Wfe(t)||br(e)&&e.operatorToken.kind===63)return t;if(t.parent&&(uC(t.parent)===e||br(t)&&t.operatorToken.kind===63))return t.parent;if(t.parent&&t.parent.parent&&(uC(t.parent.parent)||_q(t.parent.parent)===e||Hfe(t.parent.parent)))return t.parent.parent}function XN(e){if(e.symbol)return e.symbol;if(!je(e.name))return;const t=e.name.escapedText,r=cb(e);if(!r)return;const i=In(r.parameters,o=>o.name.kind===79&&o.name.escapedText===t);return i&&i.symbol}function X3(e){if(th(e.parent)&&e.parent.tags){const t=In(e.parent.tags,S_);if(t)return t}return cb(e)}function cb(e){const t=dC(e);if(t)return Bf(t)&&t.type&&Xa(t.type)?t.type:Xa(t)?t:void 0}function dC(e){const t=Cx(e);if(t)return Hfe(t)||w4e(t)||_q(t)||uC(t)||Wfe(t)||t}function Cx(e){const t=_k(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===rl(r.jsDoc))return r}function _k(e){return rr(e.parent,th)}function Jfe(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&In(r,i=>i.name.escapedText===t)}function D4e(e){return!!e.typeArguments}function wT(e){let t=e.parent;for(;;){switch(t.kind){case 223:const r=t.operatorToken.kind;return wy(r)&&t.left===e?r===63||Sk(r)?1:2:0;case 221:case 222:const i=t.operator;return i===45||i===46?2:0;case 246:case 247:return t.initializer===e?1:0;case 214:case 206:case 227:case 232:e=t;break;case 301:e=t.parent;break;case 300:if(t.name!==e)return 0;e=t.parent;break;case 299:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function wh(e){return wT(e)!==0}function Kfe(e){switch(e.kind){case 238:case 240:case 251:case 242:case 252:case 266:case 292:case 293:case 253:case 245:case 246:case 247:case 243:case 244:case 255:case 295:return!0}return!1}function Xfe(e){return Us(e)||Xs(e)||zA(e)||xc(e)||Yl(e)}function Yfe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function YN(e){return Yfe(e,193)}function jv(e){return Yfe(e,214)}function $fe(e){let t;for(;e&&e.kind===193;)t=e,e=e.parent;return[t,e]}function hq(e){for(;qx(e);)e=e.type;return e}function Ws(e,t){return Cu(e,t?17:1)}function gq(e){return e.kind!==208&&e.kind!==209?!1:(e=jv(e.parent),e&&e.kind===217)}function DT(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Ag(e){return!Ji(e)&&!Ya(e)&&Au(e.parent)&&e.parent.name===e}function $N(e){const t=e.parent;switch(e.kind){case 10:case 14:case 8:if(Cs(t))return t.parent;case 79:if(Au(t))return t.name===e?t:void 0;if(Rd(t)){const r=t.parent;return _m(r)&&r.name===t?r:void 0}else{const r=t.parent;return br(r)&&wl(r)!==0&&(r.left.symbol||r.symbol)&&Ia(r)===e?r:void 0}case 80:return Au(t)&&t.name===e?t:void 0;default:return}}function QN(e){return i_(e)&&e.parent.kind===164&&Au(e.parent.parent)}function Qfe(e){const t=e.parent;switch(t.kind){case 169:case 168:case 171:case 170:case 174:case 175:case 302:case 299:case 208:return t.name===e;case 163:return t.right===e;case 205:case 273:return t.propertyName===e;case 278:case 288:case 282:case 283:case 284:return!0}return!1}function R4e(e){return e.kind===268||e.kind===267||e.kind===270&&e.name||e.kind===271||e.kind===277||e.kind===273||e.kind===278||e.kind===274&&fC(e)?!0:fr(e)&&(br(e)&&wl(e)===2&&fC(e)||Fr(e)&&br(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===63&&ZN(e.parent.right))}function yq(e){switch(e.parent.kind){case 270:case 273:case 271:case 278:case 274:case 268:case 277:return e.parent;case 163:do e=e.parent;while(e.parent.kind===163);return yq(e)}}function ZN(e){return Xl(e)||qu(e)}function fC(e){const t=vq(e);return ZN(t)}function vq(e){return Vl(e)?e.expression:e.right}function Zfe(e){return e.kind===300?e.name:e.kind===299?e.initializer:e.parent.right}function am(e){const t=G1(e);if(t&&fr(e)){const r=Tde(e);if(r)return r.class}return t}function G1(e){const t=eO(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function _C(e){if(fr(e))return Sde(e).map(t=>t.class);{const t=eO(e.heritageClauses,117);return t==null?void 0:t.types}}function pk(e){return ud(e)?mk(e)||rt:_i(e)&&ya(dT(am(e)),_C(e))||rt}function mk(e){const t=eO(e.heritageClauses,94);return t?t.types:void 0}function eO(e,t){if(e){for(const r of e)if(r.token===t)return r}}function ub(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Dd(e){return 81<=e&&e<=162}function Y3(e){return 126<=e&&e<=162}function e_e(e){return Dd(e)&&!Y3(e)}function N4e(e){return 117<=e&&e<=125}function Lx(e){const t=mT(e);return t!==void 0&&e_e(t)}function O4e(e){const t=mT(e);return t!==void 0&&Dd(t)}function $3(e){const t=ib(e);return!!t&&!Y3(t)}function pC(e){return 2<=e&&e<=7}function Jc(e){if(!e)return 4;let t=0;switch(e.kind){case 259:case 215:case 171:e.asteriskToken&&(t|=1);case 216:$r(e,512)&&(t|=2);break}return e.body||(t|=4),t}function mC(e){switch(e.kind){case 259:case 215:case 216:case 171:return e.body!==void 0&&e.asteriskToken===void 0&&$r(e,512)}return!1}function i_(e){return As(e)||L_(e)}function Q3(e){return Xv(e)&&(e.operator===39||e.operator===40)&&L_(e.operand)}function Hv(e){const t=Ia(e);return!!t&&Z3(t)}function Z3(e){if(!(e.kind===164||e.kind===209))return!1;const t=fl(e)?Ws(e.argumentExpression):e.expression;return!i_(t)&&!Q3(t)}function U1(e){switch(e.kind){case 79:case 80:return e.escapedText;case 10:case 8:return ul(e.text);case 164:const t=e.expression;return i_(t)?ul(t.text):Q3(t)?t.operator===40?vo(t.operator)+t.operand.text:t.operand.text:void 0;default:return D.assertNever(e)}}function J_(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function K_(e){return yg(e)?Mr(e):e.text}function hk(e){return yg(e)?e.escapedText:ul(e.text)}function P4e(e){return`__@${Eo(e)}@${e.escapedName}`}function tO(e,t){return`__#${Eo(e)}@${t}`}function nO(e){return Ta(e.escapedName,"__@")}function t_e(e){return Ta(e.escapedName,"__#")}function M4e(e){return e.kind===79&&e.escapedText==="Symbol"}function n_e(e){return je(e)?Mr(e)==="__proto__":Ho(e)&&e.text==="__proto__"}function gk(e,t){switch(e=Cu(e),e.kind){case 228:case 215:if(e.name)return!1;break;case 216:break;default:return!1}return typeof t=="function"?t(e):!0}function bq(e){switch(e.kind){case 299:return!n_e(e.name);case 300:return!!e.objectAssignmentInitializer;case 257:return je(e.name)&&!!e.initializer;case 166:return je(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 205:return je(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 169:return!!e.initializer;case 223:switch(e.operatorToken.kind){case 63:case 76:case 75:case 77:return je(e.left)}break;case 274:return!0}return!1}function a_(e,t){if(!bq(e))return!1;switch(e.kind){case 299:return gk(e.initializer,t);case 300:return gk(e.objectAssignmentInitializer,t);case 257:case 166:case 205:case 169:return gk(e.initializer,t);case 223:return gk(e.right,t);case 274:return gk(e.expression,t)}}function Eq(e){return e.escapedText==="push"||e.escapedText==="unshift"}function RT(e){return qm(e).kind===166}function qm(e){for(;e.kind===205;)e=e.parent.parent;return e}function Tq(e){const t=e.kind;return t===173||t===215||t===259||t===216||t===171||t===174||t===175||t===264||t===308}function tl(e){return lm(e.pos)||lm(e.end)}function F4e(e){return va(e,Ji)||e}function Sq(e){const t=Aq(e),r=e.kind===211&&e.arguments!==void 0;return xq(e.kind,t,r)}function xq(e,t,r){switch(e){case 211:return r?0:1;case 221:case 218:case 219:case 217:case 220:case 224:case 226:return 1;case 223:switch(t){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function e7(e){const t=Aq(e),r=e.kind===211&&e.arguments!==void 0;return rO(e.kind,t,r)}function Aq(e){return e.kind===223?e.operatorToken.kind:e.kind===221||e.kind===222?e.operator:e.kind}function rO(e,t,r){switch(e){case 357:return 0;case 227:return 1;case 226:return 2;case 224:return 4;case 223:switch(t){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return iO(t)}case 213:case 232:case 221:case 218:case 219:case 217:case 220:return 16;case 222:return 17;case 210:return 18;case 211:return r?19:18;case 212:case 208:case 209:case 233:return 19;case 231:case 235:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 206:case 207:case 215:case 216:case 228:case 13:case 14:case 225:case 214:case 229:case 281:case 282:case 285:return 20;default:return-1}}function iO(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}function aO(e){return yn(e,t=>{switch(t.kind){case 291:return!!t.expression;case 11:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function hC(){let e=[];const t=[],r=new Map;let i=!1;return{add:s,lookup:o,getGlobalDiagnostics:c,getDiagnostics:f};function o(d){let v;if(d.file?v=r.get(d.file.fileName):v=e,!v)return;const h=kv(v,d,yl,d7);if(h>=0)return v[h]}function s(d){let v;d.file?(v=r.get(d.file.fileName),v||(v=[],r.set(d.file.fileName,v),Iv(t,d.file.fileName,Uu))):(i&&(i=!1,e=e.slice()),v=e),Iv(v,d,d7)}function c(){return i=!0,e}function f(d){if(d)return r.get(d)||[];const v=Rf(t,h=>r.get(h));return e.length&&v.unshift(...e),v}}function B4e(e){return e.replace(Epe,"\\${")}function Cq(e){return e&&!!(jx(e)?e.templateFlags:e.head.templateFlags||kt(e.templateSpans,t=>!!t.literal.templateFlags))}function r_e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function G4e(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return Ape.get(e)||r_e(e.charCodeAt(0))}function Ix(e,t){const r=t===96?xpe:t===39?Spe:Tpe;return e.replace(r,G4e)}function oO(e,t){return e=Ix(e,t),NJ.test(e)?e.replace(NJ,r=>r_e(r.charCodeAt(0))):e}function U4e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function V4e(e){return e.charCodeAt(0)===0?"�":Ipe.get(e)||U4e(e.charCodeAt(0))}function Lq(e,t){const r=t===39?Lpe:Cpe;return e.replace(r,V4e)}function X_(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&j4e(e.charCodeAt(0))?e.substring(1,t-1):e}function j4e(e){return e===39||e===34||e===96}function yk(e){const t=e.charCodeAt(0);return t>=97&&t<=122||bu(e,"-")||bu(e,":")}function t7(e){const t=IC[1];for(let r=IC.length;r<=e;r++)IC.push(IC[r-1]+t);return IC[e]}function gC(){return IC[1].length}function sO(){return bu(ve,"-dev")||bu(ve,"-insiders")}function lO(e){var t,r,i,o,s,c=!1;function f(k){const G=tN(k);G.length>1?(o=o+G.length-1,s=t.length-k.length+Jo(G),i=s-t.length===0):i=!1}function d(k){k&&k.length&&(i&&(k=t7(r)+k,i=!1),t+=k,f(k))}function v(k){k&&(c=!1),d(k)}function h(k){k&&(c=!0),d(k)}function E(){t="",r=0,i=!0,o=0,s=0,c=!1}function C(k){k!==void 0&&(t+=k,f(k),c=!1)}function L(k){k&&k.length&&v(k)}function I(k){(!i||k)&&(t+=e,o++,s=t.length,i=!0,c=!1)}function O(){return i?t.length:t.length+e.length}return E(),{write:v,rawWrite:C,writeLiteral:L,writeLine:I,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*gC():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>c,hasTrailingWhitespace:()=>!!t.length&&gg(t.charCodeAt(t.length-1)),clear:E,writeKeyword:v,writeOperator:v,writeParameter:v,writeProperty:v,writePunctuation:v,writeSpace:v,writeStringLiteral:v,writeSymbol:(k,G)=>v(k),writeTrailingSemicolon:v,writeComment:h,getTextPosWithWriteLine:O}}function Iq(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return Ka(Ti({},e),{writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,o){r(),e.writeSymbol(i,o)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}})}function cO(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function db(e){return cu(cO(e))}function n7(e,t,r){return t.moduleName||kq(e,t.fileName,r&&r.fileName)}function i_e(e,t){return e.getCanonicalFileName(Oa(t,e.getCurrentDirectory()))}function a_e(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const o=sC(r);if(!(o&&As(o)&&!Nf(o.text)&&i_e(e,i.path).indexOf(i_e(e,Vu(e.getCommonSourceDirectory())))===-1))return n7(e,i)}function kq(e,t,r){const i=d=>e.getCanonicalFileName(d),o=Js(r?yi(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=Oa(t,e.getCurrentDirectory()),c=_x(o,s,o,i,!1),f=qd(c);return r?L1(f):f}function o_e(e,t,r){const i=t.getCompilerOptions();let o;return i.outDir?o=qd(r7(e,t,i.outDir)):o=qd(e),o+r}function s_e(e,t){return wq(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function wq(e,t,r,i,o){const s=t.declarationDir||t.outDir,c=s?Oq(e,s,r,i,o):e,f=Dq(c);return qd(c)+f}function Dq(e){return Ic(e,[".mjs",".mts"])?".d.mts":Ic(e,[".cjs",".cts"])?".d.cts":Ic(e,[".json"])?".d.json.ts":".d.ts"}function l_e(e){return Ic(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Ic(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Ic(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ks(e){return e.outFile||e.out}function Rq(e,t){var r,i;if(e.paths)return(i=e.baseUrl)!=null?i:D.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Nq(e,t,r){const i=e.getCompilerOptions();if(Ks(i)){const o=du(i),s=i.emitDeclarationOnly||o===2||o===4;return yn(e.getSourceFiles(),c=>(s||!rc(c))&&kx(c,e,r))}else{const o=t===void 0?e.getSourceFiles():[t];return yn(o,s=>kx(s,e,r))}}function kx(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&sd(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(T_(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function r7(e,t,r){return Oq(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function Oq(e,t,r,i,o){let s=Oa(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Bi(t,s)}function vk(e,t,r,i,o,s,c){e.writeFile(r,i,o,f=>{t.add(Gs(_.Could_not_write_file_0_Colon_1,r,f))},s,c)}function c_e(e,t,r){if(e.length>nm(e)&&!r(e)){const i=yi(e);c_e(i,t,r),t(e)}}function Pq(e,t,r,i,o,s){try{i(e,t,r)}catch(c){c_e(yi(Ko(e)),o,s),i(e,t,r)}}function bk(e,t){const r=hg(e);return GI(r,t)}function NT(e,t){return GI(e,t)}function Dh(e){return In(e.members,t=>Yl(t)&&E_(t.body))}function Ek(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&j1(e.parameters[0]);return e.parameters[t?1:0]}}function u_e(e){const t=Ek(e);return t&&t.type}function V1(e){if(e.parameters.length&&!Z1(e)){const t=e.parameters[0];if(j1(t))return t}}function j1(e){return OT(e.name)}function OT(e){return!!e&&e.kind===79&&Mq(e)}function wx(e){if(!OT(e))return!1;for(;Rd(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===183}function Mq(e){return e.escapedText==="this"}function PT(e,t){let r,i,o,s;return Hv(t)?(r=t,t.kind===174?o=t:t.kind===175?s=t:D.fail("Accessor has wrong kind")):Je(e,c=>{if(ab(c)&&Ja(c)===Ja(t)){const f=U1(c.name),d=U1(t.name);f===d&&(r?i||(i=c):r=c,c.kind===174&&!o&&(o=c),c.kind===175&&!s&&(s=c))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function iu(e){if(!fr(e)&&xc(e))return;const t=e.type;return t||!fr(e)?t:l3(e)?e.typeExpression&&e.typeExpression.type:Pv(e)}function d_e(e){return e.type}function Cp(e){return Z1(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(fr(e)?uN(e):void 0)}function i7(e){return Ga(k1(e),t=>H4e(t)?t.typeParameters:void 0)}function H4e(e){return kp(e)&&!(e.parent.kind===323&&(e.parent.tags.some(S_)||e.parent.tags.some(cw)))}function f_e(e){const t=Ek(e);return t&&iu(t)}function __e(e,t,r,i){p_e(e,t,r.pos,i)}function p_e(e,t,r,i){i&&i.length&&r!==i[0].pos&&NT(e,r)!==NT(e,i[0].pos)&&t.writeLine()}function m_e(e,t,r,i){r!==i&&NT(e,r)!==NT(e,i)&&t.writeLine()}function h_e(e,t,r,i,o,s,c,f){if(i&&i.length>0){o&&r.writeSpace(" ");let d=!1;for(const v of i)d&&(r.writeSpace(" "),d=!1),f(e,t,r,v.pos,v.end,c),v.hasTrailingNewLine?r.writeLine():d=!0;d&&s&&r.writeSpace(" ")}}function g_e(e,t,r,i,o,s,c){let f,d;if(c?o.pos===0&&(f=yn(xh(e,o.pos),v)):f=xh(e,o.pos),f){const h=[];let E;for(const C of f){if(E){const L=NT(t,E.end);if(NT(t,C.pos)>=L+2)break}h.push(C),E=C}if(h.length){const C=NT(t,Jo(h).end);NT(t,Xo(e,o.pos))>=C+2&&(__e(t,r,o,f),h_e(e,t,r,h,!1,!0,s,i),d={nodePos:o.pos,detachedCommentEndPos:Jo(h).end})}}return d;function v(h){return E3(e,h.pos)}}function yC(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){const c=rN(t,i),f=t.length;let d;for(let v=i,h=c.line;v<o;h++){const E=h+1===f?e.length+1:t[h+1];if(v!==i){d===void 0&&(d=y_e(e,t[c.line],i));const L=r.getIndent()*gC()-d+y_e(e,v,E);if(L>0){let I=L%gC();const O=t7((L-I)/gC());for(r.rawWrite(O);I;)r.rawWrite(" "),I--}else r.rawWrite("")}W4e(e,o,r,s,v,E),v=E}}else r.writeComment(e.substring(i,o))}function W4e(e,t,r,i,o,s){const c=Math.min(t,s-1),f=S1(e.substring(o,c));f?(r.writeComment(f),c!==t&&r.writeLine()):r.rawWrite(i)}function y_e(e,t,r){let i=0;for(;t<r&&Um(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=gC()-i%gC():i++;return i}function a7(e){return Hu(e)!==0}function v_e(e){return Wv(e)!==0}function zd(e,t){return!!Dx(e,t)}function $r(e,t){return!!b_e(e,t)}function Ja(e){return qc(e)&&Sc(e)||Rl(e)}function Sc(e){return $r(e,32)}function Fq(e){return zd(e,16384)}function H1(e){return $r(e,256)}function Bq(e){return $r(e,2)}function Jm(e){return $r(e,128)}function Tk(e){return zd(e,64)}function o_(e){return $r(e,131072)}function Dx(e,t){return Hu(e)&t}function b_e(e,t){return Wv(e)&t}function Gq(e,t,r){return e.kind>=0&&e.kind<=162?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Uq(e)|536870912),t&&!(e.modifierFlagsCache&4096)&&(r||fr(e))&&e.parent&&(e.modifierFlagsCache|=T_e(e)|4096),e.modifierFlagsCache&-536875009)}function Hu(e){return Gq(e,!0)}function E_e(e){return Gq(e,!0,!0)}function Wv(e){return Gq(e,!1)}function T_e(e){let t=0;return e.parent&&!Fa(e)&&(fr(e)&&(xde(e)&&(t|=4),Ade(e)&&(t|=8),Cde(e)&&(t|=16),Lde(e)&&(t|=64),Ide(e)&&(t|=16384)),kde(e)&&(t|=8192)),t}function S_e(e){return Uq(e)|T_e(e)}function Uq(e){let t=np(e)?Km(e.modifiers):0;return(e.flags&4||e.kind===79&&e.flags&2048)&&(t|=1),t}function Km(e){let t=0;if(e)for(const r of e)t|=Rx(r.kind);return t}function Rx(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 256;case 127:return 128;case 93:return 1;case 136:return 2;case 85:return 2048;case 88:return 1024;case 132:return 512;case 146:return 64;case 161:return 16384;case 101:return 32768;case 145:return 65536;case 167:return 131072}return 0}function x_e(e){return e===56||e===55}function A_e(e){return x_e(e)||e===53}function Sk(e){return e===75||e===76||e===77}function Vq(e){return br(e)&&Sk(e.operatorToken.kind)}function uO(e){return x_e(e)||e===60}function dO(e){return br(e)&&uO(e.operatorToken.kind)}function wy(e){return e>=63&&e<=78}function jq(e){const t=Hq(e);return t&&!t.isImplements?t.class:void 0}function Hq(e){if(Py(e)){if(Kd(e.parent)&&_i(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===117};if(zC(e.parent)){const t=dC(e.parent);if(t&&_i(t))return{class:t,isImplements:!1}}}}function ld(e,t){return br(e)&&(t?e.operatorToken.kind===63:wy(e.operatorToken.kind))&&Id(e.left)}function z4e(e){return ld(e.parent)&&e.parent.left===e}function Dy(e){if(ld(e,!0)){const t=e.left.kind;return t===207||t===206}return!1}function fO(e){return jq(e)!==void 0}function Xl(e){return e.kind===79||_O(e)}function Ff(e){switch(e.kind){case 79:return e;case 163:do e=e.left;while(e.kind!==79);return e;case 208:do e=e.expression;while(e.kind!==79);return e}}function xk(e){return e.kind===79||e.kind===108||e.kind===106||e.kind===233||e.kind===208&&xk(e.expression)||e.kind===214&&xk(e.expression)}function _O(e){return Fr(e)&&je(e.name)&&Xl(e.expression)}function pO(e){if(Fr(e)){const t=pO(e.expression);if(t!==void 0)return t+"."+Pf(e.name)}else if(fl(e)){const t=pO(e.expression);if(t!==void 0&&El(e.argumentExpression))return t+"."+U1(e.argumentExpression)}else if(je(e))return ra(e.escapedText)}function fb(e){return kT(e)&&xg(e)==="prototype"}function Ak(e){return e.parent.kind===163&&e.parent.right===e||e.parent.kind===208&&e.parent.name===e}function C_e(e){return Fr(e.parent)&&e.parent.name===e||fl(e.parent)&&e.parent.argumentExpression===e}function L_e(e){return Rd(e.parent)&&e.parent.right===e||Fr(e.parent)&&e.parent.name===e||vb(e.parent)&&e.parent.right===e}function Wq(e){return e.kind===207&&e.properties.length===0}function I_e(e){return e.kind===206&&e.elements.length===0}function vC(e){if(!(!q4e(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function q4e(e){return e&&Le(e.declarations)>0&&$r(e.declarations[0],1024)}function o7(e){return In(Npe,t=>hc(e,t))}function J4e(e){const t=[],r=e.length;for(let i=0;i<r;i++){const o=e.charCodeAt(i);o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):D.assert(!1,"Unexpected code point")}return t}function k_e(e){let t="";const r=J4e(e);let i=0;const o=r.length;let s,c,f,d;for(;i<o;)s=r[i]>>2,c=(r[i]&3)<<4|r[i+1]>>4,f=(r[i+1]&15)<<2|r[i+2]>>6,d=r[i+2]&63,i+1>=o?f=d=64:i+2>=o&&(d=64),t+=J1.charAt(s)+J1.charAt(c)+J1.charAt(f)+J1.charAt(d),i+=3;return t}function K4e(e){let t="",r=0;const i=e.length;for(;r<i;){const o=e[r];if(o<128)t+=String.fromCharCode(o),r++;else if((o&192)===192){let s=o&63;r++;let c=e[r];for(;(c&192)===128;)s=s<<6|c&63,r++,c=e[r];t+=String.fromCharCode(s)}else t+=String.fromCharCode(o),r++}return t}function w_e(e,t){return e&&e.base64encode?e.base64encode(t):k_e(t)}function D_e(e,t){if(e&&e.base64decode)return e.base64decode(t);const r=t.length,i=[];let o=0;for(;o<r&&t.charCodeAt(o)!==J1.charCodeAt(64);){const s=J1.indexOf(t[o]),c=J1.indexOf(t[o+1]),f=J1.indexOf(t[o+2]),d=J1.indexOf(t[o+3]),v=(s&63)<<2|c>>4&3,h=(c&15)<<4|f>>2&15,E=(f&3)<<6|d&63;h===0&&f!==0?i.push(v):E===0&&d!==0?i.push(v,h):i.push(v,h,E),o+=4}return K4e(i)}function zq(e,t){const r=Ha(t)?t:t.readFile(e);if(!r)return;const i=QK(e,r);return i.error?void 0:i.config}function Ck(e,t){return zq(e,t)||{}}function om(e,t){return!t.directoryExists||t.directoryExists(e)}function _b(e){switch(e.newLine){case 0:return kpe;case 1:case void 0:return wpe}}function x_(e,t=e){return D.assert(t>=e||t===-1),{pos:e,end:t}}function s7(e,t){return x_(e.pos,t)}function pb(e,t){return x_(t,e.end)}function zv(e){const t=np(e)?Yr(e.modifiers,Wu):void 0;return t&&!lm(t.end)?pb(e,t.end):e}function sm(e){if(ro(e)||uc(e))return pb(e,e.name.pos);const t=np(e)?rl(e.modifiers):void 0;return t&&!lm(t.end)?pb(e,t.end):zv(e)}function X4e(e){return e.pos===e.end}function qq(e,t){return x_(e,e+vo(t).length)}function MT(e,t){return N_e(e,e,t)}function l7(e,t,r){return A_(Lk(e,r,!1),Lk(t,r,!1),r)}function R_e(e,t,r){return A_(e.end,t.end,r)}function N_e(e,t,r){return A_(Lk(e,r,!1),t.end,r)}function mO(e,t,r){return A_(e.end,Lk(t,r,!1),r)}function Jq(e,t,r,i){const o=Lk(t,r,i);return UI(r,e.end,o)}function Y4e(e,t,r){return UI(r,e.end,t.end)}function O_e(e,t){return!A_(e.pos,e.end,t)}function A_(e,t,r){return UI(r,e,t)===0}function Lk(e,t,r){return lm(e.pos)?-1:Xo(t.text,e.pos,!1,r)}function P_e(e,t,r,i){const o=Xo(r.text,e,!1,i),s=$4e(o,t,r);return UI(r,s!=null?s:t,o)}function M_e(e,t,r,i){const o=Xo(r.text,e,!1,i);return UI(r,e,Math.min(t,o))}function $4e(e,t=0,r){for(;e-- >t;)if(!gg(r.text.charCodeAt(e)))return e}function hO(e){const t=va(e);if(t)switch(t.parent.kind){case 263:case 264:return t===t.parent.name}return!1}function Ik(e){return yn(e.declarations,Kq)}function Kq(e){return Xi(e)&&e.initializer!==void 0}function Q4e(e){return e.watch&&Fs(e,"watch")}function Xm(e){e.close()}function Dl(e){return e.flags&33554432?e.links.checkFlags:0}function s_(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&In(e.declarations,c_)||e.flags&32768&&In(e.declarations,Z_)||e.valueDeclaration,i=Ay(r);return e.parent&&e.parent.flags&32?i:i&-29}if(Dl(e)&6){const r=e.links.checkFlags,i=r&1024?8:r&256?4:16,o=r&2048?32:0;return i|o}return e.flags&4194304?36:0}function gf(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function kk(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function Xq(e){return bC(e)===1}function wk(e){return bC(e)!==0}function bC(e){const{parent:t}=e;if(!t)return 0;switch(t.kind){case 214:return bC(t);case 222:case 221:const{operator:i}=t;return i===45||i===46?r():0;case 223:const{left:o,operatorToken:s}=t;return o===e&&wy(s.kind)?s.kind===63?1:r():0;case 208:return t.name!==e?0:bC(t);case 299:{const c=bC(t.parent);return e===t.name?Z4e(c):c}case 300:return e===t.objectAssignmentInitializer?0:bC(t.parent);case 206:return bC(t);default:return 0}function r(){return t.parent&&jv(t.parent).kind===241?1:2}}function Z4e(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return D.assertNever(e)}}function Yq(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(typeof e[r]=="object"){if(!Yq(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function l_(e,t){e.forEach(t),e.clear()}function Cg(e,t,r){const{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,c)=>{const f=t.get(c);f===void 0?(e.delete(c),i(s,c)):o&&o(s,f,c)})}function EC(e,t,r){Cg(e,t,r);const{createNewValue:i}=r;t.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function F_e(e){if(e.flags&32){const t=Lg(e);return!!t&&$r(t,256)}return!1}function Lg(e){var t;return(t=e.declarations)==null?void 0:t.find(_i)}function ri(e){return e.flags&3899393?e.objectFlags:0}function eMe(e,t){return!!mg(e,r=>t(r)?!0:void 0)}function c7(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&n8(e.declarations[0])}function B_e({moduleSpecifier:e}){return Ho(e)?e.text:kc(e)}function $q(e){let t;return Pa(e,r=>{E_(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(E_(r[i])){t=r[i];break}}),t}function Lp(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function Nx(e){return _i(e)||ud(e)||yf(e)}function Qq(e){return e>=179&&e<=202||e===131||e===157||e===148||e===160||e===149||e===134||e===152||e===153||e===114||e===155||e===144||e===139||e===230||e===315||e===316||e===317||e===318||e===319||e===320||e===321}function dl(e){return e.kind===208||e.kind===209}function G_e(e){return e.kind===208?e.name:(D.assert(e.kind===209),e.argumentExpression)}function U_e(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function Zq(e){return e.kind===272||e.kind===276}function Dk(e){for(;dl(e);)e=e.expression;return e}function tMe(e,t){if(dl(e.parent)&&C_e(e))return r(e.parent);function r(i){if(i.kind===208){const o=t(i.name);if(o!==void 0)return o}else if(i.kind===209)if(je(i.argumentExpression)||As(i.argumentExpression)){const o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(dl(i.expression))return r(i.expression);if(je(i.expression))return t(i.expression)}}function Rk(e,t){for(;;){switch(e.kind){case 222:e=e.operand;continue;case 223:e=e.left;continue;case 224:e=e.condition;continue;case 212:e=e.tag;continue;case 210:if(t)return e;case 231:case 209:case 208:case 232:case 356:case 235:e=e.expression;continue}return e}}function nMe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function rMe(e,t){this.flags=t,(D.isDebugging||Si)&&(this.checker=e)}function iMe(e,t){this.flags=t,D.isDebugging&&(this.checker=e)}function eJ(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function aMe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function oMe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function sMe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function V_e(e){OJ.push(e),e(Kc)}function j_e(e){Object.assign(Kc,e),Je(OJ,t=>t(Kc))}function Rh(e,t,r=0){return e.replace(/{(\d+)}/g,(i,o)=>""+D.checkDefined(t[+o+r]))}function H_e(e){NO=e}function W_e(e){!NO&&e&&(NO=e())}function Po(e){return NO&&NO[e.key]||e.message}function TC(e,t,r,i){Yz(void 0,t,r);let o=Po(i);return arguments.length>4&&(o=Rh(o,arguments,4)),{file:void 0,start:t,length:r,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function lMe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function z_e(e,t){const r=t.fileName||"",i=t.text.length;D.assertEqual(e.fileName,r),D.assertLessThanOrEqual(e.start,i),D.assertLessThanOrEqual(e.start+e.length,i);const o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(const s of e.relatedInformation)lMe(s)&&s.fileName===r?(D.assertLessThanOrEqual(s.start,i),D.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(z_e(s,t))):o.relatedInformation.push(s)}return o}function Ox(e,t){const r=[];for(const i of e)r.push(z_e(i,t));return r}function Mc(e,t,r,i){Yz(e,t,r);let o=Po(i);return arguments.length>4&&(o=Rh(o,arguments,4)),{file:e,start:t,length:r,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function tJ(e,t){let r=Po(t);return arguments.length>2&&(r=Rh(r,arguments,2)),r}function Gs(e){let t=Po(e);return arguments.length>1&&(t=Rh(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function u7(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Ra(e,t){let r=Po(t);return arguments.length>2&&(r=Rh(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function q_e(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function J_e(e){return e.file?e.file.path:void 0}function Nk(e,t){return d7(e,t)||cMe(e,t)||0}function d7(e,t){return Uu(J_e(e),J_e(t))||qs(e.start,t.start)||qs(e.length,t.length)||qs(e.code,t.code)||K_e(e.messageText,t.messageText)||0}function cMe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?qs(e.relatedInformation.length,t.relatedInformation.length)||Je(e.relatedInformation,(r,i)=>{const o=t.relatedInformation[i];return Nk(r,o)})||0:e.relatedInformation?-1:1}function K_e(e,t){if(typeof e=="string"&&typeof t=="string")return Uu(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Uu(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let o=0;o<i;o++)if(r=K_e(e.next[o],t.next[o]),r)return r;return e.next.length<t.next.length?-1:e.next.length>t.next.length?1:0}function gO(e){return e===4||e===2||e===1||e===6?1:0}function X_e(e){if(e.transformFlags&2)return od(e)||e2(e)?e:Pa(e,X_e)}function uMe(e){return e.isDeclarationFile?void 0:X_e(e)}function dMe(e){return(e.impliedNodeFormat===99||Ic(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function yO(e){switch(Y_e(e)){case 3:return o=>{o.externalModuleIndicator=_8(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=_8(o)};case 2:const t=[_8];(e.jsx===4||e.jsx===5)&&t.push(uMe),t.push(dMe);const r=Fm(...t);return o=>void(o.externalModuleIndicator=r(o))}}function ts(e){var t;return(t=e.target)!=null?t:e.module===100&&9||e.module===199&&99||1}function du(e){return typeof e.module=="number"?e.module:ts(e)>=2?5:1}function nJ(e){return e>=5&&e<=99}function Tl(e){let t=e.moduleResolution;if(t===void 0)switch(du(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function Y_e(e){return e.moduleDetection||(du(e)===100||du(e)===199?3:2)}function f7(e){switch(du(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function Y_(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function _7(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function $_e(e){return e.allowUnreachableCode===!1}function Q_e(e){return e.allowUnusedLabels===!1}function p7(e){return!!(Q_(e)&&e.declarationMap)}function $_(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(du(e)){case 100:case 199:return!0}}function FT(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:$_(e)||du(e)===4||Tl(e)===100}function Px(e){return e>=3&&e<=99||e===100}function rJ(e){const t=Tl(e);if(!Px(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function fMe(e){const t=Tl(e);if(!Px(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function BT(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:Tl(e)===100}function Q_(e){return!!(e.declaration||e.composite)}function W1(e){return!!(e.preserveConstEnums||Y_(e))}function vO(e){return!!(e.incremental||e.composite)}function C_(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function bO(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function EO(e){return e.useDefineForClassFields===void 0?ts(e)>=9:e.useDefineForClassFields}function Z_e(e,t){return XA(t,e,pX)}function epe(e,t){return XA(t,e,mX)}function tpe(e,t){return XA(t,e,hX)}function m7(e,t){return t.strictFlag?C_(e,t.name):e[t.name]}function iJ(e){const t=e.jsx;return t===2||t===4||t===5}function h7(e,t){const r=t==null?void 0:t.pragmas.get("jsximportsource"),i=Va(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function g7(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function aJ(e){let t=!1;for(let r=0;r<e.length;r++)if(e.charCodeAt(r)===42)if(!t)t=!0;else return!1;return!0}function npe(e,t){let r,i,o,s=!1;return{getSymlinkedFiles:()=>o,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(f,d)=>(o||(o=new Map)).set(f,d),setSymlinkedDirectory:(f,d)=>{let v=Js(f,e,t);Vk(v)||(v=Vu(v),d!==!1&&!(r!=null&&r.has(v))&&(i||(i=b_())).add(Vu(d.realPath),f),(r||(r=new Map)).set(v,d))},setSymlinksFromResolutions(f,d){var v,h;D.assert(!s),s=!0;for(const E of f)(v=E.resolvedModules)==null||v.forEach(C=>c(this,C.resolvedModule)),(h=E.resolvedTypeReferenceDirectiveNames)==null||h.forEach(C=>c(this,C.resolvedTypeReferenceDirective));d.forEach(E=>c(this,E.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function c(f,d){if(!d||!d.originalPath||!d.resolvedFileName)return;const{resolvedFileName:v,originalPath:h}=d;f.setSymlinkedFile(Js(h,e,t),v);const[E,C]=_Me(v,h,e,t)||rt;E&&C&&f.setSymlinkedDirectory(C,{real:E,realPath:Js(E,e,t)})}}function _Me(e,t,r,i){const o=pd(Oa(e,r)),s=pd(Oa(t,r));let c=!1;for(;o.length>=2&&s.length>=2&&!rpe(o[o.length-2],i)&&!rpe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),c=!0;return c?[C1(o),C1(s)]:void 0}function rpe(e,t){return e!==void 0&&(t(e)==="node_modules"||Ta(e,"@"))}function pMe(e){return UW(e.charCodeAt(0))?e.slice(1):void 0}function oJ(e,t,r){const i=CH(e,t,r);return i===void 0?void 0:pMe(i)}function mMe(e){return e.replace(I7,hMe)}function hMe(e){return"\\"+e}function Ok(e,t,r){const i=y7(e,t,r);return!i||!i.length?void 0:`^(${i.map(c=>`(${c})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function y7(e,t,r){if(!(e===void 0||e.length===0))return Ga(e,i=>i&&ipe(i,t,r,GJ[r]))}function sJ(e){return!/[.*?]/.test(e)}function lJ(e,t,r){const i=e&&ipe(e,t,r,GJ[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function ipe(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}){let c="",f=!1;const d=$R(e,t),v=Jo(d);if(r!=="exclude"&&v==="**")return;d[0]=_T(d[0]),sJ(v)&&d.push("**","*");let h=0;for(let E of d){if(E==="**")c+=o;else if(r==="directories"&&(c+="(",h++),f&&(c+=Bs),r!=="exclude"){let C="";E.charCodeAt(0)===42?(C+="([^./]"+i+")?",E=E.substr(1)):E.charCodeAt(0)===63&&(C+="[^./]",E=E.substr(1)),C+=E.replace(I7,s),C!==E&&(c+=k7),c+=C}else c+=E.replace(I7,s);f=!0}for(;h>0;)c+=")?",h--;return c}function cJ(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function Pk(e,t,r,i,o){e=Ko(e),o=Ko(o);const s=Bi(o,e);return{includeFilePatterns:zt(y7(r,s,"files"),c=>`^${c}$`),includeFilePattern:Ok(r,s,"files"),includeDirectoryPattern:Ok(r,s,"directories"),excludePattern:Ok(t,s,"exclude"),basePaths:gMe(e,r,i)}}function qv(e,t){return new RegExp(e,t?"":"i")}function uJ(e,t,r,i,o,s,c,f,d){e=Ko(e),s=Ko(s);const v=Pk(e,r,i,o,s),h=v.includeFilePatterns&&v.includeFilePatterns.map(G=>qv(G,o)),E=v.includeDirectoryPattern&&qv(v.includeDirectoryPattern,o),C=v.excludePattern&&qv(v.excludePattern,o),L=h?h.map(()=>[]):[[]],I=new Map,O=cu(o);for(const G of v.basePaths)k(G,Bi(s,G),c);return Ds(L);function k(G,V,H){const ne=O(d(V));if(I.has(ne))return;I.set(ne,!0);const{files:Y,directories:$}=f(G);for(const M of kI(Y,Uu)){const de=Bi(G,M),re=Bi(V,M);if(!(t&&!Ic(de,t))&&!(C&&C.test(re)))if(!h)L[0].push(de);else{const be=mi(h,ae=>ae.test(re));be!==-1&&L[be].push(de)}}if(!(H!==void 0&&(H--,H===0)))for(const M of kI($,Uu)){const de=Bi(G,M),re=Bi(V,M);(!E||E.test(re))&&(!C||!C.test(re))&&k(de,re,H)}}}function gMe(e,t,r){const i=[e];if(t){const o=[];for(const s of t){const c=Bm(s)?s:Ko(Bi(e,s));o.push(yMe(c))}o.sort(gM(!r));for(const s of o)Zn(i,c=>!Rv(c,s,e,!r))&&i.push(s)}return i}function yMe(e){const t=mc(e,Dpe);return t<0?BA(e)?_T(yi(e)):e:e.substring(0,e.lastIndexOf(Bs,t))}function v7(e,t){return t||dJ(e)||3}function dJ(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function Mk(e,t){const r=e&&bO(e);if(!t||t.length===0)return r?OO:kC;const i=r?OO:kC,o=Ds(i);return[...i,...pa(t,c=>c.scriptKind===7||r&&vMe(c.scriptKind)&&o.indexOf(c.extension)===-1?[c.extension]:void 0)]}function TO(e,t){return!e||!BT(e)?t:t===OO?Ope:t===kC?Rpe:[...t,[".json"]]}function vMe(e){return e===1||e===2}function Mx(e){return kt(zk,t=>hc(e,t))}function SO(e){return kt(UJ,t=>hc(e,t))}function ape({imports:e},t=Fm(Mx,SO)){return Jt(e,({text:r})=>Nf(r)?t(r):void 0)||!1}function fJ(e,t,r,i){if(e==="js"||t===99)return Ew(r)&&o()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!Ew(r))return ape(i)?2:0;return o();function o(){let s=!1;const c=i.imports.length?i.imports.map(f=>f.text):sd(i)?bMe(i).map(f=>f.arguments[0].text):rt;for(const f of c)if(Nf(f)){if(SO(f))return 3;Mx(f)&&(s=!0)}return s?2:0}}function bMe(e){let t=0,r;for(const i of e.statements){if(t>3)break;cq(i)?r=ya(r,i.declarationList.declarations.map(o=>o.initializer)):fu(i)&&wd(i.expression,!0)?r=Bn(r,i.expression):t++}return r||rt}function ope(e,t,r){if(!e)return!1;const i=Mk(t,r);for(const o of Ds(TO(t,i)))if(hc(e,o))return!0;return!1}function spe(e){const t=e.match(/\//g);return t?t.length:0}function xO(e,t){return qs(spe(e),spe(t))}function qd(e){for(const t of R7){const r=lpe(e,t);if(r!==void 0)return r}return e}function lpe(e,t){return hc(e,t)?AO(e,t):void 0}function AO(e,t){return e.substring(0,e.length-t.length)}function z1(e,t){return HW(e,t,R7,!1)}function SC(e){const t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function b7(e){return pa(_g(e),t=>SC(t))}function lm(e){return!(e>=0)}function E7(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||Ta(e,".d.")&&cc(e,".ts")}function CO(e){return E7(e)||e===".json"}function LO(e){const t=Nh(e);return t!==void 0?t:D.fail(`File ${e} has unknown extension.`)}function EMe(e){return Nh(e)!==void 0}function Nh(e){return In(R7,t=>hc(e,t))}function IO(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function _J(e,t){const r=[];for(const i of e){if(i===t)return t;Ha(i)||r.push(i)}return AH(r,i=>i,t)}function pJ(e,t){const r=e.indexOf(t);return D.assert(r!==-1),e.slice(r)}function Yo(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),D.assert(e.relatedInformation!==rt,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function cpe(e,t){D.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;o<e.length;o++){const s=t(e[o]);s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function mJ(e){return{pos:ST(e),end:e.end}}function hJ(e,t){const r=t.pos-1,i=Math.min(e.text.length,Xo(e.text,t.end)+1);return{pos:r,end:i}}function Fk(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function gJ(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&zce(e,t,gJ)}function Bk(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const v=e.length-1;let h=0;for(;e.charCodeAt(h)===48;)h++;return e.slice(h,v)||"0"}const r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let v=i-1,h=0;v>=r;v--,h+=t){const E=h>>>4,C=e.charCodeAt(v),I=(C<=57?C-48:10+C-(C<=70?65:97))<<(h&15);s[E]|=I;const O=I>>>16;O&&(s[E+1]|=O)}let c="",f=s.length-1,d=!0;for(;d;){let v=0;d=!1;for(let h=f;h>=0;h--){const E=v<<16|s[h],C=E/10|0;s[h]=C,v=E-C*10,C&&!d&&(f=h,d=!0)}c=v+c}return c}function q1({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function upe(e){if(T7(e,!1))return yJ(e)}function yJ(e){const t=e.startsWith("-"),r=Bk(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function T7(e,t){if(e==="")return!1;const r=Sy(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan();const s=o===40;s&&(o=r.scan());const c=r.getTokenFlags();return i&&o===9&&r.getTextPos()===e.length+1&&!(c&512)&&(!t||e===q1({negative:s,base10Value:Bk(r.getTokenValue())}))}function Fx(e){return!!(e.flags&16777216)||V3(e)||xMe(e)||SMe(e)||!(Sg(e)||TMe(e))}function TMe(e){return je(e)&&u_(e.parent)&&e.parent.name===e}function SMe(e){for(;e.kind===79||e.kind===208;)e=e.parent;if(e.kind!==164)return!1;if($r(e.parent,256))return!0;const t=e.parent.parent.kind;return t===261||t===184}function xMe(e){if(e.kind!==79)return!1;const t=rr(e.parent,r=>{switch(r.kind){case 294:return!0;case 208:case 230:return!1;default:return"quit"}});return(t==null?void 0:t.token)===117||(t==null?void 0:t.parent.kind)===261}function dpe(e){return ep(e)&&je(e.typeName)}function fpe(e,t=tb){if(e.length<2)return!0;const r=e[0];for(let i=1,o=e.length;i<o;i++){const s=e[i];if(!t(r,s))return!1}return!0}function Gk(e,t){return e.pos=t,e}function xC(e,t){return e.end=t,e}function Ym(e,t,r){return xC(Gk(e,t),r)}function Uk(e,t,r){return Ym(e,t,t+r)}function _pe(e,t){return e&&(e.flags=t),e}function jo(e,t){return e&&t&&(e.parent=t),e}function AC(e,t){if(e)for(const r of e)jo(r,t);return e}function Jv(e,t){if(!e)return e;return p8(e,KA(e)?r:o),e;function r(s,c){if(t&&s.parent===c)return"skip";jo(s,c)}function i(s){if(Of(s))for(const c of s.jsDoc)r(c,s),p8(c,r)}function o(s,c){return r(s,c)||i(s)}}function AMe(e){return!Fc(e)}function vJ(e){return zu(e)&&Zn(e.elements,AMe)}function ppe(e){for(D.assertIsDefined(e.parent);;){const t=e.parent;if(Jd(t)){e=t;continue}if(fu(t)||Xx(t)||HT(t)&&(t.initializer===e||t.incrementor===e))return!0;if(rw(t)){if(e!==Jo(t.elements))return!0;e=t;continue}if(br(t)&&t.operatorToken.kind===27){if(e===t.left)return!0;e=t;continue}return!1}}function Vk(e){return kt(XR,t=>bu(e,t))}function mpe(e){if(!e.parent)return;switch(e.kind){case 165:const{parent:r}=e;return r.kind===192?void 0:r.typeParameters;case 166:return e.parent.parameters;case 201:return e.parent.templateSpans;case 236:return e.parent.templateSpans;case 167:{const{parent:i}=e;return i2(i)?i.modifiers:void 0}case 294:return e.parent.heritageClauses}const{parent:t}=e;if(tk(e))return lw(e.parent)?void 0:e.parent.tags;switch(t.kind){case 184:case 261:return vT(e)?t.members:void 0;case 189:case 190:return t.types;case 186:case 206:case 357:case 272:case 276:return t.elements;case 207:case 289:return t.properties;case 210:case 211:return Gi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 281:case 285:return bN(e)?t.children:void 0;case 283:case 282:return Gi(e)?t.typeArguments:void 0;case 238:case 292:case 293:case 265:return t.statements;case 266:return t.clauses;case 260:case 228:return qc(e)?t.members:void 0;case 263:return Q1(e)?t.members:void 0;case 308:return t.statements}}function S7(e){if(!e.typeParameters){if(kt(e.parameters,t=>!iu(t)))return!0;if(e.kind!==216){const t=tu(e.parameters);if(!(t&&j1(t)))return!0}}return!1}function jk(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function hpe(e){return e.kind===257&&e.parent.kind===295}function bJ(e){const t=e.valueDeclaration&&qm(e.valueDeclaration);return!!t&&(Fa(t)||hpe(t))}function CC(e){return e.kind===215||e.kind===216}function GT(e){return e.replace(/\$/gm,()=>"\\$")}function Oh(e){return(+e).toString()===e}function x7(e,t,r,i){return H_(e,t)?N.createIdentifier(e):!i&&Oh(e)&&+e>=0?N.createNumericLiteral(+e):N.createStringLiteral(e,!!r)}function Hk(e){return!!(e.flags&262144&&e.isThisType)}function EJ(e){let t=0,r=0,i=0,o=0,s;(v=>{v[v.BeforeNodeModules=0]="BeforeNodeModules",v[v.NodeModules=1]="NodeModules",v[v.Scope=2]="Scope",v[v.PackageContent=3]="PackageContent"})(s||(s={}));let c=0,f=0,d=0;for(;f>=0;)switch(c=f,f=e.indexOf("/",c+1),d){case 0:e.indexOf(By,c)===c&&(t=c,r=f,d=1);break;case 1:case 2:d===1&&e.charAt(c+1)==="@"?d=2:(i=f,d=3);break;case 3:e.indexOf(By,c)===c?d=1:d=3;break}return o=c,d>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function CMe(e){var t;return e.kind===344?(t=e.typeExpression)==null?void 0:t.type:e.type}function LC(e){switch(e.kind){case 165:case 260:case 261:case 262:case 263:case 349:case 341:case 343:return!0;case 270:return e.isTypeOnly;case 273:case 278:return e.parent.parent.isTypeOnly;default:return!1}}function kO(e){return yb(e)||gc(e)||xc(e)||Bc(e)||ud(e)||LC(e)||$l(e)&&!O1(e)&&!im(e)}function wO(e){if(!l3(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===319}function TJ(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&Ah(e.charCodeAt(1),t):Ah(r,t)}function gpe(e){var t;return((t=ZJ(e))==null?void 0:t.kind)===0}function DO(e){return fr(e)&&(e.type&&e.type.kind===319||qI(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===319))}function SJ(e){switch(e.kind){case 169:case 168:return!!e.questionToken;case 166:return!!e.questionToken||DO(e);case 351:case 344:return wO(e);default:return!1}}function ype(e){const t=e.kind;return(t===208||t===209)&&Yx(e.expression)}function xJ(e){return fr(e)&&Jd(e)&&Of(e)&&!!sz(e)}function AJ(e){return D.checkDefined(A7(e))}function A7(e){const t=sz(e);return t&&t.typeExpression&&t.typeExpression.type}var C7,mb,RO,L7,Wk,CJ,LJ,vpe,IJ,bpe,kJ,wJ,DJ,RJ,Epe,Tpe,Spe,xpe,Ape,NJ,Cpe,Lpe,Ipe,IC,J1,kpe,wpe,Kc,OJ,NO,I7,Dpe,PJ,k7,MJ,FJ,BJ,GJ,kC,UJ,Rpe,Npe,VJ,zk,OO,Ope,w7,D7,jJ,R7,N7,LMe=S({"src/compiler/utilities.ts"(){Na(),C7=[],mb="tslib",RO=160,L7=1e6,Wk=c4e(),CJ=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(CJ||{}),LJ=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,vpe=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,IJ=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,bpe=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,kJ=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(kJ||{}),wJ=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(wJ||{}),DJ=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(DJ||{}),RJ=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(RJ||{}),Epe=/\$\{/g,Tpe=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Spe=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,xpe=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Ape=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","
":"\\u0085","\r\n":"\\r\\n"})),NJ=/[^\u0000-\u007F]/g,Cpe=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Lpe=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Ipe=new Map(Object.entries({'"':""","'":"'"})),IC=[""," "],J1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",kpe=`\r
- `,wpe=`
- `,Kc={getNodeConstructor:()=>eJ,getTokenConstructor:()=>aMe,getIdentifierConstructor:()=>oMe,getPrivateIdentifierConstructor:()=>eJ,getSourceFileConstructor:()=>eJ,getSymbolConstructor:()=>nMe,getTypeConstructor:()=>rMe,getSignatureConstructor:()=>iMe,getSourceMapSourceConstructor:()=>sMe},OJ=[],I7=/[^\w\s\/]/g,Dpe=[42,63],PJ=["node_modules","bower_components","jspm_packages"],k7=`(?!(${PJ.join("|")})(/|$))`,MJ={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${k7}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>cJ(e,MJ.singleAsteriskRegexFragment)},FJ={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${k7}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>cJ(e,FJ.singleAsteriskRegexFragment)},BJ={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>cJ(e,BJ.singleAsteriskRegexFragment)},GJ={files:MJ,directories:FJ,exclude:BJ},kC=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],UJ=Ds(kC),Rpe=[...kC,[".json"]],Npe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"],VJ=[[".js",".jsx"],[".mjs"],[".cjs"]],zk=Ds(VJ),OO=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Ope=[...OO,[".json"]],w7=[".d.ts",".d.cts",".d.mts"],D7=[".ts",".cts",".mts",".tsx"],jJ=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(jJ||{}),R7=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],N7={files:rt,directories:rt}}});function Ppe(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:c,createBasePrivateIdentifierNode:f,createBaseTokenNode:d,createBaseNode:v};function s(h){return new(o||(o=Kc.getSourceFileConstructor()))(h,-1,-1)}function c(h){return new(r||(r=Kc.getIdentifierConstructor()))(h,-1,-1)}function f(h){return new(i||(i=Kc.getPrivateIdentifierConstructor()))(h,-1,-1)}function d(h){return new(t||(t=Kc.getTokenConstructor()))(h,-1,-1)}function v(h){return new(e||(e=Kc.getNodeConstructor()))(h,-1,-1)}}var IMe=S({"src/compiler/factory/baseNodeFactory.ts"(){Na()}});function Mpe(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:v,parenthesizeRightSideOfBinary:h,parenthesizeExpressionOfComputedPropertyName:E,parenthesizeConditionOfConditionalExpression:C,parenthesizeBranchOfConditionalExpression:L,parenthesizeExpressionOfExportDefault:I,parenthesizeExpressionOfNew:O,parenthesizeLeftSideOfAccess:k,parenthesizeOperandOfPostfixUnary:G,parenthesizeOperandOfPrefixUnary:V,parenthesizeExpressionsOfCommaDelimitedList:H,parenthesizeExpressionForDisallowedComma:ne,parenthesizeExpressionOfExpressionStatement:Y,parenthesizeConciseBodyOfArrowFunction:$,parenthesizeCheckTypeOfConditionalType:M,parenthesizeExtendsTypeOfConditionalType:de,parenthesizeConstituentTypesOfUnionType:be,parenthesizeConstituentTypeOfUnionType:re,parenthesizeConstituentTypesOfIntersectionType:W,parenthesizeConstituentTypeOfIntersectionType:ae,parenthesizeOperandOfTypeOperator:ce,parenthesizeOperandOfReadonlyTypeOperator:me,parenthesizeNonArrayTypeOfPostfixType:Ee,parenthesizeElementTypesOfTupleType:xe,parenthesizeElementTypeOfTupleType:te,parenthesizeTypeOfOptionalType:Ve,parenthesizeTypeArguments:Oe,parenthesizeLeadingTypeArgument:Ge};function i(Me){t||(t=new Map);let Ye=t.get(Me);return Ye||(Ye=We=>v(Me,We),t.set(Me,Ye)),Ye}function o(Me){r||(r=new Map);let Ye=r.get(Me);return Ye||(Ye=We=>h(Me,void 0,We),r.set(Me,Ye)),Ye}function s(Me,Ye,We,Fe){const st=rO(223,Me),Ct=xq(223,Me),Et=W_(Ye);if(!We&&Ye.kind===216&&st>3)return!0;const Vt=e7(Et);switch(qs(Vt,st)){case-1:return!(!We&&Ct===1&&Ye.kind===226);case 1:return!1;case 0:if(We)return Ct===1;if(br(Et)&&Et.operatorToken.kind===Me){if(c(Me))return!1;if(Me===39){const at=Fe?f(Fe):0;if($I(at)&&at===f(Et))return!1}}return Sq(Et)===0}}function c(Me){return Me===41||Me===51||Me===50||Me===52||Me===27}function f(Me){if(Me=W_(Me),$I(Me.kind))return Me.kind;if(Me.kind===223&&Me.operatorToken.kind===39){if(Me.cachedLiteralKind!==void 0)return Me.cachedLiteralKind;const Ye=f(Me.left),We=$I(Ye)&&Ye===f(Me.right)?Ye:0;return Me.cachedLiteralKind=We,We}return 0}function d(Me,Ye,We,Fe){return W_(Ye).kind===214?Ye:s(Me,Ye,We,Fe)?e.createParenthesizedExpression(Ye):Ye}function v(Me,Ye){return d(Me,Ye,!0)}function h(Me,Ye,We){return d(Me,We,!1,Ye)}function E(Me){return dw(Me)?e.createParenthesizedExpression(Me):Me}function C(Me){const Ye=rO(224,57),We=W_(Me),Fe=e7(We);return qs(Fe,Ye)!==1?e.createParenthesizedExpression(Me):Me}function L(Me){const Ye=W_(Me);return dw(Ye)?e.createParenthesizedExpression(Me):Me}function I(Me){const Ye=W_(Me);let We=dw(Ye);if(!We)switch(Rk(Ye,!1).kind){case 228:case 215:We=!0}return We?e.createParenthesizedExpression(Me):Me}function O(Me){const Ye=Rk(Me,!0);switch(Ye.kind){case 210:return e.createParenthesizedExpression(Me);case 211:return Ye.arguments?Me:e.createParenthesizedExpression(Me)}return k(Me)}function k(Me,Ye){const We=W_(Me);return Id(We)&&(We.kind!==211||We.arguments)&&(Ye||!xu(We))?Me:ht(e.createParenthesizedExpression(Me),Me)}function G(Me){return Id(Me)?Me:ht(e.createParenthesizedExpression(Me),Me)}function V(Me){return Ez(Me)?Me:ht(e.createParenthesizedExpression(Me),Me)}function H(Me){const Ye=no(Me,ne);return ht(e.createNodeArray(Ye,Me.hasTrailingComma),Me)}function ne(Me){const Ye=W_(Me),We=e7(Ye),Fe=rO(223,27);return We>Fe?Me:ht(e.createParenthesizedExpression(Me),Me)}function Y(Me){const Ye=W_(Me);if(io(Ye)){const Fe=Ye.expression,st=W_(Fe).kind;if(st===215||st===216){const Ct=e.updateCallExpression(Ye,ht(e.createParenthesizedExpression(Fe),Fe),Ye.typeArguments,Ye.arguments);return e.restoreOuterExpressions(Me,Ct,8)}}const We=Rk(Ye,!1).kind;return We===207||We===215?ht(e.createParenthesizedExpression(Me),Me):Me}function $(Me){return!uo(Me)&&(dw(Me)||Rk(Me,!1).kind===207)?ht(e.createParenthesizedExpression(Me),Me):Me}function M(Me){switch(Me.kind){case 181:case 182:case 191:return e.createParenthesizedType(Me)}return Me}function de(Me){switch(Me.kind){case 191:return e.createParenthesizedType(Me)}return Me}function re(Me){switch(Me.kind){case 189:case 190:return e.createParenthesizedType(Me)}return M(Me)}function be(Me){return e.createNodeArray(no(Me,re))}function ae(Me){switch(Me.kind){case 189:case 190:return e.createParenthesizedType(Me)}return re(Me)}function W(Me){return e.createNodeArray(no(Me,ae))}function ce(Me){switch(Me.kind){case 190:return e.createParenthesizedType(Me)}return ae(Me)}function me(Me){switch(Me.kind){case 195:return e.createParenthesizedType(Me)}return ce(Me)}function Ee(Me){switch(Me.kind){case 192:case 195:case 183:return e.createParenthesizedType(Me)}return ce(Me)}function xe(Me){return e.createNodeArray(no(Me,te))}function te(Me){return Qe(Me)?e.createParenthesizedType(Me):Me}function Qe(Me){return HC(Me)?Me.postfix:ew(Me)||Mh(Me)||Qk(Me)||Jx(Me)?Qe(Me.type):MC(Me)?Qe(Me.falseType):zx(Me)||YO(Me)?Qe(Jo(Me.types)):FC(Me)?!!Me.typeParameter.constraint&&Qe(Me.typeParameter.constraint):!1}function Ve(Me){return Qe(Me)?e.createParenthesizedType(Me):Ee(Me)}function Ge(Me){return Bde(Me)&&Me.typeParameters?e.createParenthesizedType(Me):Me}function ze(Me,Ye){return Ye===0?Ge(Me):Me}function Oe(Me){if(kt(Me))return e.createNodeArray(no(Me,ze))}}var HJ,kMe=S({"src/compiler/factory/parenthesizerRules.ts"(){Na(),HJ={getParenthesizeLeftSideOfBinaryForOperator:e=>yl,getParenthesizeRightSideOfBinaryForOperator:e=>yl,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:yl,parenthesizeConditionOfConditionalExpression:yl,parenthesizeBranchOfConditionalExpression:yl,parenthesizeExpressionOfExportDefault:yl,parenthesizeExpressionOfNew:e=>so(e,Id),parenthesizeLeftSideOfAccess:e=>so(e,Id),parenthesizeOperandOfPostfixUnary:e=>so(e,Id),parenthesizeOperandOfPrefixUnary:e=>so(e,Ez),parenthesizeExpressionsOfCommaDelimitedList:e=>so(e,w1),parenthesizeExpressionForDisallowedComma:yl,parenthesizeExpressionOfExpressionStatement:yl,parenthesizeConciseBodyOfArrowFunction:yl,parenthesizeCheckTypeOfConditionalType:yl,parenthesizeExtendsTypeOfConditionalType:yl,parenthesizeConstituentTypesOfUnionType:e=>so(e,w1),parenthesizeConstituentTypeOfUnionType:yl,parenthesizeConstituentTypesOfIntersectionType:e=>so(e,w1),parenthesizeConstituentTypeOfIntersectionType:yl,parenthesizeOperandOfTypeOperator:yl,parenthesizeOperandOfReadonlyTypeOperator:yl,parenthesizeNonArrayTypeOfPostfixType:yl,parenthesizeElementTypesOfTupleType:e=>so(e,w1),parenthesizeElementTypeOfTupleType:yl,parenthesizeTypeOfOptionalType:yl,parenthesizeTypeArguments:e=>e&&so(e,w1),parenthesizeLeadingTypeArgument:yl}}});function Fpe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToArrayAssignmentElement:i,convertToObjectAssignmentElement:o,convertToAssignmentPattern:s,convertToObjectAssignmentPattern:c,convertToArrayAssignmentPattern:f,convertToAssignmentElementTarget:d};function t(v,h){if(uo(v))return v;const E=e.createReturnStatement(v);ht(E,v);const C=e.createBlock([E],h);return ht(C,v),C}function r(v){if(!v.body)return D.fail("Cannot convert a FunctionDeclaration without a body");const h=e.createFunctionExpression(hT(v),v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body);return Wr(h,v),ht(h,v),UO(v)&&QJ(h,!0),h}function i(v){if(ms(v)){if(v.dotDotDotToken)return D.assertNode(v.name,je),Wr(ht(e.createSpreadElement(v.name),v),v);const h=d(v.name);return v.initializer?Wr(ht(e.createAssignment(h,v.initializer),v),v):h}return so(v,vt)}function o(v){if(ms(v)){if(v.dotDotDotToken)return D.assertNode(v.name,je),Wr(ht(e.createSpreadAssignment(v.name),v),v);if(v.propertyName){const h=d(v.name);return Wr(ht(e.createPropertyAssignment(v.propertyName,v.initializer?e.createAssignment(h,v.initializer):h),v),v)}return D.assertNode(v.name,je),Wr(ht(e.createShorthandPropertyAssignment(v.name,v.initializer),v),v)}return so(v,Ly)}function s(v){switch(v.kind){case 204:case 206:return f(v);case 203:case 207:return c(v)}}function c(v){return Qm(v)?Wr(ht(e.createObjectLiteralExpression(zt(v.elements,o)),v),v):so(v,Is)}function f(v){return BC(v)?Wr(ht(e.createArrayLiteralExpression(zt(v.elements,i)),v),v):so(v,zu)}function d(v){return Ya(v)?s(v):so(v,vt)}}var WJ,wMe=S({"src/compiler/factory/nodeConverters.ts"(){Na(),WJ={convertToFunctionBlock:Wa,convertToFunctionExpression:Wa,convertToArrayAssignmentElement:Wa,convertToObjectAssignmentElement:Wa,convertToAssignmentPattern:Wa,convertToObjectAssignmentPattern:Wa,convertToArrayAssignmentPattern:Wa,convertToAssignmentElementTarget:Wa}}});function DMe(e){XJ.push(e)}function PO(e,t){const r=e&8?RMe:NMe,i=Ld(()=>e&1?HJ:Mpe(G)),o=Ld(()=>e&2?WJ:Fpe(G)),s=Mm(b=>(w,B)=>U(w,b,B)),c=Mm(b=>w=>R_(b,w)),f=Mm(b=>w=>op(w,b)),d=Mm(b=>()=>SE(b)),v=Mm(b=>w=>Xy(b,w)),h=Mm(b=>(w,B)=>Os(b,w,B)),E=Mm(b=>(w,B)=>DS(b,w,B)),C=Mm(b=>(w,B)=>xE(b,w,B)),L=Mm(b=>(w,B)=>Kh(b,w,B)),I=Mm(b=>(w,B,se)=>b0(b,w,B,se)),O=Mm(b=>(w,B,se)=>E0(b,w,B,se)),k=Mm(b=>(w,B,se,qe)=>gu(b,w,B,se,qe)),G={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:V,createNumericLiteral:$,createBigIntLiteral:M,createStringLiteral:re,createStringLiteralFromNode:be,createRegularExpressionLiteral:ae,createLiteralLikeNode:W,createIdentifier:Ee,createTempVariable:xe,createLoopVariable:te,createUniqueName:Qe,getGeneratedNameForNode:Ve,createPrivateIdentifier:ze,createUniquePrivateName:Me,getGeneratedPrivateNameForNode:Ye,createToken:Fe,createSuper:st,createThis:Ct,createNull:Et,createTrue:Vt,createFalse:tt,createModifier:at,createModifiersFromModifierFlags:on,createQualifiedName:Qt,updateQualifiedName:Pn,createComputedPropertyName:Hn,updateComputedPropertyName:kn,createTypeParameterDeclaration:Zt,updateTypeParameterDeclaration:_r,createParameterDeclaration:wi,updateParameterDeclaration:Qi,createDecorator:Zi,updateDecorator:Or,createPropertySignature:At,updatePropertySignature:vn,createPropertyDeclaration:un,updatePropertyDeclaration:ir,createMethodSignature:cr,updateMethodSignature:Mi,createMethodDeclaration:vi,updateMethodDeclaration:Nn,createConstructorDeclaration:we,updateConstructorDeclaration:yt,createGetAccessorDeclaration:Ce,updateGetAccessorDeclaration:pt,createSetAccessorDeclaration:ie,updateSetAccessorDeclaration:he,createCallSignature:He,updateCallSignature:Ze,createConstructSignature:Xe,updateConstructSignature:Ut,createIndexSignature:ln,updateIndexSignature:Sn,createClassStaticBlockDeclaration:Mn,updateClassStaticBlockDeclaration:Ar,createTemplateLiteralTypeSpan:Er,updateTemplateLiteralTypeSpan:ue,createKeywordTypeNode:mt,createTypePredicateNode:Wt,updateTypePredicateNode:it,createTypeReferenceNode:K,updateTypeReferenceNode:Pe,createFunctionTypeNode:ee,updateFunctionTypeNode:Re,createConstructorTypeNode:Rt,updateConstructorTypeNode:fn,createTypeQueryNode:Ii,updateTypeQueryNode:ki,createTypeLiteralNode:Hi,updateTypeLiteralNode:ho,createArrayTypeNode:So,updateArrayTypeNode:oo,createTupleTypeNode:ca,updateTupleTypeNode:Wi,createNamedTupleMember:Xr,updateNamedTupleMember:ss,createOptionalTypeNode:hi,updateOptionalTypeNode:ua,createRestTypeNode:Dn,updateRestTypeNode:fa,createUnionTypeNode:jl,updateUnionTypeNode:Zl,createIntersectionTypeNode:Hl,updateIntersectionTypeNode:Lo,createConditionalTypeNode:Ca,updateConditionalTypeNode:$o,createInferTypeNode:Wl,updateInferTypeNode:ou,createImportTypeNode:Zc,updateImportTypeNode:Ns,createParenthesizedType:vl,updateParenthesizedType:nl,createThisTypeNode:Ys,createTypeOperatorNode:nn,updateTypeOperatorNode:zl,createIndexedAccessTypeNode:wu,updateIndexedAccessTypeNode:$u,createMappedTypeNode:fe,updateMappedTypeNode:It,createLiteralTypeNode:jt,updateLiteralTypeNode:Z,createTemplateLiteralType:Qd,updateTemplateLiteralType:dc,createObjectBindingPattern:ot,updateObjectBindingPattern:xt,createArrayBindingPattern:pn,updateArrayBindingPattern:wr,createBindingElement:Pr,updateBindingElement:ba,createArrayLiteralExpression:ls,updateArrayLiteralExpression:go,createObjectLiteralExpression:Wo,updateObjectLiteralExpression:$a,createPropertyAccessExpression:e&4?(b,w)=>sr(yc(b,w),262144):yc,updatePropertyAccessExpression:vd,createPropertyAccessChain:e&4?(b,w,B)=>sr(Ts(b,w,B),262144):Ts,updatePropertyAccessChain:fs,createElementAccessExpression:Zd,updateElementAccessExpression:ql,createElementAccessChain:Hf,updateElementAccessChain:Ae,createCallExpression:On,updateCallExpression:Yi,createCallChain:Io,updateCallChain:oe,createNewExpression:ut,updateNewExpression:Mt,createTaggedTemplateExpression:Pt,updateTaggedTemplateExpression:cn,createTypeAssertion:jn,updateTypeAssertion:Dr,createParenthesizedExpression:ii,updateParenthesizedExpression:Fi,createFunctionExpression:ja,updateFunctionExpression:zo,createArrowFunction:Ss,updateArrowFunction:$s,createDeleteExpression:bd,updateDeleteExpression:Ef,createTypeOfExpression:ac,updateTypeOfExpression:ef,createVoidExpression:Du,updateVoidExpression:Tf,createAwaitExpression:D_,updateAwaitExpression:Qo,createPrefixUnaryExpression:R_,updatePrefixUnaryExpression:Sf,createPostfixUnaryExpression:op,updatePostfixUnaryExpression:Mp,createBinaryExpression:U,updateBinaryExpression:qt,createConditionalExpression:Yn,updateConditionalExpression:wa,createTemplateExpression:La,updateTemplateExpression:Ie,createTemplateHead:Tn,createTemplateMiddle:Wn,createTemplateTail:qr,createNoSubstitutionTemplateLiteral:Ki,createTemplateLiteralLikeNode:bn,createYieldExpression:nr,updateYieldExpression:_n,createSpreadElement:dr,updateSpreadElement:Sa,createClassExpression:Qs,updateClassExpression:fc,createOmittedExpression:ah,createExpressionWithTypeArguments:Mg,updateExpressionWithTypeArguments:sp,createAsExpression:Ib,updateAsExpression:c0,createNonNullExpression:R2,updateNonNullExpression:vS,createSatisfiesExpression:N2,updateSatisfiesExpression:Fg,createNonNullChain:lp,updateNonNullChain:u0,createMetaProperty:Wh,updateMetaProperty:Fp,createTemplateSpan:d0,updateTemplateSpan:_E,createSemicolonClassElement:kb,createBlock:Bg,updateBlock:bS,createVariableStatement:pE,updateVariableStatement:mE,createEmptyStatement:hE,createExpressionStatement:f0,updateExpressionStatement:O2,createIfStatement:gE,updateIfStatement:yE,createDoStatement:_0,updateDoStatement:wb,createWhileStatement:p0,updateWhileStatement:ES,createForStatement:Gg,updateForStatement:Zo,createForInStatement:vE,updateForInStatement:IL,createForOfStatement:Jy,updateForOfStatement:Ug,createContinueStatement:oh,updateContinueStatement:cp,createBreakStatement:Pd,updateBreakStatement:Md,createReturnStatement:Fd,updateReturnStatement:Db,createWithStatement:Rb,updateWithStatement:P2,createSwitchStatement:Nb,updateSwitchStatement:Vg,createLabeledStatement:Ob,updateLabeledStatement:TS,createThrowStatement:Pb,updateThrowStatement:kL,createTryStatement:M2,updateTryStatement:m0,createDebuggerStatement:bE,createVariableDeclaration:Ke,updateVariableDeclaration:Ky,createVariableDeclarationList:hm,updateVariableDeclarationList:h0,createFunctionDeclaration:Mb,updateFunctionDeclaration:g0,createClassDeclaration:SS,updateClassDeclaration:ns,createInterfaceDeclaration:up,updateInterfaceDeclaration:EE,createTypeAliasDeclaration:Ac,updateTypeAliasDeclaration:zh,createEnumDeclaration:Fb,updateEnumDeclaration:dp,createModuleDeclaration:Bb,updateModuleDeclaration:mu,createModuleBlock:Hg,updateModuleBlock:Uc,createCaseBlock:xS,updateCaseBlock:wL,createNamespaceExportDeclaration:zi,updateNamespaceExportDeclaration:Jr,createImportEqualsDeclaration:tf,updateImportEqualsDeclaration:TE,createImportDeclaration:Wg,updateImportDeclaration:qh,createImportClause:lh,updateImportClause:hl,createAssertClause:Gb,updateAssertClause:AS,createAssertEntry:Ub,updateAssertEntry:CS,createImportTypeAssertionContainer:f_,updateImportTypeAssertionContainer:F2,createNamespaceImport:B2,updateNamespaceImport:y0,createNamespaceExport:LS,updateNamespaceExport:IS,createNamedImports:G2,updateNamedImports:Vb,createImportSpecifier:kS,updateImportSpecifier:Wf,createExportAssignment:zg,updateExportAssignment:Bp,createExportDeclaration:fp,updateExportDeclaration:U2,createNamedExports:gm,updateNamedExports:wS,createExportSpecifier:Ed,updateExportSpecifier:qg,createMissingDeclaration:ym,createExternalModuleReference:vm,updateExternalModuleReference:Jg,get createJSDocAllType(){return d(315)},get createJSDocUnknownType(){return d(316)},get createJSDocNonNullableType(){return E(318)},get updateJSDocNonNullableType(){return C(318)},get createJSDocNullableType(){return E(317)},get updateJSDocNullableType(){return C(317)},get createJSDocOptionalType(){return v(319)},get updateJSDocOptionalType(){return h(319)},get createJSDocVariadicType(){return v(321)},get updateJSDocVariadicType(){return h(321)},get createJSDocNamepathType(){return v(322)},get updateJSDocNamepathType(){return h(322)},createJSDocFunctionType:Yy,updateJSDocFunctionType:V2,createJSDocTypeLiteral:Hb,updateJSDocTypeLiteral:Wb,createJSDocTypeExpression:j2,updateJSDocTypeExpression:DL,createJSDocSignature:H2,updateJSDocSignature:pr,createJSDocTemplateTag:v0,updateJSDocTemplateTag:ch,createJSDocTypedefTag:ar,updateJSDocTypedefTag:W2,createJSDocParameterTag:$y,updateJSDocParameterTag:Nc,createJSDocPropertyTag:N_,updateJSDocPropertyTag:Gp,createJSDocCallbackTag:Qy,updateJSDocCallbackTag:AE,createJSDocOverloadTag:_p,updateJSDocOverloadTag:Zy,createJSDocAugmentsTag:ec,updateJSDocAugmentsTag:oc,createJSDocImplementsTag:Kg,updateJSDocImplementsTag:Xg,createJSDocSeeTag:hu,updateJSDocSeeTag:O_,createJSDocNameReference:uh,updateJSDocNameReference:Bd,createJSDocMemberName:CE,updateJSDocMemberName:zb,createJSDocLink:qb,updateJSDocLink:Up,createJSDocLinkCode:Jh,updateJSDocLinkCode:LE,createJSDocLinkPlain:ev,updateJSDocLinkPlain:Ml,get createJSDocTypeTag(){return O(347)},get updateJSDocTypeTag(){return k(347)},get createJSDocReturnTag(){return O(345)},get updateJSDocReturnTag(){return k(345)},get createJSDocThisTag(){return O(346)},get updateJSDocThisTag(){return k(346)},get createJSDocAuthorTag(){return L(333)},get updateJSDocAuthorTag(){return I(333)},get createJSDocClassTag(){return L(335)},get updateJSDocClassTag(){return I(335)},get createJSDocPublicTag(){return L(336)},get updateJSDocPublicTag(){return I(336)},get createJSDocPrivateTag(){return L(337)},get updateJSDocPrivateTag(){return I(337)},get createJSDocProtectedTag(){return L(338)},get updateJSDocProtectedTag(){return I(338)},get createJSDocReadonlyTag(){return L(339)},get updateJSDocReadonlyTag(){return I(339)},get createJSDocOverrideTag(){return L(340)},get updateJSDocOverrideTag(){return I(340)},get createJSDocDeprecatedTag(){return L(334)},get updateJSDocDeprecatedTag(){return I(334)},get createJSDocThrowsTag(){return O(352)},get updateJSDocThrowsTag(){return k(352)},get createJSDocSatisfiesTag(){return O(353)},get updateJSDocSatisfiesTag(){return k(353)},createJSDocEnumTag:IE,updateJSDocEnumTag:Yh,createJSDocUnknownTag:Xh,updateJSDocUnknownTag:Cc,createJSDocText:Jb,updateJSDocText:Td,createJSDocComment:dh,updateJSDocComment:Kb,createJsxElement:T0,updateJsxElement:kE,createJsxSelfClosingElement:tv,updateJsxSelfClosingElement:RS,createJsxOpeningElement:S0,updateJsxOpeningElement:Yg,createJsxClosingElement:qf,updateJsxClosingElement:wE,createJsxFragment:xf,createJsxText:x0,updateJsxText:z2,createJsxOpeningFragment:as,createJsxJsxClosingFragment:Ir,updateJsxFragment:$h,createJsxAttribute:nf,updateJsxAttribute:Sd,createJsxAttributes:NS,updateJsxAttributes:DE,createJsxSpreadAttribute:nv,updateJsxSpreadAttribute:q2,createJsxExpression:rv,updateJsxExpression:bm,createCaseClause:Vp,updateCaseClause:$g,createDefaultClause:A0,updateDefaultClause:Qh,createHeritageClause:Em,updateHeritageClause:OS,createCatchClause:tc,updateCatchClause:Af,createPropertyAssignment:fh,updatePropertyAssignment:Gd,createShorthandPropertyAssignment:iv,updateShorthandPropertyAssignment:Qg,createSpreadAssignment:Jf,updateSpreadAssignment:Ps,createEnumMember:NE,updateEnumMember:OE,createSourceFile:Zg,updateSourceFile:BE,createRedirectedSourceFile:C0,createBundle:GE,updateBundle:av,createUnparsedSource:rf,createUnparsedPrologue:RL,createUnparsedPrepend:ey,createUnparsedTextLike:K2,createUnparsedSyntheticReference:X2,createInputFiles:x,createSyntheticExpression:le,createSyntaxList:ke,createNotEmittedStatement:an,createPartiallyEmittedExpression:Cr,updatePartiallyEmittedExpression:Ci,createCommaListExpression:Vi,updateCommaListExpression:po,createEndOfDeclarationMarker:su,createMergeDeclarationMarker:af,createSyntheticReferenceExpression:Cf,updateSyntheticReferenceExpression:ov,cloneNode:P_,get createComma(){return s(27)},get createAssignment(){return s(63)},get createLogicalOr(){return s(56)},get createLogicalAnd(){return s(55)},get createBitwiseOr(){return s(51)},get createBitwiseXor(){return s(52)},get createBitwiseAnd(){return s(50)},get createStrictEquality(){return s(36)},get createStrictInequality(){return s(37)},get createEquality(){return s(34)},get createInequality(){return s(35)},get createLessThan(){return s(29)},get createLessThanEquals(){return s(32)},get createGreaterThan(){return s(31)},get createGreaterThanEquals(){return s(33)},get createLeftShift(){return s(47)},get createRightShift(){return s(48)},get createUnsignedRightShift(){return s(49)},get createAdd(){return s(39)},get createSubtract(){return s(40)},get createMultiply(){return s(41)},get createDivide(){return s(43)},get createModulo(){return s(44)},get createExponent(){return s(42)},get createPrefixPlus(){return c(39)},get createPrefixMinus(){return c(40)},get createPrefixIncrement(){return c(45)},get createPrefixDecrement(){return c(46)},get createBitwiseNot(){return c(54)},get createLogicalNot(){return c(53)},get createPostfixIncrement(){return f(45)},get createPostfixDecrement(){return f(46)},createImmediatelyInvokedFunctionExpression:UE,createImmediatelyInvokedArrowFunction:Kf,createVoidZero:_h,createExportDefault:lv,createExternalModuleExport:__,createTypeCheck:VE,createMethodCall:k0,createGlobalMethodCall:rs,createFunctionBindCall:vc,createFunctionCallCall:RP,createFunctionApplyCall:xs,createArraySliceCall:Y2,createArrayConcatCall:$2,createObjectDefinePropertyCall:z,createObjectGetOwnPropertyDescriptorCall:Te,createReflectGetCall:$e,createReflectSetCall:Tt,createPropertyDescriptor:Cn,createCallBinding:ks,createAssignmentTargetWrapper:ko,inlineExpressions:is,getInternalName:jp,getLocalName:Tm,getExportName:ty,getDeclarationName:M_,getNamespaceMemberName:cv,getExternalModuleOrNamespaceExportName:Q2,restoreOuterExpressions:Li,restoreEnclosingLabel:Di,createUseStrictPrologue:pp,copyPrologue:jE,copyStandardPrologue:w0,copyCustomPrologue:OL,ensureUseStrict:Xf,liftToBlock:Z2,mergeLexicalEnvironment:TD,updateModifiers:SD};return Je(XJ,b=>b(G)),G;function V(b,w){if(b===void 0||b===rt)b=[];else if(w1(b)){if(w===void 0||b.hasTrailingComma===w)return b.transformFlags===void 0&&Bpe(b),D.attachNodeArrayDebugInfo(b),b;const qe=b.slice();return qe.pos=b.pos,qe.end=b.end,qe.hasTrailingComma=w,qe.transformFlags=b.transformFlags,D.attachNodeArrayDebugInfo(qe),qe}const B=b.length,se=B>=1&&B<=4?b.slice():b;return se.pos=-1,se.end=-1,se.hasTrailingComma=!!w,se.transformFlags=0,Bpe(se),D.attachNodeArrayDebugInfo(se),se}function H(b){return t.createBaseNode(b)}function ne(b){const w=H(b);return w.symbol=void 0,w.localSymbol=void 0,w}function Y(b,w){return b!==w&&(b.typeArguments=w.typeArguments),r(b,w)}function $(b,w=0){const B=ne(8);return B.text=typeof b=="number"?b+"":b,B.numericLiteralFlags=w,w&384&&(B.transformFlags|=1024),B}function M(b){const w=We(9);return w.text=typeof b=="string"?b:q1(b)+"n",w.transformFlags|=4,w}function de(b,w){const B=ne(10);return B.text=b,B.singleQuote=w,B}function re(b,w,B){const se=de(b,w);return se.hasExtendedUnicodeEscape=B,B&&(se.transformFlags|=1024),se}function be(b){const w=de(K_(b),void 0);return w.textSourceNode=b,w}function ae(b){const w=We(13);return w.text=b,w}function W(b,w){switch(b){case 8:return $(w,0);case 9:return M(w);case 10:return re(w,void 0);case 11:return x0(w,!1);case 12:return x0(w,!0);case 13:return ae(w);case 14:return bn(b,w,void 0,0)}}function ce(b){const w=t.createBaseIdentifierNode(79);return w.escapedText=b,w.jsDoc=void 0,w.flowNode=void 0,w.symbol=void 0,w}function me(b,w,B,se){const qe=ce(ul(b));return HO(qe,{flags:w,id:FO,prefix:B,suffix:se}),FO++,qe}function Ee(b,w,B){w===void 0&&b&&(w=mT(b)),w===79&&(w=void 0);const se=ce(ul(b));return B&&(se.flags|=128),se.escapedText==="await"&&(se.transformFlags|=67108864),se.flags&128&&(se.transformFlags|=1024),se}function xe(b,w,B,se){let qe=1;w&&(qe|=8);const Kt=me("",qe,B,se);return b&&b(Kt),Kt}function te(b){let w=2;return b&&(w|=8),me("",w,void 0,void 0)}function Qe(b,w=0,B,se){return D.assert(!(w&7),"Argument out of range: flags"),D.assert((w&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),me(b,3|w,B,se)}function Ve(b,w=0,B,se){D.assert(!(w&7),"Argument out of range: flags");const qe=b?yg(b)?KT(!1,B,b,se,Mr):`generated@${hs(b)}`:"";(B||se)&&(w|=16);const Kt=me(qe,4|w,B,se);return Kt.original=b,Kt}function Ge(b){const w=t.createBasePrivateIdentifierNode(80);return w.escapedText=b,w.transformFlags|=16777216,w}function ze(b){return Ta(b,"#")||D.fail("First character of private identifier must be #: "+b),Ge(ul(b))}function Oe(b,w,B,se){const qe=Ge(ul(b));return HO(qe,{flags:w,id:FO,prefix:B,suffix:se}),FO++,qe}function Me(b,w,B){b&&!Ta(b,"#")&&D.fail("First character of private identifier must be #: "+b);const se=8|(b?3:1);return Oe(b!=null?b:"",se,w,B)}function Ye(b,w,B){const se=yg(b)?KT(!0,w,b,B,Mr):`#generated@${hs(b)}`,Kt=Oe(se,4|(w||B?16:0),w,B);return Kt.original=b,Kt}function We(b){return t.createBaseTokenNode(b)}function Fe(b){D.assert(b>=0&&b<=162,"Invalid token"),D.assert(b<=14||b>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),D.assert(b<=8||b>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),D.assert(b!==79,"Invalid token. Use 'createIdentifier' to create identifiers");const w=We(b);let B=0;switch(b){case 132:B=384;break;case 123:case 121:case 122:case 146:case 126:case 136:case 85:case 131:case 148:case 160:case 144:case 149:case 101:case 145:case 161:case 152:case 134:case 153:case 114:case 157:case 155:B=1;break;case 106:B=134218752,w.flowNode=void 0;break;case 124:B=1024;break;case 127:B=16777216;break;case 108:B=16384,w.flowNode=void 0;break}return B&&(w.transformFlags|=B),w}function st(){return Fe(106)}function Ct(){return Fe(108)}function Et(){return Fe(104)}function Vt(){return Fe(110)}function tt(){return Fe(95)}function at(b){return Fe(b)}function on(b){const w=[];return b&1&&w.push(at(93)),b&2&&w.push(at(136)),b&1024&&w.push(at(88)),b&2048&&w.push(at(85)),b&4&&w.push(at(123)),b&8&&w.push(at(121)),b&16&&w.push(at(122)),b&256&&w.push(at(126)),b&32&&w.push(at(124)),b&16384&&w.push(at(161)),b&64&&w.push(at(146)),b&128&&w.push(at(127)),b&512&&w.push(at(132)),b&32768&&w.push(at(101)),b&65536&&w.push(at(145)),w.length?w:void 0}function Qt(b,w){const B=H(163);return B.left=b,B.right=xl(w),B.transformFlags|=hr(B.left)|qk(B.right),B.flowNode=void 0,B}function Pn(b,w,B){return b.left!==w||b.right!==B?r(Qt(w,B),b):b}function Hn(b){const w=H(164);return w.expression=i().parenthesizeExpressionOfComputedPropertyName(b),w.transformFlags|=hr(w.expression)|1024|131072,w}function kn(b,w){return b.expression!==w?r(Hn(w),b):b}function Zt(b,w,B,se){const qe=ne(165);return qe.modifiers=wo(b),qe.name=xl(w),qe.constraint=B,qe.default=se,qe.transformFlags=1,qe.expression=void 0,qe.jsDoc=void 0,qe}function _r(b,w,B,se,qe){return b.modifiers!==w||b.name!==B||b.constraint!==se||b.default!==qe?r(Zt(w,B,se,qe),b):b}function wi(b,w,B,se,qe,Kt){var Gr,na;const Qa=ne(166);return Qa.modifiers=wo(b),Qa.dotDotDotToken=w,Qa.name=xl(B),Qa.questionToken=se,Qa.type=qe,Qa.initializer=dv(Kt),OT(Qa.name)?Qa.transformFlags=1:Qa.transformFlags=Mo(Qa.modifiers)|hr(Qa.dotDotDotToken)|Ry(Qa.name)|hr(Qa.questionToken)|hr(Qa.initializer)|(((Gr=Qa.questionToken)!=null?Gr:Qa.type)?1:0)|(((na=Qa.dotDotDotToken)!=null?na:Qa.initializer)?1024:0)|(Km(Qa.modifiers)&16476?8192:0),Qa.jsDoc=void 0,Qa}function Qi(b,w,B,se,qe,Kt,Gr){return b.modifiers!==w||b.dotDotDotToken!==B||b.name!==se||b.questionToken!==qe||b.type!==Kt||b.initializer!==Gr?r(wi(w,B,se,qe,Kt,Gr),b):b}function Zi(b){const w=H(167);return w.expression=i().parenthesizeLeftSideOfAccess(b,!1),w.transformFlags|=hr(w.expression)|1|8192|33554432,w}function Or(b,w){return b.expression!==w?r(Zi(w),b):b}function At(b,w,B,se){const qe=ne(168);return qe.modifiers=wo(b),qe.name=xl(w),qe.type=se,qe.questionToken=B,qe.transformFlags=1,qe.initializer=void 0,qe.jsDoc=void 0,qe}function vn(b,w,B,se,qe){return b.modifiers!==w||b.name!==B||b.questionToken!==se||b.type!==qe?Ht(At(w,B,se,qe),b):b}function Ht(b,w){return b!==w&&(b.initializer=w.initializer),r(b,w)}function un(b,w,B,se,qe){const Kt=ne(169);Kt.modifiers=wo(b),Kt.name=xl(w),Kt.questionToken=B&&Kv(B)?B:void 0,Kt.exclamationToken=B&&KO(B)?B:void 0,Kt.type=se,Kt.initializer=dv(qe);const Gr=Kt.flags&16777216||Km(Kt.modifiers)&2;return Kt.transformFlags=Mo(Kt.modifiers)|Ry(Kt.name)|hr(Kt.initializer)|(Gr||Kt.questionToken||Kt.exclamationToken||Kt.type?1:0)|(Cs(Kt.name)||Km(Kt.modifiers)&32&&Kt.initializer?8192:0)|16777216,Kt.jsDoc=void 0,Kt}function ir(b,w,B,se,qe,Kt){return b.modifiers!==w||b.name!==B||b.questionToken!==(se!==void 0&&Kv(se)?se:void 0)||b.exclamationToken!==(se!==void 0&&KO(se)?se:void 0)||b.type!==qe||b.initializer!==Kt?r(un(w,B,se,qe,Kt),b):b}function cr(b,w,B,se,qe,Kt){const Gr=ne(170);return Gr.modifiers=wo(b),Gr.name=xl(w),Gr.questionToken=B,Gr.typeParameters=wo(se),Gr.parameters=wo(qe),Gr.type=Kt,Gr.transformFlags=1,Gr.jsDoc=void 0,Gr.locals=void 0,Gr.nextContainer=void 0,Gr.typeArguments=void 0,Gr}function Mi(b,w,B,se,qe,Kt,Gr){return b.modifiers!==w||b.name!==B||b.questionToken!==se||b.typeParameters!==qe||b.parameters!==Kt||b.type!==Gr?Y(cr(w,B,se,qe,Kt,Gr),b):b}function vi(b,w,B,se,qe,Kt,Gr,na){const Qa=ne(171);if(Qa.modifiers=wo(b),Qa.asteriskToken=w,Qa.name=xl(B),Qa.questionToken=se,Qa.exclamationToken=void 0,Qa.typeParameters=wo(qe),Qa.parameters=V(Kt),Qa.type=Gr,Qa.body=na,!Qa.body)Qa.transformFlags=1;else{const Lf=Km(Qa.modifiers)&512,ny=!!Qa.asteriskToken,ry=Lf&&ny;Qa.transformFlags=Mo(Qa.modifiers)|hr(Qa.asteriskToken)|Ry(Qa.name)|hr(Qa.questionToken)|Mo(Qa.typeParameters)|Mo(Qa.parameters)|hr(Qa.type)|hr(Qa.body)&-67108865|(ry?128:Lf?256:ny?2048:0)|(Qa.questionToken||Qa.typeParameters||Qa.type?1:0)|1024}return Qa.typeArguments=void 0,Qa.jsDoc=void 0,Qa.locals=void 0,Qa.nextContainer=void 0,Qa.flowNode=void 0,Qa.endFlowNode=void 0,Qa.returnFlowNode=void 0,Qa}function Nn(b,w,B,se,qe,Kt,Gr,na,Qa){return b.modifiers!==w||b.asteriskToken!==B||b.name!==se||b.questionToken!==qe||b.typeParameters!==Kt||b.parameters!==Gr||b.type!==na||b.body!==Qa?rn(vi(w,B,se,qe,Kt,Gr,na,Qa),b):b}function rn(b,w){return b!==w&&(b.exclamationToken=w.exclamationToken),r(b,w)}function Mn(b){const w=ne(172);return w.body=b,w.transformFlags=hr(b)|16777216,w.modifiers=void 0,w.jsDoc=void 0,w.locals=void 0,w.nextContainer=void 0,w.endFlowNode=void 0,w.returnFlowNode=void 0,w}function Ar(b,w){return b.body!==w?Hr(Mn(w),b):b}function Hr(b,w){return b!==w&&(b.modifiers=w.modifiers),r(b,w)}function we(b,w,B){const se=ne(173);return se.modifiers=wo(b),se.parameters=V(w),se.body=B,se.transformFlags=Mo(se.modifiers)|Mo(se.parameters)|hr(se.body)&-67108865|1024,se.typeParameters=void 0,se.type=void 0,se.typeArguments=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.returnFlowNode=void 0,se}function yt(b,w,B,se){return b.modifiers!==w||b.parameters!==B||b.body!==se?Nt(we(w,B,se),b):b}function Nt(b,w){return b!==w&&(b.typeParameters=w.typeParameters,b.type=w.type),Y(b,w)}function Ce(b,w,B,se,qe){const Kt=ne(174);return Kt.modifiers=wo(b),Kt.name=xl(w),Kt.parameters=V(B),Kt.type=se,Kt.body=qe,Kt.body?Kt.transformFlags=Mo(Kt.modifiers)|Ry(Kt.name)|Mo(Kt.parameters)|hr(Kt.type)|hr(Kt.body)&-67108865|(Kt.type?1:0):Kt.transformFlags=1,Kt.typeArguments=void 0,Kt.typeParameters=void 0,Kt.jsDoc=void 0,Kt.locals=void 0,Kt.nextContainer=void 0,Kt.flowNode=void 0,Kt.endFlowNode=void 0,Kt.returnFlowNode=void 0,Kt}function pt(b,w,B,se,qe,Kt){return b.modifiers!==w||b.name!==B||b.parameters!==se||b.type!==qe||b.body!==Kt?pe(Ce(w,B,se,qe,Kt),b):b}function pe(b,w){return b!==w&&(b.typeParameters=w.typeParameters),Y(b,w)}function ie(b,w,B,se){const qe=ne(175);return qe.modifiers=wo(b),qe.name=xl(w),qe.parameters=V(B),qe.body=se,qe.body?qe.transformFlags=Mo(qe.modifiers)|Ry(qe.name)|Mo(qe.parameters)|hr(qe.body)&-67108865|(qe.type?1:0):qe.transformFlags=1,qe.typeArguments=void 0,qe.typeParameters=void 0,qe.type=void 0,qe.jsDoc=void 0,qe.locals=void 0,qe.nextContainer=void 0,qe.flowNode=void 0,qe.endFlowNode=void 0,qe.returnFlowNode=void 0,qe}function he(b,w,B,se,qe){return b.modifiers!==w||b.name!==B||b.parameters!==se||b.body!==qe?j(ie(w,B,se,qe),b):b}function j(b,w){return b!==w&&(b.typeParameters=w.typeParameters,b.type=w.type),Y(b,w)}function He(b,w,B){const se=ne(176);return se.typeParameters=wo(b),se.parameters=wo(w),se.type=B,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Ze(b,w,B,se){return b.typeParameters!==w||b.parameters!==B||b.type!==se?Y(He(w,B,se),b):b}function Xe(b,w,B){const se=ne(177);return se.typeParameters=wo(b),se.parameters=wo(w),se.type=B,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Ut(b,w,B,se){return b.typeParameters!==w||b.parameters!==B||b.type!==se?Y(Xe(w,B,se),b):b}function ln(b,w,B){const se=ne(178);return se.modifiers=wo(b),se.parameters=wo(w),se.type=B,se.transformFlags=1,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Sn(b,w,B,se){return b.parameters!==B||b.type!==se||b.modifiers!==w?Y(ln(w,B,se),b):b}function Er(b,w){const B=H(201);return B.type=b,B.literal=w,B.transformFlags=1,B}function ue(b,w,B){return b.type!==w||b.literal!==B?r(Er(w,B),b):b}function mt(b){return Fe(b)}function Wt(b,w,B){const se=H(179);return se.assertsModifier=b,se.parameterName=xl(w),se.type=B,se.transformFlags=1,se}function it(b,w,B,se){return b.assertsModifier!==w||b.parameterName!==B||b.type!==se?r(Wt(w,B,se),b):b}function K(b,w){const B=H(180);return B.typeName=xl(b),B.typeArguments=w&&i().parenthesizeTypeArguments(V(w)),B.transformFlags=1,B}function Pe(b,w,B){return b.typeName!==w||b.typeArguments!==B?r(K(w,B),b):b}function ee(b,w,B){const se=ne(181);return se.typeParameters=wo(b),se.parameters=wo(w),se.type=B,se.transformFlags=1,se.modifiers=void 0,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.typeArguments=void 0,se}function Re(b,w,B,se){return b.typeParameters!==w||b.parameters!==B||b.type!==se?q(ee(w,B,se),b):b}function q(b,w){return b!==w&&(b.modifiers=w.modifiers),Y(b,w)}function Rt(...b){return b.length===4?gt(...b):b.length===3?ft(...b):D.fail("Incorrect number of arguments specified.")}function gt(b,w,B,se){const qe=ne(182);return qe.modifiers=wo(b),qe.typeParameters=wo(w),qe.parameters=wo(B),qe.type=se,qe.transformFlags=1,qe.jsDoc=void 0,qe.locals=void 0,qe.nextContainer=void 0,qe.typeArguments=void 0,qe}function ft(b,w,B){return gt(void 0,b,w,B)}function fn(...b){return b.length===5?$n(...b):b.length===4?li(...b):D.fail("Incorrect number of arguments specified.")}function $n(b,w,B,se,qe){return b.modifiers!==w||b.typeParameters!==B||b.parameters!==se||b.type!==qe?Y(Rt(w,B,se,qe),b):b}function li(b,w,B,se){return $n(b,b.modifiers,w,B,se)}function Ii(b,w){const B=H(183);return B.exprName=b,B.typeArguments=w&&i().parenthesizeTypeArguments(w),B.transformFlags=1,B}function ki(b,w,B){return b.exprName!==w||b.typeArguments!==B?r(Ii(w,B),b):b}function Hi(b){const w=ne(184);return w.members=V(b),w.transformFlags=1,w}function ho(b,w){return b.members!==w?r(Hi(w),b):b}function So(b){const w=H(185);return w.elementType=i().parenthesizeNonArrayTypeOfPostfixType(b),w.transformFlags=1,w}function oo(b,w){return b.elementType!==w?r(So(w),b):b}function ca(b){const w=H(186);return w.elements=V(i().parenthesizeElementTypesOfTupleType(b)),w.transformFlags=1,w}function Wi(b,w){return b.elements!==w?r(ca(w),b):b}function Xr(b,w,B,se){const qe=ne(199);return qe.dotDotDotToken=b,qe.name=w,qe.questionToken=B,qe.type=se,qe.transformFlags=1,qe.jsDoc=void 0,qe}function ss(b,w,B,se,qe){return b.dotDotDotToken!==w||b.name!==B||b.questionToken!==se||b.type!==qe?r(Xr(w,B,se,qe),b):b}function hi(b){const w=H(187);return w.type=i().parenthesizeTypeOfOptionalType(b),w.transformFlags=1,w}function ua(b,w){return b.type!==w?r(hi(w),b):b}function Dn(b){const w=H(188);return w.type=b,w.transformFlags=1,w}function fa(b,w){return b.type!==w?r(Dn(w),b):b}function ic(b,w,B){const se=H(b);return se.types=G.createNodeArray(B(w)),se.transformFlags=1,se}function al(b,w,B){return b.types!==w?r(ic(b.kind,w,B),b):b}function jl(b){return ic(189,b,i().parenthesizeConstituentTypesOfUnionType)}function Zl(b,w){return al(b,w,i().parenthesizeConstituentTypesOfUnionType)}function Hl(b){return ic(190,b,i().parenthesizeConstituentTypesOfIntersectionType)}function Lo(b,w){return al(b,w,i().parenthesizeConstituentTypesOfIntersectionType)}function Ca(b,w,B,se){const qe=H(191);return qe.checkType=i().parenthesizeCheckTypeOfConditionalType(b),qe.extendsType=i().parenthesizeExtendsTypeOfConditionalType(w),qe.trueType=B,qe.falseType=se,qe.transformFlags=1,qe.locals=void 0,qe.nextContainer=void 0,qe}function $o(b,w,B,se,qe){return b.checkType!==w||b.extendsType!==B||b.trueType!==se||b.falseType!==qe?r(Ca(w,B,se,qe),b):b}function Wl(b){const w=H(192);return w.typeParameter=b,w.transformFlags=1,w}function ou(b,w){return b.typeParameter!==w?r(Wl(w),b):b}function Qd(b,w){const B=H(200);return B.head=b,B.templateSpans=V(w),B.transformFlags=1,B}function dc(b,w,B){return b.head!==w||b.templateSpans!==B?r(Qd(w,B),b):b}function Zc(b,w,B,se,qe=!1){const Kt=H(202);return Kt.argument=b,Kt.assertions=w,Kt.qualifier=B,Kt.typeArguments=se&&i().parenthesizeTypeArguments(se),Kt.isTypeOf=qe,Kt.transformFlags=1,Kt}function Ns(b,w,B,se,qe,Kt=b.isTypeOf){return b.argument!==w||b.assertions!==B||b.qualifier!==se||b.typeArguments!==qe||b.isTypeOf!==Kt?r(Zc(w,B,se,qe,Kt),b):b}function vl(b){const w=H(193);return w.type=b,w.transformFlags=1,w}function nl(b,w){return b.type!==w?r(vl(w),b):b}function Ys(){const b=H(194);return b.transformFlags=1,b}function nn(b,w){const B=H(195);return B.operator=b,B.type=b===146?i().parenthesizeOperandOfReadonlyTypeOperator(w):i().parenthesizeOperandOfTypeOperator(w),B.transformFlags=1,B}function zl(b,w){return b.type!==w?r(nn(b.operator,w),b):b}function wu(b,w){const B=H(196);return B.objectType=i().parenthesizeNonArrayTypeOfPostfixType(b),B.indexType=w,B.transformFlags=1,B}function $u(b,w,B){return b.objectType!==w||b.indexType!==B?r(wu(w,B),b):b}function fe(b,w,B,se,qe,Kt){const Gr=ne(197);return Gr.readonlyToken=b,Gr.typeParameter=w,Gr.nameType=B,Gr.questionToken=se,Gr.type=qe,Gr.members=Kt&&V(Kt),Gr.transformFlags=1,Gr.locals=void 0,Gr.nextContainer=void 0,Gr}function It(b,w,B,se,qe,Kt,Gr){return b.readonlyToken!==w||b.typeParameter!==B||b.nameType!==se||b.questionToken!==qe||b.type!==Kt||b.members!==Gr?r(fe(w,B,se,qe,Kt,Gr),b):b}function jt(b){const w=H(198);return w.literal=b,w.transformFlags=1,w}function Z(b,w){return b.literal!==w?r(jt(w),b):b}function ot(b){const w=H(203);return w.elements=V(b),w.transformFlags|=Mo(w.elements)|1024|524288,w.transformFlags&32768&&(w.transformFlags|=65664),w}function xt(b,w){return b.elements!==w?r(ot(w),b):b}function pn(b){const w=H(204);return w.elements=V(b),w.transformFlags|=Mo(w.elements)|1024|524288,w}function wr(b,w){return b.elements!==w?r(pn(w),b):b}function Pr(b,w,B,se){const qe=ne(205);return qe.dotDotDotToken=b,qe.propertyName=xl(w),qe.name=xl(B),qe.initializer=dv(se),qe.transformFlags|=hr(qe.dotDotDotToken)|Ry(qe.propertyName)|Ry(qe.name)|hr(qe.initializer)|(qe.dotDotDotToken?32768:0)|1024,qe.flowNode=void 0,qe}function ba(b,w,B,se,qe){return b.propertyName!==B||b.dotDotDotToken!==w||b.name!==se||b.initializer!==qe?r(Pr(w,B,se,qe),b):b}function ls(b,w){const B=H(206),se=b&&rl(b),qe=V(b,se&&Fc(se)?!0:void 0);return B.elements=i().parenthesizeExpressionsOfCommaDelimitedList(qe),B.multiLine=w,B.transformFlags|=Mo(B.elements),B}function go(b,w){return b.elements!==w?r(ls(w,b.multiLine),b):b}function Wo(b,w){const B=ne(207);return B.properties=V(b),B.multiLine=w,B.transformFlags|=Mo(B.properties),B.jsDoc=void 0,B}function $a(b,w){return b.properties!==w?r(Wo(w,b.multiLine),b):b}function pl(b,w,B){const se=ne(208);return se.expression=b,se.questionDotToken=w,se.name=B,se.transformFlags=hr(se.expression)|hr(se.questionDotToken)|(je(se.name)?qk(se.name):hr(se.name)|536870912),se.jsDoc=void 0,se.flowNode=void 0,se}function yc(b,w){const B=pl(i().parenthesizeLeftSideOfAccess(b,!1),void 0,xl(w));return Yk(b)&&(B.transformFlags|=384),B}function vd(b,w,B){return a3(b)?fs(b,w,b.questionDotToken,so(B,je)):b.expression!==w||b.name!==B?r(yc(w,B),b):b}function Ts(b,w,B){const se=pl(i().parenthesizeLeftSideOfAccess(b,!0),w,xl(B));return se.flags|=32,se.transformFlags|=32,se}function fs(b,w,B,se){return D.assert(!!(b.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),b.expression!==w||b.questionDotToken!==B||b.name!==se?r(Ts(w,B,se),b):b}function ml(b,w,B){const se=ne(209);return se.expression=b,se.questionDotToken=w,se.argumentExpression=B,se.transformFlags|=hr(se.expression)|hr(se.questionDotToken)|hr(se.argumentExpression),se.jsDoc=void 0,se.flowNode=void 0,se}function Zd(b,w){const B=ml(i().parenthesizeLeftSideOfAccess(b,!1),void 0,D0(w));return Yk(b)&&(B.transformFlags|=384),B}function ql(b,w,B){return cz(b)?Ae(b,w,b.questionDotToken,B):b.expression!==w||b.argumentExpression!==B?r(Zd(w,B),b):b}function Hf(b,w,B){const se=ml(i().parenthesizeLeftSideOfAccess(b,!0),w,D0(B));return se.flags|=32,se.transformFlags|=32,se}function Ae(b,w,B,se){return D.assert(!!(b.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),b.expression!==w||b.questionDotToken!==B||b.argumentExpression!==se?r(Hf(w,B,se),b):b}function Dt(b,w,B,se){const qe=ne(210);return qe.expression=b,qe.questionDotToken=w,qe.typeArguments=B,qe.arguments=se,qe.transformFlags|=hr(qe.expression)|hr(qe.questionDotToken)|Mo(qe.typeArguments)|Mo(qe.arguments),qe.typeArguments&&(qe.transformFlags|=1),hd(qe.expression)&&(qe.transformFlags|=16384),qe}function On(b,w,B){const se=Dt(i().parenthesizeLeftSideOfAccess(b,!1),void 0,wo(w),i().parenthesizeExpressionsOfCommaDelimitedList(V(B)));return $k(se.expression)&&(se.transformFlags|=8388608),se}function Yi(b,w,B,se){return gT(b)?oe(b,w,b.questionDotToken,B,se):b.expression!==w||b.typeArguments!==B||b.arguments!==se?r(On(w,B,se),b):b}function Io(b,w,B,se){const qe=Dt(i().parenthesizeLeftSideOfAccess(b,!0),w,wo(B),i().parenthesizeExpressionsOfCommaDelimitedList(V(se)));return qe.flags|=32,qe.transformFlags|=32,qe}function oe(b,w,B,se,qe){return D.assert(!!(b.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),b.expression!==w||b.questionDotToken!==B||b.typeArguments!==se||b.arguments!==qe?r(Io(w,B,se,qe),b):b}function ut(b,w,B){const se=ne(211);return se.expression=i().parenthesizeExpressionOfNew(b),se.typeArguments=wo(w),se.arguments=B?i().parenthesizeExpressionsOfCommaDelimitedList(B):void 0,se.transformFlags|=hr(se.expression)|Mo(se.typeArguments)|Mo(se.arguments)|32,se.typeArguments&&(se.transformFlags|=1),se}function Mt(b,w,B,se){return b.expression!==w||b.typeArguments!==B||b.arguments!==se?r(ut(w,B,se),b):b}function Pt(b,w,B){const se=H(212);return se.tag=i().parenthesizeLeftSideOfAccess(b,!1),se.typeArguments=wo(w),se.template=B,se.transformFlags|=hr(se.tag)|Mo(se.typeArguments)|hr(se.template)|1024,se.typeArguments&&(se.transformFlags|=1),Cq(se.template)&&(se.transformFlags|=128),se}function cn(b,w,B,se){return b.tag!==w||b.typeArguments!==B||b.template!==se?r(Pt(w,B,se),b):b}function jn(b,w){const B=H(213);return B.expression=i().parenthesizeOperandOfPrefixUnary(w),B.type=b,B.transformFlags|=hr(B.expression)|hr(B.type)|1,B}function Dr(b,w,B){return b.type!==w||b.expression!==B?r(jn(w,B),b):b}function ii(b){const w=H(214);return w.expression=b,w.transformFlags=hr(w.expression),w.jsDoc=void 0,w}function Fi(b,w){return b.expression!==w?r(ii(w),b):b}function ja(b,w,B,se,qe,Kt,Gr){const na=ne(215);na.modifiers=wo(b),na.asteriskToken=w,na.name=xl(B),na.typeParameters=wo(se),na.parameters=V(qe),na.type=Kt,na.body=Gr;const Qa=Km(na.modifiers)&512,Lf=!!na.asteriskToken,ny=Qa&&Lf;return na.transformFlags=Mo(na.modifiers)|hr(na.asteriskToken)|Ry(na.name)|Mo(na.typeParameters)|Mo(na.parameters)|hr(na.type)|hr(na.body)&-67108865|(ny?128:Qa?256:Lf?2048:0)|(na.typeParameters||na.type?1:0)|4194304,na.typeArguments=void 0,na.jsDoc=void 0,na.locals=void 0,na.nextContainer=void 0,na.flowNode=void 0,na.endFlowNode=void 0,na.returnFlowNode=void 0,na}function zo(b,w,B,se,qe,Kt,Gr,na){return b.name!==se||b.modifiers!==w||b.asteriskToken!==B||b.typeParameters!==qe||b.parameters!==Kt||b.type!==Gr||b.body!==na?Y(ja(w,B,se,qe,Kt,Gr,na),b):b}function Ss(b,w,B,se,qe,Kt){const Gr=ne(216);Gr.modifiers=wo(b),Gr.typeParameters=wo(w),Gr.parameters=V(B),Gr.type=se,Gr.equalsGreaterThanToken=qe!=null?qe:Fe(38),Gr.body=i().parenthesizeConciseBodyOfArrowFunction(Kt);const na=Km(Gr.modifiers)&512;return Gr.transformFlags=Mo(Gr.modifiers)|Mo(Gr.typeParameters)|Mo(Gr.parameters)|hr(Gr.type)|hr(Gr.equalsGreaterThanToken)|hr(Gr.body)&-67108865|(Gr.typeParameters||Gr.type?1:0)|(na?16640:0)|1024,Gr.typeArguments=void 0,Gr.jsDoc=void 0,Gr.locals=void 0,Gr.nextContainer=void 0,Gr.flowNode=void 0,Gr.endFlowNode=void 0,Gr.returnFlowNode=void 0,Gr}function $s(b,w,B,se,qe,Kt,Gr){return b.modifiers!==w||b.typeParameters!==B||b.parameters!==se||b.type!==qe||b.equalsGreaterThanToken!==Kt||b.body!==Gr?Y(Ss(w,B,se,qe,Kt,Gr),b):b}function bd(b){const w=H(217);return w.expression=i().parenthesizeOperandOfPrefixUnary(b),w.transformFlags|=hr(w.expression),w}function Ef(b,w){return b.expression!==w?r(bd(w),b):b}function ac(b){const w=H(218);return w.expression=i().parenthesizeOperandOfPrefixUnary(b),w.transformFlags|=hr(w.expression),w}function ef(b,w){return b.expression!==w?r(ac(w),b):b}function Du(b){const w=H(219);return w.expression=i().parenthesizeOperandOfPrefixUnary(b),w.transformFlags|=hr(w.expression),w}function Tf(b,w){return b.expression!==w?r(Du(w),b):b}function D_(b){const w=H(220);return w.expression=i().parenthesizeOperandOfPrefixUnary(b),w.transformFlags|=hr(w.expression)|256|128|2097152,w}function Qo(b,w){return b.expression!==w?r(D_(w),b):b}function R_(b,w){const B=H(221);return B.operator=b,B.operand=i().parenthesizeOperandOfPrefixUnary(w),B.transformFlags|=hr(B.operand),(b===45||b===46)&&je(B.operand)&&!Ll(B.operand)&&!$v(B.operand)&&(B.transformFlags|=268435456),B}function Sf(b,w){return b.operand!==w?r(R_(b.operator,w),b):b}function op(b,w){const B=H(222);return B.operator=w,B.operand=i().parenthesizeOperandOfPostfixUnary(b),B.transformFlags|=hr(B.operand),je(B.operand)&&!Ll(B.operand)&&!$v(B.operand)&&(B.transformFlags|=268435456),B}function Mp(b,w){return b.operand!==w?r(op(w,b.operator),b):b}function U(b,w,B){const se=ne(223),qe=xD(w),Kt=qe.kind;return se.left=i().parenthesizeLeftSideOfBinary(Kt,b),se.operatorToken=qe,se.right=i().parenthesizeRightSideOfBinary(Kt,se.left,B),se.transformFlags|=hr(se.left)|hr(se.operatorToken)|hr(se.right),Kt===60?se.transformFlags|=32:Kt===63?Is(se.left)?se.transformFlags|=5248|et(se.left):zu(se.left)&&(se.transformFlags|=5120|et(se.left)):Kt===42||Kt===67?se.transformFlags|=512:Sk(Kt)&&(se.transformFlags|=16),Kt===101&&Oi(se.left)&&(se.transformFlags|=536870912),se.jsDoc=void 0,se}function et(b){return f8(b)?65536:0}function qt(b,w,B,se){return b.left!==w||b.operatorToken!==B||b.right!==se?r(U(w,B,se),b):b}function Yn(b,w,B,se,qe){const Kt=H(224);return Kt.condition=i().parenthesizeConditionOfConditionalExpression(b),Kt.questionToken=w!=null?w:Fe(57),Kt.whenTrue=i().parenthesizeBranchOfConditionalExpression(B),Kt.colonToken=se!=null?se:Fe(58),Kt.whenFalse=i().parenthesizeBranchOfConditionalExpression(qe),Kt.transformFlags|=hr(Kt.condition)|hr(Kt.questionToken)|hr(Kt.whenTrue)|hr(Kt.colonToken)|hr(Kt.whenFalse),Kt}function wa(b,w,B,se,qe,Kt){return b.condition!==w||b.questionToken!==B||b.whenTrue!==se||b.colonToken!==qe||b.whenFalse!==Kt?r(Yn(w,B,se,qe,Kt),b):b}function La(b,w){const B=H(225);return B.head=b,B.templateSpans=V(w),B.transformFlags|=hr(B.head)|Mo(B.templateSpans)|1024,B}function Ie(b,w,B){return b.head!==w||b.templateSpans!==B?r(La(w,B),b):b}function Ue(b,w,B,se=0){D.assert(!(se&-2049),"Unsupported template flags.");let qe;if(B!==void 0&&B!==w&&(qe=OMe(b,B),typeof qe=="object"))return D.fail("Invalid raw text");if(w===void 0){if(qe===void 0)return D.fail("Arguments 'text' and 'rawText' may not both be undefined.");w=qe}else qe!==void 0&&D.assert(w===qe,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return w}function Lt(b){let w=1024;return b&&(w|=128),w}function Ot(b,w,B,se){const qe=We(b);return qe.text=w,qe.rawText=B,qe.templateFlags=se&2048,qe.transformFlags=Lt(qe.templateFlags),qe}function mn(b,w,B,se){const qe=ne(b);return qe.text=w,qe.rawText=B,qe.templateFlags=se&2048,qe.transformFlags=Lt(qe.templateFlags),qe}function bn(b,w,B,se){return b===14?mn(b,w,B,se):Ot(b,w,B,se)}function Tn(b,w,B){return b=Ue(15,b,w,B),bn(15,b,w,B)}function Wn(b,w,B){return b=Ue(15,b,w,B),bn(16,b,w,B)}function qr(b,w,B){return b=Ue(15,b,w,B),bn(17,b,w,B)}function Ki(b,w,B){return b=Ue(15,b,w,B),mn(14,b,w,B)}function nr(b,w){D.assert(!b||!!w,"A `YieldExpression` with an asteriskToken must have an expression.");const B=H(226);return B.expression=w&&i().parenthesizeExpressionForDisallowedComma(w),B.asteriskToken=b,B.transformFlags|=hr(B.expression)|hr(B.asteriskToken)|1024|128|1048576,B}function _n(b,w,B){return b.expression!==B||b.asteriskToken!==w?r(nr(w,B),b):b}function dr(b){const w=H(227);return w.expression=i().parenthesizeExpressionForDisallowedComma(b),w.transformFlags|=hr(w.expression)|1024|32768,w}function Sa(b,w){return b.expression!==w?r(dr(w),b):b}function Qs(b,w,B,se,qe){const Kt=ne(228);return Kt.modifiers=wo(b),Kt.name=xl(w),Kt.typeParameters=wo(B),Kt.heritageClauses=wo(se),Kt.members=V(qe),Kt.transformFlags|=Mo(Kt.modifiers)|Ry(Kt.name)|Mo(Kt.typeParameters)|Mo(Kt.heritageClauses)|Mo(Kt.members)|(Kt.typeParameters?1:0)|1024,Kt.jsDoc=void 0,Kt}function fc(b,w,B,se,qe,Kt){return b.modifiers!==w||b.name!==B||b.typeParameters!==se||b.heritageClauses!==qe||b.members!==Kt?r(Qs(w,B,se,qe,Kt),b):b}function ah(){return H(229)}function Mg(b,w){const B=H(230);return B.expression=i().parenthesizeLeftSideOfAccess(b,!1),B.typeArguments=w&&i().parenthesizeTypeArguments(w),B.transformFlags|=hr(B.expression)|Mo(B.typeArguments)|1024,B}function sp(b,w,B){return b.expression!==w||b.typeArguments!==B?r(Mg(w,B),b):b}function Ib(b,w){const B=H(231);return B.expression=b,B.type=w,B.transformFlags|=hr(B.expression)|hr(B.type)|1,B}function c0(b,w,B){return b.expression!==w||b.type!==B?r(Ib(w,B),b):b}function R2(b){const w=H(232);return w.expression=i().parenthesizeLeftSideOfAccess(b,!1),w.transformFlags|=hr(w.expression)|1,w}function vS(b,w){return s3(b)?u0(b,w):b.expression!==w?r(R2(w),b):b}function N2(b,w){const B=H(235);return B.expression=b,B.type=w,B.transformFlags|=hr(B.expression)|hr(B.type)|1,B}function Fg(b,w,B){return b.expression!==w||b.type!==B?r(N2(w,B),b):b}function lp(b){const w=H(232);return w.flags|=32,w.expression=i().parenthesizeLeftSideOfAccess(b,!0),w.transformFlags|=hr(w.expression)|1,w}function u0(b,w){return D.assert(!!(b.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),b.expression!==w?r(lp(w),b):b}function Wh(b,w){const B=H(233);switch(B.keywordToken=b,B.name=w,B.transformFlags|=hr(B.name),b){case 103:B.transformFlags|=1024;break;case 100:B.transformFlags|=4;break;default:return D.assertNever(b)}return B.flowNode=void 0,B}function Fp(b,w){return b.name!==w?r(Wh(b.keywordToken,w),b):b}function d0(b,w){const B=H(236);return B.expression=b,B.literal=w,B.transformFlags|=hr(B.expression)|hr(B.literal)|1024,B}function _E(b,w,B){return b.expression!==w||b.literal!==B?r(d0(w,B),b):b}function kb(){const b=H(237);return b.transformFlags|=1024,b}function Bg(b,w){const B=H(238);return B.statements=V(b),B.multiLine=w,B.transformFlags|=Mo(B.statements),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B}function bS(b,w){return b.statements!==w?r(Bg(w,b.multiLine),b):b}function pE(b,w){const B=H(240);return B.modifiers=wo(b),B.declarationList=Va(w)?hm(w):w,B.transformFlags|=Mo(B.modifiers)|hr(B.declarationList),Km(B.modifiers)&2&&(B.transformFlags=1),B.jsDoc=void 0,B.flowNode=void 0,B}function mE(b,w,B){return b.modifiers!==w||b.declarationList!==B?r(pE(w,B),b):b}function hE(){const b=H(239);return b.jsDoc=void 0,b}function f0(b){const w=H(241);return w.expression=i().parenthesizeExpressionOfExpressionStatement(b),w.transformFlags|=hr(w.expression),w.jsDoc=void 0,w.flowNode=void 0,w}function O2(b,w){return b.expression!==w?r(f0(w),b):b}function gE(b,w,B){const se=H(242);return se.expression=b,se.thenStatement=Vd(w),se.elseStatement=Vd(B),se.transformFlags|=hr(se.expression)|hr(se.thenStatement)|hr(se.elseStatement),se.jsDoc=void 0,se.flowNode=void 0,se}function yE(b,w,B,se){return b.expression!==w||b.thenStatement!==B||b.elseStatement!==se?r(gE(w,B,se),b):b}function _0(b,w){const B=H(243);return B.statement=Vd(b),B.expression=w,B.transformFlags|=hr(B.statement)|hr(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function wb(b,w,B){return b.statement!==w||b.expression!==B?r(_0(w,B),b):b}function p0(b,w){const B=H(244);return B.expression=b,B.statement=Vd(w),B.transformFlags|=hr(B.expression)|hr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function ES(b,w,B){return b.expression!==w||b.statement!==B?r(p0(w,B),b):b}function Gg(b,w,B,se){const qe=H(245);return qe.initializer=b,qe.condition=w,qe.incrementor=B,qe.statement=Vd(se),qe.transformFlags|=hr(qe.initializer)|hr(qe.condition)|hr(qe.incrementor)|hr(qe.statement),qe.jsDoc=void 0,qe.locals=void 0,qe.nextContainer=void 0,qe.flowNode=void 0,qe}function Zo(b,w,B,se,qe){return b.initializer!==w||b.condition!==B||b.incrementor!==se||b.statement!==qe?r(Gg(w,B,se,qe),b):b}function vE(b,w,B){const se=H(246);return se.initializer=b,se.expression=w,se.statement=Vd(B),se.transformFlags|=hr(se.initializer)|hr(se.expression)|hr(se.statement),se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se.flowNode=void 0,se}function IL(b,w,B,se){return b.initializer!==w||b.expression!==B||b.statement!==se?r(vE(w,B,se),b):b}function Jy(b,w,B,se){const qe=H(247);return qe.awaitModifier=b,qe.initializer=w,qe.expression=i().parenthesizeExpressionForDisallowedComma(B),qe.statement=Vd(se),qe.transformFlags|=hr(qe.awaitModifier)|hr(qe.initializer)|hr(qe.expression)|hr(qe.statement)|1024,b&&(qe.transformFlags|=128),qe.jsDoc=void 0,qe.locals=void 0,qe.nextContainer=void 0,qe.flowNode=void 0,qe}function Ug(b,w,B,se,qe){return b.awaitModifier!==w||b.initializer!==B||b.expression!==se||b.statement!==qe?r(Jy(w,B,se,qe),b):b}function oh(b){const w=H(248);return w.label=xl(b),w.transformFlags|=hr(w.label)|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function cp(b,w){return b.label!==w?r(oh(w),b):b}function Pd(b){const w=H(249);return w.label=xl(b),w.transformFlags|=hr(w.label)|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function Md(b,w){return b.label!==w?r(Pd(w),b):b}function Fd(b){const w=H(250);return w.expression=b,w.transformFlags|=hr(w.expression)|128|4194304,w.jsDoc=void 0,w.flowNode=void 0,w}function Db(b,w){return b.expression!==w?r(Fd(w),b):b}function Rb(b,w){const B=H(251);return B.expression=b,B.statement=Vd(w),B.transformFlags|=hr(B.expression)|hr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function P2(b,w,B){return b.expression!==w||b.statement!==B?r(Rb(w,B),b):b}function Nb(b,w){const B=H(252);return B.expression=i().parenthesizeExpressionForDisallowedComma(b),B.caseBlock=w,B.transformFlags|=hr(B.expression)|hr(B.caseBlock),B.jsDoc=void 0,B.flowNode=void 0,B.possiblyExhaustive=!1,B}function Vg(b,w,B){return b.expression!==w||b.caseBlock!==B?r(Nb(w,B),b):b}function Ob(b,w){const B=H(253);return B.label=xl(b),B.statement=Vd(w),B.transformFlags|=hr(B.label)|hr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function TS(b,w,B){return b.label!==w||b.statement!==B?r(Ob(w,B),b):b}function Pb(b){const w=H(254);return w.expression=b,w.transformFlags|=hr(w.expression),w.jsDoc=void 0,w.flowNode=void 0,w}function kL(b,w){return b.expression!==w?r(Pb(w),b):b}function M2(b,w,B){const se=H(255);return se.tryBlock=b,se.catchClause=w,se.finallyBlock=B,se.transformFlags|=hr(se.tryBlock)|hr(se.catchClause)|hr(se.finallyBlock),se.jsDoc=void 0,se.flowNode=void 0,se}function m0(b,w,B,se){return b.tryBlock!==w||b.catchClause!==B||b.finallyBlock!==se?r(M2(w,B,se),b):b}function bE(){const b=H(256);return b.jsDoc=void 0,b.flowNode=void 0,b}function Ke(b,w,B,se){var qe;const Kt=ne(257);return Kt.name=xl(b),Kt.exclamationToken=w,Kt.type=B,Kt.initializer=dv(se),Kt.transformFlags|=Ry(Kt.name)|hr(Kt.initializer)|(((qe=Kt.exclamationToken)!=null?qe:Kt.type)?1:0),Kt.jsDoc=void 0,Kt}function Ky(b,w,B,se,qe){return b.name!==w||b.type!==se||b.exclamationToken!==B||b.initializer!==qe?r(Ke(w,B,se,qe),b):b}function hm(b,w=0){const B=H(258);return B.flags|=w&3,B.declarations=V(b),B.transformFlags|=Mo(B.declarations)|4194304,w&3&&(B.transformFlags|=263168),B}function h0(b,w){return b.declarations!==w?r(hm(w,b.flags),b):b}function Mb(b,w,B,se,qe,Kt,Gr){const na=ne(259);if(na.modifiers=wo(b),na.asteriskToken=w,na.name=xl(B),na.typeParameters=wo(se),na.parameters=V(qe),na.type=Kt,na.body=Gr,!na.body||Km(na.modifiers)&2)na.transformFlags=1;else{const Qa=Km(na.modifiers)&512,Lf=!!na.asteriskToken,ny=Qa&&Lf;na.transformFlags=Mo(na.modifiers)|hr(na.asteriskToken)|Ry(na.name)|Mo(na.typeParameters)|Mo(na.parameters)|hr(na.type)|hr(na.body)&-67108865|(ny?128:Qa?256:Lf?2048:0)|(na.typeParameters||na.type?1:0)|4194304}return na.typeArguments=void 0,na.jsDoc=void 0,na.locals=void 0,na.nextContainer=void 0,na.endFlowNode=void 0,na.returnFlowNode=void 0,na}function g0(b,w,B,se,qe,Kt,Gr,na){return b.modifiers!==w||b.asteriskToken!==B||b.name!==se||b.typeParameters!==qe||b.parameters!==Kt||b.type!==Gr||b.body!==na?jg(Mb(w,B,se,qe,Kt,Gr,na),b):b}function jg(b,w){return b!==w&&b.modifiers===w.modifiers&&(b.modifiers=w.modifiers),Y(b,w)}function SS(b,w,B,se,qe){const Kt=ne(260);return Kt.modifiers=wo(b),Kt.name=xl(w),Kt.typeParameters=wo(B),Kt.heritageClauses=wo(se),Kt.members=V(qe),Km(Kt.modifiers)&2?Kt.transformFlags=1:(Kt.transformFlags|=Mo(Kt.modifiers)|Ry(Kt.name)|Mo(Kt.typeParameters)|Mo(Kt.heritageClauses)|Mo(Kt.members)|(Kt.typeParameters?1:0)|1024,Kt.transformFlags&8192&&(Kt.transformFlags|=1)),Kt.jsDoc=void 0,Kt}function ns(b,w,B,se,qe,Kt){return b.modifiers!==w||b.name!==B||b.typeParameters!==se||b.heritageClauses!==qe||b.members!==Kt?r(SS(w,B,se,qe,Kt),b):b}function up(b,w,B,se,qe){const Kt=ne(261);return Kt.modifiers=wo(b),Kt.name=xl(w),Kt.typeParameters=wo(B),Kt.heritageClauses=wo(se),Kt.members=V(qe),Kt.transformFlags=1,Kt.jsDoc=void 0,Kt}function EE(b,w,B,se,qe,Kt){return b.modifiers!==w||b.name!==B||b.typeParameters!==se||b.heritageClauses!==qe||b.members!==Kt?r(up(w,B,se,qe,Kt),b):b}function Ac(b,w,B,se){const qe=ne(262);return qe.modifiers=wo(b),qe.name=xl(w),qe.typeParameters=wo(B),qe.type=se,qe.transformFlags=1,qe.jsDoc=void 0,qe.locals=void 0,qe.nextContainer=void 0,qe}function zh(b,w,B,se,qe){return b.modifiers!==w||b.name!==B||b.typeParameters!==se||b.type!==qe?r(Ac(w,B,se,qe),b):b}function Fb(b,w,B){const se=ne(263);return se.modifiers=wo(b),se.name=xl(w),se.members=V(B),se.transformFlags|=Mo(se.modifiers)|hr(se.name)|Mo(se.members)|1,se.transformFlags&=-67108865,se.jsDoc=void 0,se}function dp(b,w,B,se){return b.modifiers!==w||b.name!==B||b.members!==se?r(Fb(w,B,se),b):b}function Bb(b,w,B,se=0){const qe=ne(264);return qe.modifiers=wo(b),qe.flags|=se&1044,qe.name=w,qe.body=B,Km(qe.modifiers)&2?qe.transformFlags=1:qe.transformFlags|=Mo(qe.modifiers)|hr(qe.name)|hr(qe.body)|1,qe.transformFlags&=-67108865,qe.jsDoc=void 0,qe.locals=void 0,qe.nextContainer=void 0,qe}function mu(b,w,B,se){return b.modifiers!==w||b.name!==B||b.body!==se?r(Bb(w,B,se,b.flags),b):b}function Hg(b){const w=H(265);return w.statements=V(b),w.transformFlags|=Mo(w.statements),w.jsDoc=void 0,w}function Uc(b,w){return b.statements!==w?r(Hg(w),b):b}function xS(b){const w=H(266);return w.clauses=V(b),w.transformFlags|=Mo(w.clauses),w.locals=void 0,w.nextContainer=void 0,w}function wL(b,w){return b.clauses!==w?r(xS(w),b):b}function zi(b){const w=ne(267);return w.name=xl(b),w.transformFlags|=qk(w.name)|1,w.modifiers=void 0,w.jsDoc=void 0,w}function Jr(b,w){return b.name!==w?sh(zi(w),b):b}function sh(b,w){return b!==w&&(b.modifiers=w.modifiers),r(b,w)}function tf(b,w,B,se){const qe=ne(268);return qe.modifiers=wo(b),qe.name=xl(B),qe.isTypeOnly=w,qe.moduleReference=se,qe.transformFlags|=Mo(qe.modifiers)|qk(qe.name)|hr(qe.moduleReference),eh(qe.moduleReference)||(qe.transformFlags|=1),qe.transformFlags&=-67108865,qe.jsDoc=void 0,qe}function TE(b,w,B,se,qe){return b.modifiers!==w||b.isTypeOnly!==B||b.name!==se||b.moduleReference!==qe?r(tf(w,B,se,qe),b):b}function Wg(b,w,B,se){const qe=H(269);return qe.modifiers=wo(b),qe.importClause=w,qe.moduleSpecifier=B,qe.assertClause=se,qe.transformFlags|=hr(qe.importClause)|hr(qe.moduleSpecifier),qe.transformFlags&=-67108865,qe.jsDoc=void 0,qe}function qh(b,w,B,se,qe){return b.modifiers!==w||b.importClause!==B||b.moduleSpecifier!==se||b.assertClause!==qe?r(Wg(w,B,se,qe),b):b}function lh(b,w,B){const se=ne(270);return se.isTypeOnly=b,se.name=w,se.namedBindings=B,se.transformFlags|=hr(se.name)|hr(se.namedBindings),b&&(se.transformFlags|=1),se.transformFlags&=-67108865,se}function hl(b,w,B,se){return b.isTypeOnly!==w||b.name!==B||b.namedBindings!==se?r(lh(w,B,se),b):b}function Gb(b,w){const B=H(296);return B.elements=V(b),B.multiLine=w,B.transformFlags|=4,B}function AS(b,w,B){return b.elements!==w||b.multiLine!==B?r(Gb(w,B),b):b}function Ub(b,w){const B=H(297);return B.name=b,B.value=w,B.transformFlags|=4,B}function CS(b,w,B){return b.name!==w||b.value!==B?r(Ub(w,B),b):b}function f_(b,w){const B=H(298);return B.assertClause=b,B.multiLine=w,B}function F2(b,w,B){return b.assertClause!==w||b.multiLine!==B?r(f_(w,B),b):b}function B2(b){const w=ne(271);return w.name=b,w.transformFlags|=hr(w.name),w.transformFlags&=-67108865,w}function y0(b,w){return b.name!==w?r(B2(w),b):b}function LS(b){const w=ne(277);return w.name=b,w.transformFlags|=hr(w.name)|4,w.transformFlags&=-67108865,w}function IS(b,w){return b.name!==w?r(LS(w),b):b}function G2(b){const w=H(272);return w.elements=V(b),w.transformFlags|=Mo(w.elements),w.transformFlags&=-67108865,w}function Vb(b,w){return b.elements!==w?r(G2(w),b):b}function kS(b,w,B){const se=ne(273);return se.isTypeOnly=b,se.propertyName=w,se.name=B,se.transformFlags|=hr(se.propertyName)|hr(se.name),se.transformFlags&=-67108865,se}function Wf(b,w,B,se){return b.isTypeOnly!==w||b.propertyName!==B||b.name!==se?r(kS(w,B,se),b):b}function zg(b,w,B){const se=ne(274);return se.modifiers=wo(b),se.isExportEquals=w,se.expression=w?i().parenthesizeRightSideOfBinary(63,void 0,B):i().parenthesizeExpressionOfExportDefault(B),se.transformFlags|=Mo(se.modifiers)|hr(se.expression),se.transformFlags&=-67108865,se.jsDoc=void 0,se}function Bp(b,w,B){return b.modifiers!==w||b.expression!==B?r(zg(w,b.isExportEquals,B),b):b}function fp(b,w,B,se,qe){const Kt=ne(275);return Kt.modifiers=wo(b),Kt.isTypeOnly=w,Kt.exportClause=B,Kt.moduleSpecifier=se,Kt.assertClause=qe,Kt.transformFlags|=Mo(Kt.modifiers)|hr(Kt.exportClause)|hr(Kt.moduleSpecifier),Kt.transformFlags&=-67108865,Kt.jsDoc=void 0,Kt}function U2(b,w,B,se,qe,Kt){return b.modifiers!==w||b.isTypeOnly!==B||b.exportClause!==se||b.moduleSpecifier!==qe||b.assertClause!==Kt?jb(fp(w,B,se,qe,Kt),b):b}function jb(b,w){return b!==w&&b.modifiers===w.modifiers&&(b.modifiers=w.modifiers),r(b,w)}function gm(b){const w=H(276);return w.elements=V(b),w.transformFlags|=Mo(w.elements),w.transformFlags&=-67108865,w}function wS(b,w){return b.elements!==w?r(gm(w),b):b}function Ed(b,w,B){const se=H(278);return se.isTypeOnly=b,se.propertyName=xl(w),se.name=xl(B),se.transformFlags|=hr(se.propertyName)|hr(se.name),se.transformFlags&=-67108865,se.jsDoc=void 0,se}function qg(b,w,B,se){return b.isTypeOnly!==w||b.propertyName!==B||b.name!==se?r(Ed(w,B,se),b):b}function ym(){const b=ne(279);return b.jsDoc=void 0,b}function vm(b){const w=H(280);return w.expression=b,w.transformFlags|=hr(w.expression),w.transformFlags&=-67108865,w}function Jg(b,w){return b.expression!==w?r(vm(w),b):b}function SE(b){return H(b)}function DS(b,w,B=!1){const se=Xy(b,B?w&&i().parenthesizeNonArrayTypeOfPostfixType(w):w);return se.postfix=B,se}function Xy(b,w){const B=H(b);return B.type=w,B}function xE(b,w,B){return w.type!==B?r(DS(b,B,w.postfix),w):w}function Os(b,w,B){return w.type!==B?r(Xy(b,B),w):w}function Yy(b,w){const B=ne(320);return B.parameters=wo(b),B.type=w,B.transformFlags=Mo(B.parameters)|(B.type?1:0),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B.typeArguments=void 0,B}function V2(b,w,B){return b.parameters!==w||b.type!==B?r(Yy(w,B),b):b}function Hb(b,w=!1){const B=ne(325);return B.jsDocPropertyTags=wo(b),B.isArrayType=w,B}function Wb(b,w,B){return b.jsDocPropertyTags!==w||b.isArrayType!==B?r(Hb(w,B),b):b}function j2(b){const w=H(312);return w.type=b,w}function DL(b,w){return b.type!==w?r(j2(w),b):b}function H2(b,w,B){const se=ne(326);return se.typeParameters=wo(b),se.parameters=V(w),se.type=B,se.jsDoc=void 0,se.locals=void 0,se.nextContainer=void 0,se}function pr(b,w,B,se){return b.typeParameters!==w||b.parameters!==B||b.type!==se?r(H2(w,B,se),b):b}function Pl(b){const w=O7(b.kind);return b.tagName.escapedText===ul(w)?b.tagName:Ee(w)}function da(b,w,B){const se=H(b);return se.tagName=w,se.comment=B,se}function zf(b,w,B){const se=ne(b);return se.tagName=w,se.comment=B,se}function v0(b,w,B,se){const qe=da(348,b!=null?b:Ee("template"),se);return qe.constraint=w,qe.typeParameters=V(B),qe}function ch(b,w=Pl(b),B,se,qe){return b.tagName!==w||b.constraint!==B||b.typeParameters!==se||b.comment!==qe?r(v0(w,B,se,qe),b):b}function ar(b,w,B,se){const qe=zf(349,b!=null?b:Ee("typedef"),se);return qe.typeExpression=w,qe.fullName=B,qe.name=FK(B),qe.locals=void 0,qe.nextContainer=void 0,qe}function W2(b,w=Pl(b),B,se,qe){return b.tagName!==w||b.typeExpression!==B||b.fullName!==se||b.comment!==qe?r(ar(w,B,se,qe),b):b}function $y(b,w,B,se,qe,Kt){const Gr=zf(344,b!=null?b:Ee("param"),Kt);return Gr.typeExpression=se,Gr.name=w,Gr.isNameFirst=!!qe,Gr.isBracketed=B,Gr}function Nc(b,w=Pl(b),B,se,qe,Kt,Gr){return b.tagName!==w||b.name!==B||b.isBracketed!==se||b.typeExpression!==qe||b.isNameFirst!==Kt||b.comment!==Gr?r($y(w,B,se,qe,Kt,Gr),b):b}function N_(b,w,B,se,qe,Kt){const Gr=zf(351,b!=null?b:Ee("prop"),Kt);return Gr.typeExpression=se,Gr.name=w,Gr.isNameFirst=!!qe,Gr.isBracketed=B,Gr}function Gp(b,w=Pl(b),B,se,qe,Kt,Gr){return b.tagName!==w||b.name!==B||b.isBracketed!==se||b.typeExpression!==qe||b.isNameFirst!==Kt||b.comment!==Gr?r(N_(w,B,se,qe,Kt,Gr),b):b}function Qy(b,w,B,se){const qe=zf(341,b!=null?b:Ee("callback"),se);return qe.typeExpression=w,qe.fullName=B,qe.name=FK(B),qe.locals=void 0,qe.nextContainer=void 0,qe}function AE(b,w=Pl(b),B,se,qe){return b.tagName!==w||b.typeExpression!==B||b.fullName!==se||b.comment!==qe?r(Qy(w,B,se,qe),b):b}function _p(b,w,B){const se=da(342,b!=null?b:Ee("overload"),B);return se.typeExpression=w,se}function Zy(b,w=Pl(b),B,se){return b.tagName!==w||b.typeExpression!==B||b.comment!==se?r(_p(w,B,se),b):b}function ec(b,w,B){const se=da(331,b!=null?b:Ee("augments"),B);return se.class=w,se}function oc(b,w=Pl(b),B,se){return b.tagName!==w||b.class!==B||b.comment!==se?r(ec(w,B,se),b):b}function Kg(b,w,B){const se=da(332,b!=null?b:Ee("implements"),B);return se.class=w,se}function hu(b,w,B){const se=da(350,b!=null?b:Ee("see"),B);return se.name=w,se}function O_(b,w,B,se){return b.tagName!==w||b.name!==B||b.comment!==se?r(hu(w,B,se),b):b}function uh(b){const w=H(313);return w.name=b,w}function Bd(b,w){return b.name!==w?r(uh(w),b):b}function CE(b,w){const B=H(314);return B.left=b,B.right=w,B.transformFlags|=hr(B.left)|hr(B.right),B}function zb(b,w,B){return b.left!==w||b.right!==B?r(CE(w,B),b):b}function qb(b,w){const B=H(327);return B.name=b,B.text=w,B}function Up(b,w,B){return b.name!==w?r(qb(w,B),b):b}function Jh(b,w){const B=H(328);return B.name=b,B.text=w,B}function LE(b,w,B){return b.name!==w?r(Jh(w,B),b):b}function ev(b,w){const B=H(329);return B.name=b,B.text=w,B}function Ml(b,w,B){return b.name!==w?r(ev(w,B),b):b}function Xg(b,w=Pl(b),B,se){return b.tagName!==w||b.class!==B||b.comment!==se?r(Kg(w,B,se),b):b}function Kh(b,w,B){return da(b,w!=null?w:Ee(O7(b)),B)}function b0(b,w,B=Pl(w),se){return w.tagName!==B||w.comment!==se?r(Kh(b,B,se),w):w}function E0(b,w,B,se){const qe=da(b,w!=null?w:Ee(O7(b)),se);return qe.typeExpression=B,qe}function gu(b,w,B=Pl(w),se,qe){return w.tagName!==B||w.typeExpression!==se||w.comment!==qe?r(E0(b,B,se,qe),w):w}function Xh(b,w){return da(330,b,w)}function Cc(b,w,B){return b.tagName!==w||b.comment!==B?r(Xh(w,B),b):b}function IE(b,w,B){const se=zf(343,b!=null?b:Ee(O7(343)),B);return se.typeExpression=w,se.locals=void 0,se.nextContainer=void 0,se}function Yh(b,w=Pl(b),B,se){return b.tagName!==w||b.typeExpression!==B||b.comment!==se?r(IE(w,B,se),b):b}function Jb(b){const w=H(324);return w.text=b,w}function Td(b,w){return b.text!==w?r(Jb(w),b):b}function dh(b,w){const B=H(323);return B.comment=b,B.tags=wo(w),B}function Kb(b,w,B){return b.comment!==w||b.tags!==B?r(dh(w,B),b):b}function T0(b,w,B){const se=H(281);return se.openingElement=b,se.children=V(w),se.closingElement=B,se.transformFlags|=hr(se.openingElement)|Mo(se.children)|hr(se.closingElement)|2,se}function kE(b,w,B,se){return b.openingElement!==w||b.children!==B||b.closingElement!==se?r(T0(w,B,se),b):b}function tv(b,w,B){const se=H(282);return se.tagName=b,se.typeArguments=wo(w),se.attributes=B,se.transformFlags|=hr(se.tagName)|Mo(se.typeArguments)|hr(se.attributes)|2,se.typeArguments&&(se.transformFlags|=1),se}function RS(b,w,B,se){return b.tagName!==w||b.typeArguments!==B||b.attributes!==se?r(tv(w,B,se),b):b}function S0(b,w,B){const se=H(283);return se.tagName=b,se.typeArguments=wo(w),se.attributes=B,se.transformFlags|=hr(se.tagName)|Mo(se.typeArguments)|hr(se.attributes)|2,w&&(se.transformFlags|=1),se}function Yg(b,w,B,se){return b.tagName!==w||b.typeArguments!==B||b.attributes!==se?r(S0(w,B,se),b):b}function qf(b){const w=H(284);return w.tagName=b,w.transformFlags|=hr(w.tagName)|2,w}function wE(b,w){return b.tagName!==w?r(qf(w),b):b}function xf(b,w,B){const se=H(285);return se.openingFragment=b,se.children=V(w),se.closingFragment=B,se.transformFlags|=hr(se.openingFragment)|Mo(se.children)|hr(se.closingFragment)|2,se}function $h(b,w,B,se){return b.openingFragment!==w||b.children!==B||b.closingFragment!==se?r(xf(w,B,se),b):b}function x0(b,w){const B=H(11);return B.text=b,B.containsOnlyTriviaWhiteSpaces=!!w,B.transformFlags|=2,B}function z2(b,w,B){return b.text!==w||b.containsOnlyTriviaWhiteSpaces!==B?r(x0(w,B),b):b}function as(){const b=H(286);return b.transformFlags|=2,b}function Ir(){const b=H(287);return b.transformFlags|=2,b}function nf(b,w){const B=ne(288);return B.name=b,B.initializer=w,B.transformFlags|=hr(B.name)|hr(B.initializer)|2,B}function Sd(b,w,B){return b.name!==w||b.initializer!==B?r(nf(w,B),b):b}function NS(b){const w=ne(289);return w.properties=V(b),w.transformFlags|=Mo(w.properties)|2,w}function DE(b,w){return b.properties!==w?r(NS(w),b):b}function nv(b){const w=H(290);return w.expression=b,w.transformFlags|=hr(w.expression)|2,w}function q2(b,w){return b.expression!==w?r(nv(w),b):b}function rv(b,w){const B=H(291);return B.dotDotDotToken=b,B.expression=w,B.transformFlags|=hr(B.dotDotDotToken)|hr(B.expression)|2,B}function bm(b,w){return b.expression!==w?r(rv(b.dotDotDotToken,w),b):b}function Vp(b,w){const B=H(292);return B.expression=i().parenthesizeExpressionForDisallowedComma(b),B.statements=V(w),B.transformFlags|=hr(B.expression)|Mo(B.statements),B.jsDoc=void 0,B}function $g(b,w,B){return b.expression!==w||b.statements!==B?r(Vp(w,B),b):b}function A0(b){const w=H(293);return w.statements=V(b),w.transformFlags=Mo(w.statements),w}function Qh(b,w){return b.statements!==w?r(A0(w),b):b}function Em(b,w){const B=H(294);switch(B.token=b,B.types=V(w),B.transformFlags|=Mo(B.types),b){case 94:B.transformFlags|=1024;break;case 117:B.transformFlags|=1;break;default:return D.assertNever(b)}return B}function OS(b,w){return b.types!==w?r(Em(b.token,w),b):b}function tc(b,w){const B=H(295);return B.variableDeclaration=AD(b),B.block=w,B.transformFlags|=hr(B.variableDeclaration)|hr(B.block)|(b?0:64),B.locals=void 0,B.nextContainer=void 0,B}function Af(b,w,B){return b.variableDeclaration!==w||b.block!==B?r(tc(w,B),b):b}function fh(b,w){const B=ne(299);return B.name=xl(b),B.initializer=i().parenthesizeExpressionForDisallowedComma(w),B.transformFlags|=Ry(B.name)|hr(B.initializer),B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Gd(b,w,B){return b.name!==w||b.initializer!==B?RE(fh(w,B),b):b}function RE(b,w){return b!==w&&(b.modifiers=w.modifiers,b.questionToken=w.questionToken,b.exclamationToken=w.exclamationToken),r(b,w)}function iv(b,w){const B=ne(300);return B.name=xl(b),B.objectAssignmentInitializer=w&&i().parenthesizeExpressionForDisallowedComma(w),B.transformFlags|=qk(B.name)|hr(B.objectAssignmentInitializer)|1024,B.equalsToken=void 0,B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Qg(b,w,B){return b.name!==w||b.objectAssignmentInitializer!==B?J2(iv(w,B),b):b}function J2(b,w){return b!==w&&(b.modifiers=w.modifiers,b.questionToken=w.questionToken,b.exclamationToken=w.exclamationToken,b.equalsToken=w.equalsToken),r(b,w)}function Jf(b){const w=ne(301);return w.expression=i().parenthesizeExpressionForDisallowedComma(b),w.transformFlags|=hr(w.expression)|128|65536,w.jsDoc=void 0,w}function Ps(b,w){return b.expression!==w?r(Jf(w),b):b}function NE(b,w){const B=ne(302);return B.name=xl(b),B.initializer=w&&i().parenthesizeExpressionForDisallowedComma(w),B.transformFlags|=hr(B.name)|hr(B.initializer)|1,B.jsDoc=void 0,B}function OE(b,w,B){return b.name!==w||b.initializer!==B?r(NE(w,B),b):b}function Zg(b,w,B){const se=t.createBaseSourceFileNode(308);return se.statements=V(b),se.endOfFileToken=w,se.flags|=B,se.text="",se.fileName="",se.path="",se.resolvedPath="",se.originalFileName="",se.languageVersion=0,se.languageVariant=0,se.scriptKind=0,se.isDeclarationFile=!1,se.hasNoDefaultLib=!1,se.transformFlags|=Mo(se.statements)|hr(se.endOfFileToken),se.locals=void 0,se.nextContainer=void 0,se.endFlowNode=void 0,se.nodeCount=0,se.identifierCount=0,se.symbolCount=0,se.parseDiagnostics=void 0,se.bindDiagnostics=void 0,se.bindSuggestionDiagnostics=void 0,se.lineMap=void 0,se.externalModuleIndicator=void 0,se.setExternalModuleIndicator=void 0,se.pragmas=void 0,se.checkJsDirective=void 0,se.referencedFiles=void 0,se.typeReferenceDirectives=void 0,se.libReferenceDirectives=void 0,se.amdDependencies=void 0,se.commentDirectives=void 0,se.identifiers=void 0,se.packageJsonLocations=void 0,se.packageJsonScope=void 0,se.imports=void 0,se.moduleAugmentations=void 0,se.ambientModuleNames=void 0,se.resolvedModules=void 0,se.classifiableNames=void 0,se.impliedNodeFormat=void 0,se}function C0(b){const w=Object.create(b.redirectTarget);return Object.defineProperties(w,{id:{get(){return this.redirectInfo.redirectTarget.id},set(B){this.redirectInfo.redirectTarget.id=B}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(B){this.redirectInfo.redirectTarget.symbol=B}}}),w.redirectInfo=b,w}function PS(b){const w=C0(b.redirectInfo);return w.flags|=b.flags&-9,w.fileName=b.fileName,w.path=b.path,w.resolvedPath=b.resolvedPath,w.originalFileName=b.originalFileName,w.packageJsonLocations=b.packageJsonLocations,w.packageJsonScope=b.packageJsonScope,w.emitNode=void 0,w}function PE(b){const w=t.createBaseSourceFileNode(308);w.flags|=b.flags&-9;for(const B in b)if(!(Fs(w,B)||!Fs(b,B))){if(B==="emitNode"){w.emitNode=void 0;continue}w[B]=b[B]}return w}function ME(b){const w=b.redirectInfo?PS(b):PE(b);return Wr(w,b),w}function FE(b,w,B,se,qe,Kt,Gr){const na=ME(b);return na.statements=V(w),na.isDeclarationFile=B,na.referencedFiles=se,na.typeReferenceDirectives=qe,na.hasNoDefaultLib=Kt,na.libReferenceDirectives=Gr,na.transformFlags=Mo(na.statements)|hr(na.endOfFileToken),na}function BE(b,w,B=b.isDeclarationFile,se=b.referencedFiles,qe=b.typeReferenceDirectives,Kt=b.hasNoDefaultLib,Gr=b.libReferenceDirectives){return b.statements!==w||b.isDeclarationFile!==B||b.referencedFiles!==se||b.typeReferenceDirectives!==qe||b.hasNoDefaultLib!==Kt||b.libReferenceDirectives!==Gr?r(FE(b,w,B,se,qe,Kt,Gr),b):b}function GE(b,w=rt){const B=H(309);return B.prepends=w,B.sourceFiles=b,B.syntheticFileReferences=void 0,B.syntheticTypeReferences=void 0,B.syntheticLibReferences=void 0,B.hasNoDefaultLib=void 0,B}function av(b,w,B=rt){return b.sourceFiles!==w||b.prepends!==B?r(GE(w,B),b):b}function rf(b,w,B){const se=H(310);return se.prologues=b,se.syntheticReferences=w,se.texts=B,se.fileName="",se.text="",se.referencedFiles=rt,se.libReferenceDirectives=rt,se.getLineAndCharacterOfPosition=qe=>cl(se,qe),se}function Zh(b,w){const B=H(b);return B.data=w,B}function RL(b){return Zh(303,b)}function ey(b,w){const B=Zh(304,b);return B.texts=w,B}function K2(b,w){return Zh(w?306:305,b)}function X2(b){const w=H(307);return w.data=b.data,w.section=b,w}function x(){const b=H(311);return b.javascriptText="",b.declarationText="",b}function le(b,w=!1,B){const se=H(234);return se.type=b,se.isSpread=w,se.tupleNameSource=B,se}function ke(b){const w=H(354);return w._children=b,w}function an(b){const w=H(355);return w.original=b,ht(w,b),w}function Cr(b,w){const B=H(356);return B.expression=b,B.original=w,B.transformFlags|=hr(B.expression)|1,ht(B,w),B}function Ci(b,w){return b.expression!==w?r(Cr(w,b.original),b):b}function ui(b){if(tl(b)&&!zI(b)&&!b.original&&!b.emitNode&&!b.id){if(rw(b))return b.elements;if(br(b)&&tme(b.operatorToken))return[b.left,b.right]}return b}function Vi(b){const w=H(357);return w.elements=V(DA(b,ui)),w.transformFlags|=Mo(w.elements),w}function po(b,w){return b.elements!==w?r(Vi(w),b):b}function su(b){const w=H(359);return w.emitNode={},w.original=b,w}function af(b){const w=H(358);return w.emitNode={},w.original=b,w}function Cf(b,w){const B=H(360);return B.expression=b,B.thisArg=w,B.transformFlags|=hr(B.expression)|hr(B.thisArg),B}function ov(b,w,B){return b.expression!==w||b.thisArg!==B?r(Cf(w,B),b):b}function of(b){const w=ce(b.escapedText);return w.flags|=b.flags&-9,w.transformFlags=b.transformFlags,Wr(w,b),HO(w,Ti({},b.emitNode.autoGenerate)),w}function L0(b){const w=ce(b.escapedText);w.flags|=b.flags&-9,w.jsDoc=b.jsDoc,w.flowNode=b.flowNode,w.symbol=b.symbol,w.transformFlags=b.transformFlags,Wr(w,b);const B=UT(b);return B&&Oy(w,B),w}function I0(b){const w=Ge(b.escapedText);return w.flags|=b.flags&-9,w.transformFlags=b.transformFlags,Wr(w,b),HO(w,Ti({},b.emitNode.autoGenerate)),w}function sv(b){const w=Ge(b.escapedText);return w.flags|=b.flags&-9,w.transformFlags=b.transformFlags,Wr(w,b),w}function P_(b){if(b===void 0)return b;if(Ji(b))return ME(b);if(Ll(b))return of(b);if(je(b))return L0(b);if(hx(b))return I0(b);if(Oi(b))return sv(b);const w=fN(b.kind)?t.createBaseNode(b.kind):t.createBaseTokenNode(b.kind);w.flags|=b.flags&-9,w.transformFlags=b.transformFlags,Wr(w,b);for(const B in b)Fs(w,B)||!Fs(b,B)||(w[B]=b[B]);return w}function UE(b,w,B){return On(ja(void 0,void 0,void 0,void 0,w?[w]:[],void 0,Bg(b,!0)),void 0,B?[B]:[])}function Kf(b,w,B){return On(Ss(void 0,void 0,w?[w]:[],void 0,void 0,Bg(b,!0)),void 0,B?[B]:[])}function _h(){return Du($("0"))}function lv(b){return zg(void 0,!1,b)}function __(b){return fp(void 0,!1,gm([Ed(!1,void 0,b)]))}function VE(b,w){return w==="undefined"?G.createStrictEquality(b,_h()):G.createStrictEquality(ac(b),re(w))}function k0(b,w,B){return gT(b)?Io(Ts(b,void 0,w),void 0,void 0,B):On(yc(b,w),void 0,B)}function vc(b,w,B){return k0(b,"bind",[w,...B])}function RP(b,w,B){return k0(b,"call",[w,...B])}function xs(b,w,B){return k0(b,"apply",[w,B])}function rs(b,w,B){return k0(Ee(b),w,B)}function Y2(b,w){return k0(b,"slice",w===void 0?[]:[D0(w)])}function $2(b,w){return k0(b,"concat",w)}function z(b,w,B){return rs("Object","defineProperty",[b,D0(w),B])}function Te(b,w){return rs("Object","getOwnPropertyDescriptor",[b,D0(w)])}function $e(b,w,B){return rs("Reflect","get",B?[b,w,B]:[b,w])}function Tt(b,w,B,se){return rs("Reflect","set",se?[b,w,B,se]:[b,w,B])}function Gt(b,w,B){return B?(b.push(fh(w,B)),!0):!1}function Cn(b,w){const B=[];Gt(B,"enumerable",D0(b.enumerable)),Gt(B,"configurable",D0(b.configurable));let se=Gt(B,"writable",D0(b.writable));se=Gt(B,"value",b.value)||se;let qe=Gt(B,"get",b.get);return qe=Gt(B,"set",b.set)||qe,D.assert(!(se&&qe),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Wo(B,!w)}function Br(b,w){switch(b.kind){case 214:return Fi(b,w);case 213:return Dr(b,b.type,w);case 231:return c0(b,w,b.type);case 235:return Fg(b,w,b.type);case 232:return vS(b,w);case 356:return Ci(b,w)}}function bi(b){return Jd(b)&&tl(b)&&tl(hb(b))&&tl($m(b))&&!kt(wC(b))&&!kt(jO(b))}function Li(b,w,B=15){return b&&C5(b,B)&&!bi(b)?Br(b,Li(b.expression,w)):w}function Di(b,w,B){if(!w)return b;const se=TS(w,w.label,Y1(w.statement)?Di(b,w.statement):b);return B&&B(w),se}function Ma(b,w){const B=Ws(b);switch(B.kind){case 79:return w;case 108:case 8:case 9:case 10:return!1;case 206:return B.elements.length!==0;case 207:return B.properties.length>0;default:return!0}}function ks(b,w,B,se=!1){const qe=Cu(b,15);let Kt,Gr;return hd(qe)?(Kt=Ct(),Gr=qe):Yk(qe)?(Kt=Ct(),Gr=B!==void 0&&B<2?ht(Ee("_super"),qe):qe):bo(qe)&8192?(Kt=_h(),Gr=i().parenthesizeLeftSideOfAccess(qe,!1)):Fr(qe)?Ma(qe.expression,se)?(Kt=xe(w),Gr=yc(ht(G.createAssignment(Kt,qe.expression),qe.expression),qe.name),ht(Gr,qe)):(Kt=qe.expression,Gr=qe):fl(qe)?Ma(qe.expression,se)?(Kt=xe(w),Gr=Zd(ht(G.createAssignment(Kt,qe.expression),qe.expression),qe.argumentExpression),ht(Gr,qe)):(Kt=qe.expression,Gr=qe):(Kt=_h(),Gr=i().parenthesizeLeftSideOfAccess(b,!1)),{target:Gr,thisArg:Kt}}function ko(b,w){return yc(ii(Wo([ie(void 0,"value",[wi(void 0,void 0,b,void 0,void 0,void 0)],Bg([f0(w)]))])),"value")}function is(b){return b.length>10?Vi(b):Gu(b,G.createComma)}function Ud(b,w,B,se=0){const qe=Ia(b);if(qe&&je(qe)&&!Ll(qe)){const Kt=jo(ht(P_(qe),qe),qe.parent);return se|=bo(qe),B||(se|=96),w||(se|=3072),se&&sr(Kt,se),Kt}return Ve(b)}function jp(b,w,B){return Ud(b,w,B,98304)}function Tm(b,w,B){return Ud(b,w,B,32768)}function ty(b,w,B){return Ud(b,w,B,16384)}function M_(b,w,B){return Ud(b,w,B)}function cv(b,w,B,se){const qe=yc(b,tl(w)?w:P_(w));ht(qe,w);let Kt=0;return se||(Kt|=96),B||(Kt|=3072),Kt&&sr(qe,Kt),qe}function Q2(b,w,B,se){return b&&$r(w,1)?cv(b,Ud(w),B,se):ty(w,B,se)}function jE(b,w,B,se){const qe=w0(b,w,0,B);return OL(b,w,qe,se)}function NL(b){return Ho(b.expression)&&b.expression.text==="use strict"}function pp(){return Ku(f0(re("use strict")))}function w0(b,w,B=0,se){D.assert(w.length===0,"Prologue directives should be at the first statement in the target statements array");let qe=!1;const Kt=b.length;for(;B<Kt;){const Gr=b[B];if(Ap(Gr))NL(Gr)&&(qe=!0),w.push(Gr);else break;B++}return se&&!qe&&w.push(pp()),B}function OL(b,w,B,se,qe=b1){const Kt=b.length;for(;B!==void 0&&B<Kt;){const Gr=b[B];if(bo(Gr)&2097152&&qe(Gr))Bn(w,se?lt(Gr,se,ka):Gr);else break;B++}return B}function Xf(b){return OK(b)?b:ht(V([pp(),...b]),b)}function Z2(b){return D.assert(Zn(b,Yde),"Cannot lift nodes to a Block."),Om(b)||Bg(b)}function uv(b,w,B){let se=B;for(;se<b.length&&w(b[se]);)se++;return se}function TD(b,w){if(!kt(w))return b;const B=uv(b,Ap,0),se=uv(b,k3,B),qe=uv(b,w3,se),Kt=uv(w,Ap,0),Gr=uv(w,k3,Kt),na=uv(w,w3,Gr),Qa=uv(w,I3,na);D.assert(Qa===w.length,"Expected declarations to be valid standard or custom prologues");const Lf=w1(b)?b.slice():b;if(Qa>na&&Lf.splice(qe,0,...w.slice(na,Qa)),na>Gr&&Lf.splice(se,0,...w.slice(Gr,na)),Gr>Kt&&Lf.splice(B,0,...w.slice(Kt,Gr)),Kt>0)if(B===0)Lf.splice(0,0,...w.slice(0,Kt));else{const ny=new Map;for(let ry=0;ry<B;ry++){const iy=b[ry];ny.set(iy.expression.text,!0)}for(let ry=Kt-1;ry>=0;ry--){const iy=w[ry];ny.has(iy.expression.text)||Lf.unshift(iy)}}return w1(b)?ht(V(Lf,b.hasTrailingComma),b):b}function SD(b,w){var B;let se;return typeof w=="number"?se=on(w):se=w,Ul(b)?_r(b,se,b.name,b.constraint,b.default):Fa(b)?Qi(b,se,b.dotDotDotToken,b.name,b.questionToken,b.type,b.initializer):Qk(b)?$n(b,se,b.typeParameters,b.parameters,b.type):Bf(b)?vn(b,se,b.name,b.questionToken,b.type):ro(b)?ir(b,se,b.name,(B=b.questionToken)!=null?B:b.exclamationToken,b.type,b.initializer):Ph(b)?Mi(b,se,b.name,b.questionToken,b.typeParameters,b.parameters,b.type):uc(b)?Nn(b,se,b.asteriskToken,b.name,b.questionToken,b.typeParameters,b.parameters,b.type,b.body):Yl(b)?yt(b,se,b.parameters,b.body):Z_(b)?pt(b,se,b.name,b.parameters,b.type,b.body):c_(b)?he(b,se,b.name,b.parameters,b.body):Wx(b)?Sn(b,se,b.parameters,b.type):Us(b)?zo(b,se,b.asteriskToken,b.name,b.typeParameters,b.parameters,b.type,b.body):Xs(b)?$s(b,se,b.typeParameters,b.parameters,b.type,b.equalsGreaterThanToken,b.body):qu(b)?fc(b,se,b.name,b.typeParameters,b.heritageClauses,b.members):gc(b)?mE(b,se,b.declarationList):xc(b)?g0(b,se,b.asteriskToken,b.name,b.typeParameters,b.parameters,b.type,b.body):Bc(b)?ns(b,se,b.name,b.typeParameters,b.heritageClauses,b.members):ud(b)?EE(b,se,b.name,b.typeParameters,b.heritageClauses,b.members):um(b)?zh(b,se,b.name,b.typeParameters,b.type):yb(b)?dp(b,se,b.name,b.members):$l(b)?mu(b,se,b.name,b.body):_u(b)?TE(b,se,b.isTypeOnly,b.name,b.moduleReference):Yc(b)?qh(b,se,b.importClause,b.moduleSpecifier,b.assertClause):Vl(b)?Bp(b,se,b.expression):au(b)?U2(b,se,b.isTypeOnly,b.exportClause,b.moduleSpecifier,b.assertClause):D.assertNever(b)}function wo(b){return b?V(b):void 0}function xl(b){return typeof b=="string"?Ee(b):b}function D0(b){return typeof b=="string"?re(b):typeof b=="number"?$(b):typeof b=="boolean"?b?Vt():tt():b}function dv(b){return b&&i().parenthesizeExpressionForDisallowedComma(b)}function xD(b){return typeof b=="number"?Fe(b):b}function Vd(b){return b&&gK(b)?ht(Wr(hE(),b),b):b}function AD(b){return typeof b=="string"||b&&!Xi(b)?Ke(b,void 0,void 0,void 0):b}}function RMe(e,t){return e!==t&&ht(e,t),e}function NMe(e,t){return e!==t&&(Wr(e,t),ht(e,t)),e}function O7(e){switch(e){case 347:return"type";case 345:return"returns";case 346:return"this";case 343:return"enum";case 333:return"author";case 335:return"class";case 336:return"public";case 337:return"private";case 338:return"protected";case 339:return"readonly";case 340:return"override";case 348:return"template";case 349:return"typedef";case 344:return"param";case 351:return"prop";case 341:return"callback";case 342:return"overload";case 331:return"augments";case 332:return"implements";default:return D.fail(`Unsupported kind: ${D.formatSyntaxKind(e)}`)}}function OMe(e,t){switch(Ig||(Ig=Sy(99,!1,0)),e){case 14:Ig.setText("`"+t+"`");break;case 15:Ig.setText("`"+t+"${");break;case 16:Ig.setText("}"+t+"${");break;case 17:Ig.setText("}"+t+"`");break}let r=Ig.scan();if(r===19&&(r=Ig.reScanTemplateToken(!1)),Ig.isUnterminated())return Ig.setText(void 0),YJ;let i;switch(r){case 14:case 15:case 16:case 17:i=Ig.getTokenValue();break}return i===void 0||Ig.scan()!==1?(Ig.setText(void 0),YJ):(Ig.setText(void 0),i)}function Ry(e){return e&&je(e)?qk(e):hr(e)}function qk(e){return hr(e)&-67108865}function PMe(e,t){return t|e.transformFlags&134234112}function hr(e){if(!e)return 0;const t=e.transformFlags&~Gpe(e.kind);return Su(e)&&El(e.name)?PMe(e.name,t):t}function Mo(e){return e?e.transformFlags:0}function Bpe(e){let t=0;for(const r of e)t|=hr(r);e.transformFlags=t}function Gpe(e){if(e>=179&&e<=202)return-2;switch(e){case 210:case 211:case 206:return-2147450880;case 264:return-1941676032;case 166:return-2147483648;case 216:return-2072174592;case 215:case 259:return-1937940480;case 258:return-2146893824;case 260:case 228:return-2147344384;case 173:return-1937948672;case 169:return-2013249536;case 171:case 174:case 175:return-2005057536;case 131:case 148:case 160:case 144:case 152:case 149:case 134:case 153:case 114:case 165:case 168:case 170:case 176:case 177:case 178:case 261:case 262:return-2;case 207:return-2147278848;case 295:return-2147418112;case 203:case 204:return-2147450880;case 213:case 235:case 231:case 356:case 214:case 106:return-2147483648;case 208:case 209:return-2147483648;default:return-2147483648}}function MO(e){return e.flags|=8,e}function zJ(e,t,r){let i,o,s,c,f,d,v,h,E,C;Ha(e)?(s="",c=e,f=e.length,d=t,v=r):(D.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",d=t==="js"?e.javascriptMapPath:e.declarationMapPath,h=()=>t==="js"?e.javascriptText:e.declarationText,E=()=>t==="js"?e.javascriptMapText:e.declarationMapText,f=()=>h().length,e.buildInfo&&e.buildInfo.bundle&&(D.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,C=e.oldFileOfCurrentEmit));const L=C?FMe(D.checkDefined(o)):MMe(o,i,f);return L.fileName=s,L.sourceMapPath=d,L.oldFileOfCurrentEmit=C,h&&E?(Object.defineProperty(L,"text",{get:h}),Object.defineProperty(L,"sourceMapText",{get:E})):(D.assert(!C),L.text=c!=null?c:"",L.sourceMapText=v),L}function MMe(e,t,r){let i,o,s,c,f,d,v,h;for(const C of e?e.sections:rt)switch(C.kind){case"prologue":i=Bn(i,ht(N.createUnparsedPrologue(C.data),C));break;case"emitHelpers":o=Bn(o,rK().get(C.data));break;case"no-default-lib":h=!0;break;case"reference":s=Bn(s,{pos:-1,end:-1,fileName:C.data});break;case"type":c=Bn(c,{pos:-1,end:-1,fileName:C.data});break;case"type-import":c=Bn(c,{pos:-1,end:-1,fileName:C.data,resolutionMode:99});break;case"type-require":c=Bn(c,{pos:-1,end:-1,fileName:C.data,resolutionMode:1});break;case"lib":f=Bn(f,{pos:-1,end:-1,fileName:C.data});break;case"prepend":let L;for(const I of C.texts)(!t||I.kind!=="internal")&&(L=Bn(L,ht(N.createUnparsedTextLike(I.data,I.kind==="internal"),I)));d=Ai(d,L),v=Bn(v,N.createUnparsedPrepend(C.data,L!=null?L:rt));break;case"internal":if(t){v||(v=[]);break}case"text":v=Bn(v,ht(N.createUnparsedTextLike(C.data,C.kind==="internal"),C));break;default:D.assertNever(C)}if(!v){const C=N.createUnparsedTextLike(void 0,!1);Uk(C,0,typeof r=="function"?r():r),v=[C]}const E=nh.createUnparsedSource(i!=null?i:rt,void 0,v);return AC(i,E),AC(v,E),AC(d,E),E.hasNoDefaultLib=h,E.helpers=o,E.referencedFiles=s||rt,E.typeReferenceDirectives=c,E.libReferenceDirectives=f||rt,E}function FMe(e){let t,r;for(const o of e.sections)switch(o.kind){case"internal":case"text":t=Bn(t,ht(N.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=Bn(r,ht(N.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:D.assertNever(o)}const i=N.createUnparsedSource(rt,r,t!=null?t:rt);return AC(r,i),AC(t,i),i.helpers=zt(e.sources&&e.sources.helpers,o=>rK().get(o)),i}function BMe(e,t,r,i,o,s){return Ha(e)?JJ(void 0,e,r,i,void 0,t,o,s):qJ(e,t,r,i,o,s)}function qJ(e,t,r,i,o,s,c,f){const d=nh.createInputFiles();d.javascriptPath=t,d.javascriptMapPath=r,d.declarationPath=i,d.declarationMapPath=o,d.buildInfoPath=s;const v=new Map,h=I=>{if(I===void 0)return;let O=v.get(I);return O===void 0&&(O=e(I),v.set(I,O!==void 0?O:!1)),O!==!1?O:void 0},E=I=>{const O=h(I);return O!==void 0?O:`/* Input file ${I} was missing */\r
- `};let C;return Object.defineProperties(d,{javascriptText:{get:()=>E(t)},javascriptMapText:{get:()=>h(r)},declarationText:{get:()=>E(D.checkDefined(i))},declarationMapText:{get:()=>h(o)},buildInfo:{get:()=>{var I,O;if(C===void 0&&s)if(c!=null&&c.getBuildInfo)C=(I=c.getBuildInfo(s,f.configFilePath))!=null?I:!1;else{const k=h(s);C=k!==void 0&&(O=wF(s,k))!=null?O:!1}return C||void 0}}}),d}function JJ(e,t,r,i,o,s,c,f,d,v,h){const E=nh.createInputFiles();return E.javascriptPath=e,E.javascriptText=t,E.javascriptMapPath=r,E.javascriptMapText=i,E.declarationPath=o,E.declarationText=s,E.declarationMapPath=c,E.declarationMapText=f,E.buildInfoPath=d,E.buildInfo=v,E.oldFileOfCurrentEmit=h,E}function GMe(e,t,r){return new(Vpe||(Vpe=Kc.getSourceMapSourceConstructor()))(e,t,r)}function Wr(e,t){if(e.original=t,t){const r=t.emitNode;r&&(e.emitNode=UMe(r,e.emitNode))}return e}function UMe(e,t){const{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:c,sourceMapRange:f,tokenSourceMapRanges:d,constantValue:v,helpers:h,startsOnNewLine:E,snippetElement:C}=e;if(t||(t={}),o&&(t.leadingComments=Ai(o.slice(),t.leadingComments)),s&&(t.trailingComments=Ai(s.slice(),t.trailingComments)),r&&(t.flags=r),i&&(t.internalFlags=i&-9),c&&(t.commentRange=c),f&&(t.sourceMapRange=f),d&&(t.tokenSourceMapRanges=VMe(d,t.tokenSourceMapRanges)),v!==void 0&&(t.constantValue=v),h)for(const L of h)t.helpers=yy(t.helpers,L);return E!==void 0&&(t.startsOnNewLine=E),C!==void 0&&(t.snippetElement=C),t}function VMe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var FO,KJ,XJ,Ig,YJ,Jk,Upe,N,Vpe,jMe=S({"src/compiler/factory/nodeFactory.ts"(){Na(),FO=0,KJ=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(KJ||{}),XJ=[],YJ={},Jk=Ppe(),Upe={createBaseSourceFileNode:e=>MO(Jk.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>MO(Jk.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>MO(Jk.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>MO(Jk.createBaseTokenNode(e)),createBaseNode:e=>MO(Jk.createBaseNode(e))},N=PO(4,Upe)}});function cd(e){var t;if(e.emitNode)D.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(zI(e)){if(e.kind===308)return e.emitNode={annotatedNodes:[e]};const r=(t=er(va(er(e))))!=null?t:D.fail("Could not determine parsed source file.");cd(r).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function $J(e){var t,r;const i=(r=(t=er(va(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const o of i)o.emitNode=void 0}function BO(e){const t=cd(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function sr(e,t){return cd(e).flags=t,e}function cm(e,t){const r=cd(e);return r.flags=r.flags|t,e}function GO(e,t){return cd(e).internalFlags=t,e}function Bx(e,t){const r=cd(e);return r.internalFlags=r.internalFlags|t,e}function hb(e){var t,r;return(r=(t=e.emitNode)==null?void 0:t.sourceMapRange)!=null?r:e}function ps(e,t){return cd(e).sourceMapRange=t,e}function HMe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function jpe(e,t,r){var i;const o=cd(e),s=(i=o.tokenSourceMapRanges)!=null?i:o.tokenSourceMapRanges=[];return s[t]=r,e}function UO(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function QJ(e,t){return cd(e).startsOnNewLine=t,e}function $m(e){var t,r;return(r=(t=e.emitNode)==null?void 0:t.commentRange)!=null?r:e}function Xc(e,t){return cd(e).commentRange=t,e}function wC(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function K1(e,t){return cd(e).leadingComments=t,e}function VO(e,t,r,i){return K1(e,Bn(wC(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function jO(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function DC(e,t){return cd(e).trailingComments=t,e}function P7(e,t,r,i){return DC(e,Bn(jO(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Hpe(e,t){K1(e,wC(t)),DC(e,jO(t));const r=cd(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function Wpe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function zpe(e,t){const r=cd(e);return r.constantValue=t,e}function Gx(e,t){const r=cd(e);return r.helpers=Bn(r.helpers,t),e}function Ny(e,t){if(kt(t)){const r=cd(e);for(const i of t)r.helpers=yy(r.helpers,i)}return e}function WMe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?yM(i,t):!1}function M7(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function qpe(e,t,r){const i=e.emitNode,o=i&&i.helpers;if(!kt(o))return;const s=cd(t);let c=0;for(let f=0;f<o.length;f++){const d=o[f];r(d)?(c++,s.helpers=yy(s.helpers,d)):c>0&&(o[f-c]=d)}c>0&&(o.length-=c)}function ZJ(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function eK(e,t){const r=cd(e);return r.snippetElement=t,e}function tK(e){return cd(e).internalFlags|=4,e}function Jpe(e,t){const r=cd(e);return r.typeNode=t,e}function Kpe(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Oy(e,t){return cd(e).identifierTypeArguments=t,e}function UT(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function HO(e,t){return cd(e).autoGenerate=t,e}function zMe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function Xpe(e,t){return cd(e).generatedImportReference=t,e}function Ype(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var qMe=S({"src/compiler/factory/emitNode.ts"(){Na()}});function $pe(e){const t=e.factory,r=Ld(()=>GO(t.createTrue(),8)),i=Ld(()=>GO(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:c,createParamHelper:f,createESDecorateHelper:O,createRunInitializersHelper:k,createAssignHelper:G,createAwaitHelper:V,createAsyncGeneratorHelper:H,createAsyncDelegatorHelper:ne,createAsyncValuesHelper:Y,createRestHelper:$,createAwaiterHelper:M,createExtendsHelper:de,createTemplateObjectHelper:re,createSpreadArrayHelper:be,createPropKeyHelper:ae,createSetFunctionNameHelper:W,createValuesHelper:ce,createReadHelper:me,createGeneratorHelper:Ee,createCreateBindingHelper:xe,createImportStarHelper:te,createImportStarCallbackHelper:Qe,createImportDefaultHelper:Ve,createExportStarHelper:Ge,createClassPrivateFieldGetHelper:ze,createClassPrivateFieldSetHelper:Oe,createClassPrivateFieldInHelper:Me};function o(Ye){return sr(t.createIdentifier(Ye),8196)}function s(Ye,We,Fe,st){e.requestEmitHelper(F7);const Ct=[];return Ct.push(t.createArrayLiteralExpression(Ye,!0)),Ct.push(We),Fe&&(Ct.push(Fe),st&&Ct.push(st)),t.createCallExpression(o("__decorate"),void 0,Ct)}function c(Ye,We){return e.requestEmitHelper(B7),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(Ye),We])}function f(Ye,We,Fe){return e.requestEmitHelper(G7),ht(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(We+""),Ye]),Fe)}function d(Ye){return t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),Ye.name)])}function v(Ye){const We=Ye.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Ye.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Ye.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,We))}function h(Ye){const We=Ye.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Ye.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Ye.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(We,t.createIdentifier("value")))])))}function E(Ye){const We=Ye.computed?Ye.name:je(Ye.name)?t.createStringLiteralFromNode(Ye.name):Ye.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(We,101,t.createIdentifier("obj"))))}function C(Ye,We){const Fe=[];return Fe.push(E(Ye)),We.get&&Fe.push(v(Ye)),We.set&&Fe.push(h(Ye)),t.createObjectLiteralExpression(Fe)}function L(Ye){return t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(Ye.kind)),t.createPropertyAssignment(t.createIdentifier("name"),Ye.name.computed?Ye.name.name:t.createStringLiteralFromNode(Ye.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),Ye.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),Ye.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),C(Ye.name,Ye.access))])}function I(Ye){return Ye.kind==="class"?d(Ye):L(Ye)}function O(Ye,We,Fe,st,Ct,Et){return e.requestEmitHelper(U7),t.createCallExpression(o("__esDecorate"),void 0,[Ye!=null?Ye:t.createNull(),We!=null?We:t.createNull(),Fe,I(st),Ct,Et])}function k(Ye,We,Fe){return e.requestEmitHelper(V7),t.createCallExpression(o("__runInitializers"),void 0,Fe?[Ye,We,Fe]:[Ye,We])}function G(Ye){return ts(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,Ye):(e.requestEmitHelper(j7),t.createCallExpression(o("__assign"),void 0,Ye))}function V(Ye){return e.requestEmitHelper(Ux),t.createCallExpression(o("__await"),void 0,[Ye])}function H(Ye,We){return e.requestEmitHelper(Ux),e.requestEmitHelper(H7),(Ye.emitNode||(Ye.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[We?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),Ye])}function ne(Ye){return e.requestEmitHelper(Ux),e.requestEmitHelper(W7),t.createCallExpression(o("__asyncDelegator"),void 0,[Ye])}function Y(Ye){return e.requestEmitHelper(z7),t.createCallExpression(o("__asyncValues"),void 0,[Ye])}function $(Ye,We,Fe,st){e.requestEmitHelper(q7);const Ct=[];let Et=0;for(let Vt=0;Vt<We.length-1;Vt++){const tt=MK(We[Vt]);if(tt)if(Cs(tt)){D.assertIsDefined(Fe,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const at=Fe[Et];Et++,Ct.push(t.createConditionalExpression(t.createTypeCheck(at,"symbol"),void 0,at,void 0,t.createAdd(at,t.createStringLiteral(""))))}else Ct.push(t.createStringLiteralFromNode(tt))}return t.createCallExpression(o("__rest"),void 0,[Ye,ht(t.createArrayLiteralExpression(Ct),st)])}function M(Ye,We,Fe,st){e.requestEmitHelper(J7);const Ct=t.createFunctionExpression(void 0,t.createToken(41),void 0,void 0,[],void 0,st);return(Ct.emitNode||(Ct.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[Ye?t.createThis():t.createVoidZero(),We?t.createIdentifier("arguments"):t.createVoidZero(),Fe?o8(t,Fe):t.createVoidZero(),Ct])}function de(Ye){return e.requestEmitHelper(K7),t.createCallExpression(o("__extends"),void 0,[Ye,t.createUniqueName("_super",48)])}function re(Ye,We){return e.requestEmitHelper(X7),t.createCallExpression(o("__makeTemplateObject"),void 0,[Ye,We])}function be(Ye,We,Fe){return e.requestEmitHelper($7),t.createCallExpression(o("__spreadArray"),void 0,[Ye,We,Fe?r():i()])}function ae(Ye){return e.requestEmitHelper(Q7),t.createCallExpression(o("__propKey"),void 0,[Ye])}function W(Ye,We,Fe){return e.requestEmitHelper(Z7),e.factory.createCallExpression(o("__setFunctionName"),void 0,Fe?[Ye,We,e.factory.createStringLiteral(Fe)]:[Ye,We])}function ce(Ye){return e.requestEmitHelper(e5),t.createCallExpression(o("__values"),void 0,[Ye])}function me(Ye,We){return e.requestEmitHelper(Y7),t.createCallExpression(o("__read"),void 0,We!==void 0?[Ye,t.createNumericLiteral(We+"")]:[Ye])}function Ee(Ye){return e.requestEmitHelper(t5),t.createCallExpression(o("__generator"),void 0,[t.createThis(),Ye])}function xe(Ye,We,Fe){return e.requestEmitHelper(RC),t.createCallExpression(o("__createBinding"),void 0,[t.createIdentifier("exports"),Ye,We,...Fe?[Fe]:[]])}function te(Ye){return e.requestEmitHelper(WO),t.createCallExpression(o("__importStar"),void 0,[Ye])}function Qe(){return e.requestEmitHelper(WO),o("__importStar")}function Ve(Ye){return e.requestEmitHelper(r5),t.createCallExpression(o("__importDefault"),void 0,[Ye])}function Ge(Ye,We=t.createIdentifier("exports")){return e.requestEmitHelper(i5),e.requestEmitHelper(RC),t.createCallExpression(o("__exportStar"),void 0,[Ye,We])}function ze(Ye,We,Fe,st){e.requestEmitHelper(a5);let Ct;return st?Ct=[Ye,We,t.createStringLiteral(Fe),st]:Ct=[Ye,We,t.createStringLiteral(Fe)],t.createCallExpression(o("__classPrivateFieldGet"),void 0,Ct)}function Oe(Ye,We,Fe,st,Ct){e.requestEmitHelper(o5);let Et;return Ct?Et=[Ye,We,Fe,t.createStringLiteral(st),Ct]:Et=[Ye,We,Fe,t.createStringLiteral(st)],t.createCallExpression(o("__classPrivateFieldSet"),void 0,Et)}function Me(Ye,We){return e.requestEmitHelper(s5),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[Ye,We])}}function Qpe(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:qs(e.priority,t.priority)}function nK(e,...t){return r=>{let i="";for(let o=0;o<t.length;o++)i+=e[o],i+=r(t[o]);return i+=e[e.length-1],i}}function rK(){return Zpe||(Zpe=y1([F7,B7,G7,U7,V7,j7,Ux,H7,W7,z7,q7,J7,K7,X7,$7,e5,Y7,Q7,Z7,t5,WO,r5,i5,a5,o5,s5,RC,n5],e=>e.name))}function Kk(e,t){return io(e)&&je(e.expression)&&(bo(e.expression)&8192)!==0&&e.expression.escapedText===t}var iK,F7,B7,G7,U7,V7,j7,Ux,H7,W7,z7,q7,J7,K7,X7,Y7,$7,Q7,Z7,e5,t5,RC,n5,WO,r5,i5,a5,o5,s5,Zpe,zO,qO,JMe=S({"src/compiler/factory/emitHelpers.ts"(){Na(),iK=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(iK||{}),F7={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
- };`},B7={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
- var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
- };`},G7={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
- var __param = (this && this.__param) || function (paramIndex, decorator) {
- return function (target, key) { decorator(target, key, paramIndex); }
- };`},U7={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:`
- var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
- function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
- var _, done = false;
- for (var i = decorators.length - 1; i >= 0; i--) {
- var context = {};
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
- context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
- if (kind === "accessor") {
- if (result === void 0) continue;
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
- if (_ = accept(result.get)) descriptor.get = _;
- if (_ = accept(result.set)) descriptor.set = _;
- if (_ = accept(result.init)) initializers.push(_);
- }
- else if (_ = accept(result)) {
- if (kind === "field") initializers.push(_);
- else descriptor[key] = _;
- }
- }
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
- done = true;
- };`},V7={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:`
- var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
- var useValue = arguments.length > 2;
- for (var i = 0; i < initializers.length; i++) {
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
- }
- return useValue ? value : void 0;
- };`},j7={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
- var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };`},Ux={name:"typescript:await",importName:"__await",scoped:!1,text:`
- var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},H7={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[Ux],text:`
- var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
- function fulfill(value) { resume("next", value); }
- function reject(value) { resume("throw", value); }
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
- };`},W7={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[Ux],text:`
- var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
- var i, p;
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
- };`},z7={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
- var __asyncValues = (this && this.__asyncValues) || function (o) {
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
- var m = o[Symbol.asyncIterator], i;
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
- };`},q7={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
- var __rest = (this && this.__rest) || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
- t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
- t[p[i]] = s[p[i]];
- }
- return t;
- };`},J7={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
- };`},K7={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
- var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- if (typeof b !== "function" && b !== null)
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
- })();`},X7={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
- return cooked;
- };`},Y7={name:"typescript:read",importName:"__read",scoped:!1,text:`
- var __read = (this && this.__read) || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o), r, ar = [], e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
- }
- catch (error) { e = { error: error }; }
- finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- }
- finally { if (e) throw e.error; }
- }
- return ar;
- };`},$7={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
- if (ar || !(i in from)) {
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
- ar[i] = from[i];
- }
- }
- return to.concat(ar || Array.prototype.slice.call(from));
- };`},Q7={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:`
- var __propKey = (this && this.__propKey) || function (x) {
- return typeof x === "symbol" ? x : "".concat(x);
- };`},Z7={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:`
- var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
- if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
- };`},e5={name:"typescript:values",importName:"__values",scoped:!1,text:`
- var __values = (this && this.__values) || function(o) {
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
- if (m) return m.call(o);
- if (o && typeof o.length === "number") return {
- next: function () {
- if (o && i >= o.length) o = void 0;
- return { value: o && o[i++], done: !o };
- }
- };
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
- };`},t5={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
- var __generator = (this && this.__generator) || function (thisArg, body) {
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
- function verb(n) { return function (v) { return step([n, v]); }; }
- function step(op) {
- if (f) throw new TypeError("Generator is already executing.");
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
- if (y = 0, t) op = [op[0] & 2, t.value];
- switch (op[0]) {
- case 0: case 1: t = op; break;
- case 4: _.label++; return { value: op[1], done: false };
- case 5: _.label++; y = op[1]; op = [0]; continue;
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
- default:
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
- if (t[2]) _.ops.pop();
- _.trys.pop(); continue;
- }
- op = body.call(thisArg, _);
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
- }
- };`},RC={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- var desc = Object.getOwnPropertyDescriptor(m, k);
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
- desc = { enumerable: true, get: function() { return m[k]; } };
- }
- Object.defineProperty(o, k2, desc);
- }) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
- }));`},n5={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
- }) : function(o, v) {
- o["default"] = v;
- });`},WO={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[RC,n5],priority:2,text:`
- var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
- };`},r5={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
- var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };`},i5={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[RC],priority:2,text:`
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
- };`},a5={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
- };`},o5={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
- if (kind === "m") throw new TypeError("Private method is not writable");
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
- };`},s5={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
- var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
- return typeof state === "function" ? receiver === state : state.has(receiver);
- };`},zO={name:"typescript:async-super",scoped:!0,text:nK`
- const ${"_superIndex"} = name => super[name];`},qO={name:"typescript:advanced-async-super",scoped:!0,text:nK`
- const ${"_superIndex"} = (function (geti, seti) {
- const cache = Object.create(null);
- return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
- })(name => super[name], (name, value) => super[name] = value);`}}});function L_(e){return e.kind===8}function l5(e){return e.kind===9}function Ho(e){return e.kind===10}function Vx(e){return e.kind===11}function aK(e){return e.kind===13}function jx(e){return e.kind===14}function NC(e){return e.kind===15}function eme(e){return e.kind===16}function oK(e){return e.kind===17}function c5(e){return e.kind===25}function tme(e){return e.kind===27}function sK(e){return e.kind===39}function lK(e){return e.kind===40}function JO(e){return e.kind===41}function KO(e){return e.kind===53}function Kv(e){return e.kind===57}function nme(e){return e.kind===58}function u5(e){return e.kind===28}function rme(e){return e.kind===38}function je(e){return e.kind===79}function Oi(e){return e.kind===80}function d5(e){return e.kind===93}function ime(e){return e.kind===88}function Xk(e){return e.kind===132}function ame(e){return e.kind===129}function cK(e){return e.kind===133}function ome(e){return e.kind===146}function Hx(e){return e.kind===124}function sme(e){return e.kind===126}function lme(e){return e.kind===161}function cme(e){return e.kind===127}function Yk(e){return e.kind===106}function $k(e){return e.kind===100}function ume(e){return e.kind===82}function Rd(e){return e.kind===163}function Cs(e){return e.kind===164}function Ul(e){return e.kind===165}function Fa(e){return e.kind===166}function Wu(e){return e.kind===167}function Bf(e){return e.kind===168}function ro(e){return e.kind===169}function Ph(e){return e.kind===170}function uc(e){return e.kind===171}function Rl(e){return e.kind===172}function Yl(e){return e.kind===173}function Z_(e){return e.kind===174}function c_(e){return e.kind===175}function OC(e){return e.kind===176}function XO(e){return e.kind===177}function Wx(e){return e.kind===178}function f5(e){return e.kind===179}function ep(e){return e.kind===180}function Mh(e){return e.kind===181}function Qk(e){return e.kind===182}function Zk(e){return e.kind===183}function yf(e){return e.kind===184}function uK(e){return e.kind===185}function PC(e){return e.kind===186}function ew(e){return e.kind===199}function dK(e){return e.kind===187}function fK(e){return e.kind===188}function zx(e){return e.kind===189}function YO(e){return e.kind===190}function MC(e){return e.kind===191}function FC(e){return e.kind===192}function qx(e){return e.kind===193}function _5(e){return e.kind===194}function Jx(e){return e.kind===195}function Kx(e){return e.kind===196}function tw(e){return e.kind===197}function gb(e){return e.kind===198}function kg(e){return e.kind===202}function dme(e){return e.kind===201}function KMe(e){return e.kind===200}function Qm(e){return e.kind===203}function BC(e){return e.kind===204}function ms(e){return e.kind===205}function zu(e){return e.kind===206}function Is(e){return e.kind===207}function Fr(e){return e.kind===208}function fl(e){return e.kind===209}function io(e){return e.kind===210}function X1(e){return e.kind===211}function VT(e){return e.kind===212}function fme(e){return e.kind===213}function Jd(e){return e.kind===214}function Us(e){return e.kind===215}function Xs(e){return e.kind===216}function _me(e){return e.kind===217}function GC(e){return e.kind===218}function Xx(e){return e.kind===219}function UC(e){return e.kind===220}function Xv(e){return e.kind===221}function _K(e){return e.kind===222}function br(e){return e.kind===223}function VC(e){return e.kind===224}function p5(e){return e.kind===225}function m5(e){return e.kind===226}function Fh(e){return e.kind===227}function qu(e){return e.kind===228}function Fc(e){return e.kind===229}function Py(e){return e.kind===230}function $O(e){return e.kind===231}function XMe(e){return e.kind===235}function Yx(e){return e.kind===232}function nw(e){return e.kind===233}function YMe(e){return e.kind===234}function h5(e){return e.kind===356}function rw(e){return e.kind===357}function iw(e){return e.kind===236}function pme(e){return e.kind===237}function uo(e){return e.kind===238}function gc(e){return e.kind===240}function pK(e){return e.kind===239}function fu(e){return e.kind===241}function jT(e){return e.kind===242}function $Me(e){return e.kind===243}function QMe(e){return e.kind===244}function HT(e){return e.kind===245}function mK(e){return e.kind===246}function QO(e){return e.kind===247}function ZMe(e){return e.kind===248}function e3e(e){return e.kind===249}function Ip(e){return e.kind===250}function mme(e){return e.kind===251}function ZO(e){return e.kind===252}function Y1(e){return e.kind===253}function hK(e){return e.kind===254}function e8(e){return e.kind===255}function t3e(e){return e.kind===256}function Xi(e){return e.kind===257}function Ju(e){return e.kind===258}function xc(e){return e.kind===259}function Bc(e){return e.kind===260}function ud(e){return e.kind===261}function um(e){return e.kind===262}function yb(e){return e.kind===263}function $l(e){return e.kind===264}function dm(e){return e.kind===265}function t8(e){return e.kind===266}function n8(e){return e.kind===267}function _u(e){return e.kind===268}function Yc(e){return e.kind===269}function Zm(e){return e.kind===270}function hme(e){return e.kind===298}function g5(e){return e.kind===296}function gme(e){return e.kind===297}function Yv(e){return e.kind===271}function Bh(e){return e.kind===277}function My(e){return e.kind===272}function Nd(e){return e.kind===273}function Vl(e){return e.kind===274}function au(e){return e.kind===275}function tp(e){return e.kind===276}function gd(e){return e.kind===278}function n3e(e){return e.kind===279}function gK(e){return e.kind===355}function $x(e){return e.kind===360}function r3e(e){return e.kind===358}function i3e(e){return e.kind===359}function eh(e){return e.kind===280}function Fy(e){return e.kind===281}function Qx(e){return e.kind===282}function Gh(e){return e.kind===283}function Zx(e){return e.kind===284}function e2(e){return e.kind===285}function t2(e){return e.kind===286}function yme(e){return e.kind===287}function fm(e){return e.kind===288}function $1(e){return e.kind===289}function WT(e){return e.kind===290}function aw(e){return e.kind===291}function ow(e){return e.kind===292}function r8(e){return e.kind===293}function Kd(e){return e.kind===294}function jC(e){return e.kind===295}function $c(e){return e.kind===299}function u_(e){return e.kind===300}function n2(e){return e.kind===301}function Q1(e){return e.kind===302}function vme(e){return e.kind===304}function Ji(e){return e.kind===308}function yK(e){return e.kind===309}function zT(e){return e.kind===310}function qT(e){return e.kind===312}function sw(e){return e.kind===313}function vb(e){return e.kind===314}function bme(e){return e.kind===327}function Eme(e){return e.kind===328}function a3e(e){return e.kind===329}function Tme(e){return e.kind===315}function Sme(e){return e.kind===316}function HC(e){return e.kind===317}function y5(e){return e.kind===318}function vK(e){return e.kind===319}function WC(e){return e.kind===320}function v5(e){return e.kind===321}function o3e(e){return e.kind===322}function th(e){return e.kind===323}function lw(e){return e.kind===325}function Z1(e){return e.kind===326}function zC(e){return e.kind===331}function s3e(e){return e.kind===333}function xme(e){return e.kind===335}function bK(e){return e.kind===341}function EK(e){return e.kind===336}function TK(e){return e.kind===337}function SK(e){return e.kind===338}function xK(e){return e.kind===339}function b5(e){return e.kind===340}function cw(e){return e.kind===342}function AK(e){return e.kind===334}function l3e(e){return e.kind===350}function i8(e){return e.kind===343}function _m(e){return e.kind===344}function E5(e){return e.kind===345}function Ame(e){return e.kind===346}function uw(e){return e.kind===347}function kp(e){return e.kind===348}function CK(e){return e.kind===349}function c3e(e){return e.kind===330}function Cme(e){return e.kind===351}function LK(e){return e.kind===332}function T5(e){return e.kind===353}function u3e(e){return e.kind===352}function qC(e){return e.kind===354}var d3e=S({"src/compiler/factory/nodeTests.ts"(){Na()}});function a8(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function JT(e,t,r,i){if(Cs(r))return ht(e.createElementAccessExpression(t,r.expression),i);{const o=ht(yg(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return cm(o,128),o}}function IK(e,t){const r=nh.createIdentifier(e||"React");return jo(r,va(t)),r}function kK(e,t,r){if(Rd(t)){const i=kK(e,t.left,r),o=e.createIdentifier(Mr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return IK(Mr(t),r)}function wK(e,t,r,i){return t?kK(e,t,i):e.createPropertyAccessExpression(IK(r,i),"createElement")}function f3e(e,t,r,i){return t?kK(e,t,i):e.createPropertyAccessExpression(IK(r,i),"Fragment")}function Lme(e,t,r,i,o,s){const c=[r];if(i&&c.push(i),o&&o.length>0)if(i||c.push(e.createNull()),o.length>1)for(const f of o)Ku(f),c.push(f);else c.push(o[0]);return ht(e.createCallExpression(t,void 0,c),s)}function Ime(e,t,r,i,o,s,c){const d=[f3e(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(const v of o)Ku(v),d.push(v);else d.push(o[0]);return ht(e.createCallExpression(wK(e,t,i,s),void 0,d),c)}function DK(e,t,r){if(Ju(t)){const i=ds(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return ht(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{const i=ht(e.createAssignment(t,r),t);return ht(e.createExpressionStatement(i),t)}}function _3e(e,t,r){return uo(t)?e.updateBlock(t,ht(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function o8(e,t){if(Rd(t)){const r=o8(e,t.left),i=jo(ht(e.cloneNode(t.right),t.right),t.right.parent);return ht(e.createPropertyAccessExpression(r,i),t)}else return jo(ht(e.cloneNode(t),t),t.parent)}function RK(e,t){return je(t)?e.createStringLiteralFromNode(t):Cs(t)?jo(ht(e.cloneNode(t.expression),t.expression),t.expression.parent):jo(ht(e.cloneNode(t),t),t.parent)}function p3e(e,t,r,i,o){const{firstAccessor:s,getAccessor:c,setAccessor:f}=PT(t,r);if(r===s)return ht(e.createObjectDefinePropertyCall(i,RK(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:c&&ht(Wr(e.createFunctionExpression(hT(c),void 0,void 0,void 0,c.parameters,void 0,c.body),c),c),set:f&&ht(Wr(e.createFunctionExpression(hT(f),void 0,void 0,void 0,f.parameters,void 0,f.body),f),f)},!o)),s)}function m3e(e,t,r){return Wr(ht(e.createAssignment(JT(e,r,t.name,t.name),t.initializer),t),t)}function h3e(e,t,r){return Wr(ht(e.createAssignment(JT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function g3e(e,t,r){return Wr(ht(e.createAssignment(JT(e,r,t.name,t.name),Wr(ht(e.createFunctionExpression(hT(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function kme(e,t,r,i){switch(r.name&&Oi(r.name)&&D.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 174:case 175:return p3e(e,t.properties,r,i,!!t.multiLine);case 299:return m3e(e,r,i);case 300:return h3e(e,r,i);case 171:return g3e(e,r,i)}}function S5(e,t,r,i,o){const s=t.operator;D.assert(s===45||s===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const c=e.createTempVariable(i);r=e.createAssignment(c,r),ht(r,t.operand);let f=Xv(t)?e.createPrefixUnaryExpression(s,c):e.createPostfixUnaryExpression(c,s);return ht(f,t),o&&(f=e.createAssignment(o,f),ht(f,t)),r=e.createComma(r,f),ht(r,t),_K(t)&&(r=e.createComma(r,c),ht(r,t)),r}function NK(e){return(bo(e)&65536)!==0}function $v(e){return(bo(e)&32768)!==0}function x5(e){return(bo(e)&16384)!==0}function wme(e){return Ho(e.expression)&&e.expression.text==="use strict"}function OK(e){for(const t of e)if(Ap(t)){if(wme(t))return t}else break}function Dme(e){const t=tu(e);return t!==void 0&&Ap(t)&&wme(t)}function s8(e){return e.kind===223&&e.operatorToken.kind===27}function dw(e){return s8(e)||rw(e)}function fw(e){return Jd(e)&&fr(e)&&!!I1(e)}function A5(e){const t=Pv(e);return D.assertIsDefined(t),t}function C5(e,t=15){switch(e.kind){case 214:return t&16&&fw(e)?!1:(t&1)!==0;case 213:case 231:case 230:case 235:return(t&2)!==0;case 232:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function Cu(e,t=15){for(;C5(e,t);)e=e.expression;return e}function Rme(e,t=15){let r=e.parent;for(;C5(r,t);)r=r.parent,D.assert(r);return r}function y3e(e){return Cu(e,6)}function Ku(e){return QJ(e,!0)}function l8(e){const t=Cl(e,Ji),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Nme(e){const t=Cl(e,Ji),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function PK(e,t,r,i,o,s,c){if(i.importHelpers&&bx(r,i)){let f;const d=du(i);if(d>=5&&d<=99||r.impliedNodeFormat===99){const v=M7(r);if(v){const h=[];for(const E of v)if(!E.scoped){const C=E.importName;C&&v_(h,C)}if(kt(h)){h.sort(Uu),f=e.createNamedImports(zt(h,L=>b3(r,L)?e.createImportSpecifier(!1,void 0,e.createIdentifier(L)):e.createImportSpecifier(!1,e.createIdentifier(L),t.getUnscopedHelperName(L))));const E=Cl(r,Ji),C=cd(E);C.externalHelpers=!0}}}else{const v=Ome(e,r,i,o,s||c);v&&(f=e.createNamespaceImport(v))}if(f){const v=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,f),e.createStringLiteral(mb),void 0);return Bx(v,2),v}}}function Ome(e,t,r,i,o){if(r.importHelpers&&bx(t,r)){const s=l8(t);if(s)return s;const c=du(r);let f=(i||$_(r)&&o)&&c!==4&&(c<5||t.impliedNodeFormat===1);if(!f){const d=M7(t);if(d){for(const v of d)if(!v.scoped){f=!0;break}}}if(f){const d=Cl(t,Ji),v=cd(d);return v.externalHelpersModuleName||(v.externalHelpersModuleName=e.createUniqueName(mb))}}}function JC(e,t,r){const i=lC(t);if(i&&!xx(t)&&!T3(t)){const o=i.name;return Ll(o)?o:e.createIdentifier(N1(r,o)||Mr(o))}if(t.kind===269&&t.importClause||t.kind===275&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function r2(e,t,r,i,o,s){const c=sC(t);if(c&&Ho(c))return b3e(t,i,e,o,s)||v3e(e,c,r)||e.cloneNode(c)}function v3e(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function c8(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Ks(i))return e.createStringLiteral(kq(r,t.fileName))}}function b3e(e,t,r,i,o){return c8(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function u8(e){if(_N(e))return e.initializer;if($c(e)){const t=e.initializer;return ld(t,!0)?t.right:void 0}if(u_(e))return e.objectAssignmentInitializer;if(ld(e,!0))return e.right;if(Fh(e))return u8(e.expression)}function Qv(e){if(_N(e))return e.name;if(Ly(e)){switch(e.kind){case 299:return Qv(e.initializer);case 300:return e.name;case 301:return Qv(e.expression)}return}return ld(e,!0)?Qv(e.left):Fh(e)?Qv(e.expression):e}function L5(e){switch(e.kind){case 166:case 205:return e.dotDotDotToken;case 227:case 301:return e}}function MK(e){const t=I5(e);return D.assert(!!t||n2(e),"Invalid property name for binding element."),t}function I5(e){switch(e.kind){case 205:if(e.propertyName){const r=e.propertyName;return Oi(r)?D.failBadSyntaxKind(r):Cs(r)&&Pme(r.expression)?r.expression:r}break;case 299:if(e.name){const r=e.name;return Oi(r)?D.failBadSyntaxKind(r):Cs(r)&&Pme(r.expression)?r.expression:r}break;case 301:return e.name&&Oi(e.name)?D.failBadSyntaxKind(e.name):e.name}const t=Qv(e);if(t&&El(t))return t}function Pme(e){const t=e.kind;return t===10||t===8}function KC(e){switch(e.kind){case 203:case 204:case 206:return e.elements;case 207:return e.properties}}function FK(e){if(e){let t=e;for(;;){if(je(t)||!t.body)return je(t)?t:t.name;t=t.body}}}function E3e(e){const t=e.kind;return t===173||t===175}function Mme(e){const t=e.kind;return t===173||t===174||t===175}function BK(e){const t=e.kind;return t===299||t===300||t===259||t===173||t===178||t===172||t===279||t===240||t===261||t===262||t===263||t===264||t===268||t===269||t===267||t===275||t===274}function Fme(e){const t=e.kind;return t===172||t===299||t===300||t===279||t===267}function Bme(e){return Kv(e)||KO(e)}function Gme(e){return je(e)||_5(e)}function Ume(e){return ome(e)||sK(e)||lK(e)}function Vme(e){return Kv(e)||sK(e)||lK(e)}function jme(e){return je(e)||Ho(e)}function T3e(e){const t=e.kind;return t===104||t===110||t===95||yT(e)||Xv(e)}function S3e(e){return e===42}function x3e(e){return e===41||e===43||e===44}function A3e(e){return S3e(e)||x3e(e)}function C3e(e){return e===39||e===40}function L3e(e){return C3e(e)||A3e(e)}function I3e(e){return e===47||e===48||e===49}function k3e(e){return I3e(e)||L3e(e)}function w3e(e){return e===29||e===32||e===31||e===33||e===102||e===101}function D3e(e){return w3e(e)||k3e(e)}function R3e(e){return e===34||e===36||e===35||e===37}function N3e(e){return R3e(e)||D3e(e)}function O3e(e){return e===50||e===51||e===52}function P3e(e){return O3e(e)||N3e(e)}function M3e(e){return e===55||e===56}function F3e(e){return M3e(e)||P3e(e)}function B3e(e){return e===60||F3e(e)||wy(e)}function G3e(e){return B3e(e)||e===27}function Hme(e){return G3e(e.kind)}function k5(e,t,r,i,o,s){const c=new Xme(e,t,r,i,o,s);return f;function f(d,v){const h={value:void 0},E=[R5.enter],C=[d],L=[void 0];let I=0;for(;E[I]!==R5.done;)I=E[I](c,I,E,C,L,h,v);return D.assertEqual(I,0),h.value}}function Wme(e){return e===93||e===88}function GK(e){const t=e.kind;return Wme(t)}function U3e(e){const t=e.kind;return Cy(t)&&!Wme(t)}function zme(e,t){if(t!==void 0)return t.length===0?t:ht(e.createNodeArray([],t.hasTrailingComma),t)}function w5(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let o=e,s=o.original;for(;s;){o=s;const c=(t=o.emitNode)==null?void 0:t.autoGenerate;if(yg(o)&&(c===void 0||c.flags&4&&c.id!==i))break;s=o.original}return o}return e}function XC(e,t){return typeof e=="object"?KT(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function V3e(e,t){return typeof e=="string"?e:j3e(e,D.checkDefined(t))}function j3e(e,t){return hx(e)?t(e).slice(1):Ll(e)?t(e):Oi(e)?e.escapedText.slice(1):Mr(e)}function KT(e,t,r,i,o){return t=XC(t,o),i=XC(i,o),r=V3e(r,o),`${e?"#":""}${t}${r}${i}`}function UK(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function qme(e,t,r,i){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Jme(e,t,r,i){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function D5(e){let t=e.expression;for(;;){if(t=Cu(t),rw(t)){t=Jo(t.elements);continue}if(s8(t)){t=t.right;continue}if(ld(t,!0)&&Ll(t.left))return t;break}}function H3e(e){return Jd(e)&&tl(e)&&!e.emitNode}function d8(e,t){if(H3e(e))d8(e.expression,t);else if(s8(e))d8(e.left,t),d8(e.right,t);else if(rw(e))for(const r of e.elements)d8(r,t);else t.push(e)}function Kme(e){const t=[];return d8(e,t),t}function f8(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of KC(e)){const r=Qv(t);if(r&&ZI(r)&&(r.transformFlags&65536||r.transformFlags&128&&f8(r)))return!0}return!1}var R5,Xme,W3e=S({"src/compiler/factory/utilities.ts"(){Na(),(e=>{function t(h,E,C,L,I,O,k){const G=E>0?I[E-1]:void 0;return D.assertEqual(C[E],t),I[E]=h.onEnter(L[E],G,k),C[E]=f(h,t),E}e.enter=t;function r(h,E,C,L,I,O,k){D.assertEqual(C[E],r),D.assertIsDefined(h.onLeft),C[E]=f(h,r);const G=h.onLeft(L[E].left,I[E],L[E]);return G?(v(E,L,G),d(E,C,L,I,G)):E}e.left=r;function i(h,E,C,L,I,O,k){return D.assertEqual(C[E],i),D.assertIsDefined(h.onOperator),C[E]=f(h,i),h.onOperator(L[E].operatorToken,I[E],L[E]),E}e.operator=i;function o(h,E,C,L,I,O,k){D.assertEqual(C[E],o),D.assertIsDefined(h.onRight),C[E]=f(h,o);const G=h.onRight(L[E].right,I[E],L[E]);return G?(v(E,L,G),d(E,C,L,I,G)):E}e.right=o;function s(h,E,C,L,I,O,k){D.assertEqual(C[E],s),C[E]=f(h,s);const G=h.onExit(L[E],I[E]);if(E>0){if(E--,h.foldState){const V=C[E]===s?"right":"left";I[E]=h.foldState(I[E],G,V)}}else O.value=G;return E}e.exit=s;function c(h,E,C,L,I,O,k){return D.assertEqual(C[E],c),E}e.done=c;function f(h,E){switch(E){case t:if(h.onLeft)return r;case r:if(h.onOperator)return i;case i:if(h.onRight)return o;case o:return s;case s:return c;case c:return c;default:D.fail("Invalid state")}}e.nextState=f;function d(h,E,C,L,I){return h++,E[h]=t,C[h]=I,L[h]=void 0,h}function v(h,E,C){if(D.shouldAssert(2))for(;h>=0;)D.assert(E[h]!==C,"Circular traversal detected."),h--}})(R5||(R5={})),Xme=class{constructor(e,t,r,i,o,s){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=o,this.foldState=s}}}});function ht(e,t){return t?Ym(e,t.pos,t.end):e}function np(e){const t=e.kind;return t===165||t===166||t===168||t===169||t===170||t===171||t===173||t===174||t===175||t===178||t===182||t===215||t===216||t===228||t===240||t===259||t===260||t===261||t===262||t===263||t===264||t===268||t===269||t===274||t===275}function i2(e){const t=e.kind;return t===166||t===169||t===171||t===174||t===175||t===228||t===260}var z3e=S({"src/compiler/factory/utilitiesPublic.ts"(){Na()}});function Yt(e,t){return t&&e(t)}function Ri(e,t,r){if(r){if(t)return t(r);for(const i of r){const o=e(i);if(o)return o}}}function VK(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function _8(e){return Je(e.statements,q3e)||J3e(e)}function q3e(e){return np(e)&&K3e(e,93)||_u(e)&&eh(e.moduleReference)||Yc(e)||Vl(e)||au(e)?e:void 0}function J3e(e){return e.flags&4194304?Yme(e):void 0}function Yme(e){return X3e(e)?e:Pa(e,Yme)}function K3e(e,t){return kt(e.modifiers,r=>r.kind===t)}function X3e(e){return nw(e)&&e.keywordToken===100&&e.name.escapedText==="meta"}function $me(e,t,r){return Ri(t,r,e.typeParameters)||Ri(t,r,e.parameters)||Yt(t,e.type)}function Qme(e,t,r){return Ri(t,r,e.types)}function Zme(e,t,r){return Yt(t,e.type)}function ehe(e,t,r){return Ri(t,r,e.elements)}function the(e,t,r){return Yt(t,e.expression)||Yt(t,e.questionDotToken)||Ri(t,r,e.typeArguments)||Ri(t,r,e.arguments)}function nhe(e,t,r){return Ri(t,r,e.statements)}function rhe(e,t,r){return Yt(t,e.label)}function ihe(e,t,r){return Ri(t,r,e.modifiers)||Yt(t,e.name)||Ri(t,r,e.typeParameters)||Ri(t,r,e.heritageClauses)||Ri(t,r,e.members)}function ahe(e,t,r){return Ri(t,r,e.elements)}function ohe(e,t,r){return Yt(t,e.propertyName)||Yt(t,e.name)}function she(e,t,r){return Yt(t,e.tagName)||Ri(t,r,e.typeArguments)||Yt(t,e.attributes)}function YC(e,t,r){return Yt(t,e.type)}function lhe(e,t,r){return Yt(t,e.tagName)||(e.isNameFirst?Yt(t,e.name)||Yt(t,e.typeExpression):Yt(t,e.typeExpression)||Yt(t,e.name))||(typeof e.comment=="string"?void 0:Ri(t,r,e.comment))}function $C(e,t,r){return Yt(t,e.tagName)||Yt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Ri(t,r,e.comment))}function jK(e,t,r){return Yt(t,e.name)}function a2(e,t,r){return Yt(t,e.tagName)||(typeof e.comment=="string"?void 0:Ri(t,r,e.comment))}function Y3e(e,t,r){return Yt(t,e.expression)}function Pa(e,t,r){if(e===void 0||e.kind<=162)return;const i=yhe[e.kind];return i===void 0?void 0:i(e,t,r)}function p8(e,t,r){const i=che(e),o=[];for(;o.length<i.length;)o.push(e);for(;i.length!==0;){const s=i.pop(),c=o.pop();if(Va(s)){if(r){const f=r(s,c);if(f){if(f==="skip")continue;return f}}for(let f=s.length-1;f>=0;--f)i.push(s[f]),o.push(c)}else{const f=t(s,c);if(f){if(f==="skip")continue;return f}if(s.kind>=163)for(const d of che(s))i.push(d),o.push(s)}}}function che(e){const t=[];return Pa(e,r,r),t;function r(i){t.unshift(i)}}function uhe(e){e.externalModuleIndicator=_8(e)}function m8(e,t,r,i=!1,o){var s,c;(s=Si)==null||s.push(Si.Phase.Parse,"createSourceFile",{path:e},!0),ll("beforeParse");let f;tm.logStartParseSourceFile(e);const{languageVersion:d,setExternalModuleIndicator:v,impliedNodeFormat:h}=typeof r=="object"?r:{languageVersion:r};if(d===100)f=Zv.parseSourceFile(e,t,d,void 0,i,6,lo);else{const E=h===void 0?v:C=>(C.impliedNodeFormat=h,(v||uhe)(C));f=Zv.parseSourceFile(e,t,d,void 0,i,o,E)}return tm.logStopParseSourceFile(),ll("afterParse"),n_("Parse","beforeParse","afterParse"),(c=Si)==null||c.pop(),f}function o2(e,t){return Zv.parseIsolatedEntityName(e,t)}function h8(e,t){return Zv.parseJsonText(e,t)}function rc(e){return e.externalModuleIndicator!==void 0}function HK(e,t,r,i=!1){const o=N5.updateSourceFile(e,t,r,i);return o.flags|=e.flags&6291456,o}function dhe(e,t,r){const i=Zv.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&Zv.fixupParentReferences(i.jsDoc),i}function $3e(e,t,r){return Zv.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function yd(e){return Ic(e,w7)||hc(e,".ts")&&bu(Eu(e),".d.")}function Q3e(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,_.resolution_mode_should_be_either_require_or_import)}}function WK(e,t){const r=[];for(const i of xh(t,0)||rt){const o=t.substring(i.pos,i.end);e7e(r,i,o)}e.pragmas=new Map;for(const i of r){if(e.pragmas.has(i.name)){const o=e.pragmas.get(i.name);o instanceof Array?o.push(i.args):e.pragmas.set(i.name,[o,i.args]);continue}e.pragmas.set(i.name,i.args)}}function zK(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{const o=e.referencedFiles,s=e.typeReferenceDirectives,c=e.libReferenceDirectives;Je(NR(r),f=>{const{types:d,lib:v,path:h,["resolution-mode"]:E}=f.arguments;if(f.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(d){const C=Q3e(E,d.pos,d.end,t);s.push(Ti({pos:d.pos,end:d.end,fileName:d.value},C?{resolutionMode:C}:{}))}else v?c.push({pos:v.pos,end:v.end,fileName:v.value}):h?o.push({pos:h.pos,end:h.end,fileName:h.value}):t(f.range.pos,f.range.end-f.range.pos,_.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=zt(NR(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(const o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,_.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{Je(NR(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:D.fail("Unhandled pragma kind")}})}function Z3e(e){if(O5.has(e))return O5.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return O5.set(e,t),t}function e7e(e,t,r){const i=t.kind===2&&vhe.exec(r);if(i){const s=i[1].toLowerCase(),c=HR[s];if(!c||!(c.kind&1))return;if(c.args){const f={};for(const d of c.args){const h=Z3e(d.name).exec(r);if(!h&&!d.optional)return;if(h){const E=h[2]||h[3];if(d.captureSpan){const C=t.pos+h.index+h[1].length+1;f[d.name]={value:E,pos:C,end:C+E.length}}else f[d.name]=E}}e.push({name:s,args:{arguments:f,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}const o=t.kind===2&&bhe.exec(r);if(o)return fhe(e,t,2,o);if(t.kind===3){const s=/@(\S+)(\s+.*)?$/gim;let c;for(;c=s.exec(r);)fhe(e,t,4,c)}}function fhe(e,t,r,i){if(!i)return;const o=i[1].toLowerCase(),s=HR[o];if(!s||!(s.kind&r))return;const c=i[2],f=t7e(s,c);f!=="fail"&&e.push({name:o,args:{arguments:f,range:t}})}function t7e(e,t){if(!t)return{};if(!e.args)return{};const r=S1(t).split(/\s+/),i={};for(let o=0;o<e.args.length;o++){const s=e.args[o];if(!r[o]&&!s.optional)return"fail";if(s.captureSpan)return D.fail("Capture spans not yet implemented for non-xml pragmas");i[s.name]=r[o]}return i}function bb(e,t){return e.kind!==t.kind?!1:e.kind===79?e.escapedText===t.escapedText:e.kind===108?!0:e.name.escapedText===t.name.escapedText&&bb(e.expression,t.expression)}var _he,phe,mhe,hhe,ghe,qK,nh,yhe,Zv,N5,O5,vhe,bhe,n7e=S({"src/compiler/parser.ts"(){Na(),Na(),A1(),qK={createBaseSourceFileNode:e=>new(ghe||(ghe=Kc.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(mhe||(mhe=Kc.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(hhe||(hhe=Kc.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(phe||(phe=Kc.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(_he||(_he=Kc.getNodeConstructor()))(e,-1,-1)},nh=PO(1,qK),yhe={163:function(t,r,i){return Yt(r,t.left)||Yt(r,t.right)},165:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.constraint)||Yt(r,t.default)||Yt(r,t.expression)},300:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.equalsToken)||Yt(r,t.objectAssignmentInitializer)},301:function(t,r,i){return Yt(r,t.expression)},166:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.dotDotDotToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)||Yt(r,t.initializer)},169:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.type)||Yt(r,t.initializer)},168:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)||Yt(r,t.initializer)},299:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.initializer)},257:function(t,r,i){return Yt(r,t.name)||Yt(r,t.exclamationToken)||Yt(r,t.type)||Yt(r,t.initializer)},205:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.propertyName)||Yt(r,t.name)||Yt(r,t.initializer)},178:function(t,r,i){return Ri(r,i,t.modifiers)||Ri(r,i,t.typeParameters)||Ri(r,i,t.parameters)||Yt(r,t.type)},182:function(t,r,i){return Ri(r,i,t.modifiers)||Ri(r,i,t.typeParameters)||Ri(r,i,t.parameters)||Yt(r,t.type)},181:function(t,r,i){return Ri(r,i,t.modifiers)||Ri(r,i,t.typeParameters)||Ri(r,i,t.parameters)||Yt(r,t.type)},176:$me,177:$me,171:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Ri(r,i,t.typeParameters)||Ri(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},170:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Ri(r,i,t.typeParameters)||Ri(r,i,t.parameters)||Yt(r,t.type)},173:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Ri(r,i,t.typeParameters)||Ri(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},174:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Ri(r,i,t.typeParameters)||Ri(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},175:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Ri(r,i,t.typeParameters)||Ri(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},259:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||Ri(r,i,t.typeParameters)||Ri(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},215:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||Ri(r,i,t.typeParameters)||Ri(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},216:function(t,r,i){return Ri(r,i,t.modifiers)||Ri(r,i,t.typeParameters)||Ri(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.equalsGreaterThanToken)||Yt(r,t.body)},172:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.body)},180:function(t,r,i){return Yt(r,t.typeName)||Ri(r,i,t.typeArguments)},179:function(t,r,i){return Yt(r,t.assertsModifier)||Yt(r,t.parameterName)||Yt(r,t.type)},183:function(t,r,i){return Yt(r,t.exprName)||Ri(r,i,t.typeArguments)},184:function(t,r,i){return Ri(r,i,t.members)},185:function(t,r,i){return Yt(r,t.elementType)},186:function(t,r,i){return Ri(r,i,t.elements)},189:Qme,190:Qme,191:function(t,r,i){return Yt(r,t.checkType)||Yt(r,t.extendsType)||Yt(r,t.trueType)||Yt(r,t.falseType)},192:function(t,r,i){return Yt(r,t.typeParameter)},202:function(t,r,i){return Yt(r,t.argument)||Yt(r,t.assertions)||Yt(r,t.qualifier)||Ri(r,i,t.typeArguments)},298:function(t,r,i){return Yt(r,t.assertClause)},193:Zme,195:Zme,196:function(t,r,i){return Yt(r,t.objectType)||Yt(r,t.indexType)},197:function(t,r,i){return Yt(r,t.readonlyToken)||Yt(r,t.typeParameter)||Yt(r,t.nameType)||Yt(r,t.questionToken)||Yt(r,t.type)||Ri(r,i,t.members)},198:function(t,r,i){return Yt(r,t.literal)},199:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)},203:ehe,204:ehe,206:function(t,r,i){return Ri(r,i,t.elements)},207:function(t,r,i){return Ri(r,i,t.properties)},208:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.questionDotToken)||Yt(r,t.name)},209:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.questionDotToken)||Yt(r,t.argumentExpression)},210:the,211:the,212:function(t,r,i){return Yt(r,t.tag)||Yt(r,t.questionDotToken)||Ri(r,i,t.typeArguments)||Yt(r,t.template)},213:function(t,r,i){return Yt(r,t.type)||Yt(r,t.expression)},214:function(t,r,i){return Yt(r,t.expression)},217:function(t,r,i){return Yt(r,t.expression)},218:function(t,r,i){return Yt(r,t.expression)},219:function(t,r,i){return Yt(r,t.expression)},221:function(t,r,i){return Yt(r,t.operand)},226:function(t,r,i){return Yt(r,t.asteriskToken)||Yt(r,t.expression)},220:function(t,r,i){return Yt(r,t.expression)},222:function(t,r,i){return Yt(r,t.operand)},223:function(t,r,i){return Yt(r,t.left)||Yt(r,t.operatorToken)||Yt(r,t.right)},231:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.type)},232:function(t,r,i){return Yt(r,t.expression)},235:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.type)},233:function(t,r,i){return Yt(r,t.name)},224:function(t,r,i){return Yt(r,t.condition)||Yt(r,t.questionToken)||Yt(r,t.whenTrue)||Yt(r,t.colonToken)||Yt(r,t.whenFalse)},227:function(t,r,i){return Yt(r,t.expression)},238:nhe,265:nhe,308:function(t,r,i){return Ri(r,i,t.statements)||Yt(r,t.endOfFileToken)},240:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.declarationList)},258:function(t,r,i){return Ri(r,i,t.declarations)},241:function(t,r,i){return Yt(r,t.expression)},242:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.thenStatement)||Yt(r,t.elseStatement)},243:function(t,r,i){return Yt(r,t.statement)||Yt(r,t.expression)},244:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.statement)},245:function(t,r,i){return Yt(r,t.initializer)||Yt(r,t.condition)||Yt(r,t.incrementor)||Yt(r,t.statement)},246:function(t,r,i){return Yt(r,t.initializer)||Yt(r,t.expression)||Yt(r,t.statement)},247:function(t,r,i){return Yt(r,t.awaitModifier)||Yt(r,t.initializer)||Yt(r,t.expression)||Yt(r,t.statement)},248:rhe,249:rhe,250:function(t,r,i){return Yt(r,t.expression)},251:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.statement)},252:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.caseBlock)},266:function(t,r,i){return Ri(r,i,t.clauses)},292:function(t,r,i){return Yt(r,t.expression)||Ri(r,i,t.statements)},293:function(t,r,i){return Ri(r,i,t.statements)},253:function(t,r,i){return Yt(r,t.label)||Yt(r,t.statement)},254:function(t,r,i){return Yt(r,t.expression)},255:function(t,r,i){return Yt(r,t.tryBlock)||Yt(r,t.catchClause)||Yt(r,t.finallyBlock)},295:function(t,r,i){return Yt(r,t.variableDeclaration)||Yt(r,t.block)},167:function(t,r,i){return Yt(r,t.expression)},260:ihe,228:ihe,261:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Ri(r,i,t.typeParameters)||Ri(r,i,t.heritageClauses)||Ri(r,i,t.members)},262:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Ri(r,i,t.typeParameters)||Yt(r,t.type)},263:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Ri(r,i,t.members)},302:function(t,r,i){return Yt(r,t.name)||Yt(r,t.initializer)},264:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.body)},268:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.moduleReference)},269:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.importClause)||Yt(r,t.moduleSpecifier)||Yt(r,t.assertClause)},270:function(t,r,i){return Yt(r,t.name)||Yt(r,t.namedBindings)},296:function(t,r,i){return Ri(r,i,t.elements)},297:function(t,r,i){return Yt(r,t.name)||Yt(r,t.value)},267:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.name)},271:function(t,r,i){return Yt(r,t.name)},277:function(t,r,i){return Yt(r,t.name)},272:ahe,276:ahe,275:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.exportClause)||Yt(r,t.moduleSpecifier)||Yt(r,t.assertClause)},273:ohe,278:ohe,274:function(t,r,i){return Ri(r,i,t.modifiers)||Yt(r,t.expression)},225:function(t,r,i){return Yt(r,t.head)||Ri(r,i,t.templateSpans)},236:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.literal)},200:function(t,r,i){return Yt(r,t.head)||Ri(r,i,t.templateSpans)},201:function(t,r,i){return Yt(r,t.type)||Yt(r,t.literal)},164:function(t,r,i){return Yt(r,t.expression)},294:function(t,r,i){return Ri(r,i,t.types)},230:function(t,r,i){return Yt(r,t.expression)||Ri(r,i,t.typeArguments)},280:function(t,r,i){return Yt(r,t.expression)},279:function(t,r,i){return Ri(r,i,t.modifiers)},357:function(t,r,i){return Ri(r,i,t.elements)},281:function(t,r,i){return Yt(r,t.openingElement)||Ri(r,i,t.children)||Yt(r,t.closingElement)},285:function(t,r,i){return Yt(r,t.openingFragment)||Ri(r,i,t.children)||Yt(r,t.closingFragment)},282:she,283:she,289:function(t,r,i){return Ri(r,i,t.properties)},288:function(t,r,i){return Yt(r,t.name)||Yt(r,t.initializer)},290:function(t,r,i){return Yt(r,t.expression)},291:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.expression)},284:function(t,r,i){return Yt(r,t.tagName)},187:YC,188:YC,312:YC,318:YC,317:YC,319:YC,321:YC,320:function(t,r,i){return Ri(r,i,t.parameters)||Yt(r,t.type)},323:function(t,r,i){return(typeof t.comment=="string"?void 0:Ri(r,i,t.comment))||Ri(r,i,t.tags)},350:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.name)||(typeof t.comment=="string"?void 0:Ri(r,i,t.comment))},313:function(t,r,i){return Yt(r,t.name)},314:function(t,r,i){return Yt(r,t.left)||Yt(r,t.right)},344:lhe,351:lhe,333:function(t,r,i){return Yt(r,t.tagName)||(typeof t.comment=="string"?void 0:Ri(r,i,t.comment))},332:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.class)||(typeof t.comment=="string"?void 0:Ri(r,i,t.comment))},331:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.class)||(typeof t.comment=="string"?void 0:Ri(r,i,t.comment))},348:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.constraint)||Ri(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Ri(r,i,t.comment))},349:function(t,r,i){return Yt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===312?Yt(r,t.typeExpression)||Yt(r,t.fullName)||(typeof t.comment=="string"?void 0:Ri(r,i,t.comment)):Yt(r,t.fullName)||Yt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Ri(r,i,t.comment)))},341:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.fullName)||Yt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Ri(r,i,t.comment))},345:$C,347:$C,346:$C,343:$C,353:$C,352:$C,342:$C,326:function(t,r,i){return Je(t.typeParameters,r)||Je(t.parameters,r)||Yt(r,t.type)},327:jK,328:jK,329:jK,325:function(t,r,i){return Je(t.jsDocPropertyTags,r)},330:a2,335:a2,336:a2,337:a2,338:a2,339:a2,334:a2,340:a2,356:Y3e},(e=>{var t=Sy(99,!0),r=20480,i,o,s,c,f;function d(z){return tt++,z}var v={createBaseSourceFileNode:z=>d(new f(z,0,0)),createBaseIdentifierNode:z=>d(new s(z,0,0)),createBasePrivateIdentifierNode:z=>d(new c(z,0,0)),createBaseTokenNode:z=>d(new o(z,0,0)),createBaseNode:z=>d(new i(z,0,0))},h=PO(11,v),{createNodeArray:E,createNumericLiteral:C,createStringLiteral:L,createLiteralLikeNode:I,createIdentifier:O,createPrivateIdentifier:k,createToken:G,createArrayLiteralExpression:V,createObjectLiteralExpression:H,createPropertyAccessExpression:ne,createPropertyAccessChain:Y,createElementAccessExpression:$,createElementAccessChain:M,createCallExpression:de,createCallChain:re,createNewExpression:be,createParenthesizedExpression:ae,createBlock:W,createVariableStatement:ce,createExpressionStatement:me,createIfStatement:Ee,createWhileStatement:xe,createForStatement:te,createForOfStatement:Qe,createVariableDeclaration:Ve,createVariableDeclarationList:Ge}=h,ze,Oe,Me,Ye,We,Fe,st,Ct,Et,Vt,tt,at,on,Qt,Pn,Hn,kn=!0,Zt=!1;function _r(z,Te,$e,Tt,Gt=!1,Cn,Br){var bi;if(Cn=v7(z,Cn),Cn===6){const Di=Qi(z,Te,$e,Tt,Gt);return b8(Di,(bi=Di.statements[0])==null?void 0:bi.expression,Di.parseDiagnostics,!1,void 0,void 0),Di.referencedFiles=rt,Di.typeReferenceDirectives=rt,Di.libReferenceDirectives=rt,Di.amdDependencies=rt,Di.hasNoDefaultLib=!1,Di.pragmas=SM,Di}Zi(z,Te,$e,Tt,Cn);const Li=At($e,Gt,Cn,Br||uhe);return Or(),Li}e.parseSourceFile=_r;function wi(z,Te){Zi("",z,Te,void 0,1),ft();const $e=Qo(!0),Tt=q()===1&&!st.length;return Or(),Tt?$e:void 0}e.parseIsolatedEntityName=wi;function Qi(z,Te,$e=2,Tt,Gt=!1){Zi(z,Te,$e,Tt,6),Oe=Hn,ft();const Cn=ee();let Br,bi;if(q()===1)Br=Ys([],Cn,Cn),bi=dc();else{let Ma;for(;q()!==1;){let is;switch(q()){case 22:is=Zy();break;case 110:case 95:case 104:is=dc();break;case 40:Xr(()=>ft()===8&&ft()!==58)?is=IS():is=oc();break;case 8:case 10:if(Xr(()=>ft()!==58)){is=La();break}default:is=oc();break}Ma&&Va(Ma)?Ma.push(is):Ma?Ma=[Ma,is]:(Ma=is,q()!==1&&mt(_.Unexpected_token))}const ks=Va(Ma)?nn(V(Ma),Cn):D.checkDefined(Ma),ko=me(ks);nn(ko,Cn),Br=Ys([ko],Cn),bi=ou(1,_.Unexpected_token)}const Li=Mi(z,2,6,!1,Br,bi,Oe,lo);Gt&&cr(Li),Li.nodeCount=tt,Li.identifierCount=on,Li.identifiers=at,Li.parseDiagnostics=Ox(st,Li),Ct&&(Li.jsDocDiagnostics=Ox(Ct,Li));const Di=Li;return Or(),Di}e.parseJsonText=Qi;function Zi(z,Te,$e,Tt,Gt){switch(i=Kc.getNodeConstructor(),o=Kc.getTokenConstructor(),s=Kc.getIdentifierConstructor(),c=Kc.getPrivateIdentifierConstructor(),f=Kc.getSourceFileConstructor(),ze=Ko(z),Me=Te,Ye=$e,Et=Tt,We=Gt,Fe=gO(Gt),st=[],Qt=0,at=new Map,on=0,tt=0,Oe=0,kn=!0,We){case 1:case 2:Hn=262144;break;case 6:Hn=67371008;break;default:Hn=0;break}Zt=!1,t.setText(Me),t.setOnError(Pe),t.setScriptTarget(Ye),t.setLanguageVariant(Fe)}function Or(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),Me=void 0,Ye=void 0,Et=void 0,We=void 0,Fe=void 0,Oe=0,st=void 0,Ct=void 0,Qt=0,at=void 0,Pn=void 0,kn=!0}function At(z,Te,$e,Tt){const Gt=yd(ze);Gt&&(Hn|=16777216),Oe=Hn,ft();const Cn=oe(0,qf);D.assert(q()===1);const Br=un(dc()),bi=Mi(ze,z,$e,Gt,Cn,Br,Oe,Tt);return WK(bi,Me),zK(bi,Li),bi.commentDirectives=t.getCommentDirectives(),bi.nodeCount=tt,bi.identifierCount=on,bi.identifiers=at,bi.parseDiagnostics=Ox(st,bi),Ct&&(bi.jsDocDiagnostics=Ox(Ct,bi)),Te&&cr(bi),bi;function Li(Di,Ma,ks){st.push(TC(ze,Di,Ma,ks))}}function vn(z,Te){return Te?un(z):z}let Ht=!1;function un(z){D.assert(!z.jsDoc);const Te=pa(eq(z,Me),$e=>$2.parseJSDocComment(z,$e.pos,$e.end-$e.pos));return Te.length&&(z.jsDoc=Te),Ht&&(Ht=!1,z.flags|=268435456),z}function ir(z){const Te=Et,$e=N5.createSyntaxCursor(z);Et={currentNode:Ma};const Tt=[],Gt=st;st=[];let Cn=0,Br=Li(z.statements,0);for(;Br!==-1;){const ks=z.statements[Cn],ko=z.statements[Br];Ai(Tt,z.statements,Cn,Br),Cn=Di(z.statements,Br);const is=mi(Gt,jp=>jp.start>=ks.pos),Ud=is>=0?mi(Gt,jp=>jp.start>=ko.pos,is):-1;is>=0&&Ai(st,Gt,is,Ud>=0?Ud:void 0),Wi(()=>{const jp=Hn;for(Hn|=32768,t.setTextPos(ko.pos),ft();q()!==1;){const Tm=t.getStartPos(),ty=ut(0,qf);if(Tt.push(ty),Tm===t.getStartPos()&&ft(),Cn>=0){const M_=z.statements[Cn];if(ty.end===M_.pos)break;ty.end>M_.pos&&(Cn=Di(z.statements,Cn+1))}}Hn=jp},2),Br=Cn>=0?Li(z.statements,Cn):-1}if(Cn>=0){const ks=z.statements[Cn];Ai(Tt,z.statements,Cn);const ko=mi(Gt,is=>is.start>=ks.pos);ko>=0&&Ai(st,Gt,ko)}return Et=Te,h.updateSourceFile(z,ht(E(Tt),z.statements));function bi(ks){return!(ks.flags&32768)&&!!(ks.transformFlags&67108864)}function Li(ks,ko){for(let is=ko;is<ks.length;is++)if(bi(ks[is]))return is;return-1}function Di(ks,ko){for(let is=ko;is<ks.length;is++)if(!bi(ks[is]))return is;return-1}function Ma(ks){const ko=$e.currentNode(ks);return kn&&ko&&bi(ko)&&(ko.intersectsChange=!0),ko}}function cr(z){Jv(z,!0)}e.fixupParentReferences=cr;function Mi(z,Te,$e,Tt,Gt,Cn,Br,bi){let Li=h.createSourceFile(Gt,Cn,Br);return Uk(Li,0,Me.length),Di(Li),!Tt&&rc(Li)&&Li.transformFlags&67108864&&(Li=ir(Li),Di(Li)),Li;function Di(Ma){Ma.text=Me,Ma.bindDiagnostics=[],Ma.bindSuggestionDiagnostics=void 0,Ma.languageVersion=Te,Ma.fileName=z,Ma.languageVariant=gO($e),Ma.isDeclarationFile=Tt,Ma.scriptKind=$e,bi(Ma),Ma.setExternalModuleIndicator=bi}}function vi(z,Te){z?Hn|=Te:Hn&=~Te}function Nn(z){vi(z,4096)}function rn(z){vi(z,8192)}function Mn(z){vi(z,16384)}function Ar(z){vi(z,32768)}function Hr(z,Te){const $e=z&Hn;if($e){vi(!1,$e);const Tt=Te();return vi(!0,$e),Tt}return Te()}function we(z,Te){const $e=z&~Hn;if($e){vi(!0,$e);const Tt=Te();return vi(!1,$e),Tt}return Te()}function yt(z){return Hr(4096,z)}function Nt(z){return we(4096,z)}function Ce(z){return Hr(65536,z)}function pt(z){return we(65536,z)}function pe(z){return we(8192,z)}function ie(z){return we(16384,z)}function he(z){return we(32768,z)}function j(z){return Hr(32768,z)}function He(z){return we(40960,z)}function Ze(z){return Hr(40960,z)}function Xe(z){return(Hn&z)!==0}function Ut(){return Xe(8192)}function ln(){return Xe(4096)}function Sn(){return Xe(65536)}function Er(){return Xe(16384)}function ue(){return Xe(32768)}function mt(z,Te){return it(t.getTokenPos(),t.getTextPos(),z,Te)}function Wt(z,Te,$e,Tt){const Gt=rl(st);let Cn;return(!Gt||z!==Gt.start)&&(Cn=TC(ze,z,Te,$e,Tt),st.push(Cn)),Zt=!0,Cn}function it(z,Te,$e,Tt){return Wt(z,Te-z,$e,Tt)}function K(z,Te,$e){it(z.pos,z.end,Te,$e)}function Pe(z,Te){Wt(t.getTextPos(),Te,z)}function ee(){return t.getStartPos()}function Re(){return t.hasPrecedingJSDocComment()}function q(){return Vt}function Rt(){return Vt=t.scan()}function gt(z){return ft(),z()}function ft(){return Dd(Vt)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&it(t.getTokenPos(),t.getTextPos(),_.Keywords_cannot_contain_escape_characters),Rt()}function fn(){return Vt=t.scanJsDocToken()}function $n(){return Vt=t.reScanGreaterToken()}function li(){return Vt=t.reScanSlashToken()}function Ii(z){return Vt=t.reScanTemplateToken(z)}function ki(){return Vt=t.reScanTemplateHeadOrNoSubstitutionTemplate()}function Hi(){return Vt=t.reScanLessThanToken()}function ho(){return Vt=t.reScanHashToken()}function So(){return Vt=t.scanJsxIdentifier()}function oo(){return Vt=t.scanJsxToken()}function ca(){return Vt=t.scanJsxAttributeValue()}function Wi(z,Te){const $e=Vt,Tt=st.length,Gt=Zt,Cn=Hn,Br=Te!==0?t.lookAhead(z):t.tryScan(z);return D.assert(Cn===Hn),(!Br||Te!==0)&&(Vt=$e,Te!==2&&(st.length=Tt),Zt=Gt),Br}function Xr(z){return Wi(z,1)}function ss(z){return Wi(z,0)}function hi(){return q()===79?!0:q()>116}function ua(){return q()===79?!0:q()===125&&Ut()||q()===133&&ue()?!1:q()>116}function Dn(z,Te,$e=!0){return q()===z?($e&&ft(),!0):(Te?mt(Te):mt(_._0_expected,vo(z)),!1)}const fa=Object.keys(oN).filter(z=>z.length>2);function ic(z){var Te;if(VT(z)){it(Xo(Me,z.template.pos),z.template.end,_.Module_declaration_names_may_only_use_or_quoted_strings);return}const $e=je(z)?Mr(z):void 0;if(!$e||!H_($e,Ye)){mt(_._0_expected,vo(26));return}const Tt=Xo(Me,z.pos);switch($e){case"const":case"let":case"var":it(Tt,z.end,_.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":al(_.Interface_name_cannot_be_0,_.Interface_must_be_given_a_name,18);return;case"is":it(Tt,t.getTextPos(),_.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":al(_.Namespace_name_cannot_be_0,_.Namespace_must_be_given_a_name,18);return;case"type":al(_.Type_alias_name_cannot_be_0,_.Type_alias_must_be_given_a_name,63);return}const Gt=(Te=DI($e,fa,Cn=>Cn))!=null?Te:jl($e);if(Gt){it(Tt,z.end,_.Unknown_keyword_or_identifier_Did_you_mean_0,Gt);return}q()!==0&&it(Tt,z.end,_.Unexpected_keyword_or_identifier)}function al(z,Te,$e){q()===$e?mt(Te):mt(z,t.getTokenValue())}function jl(z){for(const Te of fa)if(z.length>Te.length+2&&Ta(z,Te))return`${Te} ${z.slice(Te.length)}`}function Zl(z,Te,$e){if(q()===59&&!t.hasPrecedingLineBreak()){mt(_.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(q()===20){mt(_.Cannot_start_a_function_call_in_a_type_annotation),ft();return}if(Te&&!Ns()){$e?mt(_._0_expected,vo(26)):mt(_.Expected_for_property_initializer);return}if(!vl()){if($e){mt(_._0_expected,vo(26));return}ic(z)}}function Hl(z){return q()===z?(fn(),!0):(mt(_._0_expected,vo(z)),!1)}function Lo(z,Te,$e,Tt){if(q()===Te){ft();return}const Gt=mt(_._0_expected,vo(Te));$e&&Gt&&Yo(Gt,TC(ze,Tt,1,_.The_parser_expected_to_find_a_1_to_match_the_0_token_here,vo(z),vo(Te)))}function Ca(z){return q()===z?(ft(),!0):!1}function $o(z){if(q()===z)return dc()}function Wl(z){if(q()===z)return Zc()}function ou(z,Te,$e){return $o(z)||zl(z,!1,Te||_._0_expected,$e||vo(z))}function Qd(z){return Wl(z)||zl(z,!1,_._0_expected,vo(z))}function dc(){const z=ee(),Te=q();return ft(),nn(G(Te),z)}function Zc(){const z=ee(),Te=q();return fn(),nn(G(Te),z)}function Ns(){return q()===26?!0:q()===19||q()===1||t.hasPrecedingLineBreak()}function vl(){return Ns()?(q()===26&&ft(),!0):!1}function nl(){return vl()||Dn(26)}function Ys(z,Te,$e,Tt){const Gt=E(z,Tt);return Ym(Gt,Te,$e!=null?$e:t.getStartPos()),Gt}function nn(z,Te,$e){return Ym(z,Te,$e!=null?$e:t.getStartPos()),Hn&&(z.flags|=Hn),Zt&&(Zt=!1,z.flags|=131072),z}function zl(z,Te,$e,Tt){Te?Wt(t.getStartPos(),0,$e,Tt):$e&&mt($e,Tt);const Gt=ee(),Cn=z===79?O("",void 0):Fv(z)?h.createTemplateLiteralLikeNode(z,"","",void 0):z===8?C("",void 0):z===10?L("",void 0):z===279?h.createMissingDeclaration():G(z);return nn(Cn,Gt)}function wu(z){let Te=at.get(z);return Te===void 0&&at.set(z,Te=z),Te}function $u(z,Te,$e){if(z){on++;const bi=ee(),Li=q(),Di=wu(t.getTokenValue()),Ma=t.hasExtendedUnicodeEscape();return Rt(),nn(O(Di,Li,Ma),bi)}if(q()===80)return mt($e||_.Private_identifiers_are_not_allowed_outside_class_bodies),$u(!0);if(q()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===79))return $u(!0);on++;const Tt=q()===1,Gt=t.isReservedWord(),Cn=t.getTokenText(),Br=Gt?_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:_.Identifier_expected;return zl(79,Tt,Te||Br,Cn)}function fe(z){return $u(hi(),void 0,z)}function It(z,Te){return $u(ua(),z,Te)}function jt(z){return $u(id(q()),z)}function Z(){return id(q())||q()===10||q()===8}function ot(){return id(q())||q()===10}function xt(z){if(q()===10||q()===8){const Te=La();return Te.text=wu(Te.text),Te}return z&&q()===22?wr():q()===80?Pr():jt()}function pn(){return xt(!0)}function wr(){const z=ee();Dn(22);const Te=yt(mu);return Dn(23),nn(h.createComputedPropertyName(Te),z)}function Pr(){const z=ee(),Te=k(wu(t.getTokenValue()));return ft(),nn(Te,z)}function ba(z){return q()===z&&ss(go)}function ls(){return ft(),t.hasPrecedingLineBreak()?!1:yc()}function go(){switch(q()){case 85:return ft()===92;case 93:return ft(),q()===88?Xr(vd):q()===154?Xr($a):Wo();case 88:return vd();case 124:case 137:case 151:return ft(),yc();default:return ls()}}function Wo(){return q()===59||q()!==41&&q()!==128&&q()!==18&&yc()}function $a(){return ft(),Wo()}function pl(){return Cy(q())&&ss(go)}function yc(){return q()===22||q()===18||q()===41||q()===25||Z()}function vd(){return ft(),q()===84||q()===98||q()===118||q()===59||q()===126&&Xr(dh)||q()===132&&Xr(Kb)}function Ts(z,Te){if(Mt(z))return!0;switch(z){case 0:case 1:case 3:return!(q()===26&&Te)&&RS();case 2:return q()===82||q()===88;case 4:return Xr(mE);case 5:return Xr(Gd)||q()===26&&!Te;case 6:return q()===22||Z();case 12:switch(q()){case 22:case 41:case 25:case 24:return!0;default:return Z()}case 18:return Z();case 9:return q()===22||q()===25||Z();case 24:return ot();case 7:return q()===18?Xr(fs):Te?ua()&&!Hf():Fb()&&!Hf();case 8:return DE();case 10:return q()===27||q()===25||DE();case 19:return q()===101||q()===85||ua();case 15:switch(q()){case 27:case 24:return!0}case 11:return q()===25||dp();case 16:return Ib(!1);case 17:return Ib(!0);case 20:case 21:return q()===27||Vg();case 22:return Zh();case 23:return id(q());case 13:return id(q())||q()===18;case 14:return!0}return D.fail("Non-exhaustive case in 'isListElement'.")}function fs(){if(D.assert(q()===18),ft()===19){const z=ft();return z===27||z===18||z===94||z===117}return!0}function ml(){return ft(),ua()}function Zd(){return ft(),id(q())}function ql(){return ft(),Wue(q())}function Hf(){return q()===117||q()===94?Xr(Ae):!1}function Ae(){return ft(),dp()}function Dt(){return ft(),Vg()}function On(z){if(q()===1)return!0;switch(z){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return q()===19;case 3:return q()===19||q()===82||q()===88;case 7:return q()===18||q()===94||q()===117;case 8:return Yi();case 19:return q()===31||q()===20||q()===18||q()===94||q()===117;case 11:return q()===21||q()===26;case 15:case 21:case 10:return q()===23;case 17:case 16:case 18:return q()===21||q()===23;case 20:return q()!==27;case 22:return q()===18||q()===19;case 13:return q()===31||q()===43;case 14:return q()===29&&Xr(po);default:return!1}}function Yi(){return!!(Ns()||CS(q())||q()===38)}function Io(){for(let z=0;z<25;z++)if(Qt&1<<z&&(Ts(z,!0)||On(z)))return!0;return!1}function oe(z,Te){const $e=Qt;Qt|=1<<z;const Tt=[],Gt=ee();for(;!On(z);){if(Ts(z,!1)){Tt.push(ut(z,Te));continue}if(bd(z))break}return Qt=$e,Ys(Tt,Gt)}function ut(z,Te){const $e=Mt(z);return $e?Pt($e):Te()}function Mt(z,Te){var $e;if(!Et||!cn(z)||Zt)return;const Tt=Et.currentNode(Te!=null?Te:t.getStartPos());if(!(kl(Tt)||Tt.intersectsChange||SN(Tt)||(Tt.flags&50720768)!==Hn)&&jn(Tt,z))return KN(Tt)&&(($e=Tt.jsDoc)!=null&&$e.jsDocCache)&&(Tt.jsDoc.jsDocCache=void 0),Tt}function Pt(z){return t.setTextPos(z.end),ft(),z}function cn(z){switch(z){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function jn(z,Te){switch(Te){case 5:return Dr(z);case 2:return ii(z);case 0:case 1:case 3:return Fi(z);case 6:return ja(z);case 4:return zo(z);case 8:return Ss(z);case 17:case 16:return $s(z)}return!1}function Dr(z){if(z)switch(z.kind){case 173:case 178:case 174:case 175:case 169:case 237:return!0;case 171:const Te=z;return!(Te.name.kind===79&&Te.name.escapedText==="constructor")}return!1}function ii(z){if(z)switch(z.kind){case 292:case 293:return!0}return!1}function Fi(z){if(z)switch(z.kind){case 259:case 240:case 238:case 242:case 241:case 254:case 250:case 252:case 249:case 248:case 246:case 247:case 245:case 244:case 251:case 239:case 255:case 253:case 243:case 256:case 269:case 268:case 275:case 274:case 264:case 260:case 261:case 263:case 262:return!0}return!1}function ja(z){return z.kind===302}function zo(z){if(z)switch(z.kind){case 177:case 170:case 178:case 168:case 176:return!0}return!1}function Ss(z){return z.kind!==257?!1:z.initializer===void 0}function $s(z){return z.kind!==166?!1:z.initializer===void 0}function bd(z){return Ef(z),Io()?!0:(ft(),!1)}function Ef(z){switch(z){case 0:return q()===88?mt(_._0_expected,vo(93)):mt(_.Declaration_or_statement_expected);case 1:return mt(_.Declaration_or_statement_expected);case 2:return mt(_.case_or_default_expected);case 3:return mt(_.Statement_expected);case 18:case 4:return mt(_.Property_or_signature_expected);case 5:return mt(_.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return mt(_.Enum_member_expected);case 7:return mt(_.Expression_expected);case 8:return Dd(q())?mt(_._0_is_not_allowed_as_a_variable_declaration_name,vo(q())):mt(_.Variable_declaration_expected);case 9:return mt(_.Property_destructuring_pattern_expected);case 10:return mt(_.Array_element_destructuring_pattern_expected);case 11:return mt(_.Argument_expression_expected);case 12:return mt(_.Property_assignment_expected);case 15:return mt(_.Expression_or_comma_expected);case 17:return mt(_.Parameter_declaration_expected);case 16:return Dd(q())?mt(_._0_is_not_allowed_as_a_parameter_name,vo(q())):mt(_.Parameter_declaration_expected);case 19:return mt(_.Type_parameter_declaration_expected);case 20:return mt(_.Type_argument_expected);case 21:return mt(_.Type_expected);case 22:return mt(_.Unexpected_token_expected);case 23:return mt(_.Identifier_expected);case 13:return mt(_.Identifier_expected);case 14:return mt(_.Identifier_expected);case 24:return mt(_.Identifier_or_string_literal_expected);case 25:return D.fail("ParsingContext.Count used as a context");default:D.assertNever(z)}}function ac(z,Te,$e){const Tt=Qt;Qt|=1<<z;const Gt=[],Cn=ee();let Br=-1;for(;;){if(Ts(z,!1)){const bi=t.getStartPos(),Li=ut(z,Te);if(!Li){Qt=Tt;return}if(Gt.push(Li),Br=t.getTokenPos(),Ca(27))continue;if(Br=-1,On(z))break;Dn(27,ef(z)),$e&&q()===26&&!t.hasPrecedingLineBreak()&&ft(),bi===t.getStartPos()&&ft();continue}if(On(z)||bd(z))break}return Qt=Tt,Ys(Gt,Cn,void 0,Br>=0)}function ef(z){return z===6?_.An_enum_member_name_must_be_followed_by_a_or:void 0}function Du(){const z=Ys([],ee());return z.isMissingList=!0,z}function Tf(z){return!!z.isMissingList}function D_(z,Te,$e,Tt){if(Dn($e)){const Gt=ac(z,Te);return Dn(Tt),Gt}return Du()}function Qo(z,Te){const $e=ee();let Tt=z?jt(Te):It(Te);for(;Ca(24)&&q()!==29;)Tt=nn(h.createQualifiedName(Tt,Sf(z,!1)),$e);return Tt}function R_(z,Te){return nn(h.createQualifiedName(z,Te),z.pos)}function Sf(z,Te){if(t.hasPrecedingLineBreak()&&id(q())&&Xr(Td))return zl(79,!0,_.Identifier_expected);if(q()===80){const $e=Pr();return Te?$e:zl(79,!0,_.Identifier_expected)}return z?jt():It()}function op(z){const Te=ee(),$e=[];let Tt;do Tt=wa(z),$e.push(Tt);while(Tt.literal.kind===16);return Ys($e,Te)}function Mp(z){const Te=ee();return nn(h.createTemplateExpression(Ie(z),op(z)),Te)}function U(){const z=ee();return nn(h.createTemplateLiteralType(Ie(!1),et()),z)}function et(){const z=ee(),Te=[];let $e;do $e=qt(),Te.push($e);while($e.literal.kind===16);return Ys(Te,z)}function qt(){const z=ee();return nn(h.createTemplateLiteralTypeSpan(Ac(),Yn(!1)),z)}function Yn(z){return q()===19?(Ii(z),Ue()):ou(17,_._0_expected,vo(19))}function wa(z){const Te=ee();return nn(h.createTemplateSpan(yt(mu),Yn(z)),Te)}function La(){return Ot(q())}function Ie(z){z&&ki();const Te=Ot(q());return D.assert(Te.kind===15,"Template head has wrong token kind"),Te}function Ue(){const z=Ot(q());return D.assert(z.kind===16||z.kind===17,"Template fragment has wrong token kind"),z}function Lt(z){const Te=z===14||z===17,$e=t.getTokenText();return $e.substring(1,$e.length-(t.isUnterminated()?0:Te?1:2))}function Ot(z){const Te=ee(),$e=Fv(z)?h.createTemplateLiteralLikeNode(z,t.getTokenValue(),Lt(z),t.getTokenFlags()&2048):z===8?C(t.getTokenValue(),t.getNumericLiteralFlags()):z===10?L(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):$I(z)?I(z,t.getTokenValue()):D.fail();return t.hasExtendedUnicodeEscape()&&($e.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&($e.isUnterminated=!0),ft(),nn($e,Te)}function mn(){return Qo(!0,_.Type_expected)}function bn(){if(!t.hasPrecedingLineBreak()&&Hi()===29)return D_(20,Ac,29,31)}function Tn(){const z=ee();return nn(h.createTypeReferenceNode(mn(),bn()),z)}function Wn(z){switch(z.kind){case 180:return kl(z.typeName);case 181:case 182:{const{parameters:Te,type:$e}=z;return Tf(Te)||Wn($e)}case 193:return Wn(z.type);default:return!1}}function qr(z){return ft(),nn(h.createTypePredicateNode(void 0,z,Ac()),z.pos)}function Ki(){const z=ee();return ft(),nn(h.createThisTypeNode(),z)}function nr(){const z=ee();return ft(),nn(h.createJSDocAllType(),z)}function _n(){const z=ee();return ft(),nn(h.createJSDocNonNullableType(Nb(),!1),z)}function dr(){const z=ee();return ft(),q()===27||q()===19||q()===21||q()===31||q()===63||q()===51?nn(h.createJSDocUnknownType(),z):nn(h.createJSDocNullableType(Ac(),!1),z)}function Sa(){const z=ee(),Te=Re();if(Xr(ui)){ft();const $e=Fp(36),Tt=lp(58,!1);return vn(nn(h.createJSDocFunctionType($e,Tt),z),Te)}return nn(h.createTypeReferenceNode(jt(),void 0),z)}function Qs(){const z=ee();let Te;return(q()===108||q()===103)&&(Te=jt(),Dn(58)),nn(h.createParameterDeclaration(void 0,void 0,Te,void 0,fc(),void 0),z)}function fc(){t.setInJSDocType(!0);const z=ee();if(Ca(142)){const Tt=h.createJSDocNamepathType(void 0);e:for(;;)switch(q()){case 19:case 1:case 27:case 5:break e;default:fn()}return t.setInJSDocType(!1),nn(Tt,z)}const Te=Ca(25);let $e=ns();return t.setInJSDocType(!1),Te&&($e=nn(h.createJSDocVariadicType($e),z)),q()===63?(ft(),nn(h.createJSDocOptionalType($e),z)):$e}function ah(){const z=ee();Dn(112);const Te=Qo(!0),$e=t.hasPrecedingLineBreak()?void 0:rf();return nn(h.createTypeQueryNode(Te,$e),z)}function Mg(){const z=ee(),Te=Ps(!1,!0),$e=It();let Tt,Gt;Ca(94)&&(Vg()||!dp()?Tt=Ac():Gt=Bp());const Cn=Ca(63)?Ac():void 0,Br=h.createTypeParameterDeclaration(Te,$e,Tt,Cn);return Br.expression=Gt,nn(Br,z)}function sp(){if(q()===29)return D_(19,Mg,29,31)}function Ib(z){return q()===25||DE()||Cy(q())||q()===59||Vg(!z)}function c0(z){const Te=nv(_.Private_identifiers_cannot_be_used_as_parameters);return TN(Te)===0&&!kt(z)&&Cy(q())&&ft(),Te}function R2(){return hi()||q()===22||q()===18}function vS(z){return Fg(z)}function N2(z){return Fg(z,!1)}function Fg(z,Te=!0){const $e=ee(),Tt=Re(),Gt=z?he(()=>Ps(!0)):j(()=>Ps(!0));if(q()===108){const Li=h.createParameterDeclaration(Gt,void 0,$u(!0),void 0,zh(),void 0),Di=tu(Gt);return Di&&K(Di,_.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),vn(nn(Li,$e),Tt)}const Cn=kn;kn=!1;const Br=$o(25);if(!Te&&!R2())return;const bi=vn(nn(h.createParameterDeclaration(Gt,Br,c0(Gt),$o(57),zh(),Hg()),$e),Tt);return kn=Cn,bi}function lp(z,Te){if(u0(z,Te))return Ce(ns)}function u0(z,Te){return z===38?(Dn(z),!0):Ca(58)?!0:Te&&q()===38?(mt(_._0_expected,vo(58)),ft(),!0):!1}function Wh(z,Te){const $e=Ut(),Tt=ue();rn(!!(z&1)),Ar(!!(z&2));const Gt=z&32?ac(17,Qs):ac(16,()=>Te?vS(Tt):N2(Tt));return rn($e),Ar(Tt),Gt}function Fp(z){if(!Dn(20))return Du();const Te=Wh(z,!0);return Dn(21),Te}function d0(){Ca(27)||nl()}function _E(z){const Te=ee(),$e=Re();z===177&&Dn(103);const Tt=sp(),Gt=Fp(4),Cn=lp(58,!0);d0();const Br=z===176?h.createCallSignature(Tt,Gt,Cn):h.createConstructSignature(Tt,Gt,Cn);return vn(nn(Br,Te),$e)}function kb(){return q()===22&&Xr(Bg)}function Bg(){if(ft(),q()===25||q()===23)return!0;if(Cy(q())){if(ft(),ua())return!0}else if(ua())ft();else return!1;return q()===58||q()===27?!0:q()!==57?!1:(ft(),q()===58||q()===27||q()===23)}function bS(z,Te,$e){const Tt=D_(16,()=>vS(!1),22,23),Gt=zh();d0();const Cn=h.createIndexSignature($e,Tt,Gt);return vn(nn(Cn,z),Te)}function pE(z,Te,$e){const Tt=pn(),Gt=$o(57);let Cn;if(q()===20||q()===29){const Br=sp(),bi=Fp(4),Li=lp(58,!0);Cn=h.createMethodSignature($e,Tt,Gt,Br,bi,Li)}else{const Br=zh();Cn=h.createPropertySignature($e,Tt,Gt,Br),q()===63&&(Cn.initializer=Hg())}return d0(),vn(nn(Cn,z),Te)}function mE(){if(q()===20||q()===29||q()===137||q()===151)return!0;let z=!1;for(;Cy(q());)z=!0,ft();return q()===22?!0:(Z()&&(z=!0,ft()),z?q()===20||q()===29||q()===57||q()===58||q()===27||Ns():!1)}function hE(){if(q()===20||q()===29)return _E(176);if(q()===103&&Xr(f0))return _E(177);const z=ee(),Te=Re(),$e=Ps(!1);return ba(137)?fh(z,Te,$e,174,4):ba(151)?fh(z,Te,$e,175,4):kb()?bS(z,Te,$e):pE(z,Te,$e)}function f0(){return ft(),q()===20||q()===29}function O2(){return ft()===24}function gE(){switch(ft()){case 20:case 29:case 24:return!0}return!1}function yE(){const z=ee();return nn(h.createTypeLiteralNode(_0()),z)}function _0(){let z;return Dn(18)?(z=oe(4,hE),Dn(19)):z=Du(),z}function wb(){return ft(),q()===39||q()===40?ft()===146:(q()===146&&ft(),q()===22&&ml()&&ft()===101)}function p0(){const z=ee(),Te=jt();Dn(101);const $e=Ac();return nn(h.createTypeParameterDeclaration(void 0,Te,$e,void 0),z)}function ES(){const z=ee();Dn(18);let Te;(q()===146||q()===39||q()===40)&&(Te=dc(),Te.kind!==146&&Dn(146)),Dn(22);const $e=p0(),Tt=Ca(128)?Ac():void 0;Dn(23);let Gt;(q()===57||q()===39||q()===40)&&(Gt=dc(),Gt.kind!==57&&Dn(57));const Cn=zh();nl();const Br=oe(4,hE);return Dn(19),nn(h.createMappedTypeNode(Te,$e,Tt,Gt,Cn,Br),z)}function Gg(){const z=ee();if(Ca(25))return nn(h.createRestTypeNode(Ac()),z);const Te=Ac();if(HC(Te)&&Te.pos===Te.type.pos){const $e=h.createOptionalTypeNode(Te.type);return ht($e,Te),$e.flags=Te.flags,$e}return Te}function Zo(){return ft()===58||q()===57&&ft()===58}function vE(){return q()===25?id(ft())&&Zo():id(q())&&Zo()}function IL(){if(Xr(vE)){const z=ee(),Te=Re(),$e=$o(25),Tt=jt(),Gt=$o(57);Dn(58);const Cn=Gg(),Br=h.createNamedTupleMember($e,Tt,Gt,Cn);return vn(nn(Br,z),Te)}return Gg()}function Jy(){const z=ee();return nn(h.createTupleTypeNode(D_(21,IL,22,23)),z)}function Ug(){const z=ee();Dn(20);const Te=Ac();return Dn(21),nn(h.createParenthesizedType(Te),z)}function oh(){let z;if(q()===126){const Te=ee();ft();const $e=nn(G(126),Te);z=Ys([$e],Te)}return z}function cp(){const z=ee(),Te=Re(),$e=oh(),Tt=Ca(103);D.assert(!$e||Tt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Gt=sp(),Cn=Fp(4),Br=lp(38,!1),bi=Tt?h.createConstructorTypeNode($e,Gt,Cn,Br):h.createFunctionTypeNode(Gt,Cn,Br);return vn(nn(bi,z),Te)}function Pd(){const z=dc();return q()===24?void 0:z}function Md(z){const Te=ee();z&&ft();let $e=q()===110||q()===95||q()===104?dc():Ot(q());return z&&($e=nn(h.createPrefixUnaryExpression(40,$e),Te)),nn(h.createLiteralTypeNode($e),Te)}function Fd(){return ft(),q()===100}function Db(){const z=ee(),Te=t.getTokenPos();Dn(18);const $e=t.hasPrecedingLineBreak();Dn(130),Dn(58);const Tt=ov(!0);if(!Dn(19)){const Gt=rl(st);Gt&&Gt.code===_._0_expected.code&&Yo(Gt,TC(ze,Te,1,_.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return nn(h.createImportTypeAssertionContainer(Tt,$e),z)}function Rb(){Oe|=2097152;const z=ee(),Te=Ca(112);Dn(100),Dn(20);const $e=Ac();let Tt;Ca(27)&&(Tt=Db()),Dn(21);const Gt=Ca(24)?mn():void 0,Cn=bn();return nn(h.createImportTypeNode($e,Tt,Gt,Cn,Te),z)}function P2(){return ft(),q()===8||q()===9}function Nb(){switch(q()){case 131:case 157:case 152:case 148:case 160:case 153:case 134:case 155:case 144:case 149:return ss(Pd)||Tn();case 66:t.reScanAsteriskEqualsToken();case 41:return nr();case 60:t.reScanQuestionToken();case 57:return dr();case 98:return Sa();case 53:return _n();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Md();case 40:return Xr(P2)?Md(!0):Tn();case 114:return dc();case 108:{const z=Ki();return q()===140&&!t.hasPrecedingLineBreak()?qr(z):z}case 112:return Xr(Fd)?Rb():ah();case 18:return Xr(wb)?ES():yE();case 22:return Jy();case 20:return Ug();case 100:return Rb();case 129:return Xr(Td)?EE():Tn();case 15:return U();default:return Tn()}}function Vg(z){switch(q()){case 131:case 157:case 152:case 148:case 160:case 134:case 146:case 153:case 156:case 114:case 155:case 104:case 108:case 112:case 144:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 149:case 41:case 57:case 53:case 25:case 138:case 100:case 129:case 14:case 15:return!0;case 98:return!z;case 40:return!z&&Xr(P2);case 20:return!z&&Xr(Ob);default:return ua()}}function Ob(){return ft(),q()===21||Ib(!1)||Vg()}function TS(){const z=ee();let Te=Nb();for(;!t.hasPrecedingLineBreak();)switch(q()){case 53:ft(),Te=nn(h.createJSDocNonNullableType(Te,!0),z);break;case 57:if(Xr(Dt))return Te;ft(),Te=nn(h.createJSDocNullableType(Te,!0),z);break;case 22:if(Dn(22),Vg()){const $e=Ac();Dn(23),Te=nn(h.createIndexedAccessTypeNode(Te,$e),z)}else Dn(23),Te=nn(h.createArrayTypeNode(Te),z);break;default:return Te}return Te}function Pb(z){const Te=ee();return Dn(z),nn(h.createTypeOperatorNode(z,bE()),Te)}function kL(){if(Ca(94)){const z=pt(Ac);if(Sn()||q()!==57)return z}}function M2(){const z=ee(),Te=It(),$e=ss(kL),Tt=h.createTypeParameterDeclaration(void 0,Te,$e);return nn(Tt,z)}function m0(){const z=ee();return Dn(138),nn(h.createInferTypeNode(M2()),z)}function bE(){const z=q();switch(z){case 141:case 156:case 146:return Pb(z);case 138:return m0()}return Ce(TS)}function Ke(z){if(g0()){const Te=cp();let $e;return Mh(Te)?$e=z?_.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:_.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:$e=z?_.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:_.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,K(Te,$e),Te}}function Ky(z,Te,$e){const Tt=ee(),Gt=z===51,Cn=Ca(z);let Br=Cn&&Ke(Gt)||Te();if(q()===z||Cn){const bi=[Br];for(;Ca(z);)bi.push(Ke(Gt)||Te());Br=nn($e(Ys(bi,Tt)),Tt)}return Br}function hm(){return Ky(50,bE,h.createIntersectionTypeNode)}function h0(){return Ky(51,hm,h.createUnionTypeNode)}function Mb(){return ft(),q()===103}function g0(){return q()===29||q()===20&&Xr(SS)?!0:q()===103||q()===126&&Xr(Mb)}function jg(){if(Cy(q())&&Ps(!1),ua()||q()===108)return ft(),!0;if(q()===22||q()===18){const z=st.length;return nv(),z===st.length}return!1}function SS(){return ft(),!!(q()===21||q()===25||jg()&&(q()===58||q()===27||q()===57||q()===63||q()===21&&(ft(),q()===38)))}function ns(){const z=ee(),Te=ua()&&ss(up),$e=Ac();return Te?nn(h.createTypePredicateNode(void 0,Te,$e),z):$e}function up(){const z=It();if(q()===140&&!t.hasPrecedingLineBreak())return ft(),z}function EE(){const z=ee(),Te=ou(129),$e=q()===108?Ki():It(),Tt=Ca(140)?Ac():void 0;return nn(h.createTypePredicateNode(Te,$e,Tt),z)}function Ac(){if(Hn&40960)return Hr(40960,Ac);if(g0())return cp();const z=ee(),Te=h0();if(!Sn()&&!t.hasPrecedingLineBreak()&&Ca(94)){const $e=pt(Ac);Dn(57);const Tt=Ce(Ac);Dn(58);const Gt=Ce(Ac);return nn(h.createConditionalTypeNode(Te,$e,Tt,Gt),z)}return Te}function zh(){return Ca(58)?Ac():void 0}function Fb(){switch(q()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Xr(gE);default:return ua()}}function dp(){if(Fb())return!0;switch(q()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 133:case 125:case 80:case 59:return!0;default:return F2()?!0:ua()}}function Bb(){return q()!==18&&q()!==98&&q()!==84&&q()!==59&&dp()}function mu(){const z=Er();z&&Mn(!1);const Te=ee();let $e=Uc(!0),Tt;for(;Tt=$o(27);)$e=y0($e,Tt,Uc(!0),Te);return z&&Mn(!0),$e}function Hg(){return Ca(63)?Uc(!0):void 0}function Uc(z){if(xS())return zi();const Te=sh(z)||qh(z);if(Te)return Te;const $e=ee(),Tt=Ub(0);return Tt.kind===79&&q()===38?Jr($e,Tt,z,void 0):Id(Tt)&&wy($n())?y0(Tt,dc(),Uc(z),$e):AS(Tt,$e,z)}function xS(){return q()===125?Ut()?!0:Xr(T0):!1}function wL(){return ft(),!t.hasPrecedingLineBreak()&&ua()}function zi(){const z=ee();return ft(),!t.hasPrecedingLineBreak()&&(q()===41||dp())?nn(h.createYieldExpression($o(41),Uc(!0)),z):nn(h.createYieldExpression(void 0,void 0),z)}function Jr(z,Te,$e,Tt){D.assert(q()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Gt=h.createParameterDeclaration(void 0,void 0,Te,void 0,void 0,void 0);nn(Gt,Te.pos);const Cn=Ys([Gt],Gt.pos,Gt.end),Br=ou(38),bi=Gb(!!Tt,$e),Li=h.createArrowFunction(Tt,void 0,Cn,void 0,Br,bi);return un(nn(Li,z))}function sh(z){const Te=tf();if(Te!==0)return Te===1?hl(!0,!0):ss(()=>Wg(z))}function tf(){return q()===20||q()===29||q()===132?Xr(TE):q()===38?1:0}function TE(){if(q()===132&&(ft(),t.hasPrecedingLineBreak()||q()!==20&&q()!==29))return 0;const z=q(),Te=ft();if(z===20){if(Te===21)switch(ft()){case 38:case 58:case 18:return 1;default:return 0}if(Te===22||Te===18)return 2;if(Te===25)return 1;if(Cy(Te)&&Te!==132&&Xr(ml))return ft()===128?0:1;if(!ua()&&Te!==108)return 0;switch(ft()){case 58:return 1;case 57:return ft(),q()===58||q()===27||q()===63||q()===21?1:0;case 27:case 63:case 21:return 2}return 0}else return D.assert(z===29),!ua()&&q()!==85?0:Fe===1?Xr(()=>{Ca(85);const Tt=ft();if(Tt===94)switch(ft()){case 63:case 31:case 43:return!1;default:return!0}else if(Tt===27||Tt===63)return!0;return!1})?1:0:2}function Wg(z){const Te=t.getTokenPos();if(Pn!=null&&Pn.has(Te))return;const $e=hl(!1,z);return $e||(Pn||(Pn=new Set)).add(Te),$e}function qh(z){if(q()===132&&Xr(lh)===1){const Te=ee(),$e=NE(),Tt=Ub(0);return Jr(Te,Tt,z,$e)}}function lh(){if(q()===132){if(ft(),t.hasPrecedingLineBreak()||q()===38)return 0;const z=Ub(0);if(!t.hasPrecedingLineBreak()&&z.kind===79&&q()===38)return 1}return 0}function hl(z,Te){const $e=ee(),Tt=Re(),Gt=NE(),Cn=kt(Gt,Xk)?2:0,Br=sp();let bi;if(Dn(20)){if(z)bi=Wh(Cn,z);else{const Tm=Wh(Cn,z);if(!Tm)return;bi=Tm}if(!Dn(21)&&!z)return}else{if(!z)return;bi=Du()}const Li=q()===58,Di=lp(58,!1);if(Di&&!z&&Wn(Di))return;let Ma=Di;for(;(Ma==null?void 0:Ma.kind)===193;)Ma=Ma.type;const ks=Ma&&WC(Ma);if(!z&&q()!==38&&(ks||q()!==18))return;const ko=q(),is=ou(38),Ud=ko===38||ko===18?Gb(kt(Gt,Xk),Te):It();if(!Te&&Li&&q()!==58)return;const jp=h.createArrowFunction(Gt,Br,bi,Di,is,Ud);return vn(nn(jp,$e),Tt)}function Gb(z,Te){if(q()===18)return Bd(z?2:0);if(q()!==26&&q()!==98&&q()!==84&&RS()&&!Bb())return Bd(16|(z?2:0));const $e=kn;kn=!1;const Tt=z?he(()=>Uc(Te)):j(()=>Uc(Te));return kn=$e,Tt}function AS(z,Te,$e){const Tt=$o(57);if(!Tt)return z;let Gt;return nn(h.createConditionalExpression(z,Tt,Hr(r,()=>Uc(!1)),Gt=ou(58),E_(Gt)?Uc($e):zl(79,!1,_._0_expected,vo(58))),Te)}function Ub(z){const Te=ee(),$e=Bp();return f_(z,$e,Te)}function CS(z){return z===101||z===162}function f_(z,Te,$e){for(;;){$n();const Tt=iO(q());if(!(q()===42?Tt>=z:Tt>z)||q()===101&&ln())break;if(q()===128||q()===150){if(t.hasPrecedingLineBreak())break;{const Cn=q();ft(),Te=Cn===150?B2(Te,Ac()):LS(Te,Ac())}}else Te=y0(Te,dc(),Ub(Tt),$e)}return Te}function F2(){return ln()&&q()===101?!1:iO(q())>0}function B2(z,Te){return nn(h.createSatisfiesExpression(z,Te),z.pos)}function y0(z,Te,$e,Tt){return nn(h.createBinaryExpression(z,Te,$e),Tt)}function LS(z,Te){return nn(h.createAsExpression(z,Te),z.pos)}function IS(){const z=ee();return nn(h.createPrefixUnaryExpression(q(),gt(fp)),z)}function G2(){const z=ee();return nn(h.createDeleteExpression(gt(fp)),z)}function Vb(){const z=ee();return nn(h.createTypeOfExpression(gt(fp)),z)}function kS(){const z=ee();return nn(h.createVoidExpression(gt(fp)),z)}function Wf(){return q()===133?ue()?!0:Xr(T0):!1}function zg(){const z=ee();return nn(h.createAwaitExpression(gt(fp)),z)}function Bp(){if(U2()){const $e=ee(),Tt=jb();return q()===42?f_(iO(q()),Tt,$e):Tt}const z=q(),Te=fp();if(q()===42){const $e=Xo(Me,Te.pos),{end:Tt}=Te;Te.kind===213?it($e,Tt,_.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):it($e,Tt,_.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,vo(z))}return Te}function fp(){switch(q()){case 39:case 40:case 54:case 53:return IS();case 89:return G2();case 112:return Vb();case 114:return kS();case 29:return Fe===1?qg(!0):j2();case 133:if(Wf())return zg();default:return jb()}}function U2(){switch(q()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 133:return!1;case 29:if(Fe!==1)return!1;default:return!0}}function jb(){if(q()===45||q()===46){const Te=ee();return nn(h.createPrefixUnaryExpression(q(),gt(gm)),Te)}else if(Fe===1&&q()===29&&Xr(ql))return qg(!0);const z=gm();if(D.assert(Id(z)),(q()===45||q()===46)&&!t.hasPrecedingLineBreak()){const Te=q();return ft(),nn(h.createPostfixUnaryExpression(z,Te),z.pos)}return z}function gm(){const z=ee();let Te;return q()===100?Xr(f0)?(Oe|=2097152,Te=dc()):Xr(O2)?(ft(),ft(),Te=nn(h.createMetaProperty(100,jt()),z),Oe|=4194304):Te=wS():Te=q()===106?Ed():wS(),ar(z,Te)}function wS(){const z=ee(),Te=N_();return zf(z,Te,!0)}function Ed(){const z=ee();let Te=dc();if(q()===29){const $e=ee(),Tt=ss($y);Tt!==void 0&&(it($e,ee(),_.super_may_not_use_type_arguments),v0()||(Te=h.createExpressionWithTypeArguments(Te,Tt)))}return q()===20||q()===24||q()===22?Te:(ou(24,_.super_must_be_followed_by_an_argument_list_or_member_access),nn(ne(Te,Sf(!0,!0)),z))}function qg(z,Te,$e){const Tt=ee(),Gt=DS(z);let Cn;if(Gt.kind===283){let Br=Jg(Gt),bi;const Li=Br[Br.length-1];if((Li==null?void 0:Li.kind)===281&&!bb(Li.openingElement.tagName,Li.closingElement.tagName)&&bb(Gt.tagName,Li.closingElement.tagName)){const Di=Li.children.end,Ma=nn(h.createJsxElement(Li.openingElement,Li.children,nn(h.createJsxClosingElement(nn(O(""),Di,Di)),Di,Di)),Li.openingElement.pos,Di);Br=Ys([...Br.slice(0,Br.length-1),Ma],Br.pos,Di),bi=Li.closingElement}else bi=Hb(Gt,z),bb(Gt.tagName,bi.tagName)||($e&&Gh($e)&&bb(bi.tagName,$e.tagName)?K(Gt.tagName,_.JSX_element_0_has_no_corresponding_closing_tag,ak(Me,Gt.tagName)):K(bi.tagName,_.Expected_corresponding_JSX_closing_tag_for_0,ak(Me,Gt.tagName)));Cn=nn(h.createJsxElement(Gt,Br,bi),Tt)}else Gt.kind===286?Cn=nn(h.createJsxFragment(Gt,Jg(Gt),Wb(z)),Tt):(D.assert(Gt.kind===282),Cn=Gt);if(z&&q()===29){const Br=typeof Te=="undefined"?Cn.pos:Te,bi=ss(()=>qg(!0,Br));if(bi){const Li=zl(27,!1);return Uk(Li,bi.pos,0),it(Xo(Me,Br),bi.end,_.JSX_expressions_must_have_one_parent_element),nn(h.createBinaryExpression(Cn,Li,bi),Tt)}}return Cn}function ym(){const z=ee(),Te=h.createJsxText(t.getTokenValue(),Vt===12);return Vt=t.scanJsxToken(),nn(Te,z)}function vm(z,Te){switch(Te){case 1:if(t2(z))K(z,_.JSX_fragment_has_no_corresponding_closing_tag);else{const $e=z.tagName,Tt=Xo(Me,$e.pos);it(Tt,$e.end,_.JSX_element_0_has_no_corresponding_closing_tag,ak(Me,z.tagName))}return;case 30:case 7:return;case 11:case 12:return ym();case 18:return xE(!1);case 29:return qg(!1,void 0,z);default:return D.assertNever(Te)}}function Jg(z){const Te=[],$e=ee(),Tt=Qt;for(Qt|=16384;;){const Gt=vm(z,Vt=t.reScanJsxToken());if(!Gt||(Te.push(Gt),Gh(z)&&(Gt==null?void 0:Gt.kind)===281&&!bb(Gt.openingElement.tagName,Gt.closingElement.tagName)&&bb(z.tagName,Gt.closingElement.tagName)))break}return Qt=Tt,Ys(Te,$e)}function SE(){const z=ee();return nn(h.createJsxAttributes(oe(13,Os)),z)}function DS(z){const Te=ee();if(Dn(29),q()===31)return oo(),nn(h.createJsxOpeningFragment(),Te);const $e=Xy(),Tt=Hn&262144?void 0:rf(),Gt=SE();let Cn;return q()===31?(oo(),Cn=h.createJsxOpeningElement($e,Tt,Gt)):(Dn(43),Dn(31,void 0,!1)&&(z?ft():oo()),Cn=h.createJsxSelfClosingElement($e,Tt,Gt)),nn(Cn,Te)}function Xy(){const z=ee();So();let Te=q()===108?dc():jt();for(;Ca(24);)Te=nn(ne(Te,Sf(!0,!1)),z);return Te}function xE(z){const Te=ee();if(!Dn(18))return;let $e,Tt;return q()!==19&&($e=$o(25),Tt=mu()),z?Dn(19):Dn(19,void 0,!1)&&oo(),nn(h.createJsxExpression($e,Tt),Te)}function Os(){if(q()===18)return V2();So();const z=ee();return nn(h.createJsxAttribute(jt(),Yy()),z)}function Yy(){if(q()===63){if(ca()===10)return La();if(q()===18)return xE(!0);if(q()===29)return qg(!0);mt(_.or_JSX_element_expected)}}function V2(){const z=ee();Dn(18),Dn(25);const Te=mu();return Dn(19),nn(h.createJsxSpreadAttribute(Te),z)}function Hb(z,Te){const $e=ee();Dn(30);const Tt=Xy();return Dn(31,void 0,!1)&&(Te||!bb(z.tagName,Tt)?ft():oo()),nn(h.createJsxClosingElement(Tt),$e)}function Wb(z){const Te=ee();return Dn(30),Dn(31,_.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(z?ft():oo()),nn(h.createJsxJsxClosingFragment(),Te)}function j2(){D.assert(Fe!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const z=ee();Dn(29);const Te=Ac();Dn(31);const $e=fp();return nn(h.createTypeAssertion(Te,$e),z)}function DL(){return ft(),id(q())||q()===22||v0()}function H2(){return q()===28&&Xr(DL)}function pr(z){if(z.flags&32)return!0;if(Yx(z)){let Te=z.expression;for(;Yx(Te)&&!(Te.flags&32);)Te=Te.expression;if(Te.flags&32){for(;Yx(z);)z.flags|=32,z=z.expression;return!0}}return!1}function Pl(z,Te,$e){const Tt=Sf(!0,!0),Gt=$e||pr(Te),Cn=Gt?Y(Te,$e,Tt):ne(Te,Tt);if(Gt&&Oi(Cn.name)&&K(Cn.name,_.An_optional_chain_cannot_contain_private_identifiers),Py(Te)&&Te.typeArguments){const Br=Te.typeArguments.pos-1,bi=Xo(Me,Te.typeArguments.end)+1;it(Br,bi,_.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return nn(Cn,z)}function da(z,Te,$e){let Tt;if(q()===23)Tt=zl(79,!0,_.An_element_access_expression_should_take_an_argument);else{const Cn=yt(mu);i_(Cn)&&(Cn.text=wu(Cn.text)),Tt=Cn}Dn(23);const Gt=$e||pr(Te)?M(Te,$e,Tt):$(Te,Tt);return nn(Gt,z)}function zf(z,Te,$e){for(;;){let Tt,Gt=!1;if($e&&H2()?(Tt=ou(28),Gt=id(q())):Gt=Ca(24),Gt){Te=Pl(z,Te,Tt);continue}if((Tt||!Er())&&Ca(22)){Te=da(z,Te,Tt);continue}if(v0()){Te=!Tt&&Te.kind===230?ch(z,Te.expression,Tt,Te.typeArguments):ch(z,Te,Tt,void 0);continue}if(!Tt){if(q()===53&&!t.hasPrecedingLineBreak()){ft(),Te=nn(h.createNonNullExpression(Te),z);continue}const Cn=ss($y);if(Cn){Te=nn(h.createExpressionWithTypeArguments(Te,Cn),z);continue}}return Te}}function v0(){return q()===14||q()===15}function ch(z,Te,$e,Tt){const Gt=h.createTaggedTemplateExpression(Te,Tt,q()===14?(ki(),La()):Mp(!0));return($e||Te.flags&32)&&(Gt.flags|=32),Gt.questionDotToken=$e,nn(Gt,z)}function ar(z,Te){for(;;){Te=zf(z,Te,!0);let $e;const Tt=$o(28);if(Tt&&($e=ss($y),v0())){Te=ch(z,Te,Tt,$e);continue}if($e||q()===20){!Tt&&Te.kind===230&&($e=Te.typeArguments,Te=Te.expression);const Gt=W2(),Cn=Tt||pr(Te)?re(Te,Tt,$e,Gt):de(Te,$e,Gt);Te=nn(Cn,z);continue}if(Tt){const Gt=zl(79,!1,_.Identifier_expected);Te=nn(Y(Te,Tt,Gt),z)}break}return Te}function W2(){Dn(20);const z=ac(11,_p);return Dn(21),z}function $y(){if(Hn&262144||Hi()!==29)return;ft();const z=ac(20,Ac);if($n()===31)return ft(),z&&Nc()?z:void 0}function Nc(){switch(q()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return t.hasPrecedingLineBreak()||F2()||!dp()}function N_(){switch(q()){case 8:case 9:case 10:case 14:return La();case 108:case 106:case 104:case 110:case 95:return dc();case 20:return Gp();case 22:return Zy();case 18:return oc();case 132:if(!Xr(Kb))break;return Kg();case 59:return Zg();case 84:return C0();case 98:return Kg();case 103:return O_();case 43:case 68:if(li()===13)return La();break;case 15:return Mp(!1);case 80:return Pr()}return It(_.Expression_expected)}function Gp(){const z=ee(),Te=Re();Dn(20);const $e=yt(mu);return Dn(21),vn(nn(ae($e),z),Te)}function Qy(){const z=ee();Dn(25);const Te=Uc(!0);return nn(h.createSpreadElement(Te),z)}function AE(){return q()===25?Qy():q()===27?nn(h.createOmittedExpression(),ee()):Uc(!0)}function _p(){return Hr(r,AE)}function Zy(){const z=ee(),Te=t.getTokenPos(),$e=Dn(22),Tt=t.hasPrecedingLineBreak(),Gt=ac(15,AE);return Lo(22,23,$e,Te),nn(V(Gt,Tt),z)}function ec(){const z=ee(),Te=Re();if($o(25)){const Ma=Uc(!0);return vn(nn(h.createSpreadAssignment(Ma),z),Te)}const $e=Ps(!0);if(ba(137))return fh(z,Te,$e,174,0);if(ba(151))return fh(z,Te,$e,175,0);const Tt=$o(41),Gt=ua(),Cn=pn(),Br=$o(57),bi=$o(53);if(Tt||q()===20||q()===29)return OS(z,Te,$e,Tt,Cn,Br,bi);let Li;if(Gt&&q()!==58){const Ma=$o(63),ks=Ma?yt(()=>Uc(!0)):void 0;Li=h.createShorthandPropertyAssignment(Cn,ks),Li.equalsToken=Ma}else{Dn(58);const Ma=yt(()=>Uc(!0));Li=h.createPropertyAssignment(Cn,Ma)}return Li.modifiers=$e,Li.questionToken=Br,Li.exclamationToken=bi,vn(nn(Li,z),Te)}function oc(){const z=ee(),Te=t.getTokenPos(),$e=Dn(18),Tt=t.hasPrecedingLineBreak(),Gt=ac(12,ec,!0);return Lo(18,19,$e,Te),nn(H(Gt,Tt),z)}function Kg(){const z=Er();Mn(!1);const Te=ee(),$e=Re(),Tt=Ps(!1);Dn(98);const Gt=$o(41),Cn=Gt?1:0,Br=kt(Tt,Xk)?2:0,bi=Cn&&Br?He(hu):Cn?pe(hu):Br?he(hu):hu(),Li=sp(),Di=Fp(Cn|Br),Ma=lp(58,!1),ks=Bd(Cn|Br);Mn(z);const ko=h.createFunctionExpression(Tt,Gt,bi,Li,Di,Ma,ks);return vn(nn(ko,Te),$e)}function hu(){return hi()?fe():void 0}function O_(){const z=ee();if(Dn(103),Ca(24)){const Cn=jt();return nn(h.createMetaProperty(103,Cn),z)}const Te=ee();let $e=zf(Te,N_(),!1),Tt;$e.kind===230&&(Tt=$e.typeArguments,$e=$e.expression),q()===28&&mt(_.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,ak(Me,$e));const Gt=q()===20?W2():void 0;return nn(be($e,Tt,Gt),z)}function uh(z,Te){const $e=ee(),Tt=Re(),Gt=t.getTokenPos(),Cn=Dn(18,Te);if(Cn||z){const Br=t.hasPrecedingLineBreak(),bi=oe(1,qf);Lo(18,19,Cn,Gt);const Li=vn(nn(W(bi,Br),$e),Tt);return q()===63&&(mt(_.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),ft()),Li}else{const Br=Du();return vn(nn(W(Br,void 0),$e),Tt)}}function Bd(z,Te){const $e=Ut();rn(!!(z&1));const Tt=ue();Ar(!!(z&2));const Gt=kn;kn=!1;const Cn=Er();Cn&&Mn(!1);const Br=uh(!!(z&16),Te);return Cn&&Mn(!0),kn=Gt,rn($e),Ar(Tt),Br}function CE(){const z=ee(),Te=Re();return Dn(26),vn(nn(h.createEmptyStatement(),z),Te)}function zb(){const z=ee(),Te=Re();Dn(99);const $e=t.getTokenPos(),Tt=Dn(20),Gt=yt(mu);Lo(20,21,Tt,$e);const Cn=qf(),Br=Ca(91)?qf():void 0;return vn(nn(Ee(Gt,Cn,Br),z),Te)}function qb(){const z=ee(),Te=Re();Dn(90);const $e=qf();Dn(115);const Tt=t.getTokenPos(),Gt=Dn(20),Cn=yt(mu);return Lo(20,21,Gt,Tt),Ca(26),vn(nn(h.createDoStatement($e,Cn),z),Te)}function Up(){const z=ee(),Te=Re();Dn(115);const $e=t.getTokenPos(),Tt=Dn(20),Gt=yt(mu);Lo(20,21,Tt,$e);const Cn=qf();return vn(nn(xe(Gt,Cn),z),Te)}function Jh(){const z=ee(),Te=Re();Dn(97);const $e=$o(133);Dn(20);let Tt;q()!==26&&(q()===113||q()===119||q()===85?Tt=bm(!0):Tt=Nt(mu));let Gt;if($e?Dn(162):Ca(162)){const Cn=yt(()=>Uc(!0));Dn(21),Gt=Qe($e,Tt,Cn,qf())}else if(Ca(101)){const Cn=yt(mu);Dn(21),Gt=h.createForInStatement(Tt,Cn,qf())}else{Dn(26);const Cn=q()!==26&&q()!==21?yt(mu):void 0;Dn(26);const Br=q()!==21?yt(mu):void 0;Dn(21),Gt=te(Tt,Cn,Br,qf())}return vn(nn(Gt,z),Te)}function LE(z){const Te=ee(),$e=Re();Dn(z===249?81:86);const Tt=Ns()?void 0:It();nl();const Gt=z===249?h.createBreakStatement(Tt):h.createContinueStatement(Tt);return vn(nn(Gt,Te),$e)}function ev(){const z=ee(),Te=Re();Dn(105);const $e=Ns()?void 0:yt(mu);return nl(),vn(nn(h.createReturnStatement($e),z),Te)}function Ml(){const z=ee(),Te=Re();Dn(116);const $e=t.getTokenPos(),Tt=Dn(20),Gt=yt(mu);Lo(20,21,Tt,$e);const Cn=we(33554432,qf);return vn(nn(h.createWithStatement(Gt,Cn),z),Te)}function Xg(){const z=ee(),Te=Re();Dn(82);const $e=yt(mu);Dn(58);const Tt=oe(3,qf);return vn(nn(h.createCaseClause($e,Tt),z),Te)}function Kh(){const z=ee();Dn(88),Dn(58);const Te=oe(3,qf);return nn(h.createDefaultClause(Te),z)}function b0(){return q()===82?Xg():Kh()}function E0(){const z=ee();Dn(18);const Te=oe(2,b0);return Dn(19),nn(h.createCaseBlock(Te),z)}function gu(){const z=ee(),Te=Re();Dn(107),Dn(20);const $e=yt(mu);Dn(21);const Tt=E0();return vn(nn(h.createSwitchStatement($e,Tt),z),Te)}function Xh(){const z=ee(),Te=Re();Dn(109);let $e=t.hasPrecedingLineBreak()?void 0:yt(mu);return $e===void 0&&(on++,$e=nn(O(""),ee())),vl()||ic($e),vn(nn(h.createThrowStatement($e),z),Te)}function Cc(){const z=ee(),Te=Re();Dn(111);const $e=uh(!1),Tt=q()===83?IE():void 0;let Gt;return(!Tt||q()===96)&&(Dn(96,_.catch_or_finally_expected),Gt=uh(!1)),vn(nn(h.createTryStatement($e,Tt,Gt),z),Te)}function IE(){const z=ee();Dn(83);let Te;Ca(20)?(Te=rv(),Dn(21)):Te=void 0;const $e=uh(!1);return nn(h.createCatchClause(Te,$e),z)}function Yh(){const z=ee(),Te=Re();return Dn(87),nl(),vn(nn(h.createDebuggerStatement(),z),Te)}function Jb(){const z=ee();let Te=Re(),$e;const Tt=q()===20,Gt=yt(mu);return je(Gt)&&Ca(58)?$e=h.createLabeledStatement(Gt,qf()):(vl()||ic(Gt),$e=me(Gt),Tt&&(Te=!1)),vn(nn($e,z),Te)}function Td(){return ft(),id(q())&&!t.hasPrecedingLineBreak()}function dh(){return ft(),q()===84&&!t.hasPrecedingLineBreak()}function Kb(){return ft(),q()===98&&!t.hasPrecedingLineBreak()}function T0(){return ft(),(id(q())||q()===8||q()===9||q()===10)&&!t.hasPrecedingLineBreak()}function kE(){for(;;)switch(q()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 154:return wL();case 142:case 143:return z2();case 126:case 127:case 132:case 136:case 121:case 122:case 123:case 146:if(ft(),t.hasPrecedingLineBreak())return!1;continue;case 159:return ft(),q()===18||q()===79||q()===93;case 100:return ft(),q()===10||q()===41||q()===18||id(q());case 93:let z=ft();if(z===154&&(z=Xr(ft)),z===63||z===41||z===18||z===88||z===128||z===59)return!0;continue;case 124:ft();continue;default:return!1}}function tv(){return Xr(kE)}function RS(){switch(q()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return tv()||Xr(gE);case 85:case 93:return tv();case 132:case 136:case 118:case 142:case 143:case 154:case 159:return!0;case 127:case 123:case 121:case 122:case 124:case 146:return tv()||!Xr(Td);default:return dp()}}function S0(){return ft(),hi()||q()===18||q()===22}function Yg(){return Xr(S0)}function qf(){switch(q()){case 26:return CE();case 18:return uh(!1);case 113:return $g(ee(),Re(),void 0);case 119:if(Yg())return $g(ee(),Re(),void 0);break;case 98:return A0(ee(),Re(),void 0);case 84:return PS(ee(),Re(),void 0);case 99:return zb();case 90:return qb();case 115:return Up();case 97:return Jh();case 86:return LE(248);case 81:return LE(249);case 105:return ev();case 116:return Ml();case 107:return gu();case 109:return Xh();case 111:case 83:case 96:return Cc();case 87:return Yh();case 59:return xf();case 132:case 118:case 154:case 142:case 143:case 136:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 127:case 124:case 146:case 159:if(tv())return xf();break}return Jb()}function wE(z){return z.kind===136}function xf(){const z=ee(),Te=Re(),$e=Ps(!0);if(kt($e,wE)){const Gt=$h(z);if(Gt)return Gt;for(const Cn of $e)Cn.flags|=16777216;return we(16777216,()=>x0(z,Te,$e))}else return x0(z,Te,$e)}function $h(z){return we(16777216,()=>{const Te=Mt(Qt,z);if(Te)return Pt(Te)})}function x0(z,Te,$e){switch(q()){case 113:case 119:case 85:return $g(z,Te,$e);case 98:return A0(z,Te,$e);case 84:return PS(z,Te,$e);case 118:return ey(z,Te,$e);case 154:return K2(z,Te,$e);case 92:return x(z,Te,$e);case 159:case 142:case 143:return Cr(z,Te,$e);case 100:return af(z,Te,$e);case 93:switch(ft(),q()){case 88:case 63:return xs(z,Te,$e);case 128:return su(z,Te,$e);default:return RP(z,Te,$e)}default:if($e){const Tt=zl(279,!0,_.Declaration_expected);return Gk(Tt,z),Tt.modifiers=$e,Tt}return}}function z2(){return ft(),!t.hasPrecedingLineBreak()&&(ua()||q()===10)}function as(z,Te){if(q()!==18){if(z&4){d0();return}if(Ns()){nl();return}}return Bd(z,Te)}function Ir(){const z=ee();if(q()===27)return nn(h.createOmittedExpression(),z);const Te=$o(25),$e=nv(),Tt=Hg();return nn(h.createBindingElement(Te,void 0,$e,Tt),z)}function nf(){const z=ee(),Te=$o(25),$e=hi();let Tt=pn(),Gt;$e&&q()!==58?(Gt=Tt,Tt=void 0):(Dn(58),Gt=nv());const Cn=Hg();return nn(h.createBindingElement(Te,Tt,Gt,Cn),z)}function Sd(){const z=ee();Dn(18);const Te=ac(9,nf);return Dn(19),nn(h.createObjectBindingPattern(Te),z)}function NS(){const z=ee();Dn(22);const Te=ac(10,Ir);return Dn(23),nn(h.createArrayBindingPattern(Te),z)}function DE(){return q()===18||q()===22||q()===80||hi()}function nv(z){return q()===22?NS():q()===18?Sd():fe(z)}function q2(){return rv(!0)}function rv(z){const Te=ee(),$e=Re(),Tt=nv(_.Private_identifiers_are_not_allowed_in_variable_declarations);let Gt;z&&Tt.kind===79&&q()===53&&!t.hasPrecedingLineBreak()&&(Gt=dc());const Cn=zh(),Br=CS(q())?void 0:Hg(),bi=Ve(Tt,Gt,Cn,Br);return vn(nn(bi,Te),$e)}function bm(z){const Te=ee();let $e=0;switch(q()){case 113:break;case 119:$e|=1;break;case 85:$e|=2;break;default:D.fail()}ft();let Tt;if(q()===162&&Xr(Vp))Tt=Du();else{const Gt=ln();Nn(z),Tt=ac(8,z?rv:q2),Nn(Gt)}return nn(Ge(Tt,$e),Te)}function Vp(){return ml()&&ft()===21}function $g(z,Te,$e){const Tt=bm(!1);nl();const Gt=ce($e,Tt);return vn(nn(Gt,z),Te)}function A0(z,Te,$e){const Tt=ue(),Gt=Km($e);Dn(98);const Cn=$o(41),Br=Gt&1024?hu():fe(),bi=Cn?1:0,Li=Gt&512?2:0,Di=sp();Gt&1&&Ar(!0);const Ma=Fp(bi|Li),ks=lp(58,!1),ko=as(bi|Li,_.or_expected);Ar(Tt);const is=h.createFunctionDeclaration($e,Cn,Br,Di,Ma,ks,ko);return vn(nn(is,z),Te)}function Qh(){if(q()===135)return Dn(135);if(q()===10&&Xr(ft)===20)return ss(()=>{const z=La();return z.text==="constructor"?z:void 0})}function Em(z,Te,$e){return ss(()=>{if(Qh()){const Tt=sp(),Gt=Fp(0),Cn=lp(58,!1),Br=as(0,_.or_expected),bi=h.createConstructorDeclaration($e,Gt,Br);return bi.typeParameters=Tt,bi.type=Cn,vn(nn(bi,z),Te)}})}function OS(z,Te,$e,Tt,Gt,Cn,Br,bi){const Li=Tt?1:0,Di=kt($e,Xk)?2:0,Ma=sp(),ks=Fp(Li|Di),ko=lp(58,!1),is=as(Li|Di,bi),Ud=h.createMethodDeclaration($e,Tt,Gt,Cn,Ma,ks,ko,is);return Ud.exclamationToken=Br,vn(nn(Ud,z),Te)}function tc(z,Te,$e,Tt,Gt){const Cn=!Gt&&!t.hasPrecedingLineBreak()?$o(53):void 0,Br=zh(),bi=Hr(45056,Hg);Zl(Tt,Br,bi);const Li=h.createPropertyDeclaration($e,Tt,Gt||Cn,Br,bi);return vn(nn(Li,z),Te)}function Af(z,Te,$e){const Tt=$o(41),Gt=pn(),Cn=$o(57);return Tt||q()===20||q()===29?OS(z,Te,$e,Tt,Gt,Cn,void 0,_.or_expected):tc(z,Te,$e,Gt,Cn)}function fh(z,Te,$e,Tt,Gt){const Cn=pn(),Br=sp(),bi=Fp(0),Li=lp(58,!1),Di=as(Gt),Ma=Tt===174?h.createGetAccessorDeclaration($e,Cn,bi,Li,Di):h.createSetAccessorDeclaration($e,Cn,bi,Di);return Ma.typeParameters=Br,c_(Ma)&&(Ma.type=Li),vn(nn(Ma,z),Te)}function Gd(){let z;if(q()===59)return!0;for(;Cy(q());){if(z=q(),gz(z))return!0;ft()}if(q()===41||(Z()&&(z=q(),ft()),q()===22))return!0;if(z!==void 0){if(!Dd(z)||z===151||z===137)return!0;switch(q()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return Ns()}}return!1}function RE(z,Te,$e){ou(124);const Tt=iv(),Gt=vn(nn(h.createClassStaticBlockDeclaration(Tt),z),Te);return Gt.modifiers=$e,Gt}function iv(){const z=Ut(),Te=ue();rn(!1),Ar(!0);const $e=uh(!1);return rn(z),Ar(Te),$e}function Qg(){if(ue()&&q()===133){const z=ee(),Te=It(_.Expression_expected);ft();const $e=zf(z,Te,!0);return ar(z,$e)}return gm()}function J2(){const z=ee();if(!Ca(59))return;const Te=ie(Qg);return nn(h.createDecorator(Te),z)}function Jf(z,Te,$e){const Tt=ee(),Gt=q();if(q()===85&&Te){if(!ss(ls))return}else{if($e&&q()===124&&Xr(Vi))return;if(z&&q()===124)return;if(!pl())return}return nn(G(Gt),Tt)}function Ps(z,Te,$e){const Tt=ee();let Gt,Cn,Br,bi=!1,Li=!1,Di=!1;if(z&&q()===59)for(;Cn=J2();)Gt=Bn(Gt,Cn);for(;Br=Jf(bi,Te,$e);)Br.kind===124&&(bi=!0),Gt=Bn(Gt,Br),Li=!0;if(Li&&z&&q()===59)for(;Cn=J2();)Gt=Bn(Gt,Cn),Di=!0;if(Di)for(;Br=Jf(bi,Te,$e);)Br.kind===124&&(bi=!0),Gt=Bn(Gt,Br);return Gt&&Ys(Gt,Tt)}function NE(){let z;if(q()===132){const Te=ee();ft();const $e=nn(G(132),Te);z=Ys([$e],Te)}return z}function OE(){const z=ee();if(q()===26)return ft(),nn(h.createSemicolonClassElement(),z);const Te=Re(),$e=Ps(!0,!0,!0);if(q()===124&&Xr(Vi))return RE(z,Te,$e);if(ba(137))return fh(z,Te,$e,174,0);if(ba(151))return fh(z,Te,$e,175,0);if(q()===135||q()===10){const Tt=Em(z,Te,$e);if(Tt)return Tt}if(kb())return bS(z,Te,$e);if(id(q())||q()===10||q()===8||q()===41||q()===22)if(kt($e,wE)){for(const Gt of $e)Gt.flags|=16777216;return we(16777216,()=>Af(z,Te,$e))}else return Af(z,Te,$e);if($e){const Tt=zl(79,!0,_.Declaration_expected);return tc(z,Te,$e,Tt,void 0)}return D.fail("Should not have attempted to parse class member declaration.")}function Zg(){const z=ee(),Te=Re(),$e=Ps(!0);if(q()===84)return PE(z,Te,$e,228);const Tt=zl(279,!0,_.Expression_expected);return Gk(Tt,z),Tt.modifiers=$e,Tt}function C0(){return PE(ee(),Re(),void 0,228)}function PS(z,Te,$e){return PE(z,Te,$e,260)}function PE(z,Te,$e,Tt){const Gt=ue();Dn(84);const Cn=ME(),Br=sp();kt($e,d5)&&Ar(!0);const bi=BE();let Li;Dn(18)?(Li=RL(),Dn(19)):Li=Du(),Ar(Gt);const Di=Tt===260?h.createClassDeclaration($e,Cn,Br,bi,Li):h.createClassExpression($e,Cn,Br,bi,Li);return vn(nn(Di,z),Te)}function ME(){return hi()&&!FE()?$u(hi()):void 0}function FE(){return q()===117&&Xr(Zd)}function BE(){if(Zh())return oe(22,GE)}function GE(){const z=ee(),Te=q();D.assert(Te===94||Te===117),ft();const $e=ac(7,av);return nn(h.createHeritageClause(Te,$e),z)}function av(){const z=ee(),Te=gm();if(Te.kind===230)return Te;const $e=rf();return nn(h.createExpressionWithTypeArguments(Te,$e),z)}function rf(){return q()===29?D_(20,Ac,29,31):void 0}function Zh(){return q()===94||q()===117}function RL(){return oe(5,OE)}function ey(z,Te,$e){Dn(118);const Tt=It(),Gt=sp(),Cn=BE(),Br=_0(),bi=h.createInterfaceDeclaration($e,Tt,Gt,Cn,Br);return vn(nn(bi,z),Te)}function K2(z,Te,$e){Dn(154);const Tt=It(),Gt=sp();Dn(63);const Cn=q()===139&&ss(Pd)||Ac();nl();const Br=h.createTypeAliasDeclaration($e,Tt,Gt,Cn);return vn(nn(Br,z),Te)}function X2(){const z=ee(),Te=Re(),$e=pn(),Tt=yt(Hg);return vn(nn(h.createEnumMember($e,Tt),z),Te)}function x(z,Te,$e){Dn(92);const Tt=It();let Gt;Dn(18)?(Gt=Ze(()=>ac(6,X2)),Dn(19)):Gt=Du();const Cn=h.createEnumDeclaration($e,Tt,Gt);return vn(nn(Cn,z),Te)}function le(){const z=ee();let Te;return Dn(18)?(Te=oe(1,qf),Dn(19)):Te=Du(),nn(h.createModuleBlock(Te),z)}function ke(z,Te,$e,Tt){const Gt=Tt&16,Cn=It(),Br=Ca(24)?ke(ee(),!1,void 0,4|Gt):le(),bi=h.createModuleDeclaration($e,Cn,Br,Tt);return vn(nn(bi,z),Te)}function an(z,Te,$e){let Tt=0,Gt;q()===159?(Gt=It(),Tt|=1024):(Gt=La(),Gt.text=wu(Gt.text));let Cn;q()===18?Cn=le():nl();const Br=h.createModuleDeclaration($e,Gt,Cn,Tt);return vn(nn(Br,z),Te)}function Cr(z,Te,$e){let Tt=0;if(q()===159)return an(z,Te,$e);if(Ca(143))Tt|=16;else if(Dn(142),q()===10)return an(z,Te,$e);return ke(z,Te,$e,Tt)}function Ci(){return q()===147&&Xr(ui)}function ui(){return ft()===20}function Vi(){return ft()===18}function po(){return ft()===43}function su(z,Te,$e){Dn(128),Dn(143);const Tt=It();nl();const Gt=h.createNamespaceExportDeclaration(Tt);return Gt.modifiers=$e,vn(nn(Gt,z),Te)}function af(z,Te,$e){Dn(100);const Tt=t.getStartPos();let Gt;ua()&&(Gt=It());let Cn=!1;if(q()!==158&&(Gt==null?void 0:Gt.escapedText)==="type"&&(ua()||of())&&(Cn=!0,Gt=ua()?It():void 0),Gt&&!L0())return I0(z,Te,$e,Gt,Cn);let Br;(Gt||q()===41||q()===18)&&(Br=sv(Gt,Tt,Cn),Dn(158));const bi=Kf();let Li;q()===130&&!t.hasPrecedingLineBreak()&&(Li=ov()),nl();const Di=h.createImportDeclaration($e,Br,bi,Li);return vn(nn(Di,z),Te)}function Cf(){const z=ee(),Te=id(q())?jt():Ot(10);Dn(58);const $e=Uc(!0);return nn(h.createAssertEntry(Te,$e),z)}function ov(z){const Te=ee();z||Dn(130);const $e=t.getTokenPos();if(Dn(18)){const Tt=t.hasPrecedingLineBreak(),Gt=ac(24,Cf,!0);if(!Dn(19)){const Cn=rl(st);Cn&&Cn.code===_._0_expected.code&&Yo(Cn,TC(ze,$e,1,_.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return nn(h.createAssertClause(Gt,Tt),Te)}else{const Tt=Ys([],ee(),void 0,!1);return nn(h.createAssertClause(Tt,!1),Te)}}function of(){return q()===41||q()===18}function L0(){return q()===27||q()===158}function I0(z,Te,$e,Tt,Gt){Dn(63);const Cn=P_();nl();const Br=h.createImportEqualsDeclaration($e,Gt,Tt,Cn);return vn(nn(Br,z),Te)}function sv(z,Te,$e){let Tt;return(!z||Ca(27))&&(Tt=q()===41?_h():lv(272)),nn(h.createImportClause($e,z,Tt),Te)}function P_(){return Ci()?UE():Qo(!1)}function UE(){const z=ee();Dn(147),Dn(20);const Te=Kf();return Dn(21),nn(h.createExternalModuleReference(Te),z)}function Kf(){if(q()===10){const z=La();return z.text=wu(z.text),z}else return mu()}function _h(){const z=ee();Dn(41),Dn(128);const Te=It();return nn(h.createNamespaceImport(Te),z)}function lv(z){const Te=ee(),$e=z===272?h.createNamedImports(D_(23,VE,18,19)):h.createNamedExports(D_(23,__,18,19));return nn($e,Te)}function __(){const z=Re();return vn(k0(278),z)}function VE(){return k0(273)}function k0(z){const Te=ee();let $e=Dd(q())&&!ua(),Tt=t.getTokenPos(),Gt=t.getTextPos(),Cn=!1,Br,bi=!0,Li=jt();if(Li.escapedText==="type")if(q()===128){const ks=jt();if(q()===128){const ko=jt();id(q())?(Cn=!0,Br=ks,Li=Ma(),bi=!1):(Br=Li,Li=ko,bi=!1)}else id(q())?(Br=Li,bi=!1,Li=Ma()):(Cn=!0,Li=ks)}else id(q())&&(Cn=!0,Li=Ma());bi&&q()===128&&(Br=Li,Dn(128),Li=Ma()),z===273&&$e&&it(Tt,Gt,_.Identifier_expected);const Di=z===273?h.createImportSpecifier(Cn,Br,Li):h.createExportSpecifier(Cn,Br,Li);return nn(Di,Te);function Ma(){return $e=Dd(q())&&!ua(),Tt=t.getTokenPos(),Gt=t.getTextPos(),jt()}}function vc(z){return nn(h.createNamespaceExport(jt()),z)}function RP(z,Te,$e){const Tt=ue();Ar(!0);let Gt,Cn,Br;const bi=Ca(154),Li=ee();Ca(41)?(Ca(128)&&(Gt=vc(Li)),Dn(158),Cn=Kf()):(Gt=lv(276),(q()===158||q()===10&&!t.hasPrecedingLineBreak())&&(Dn(158),Cn=Kf())),Cn&&q()===130&&!t.hasPrecedingLineBreak()&&(Br=ov()),nl(),Ar(Tt);const Di=h.createExportDeclaration($e,bi,Gt,Cn,Br);return vn(nn(Di,z),Te)}function xs(z,Te,$e){const Tt=ue();Ar(!0);let Gt;Ca(63)?Gt=!0:Dn(88);const Cn=Uc(!0);nl(),Ar(Tt);const Br=h.createExportAssignment($e,Gt,Cn);return vn(nn(Br,z),Te)}let rs;(z=>{z[z.SourceElements=0]="SourceElements",z[z.BlockStatements=1]="BlockStatements",z[z.SwitchClauses=2]="SwitchClauses",z[z.SwitchClauseStatements=3]="SwitchClauseStatements",z[z.TypeMembers=4]="TypeMembers",z[z.ClassMembers=5]="ClassMembers",z[z.EnumMembers=6]="EnumMembers",z[z.HeritageClauseElement=7]="HeritageClauseElement",z[z.VariableDeclarations=8]="VariableDeclarations",z[z.ObjectBindingElements=9]="ObjectBindingElements",z[z.ArrayBindingElements=10]="ArrayBindingElements",z[z.ArgumentExpressions=11]="ArgumentExpressions",z[z.ObjectLiteralMembers=12]="ObjectLiteralMembers",z[z.JsxAttributes=13]="JsxAttributes",z[z.JsxChildren=14]="JsxChildren",z[z.ArrayLiteralMembers=15]="ArrayLiteralMembers",z[z.Parameters=16]="Parameters",z[z.JSDocParameters=17]="JSDocParameters",z[z.RestProperties=18]="RestProperties",z[z.TypeParameters=19]="TypeParameters",z[z.TypeArguments=20]="TypeArguments",z[z.TupleElementTypes=21]="TupleElementTypes",z[z.HeritageClauses=22]="HeritageClauses",z[z.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",z[z.AssertEntries=24]="AssertEntries",z[z.Count=25]="Count"})(rs||(rs={}));let Y2;(z=>{z[z.False=0]="False",z[z.True=1]="True",z[z.Unknown=2]="Unknown"})(Y2||(Y2={}));let $2;(z=>{function Te(Di,Ma,ks){Zi("file.js",Di,99,void 0,1),t.setText(Di,Ma,ks),Vt=t.scan();const ko=$e(),is=Mi("file.js",99,1,!1,[],G(1),0,lo),Ud=Ox(st,is);return Ct&&(is.jsDocDiagnostics=Ox(Ct,is)),Or(),ko?{jsDocTypeExpression:ko,diagnostics:Ud}:void 0}z.parseJSDocTypeExpressionForTests=Te;function $e(Di){const Ma=ee(),ks=(Di?Ca:Dn)(18),ko=we(8388608,fc);(!Di||ks)&&Hl(19);const is=h.createJSDocTypeExpression(ko);return cr(is),nn(is,Ma)}z.parseJSDocTypeExpression=$e;function Tt(){const Di=ee(),Ma=Ca(18),ks=ee();let ko=Qo(!1);for(;q()===80;)ho(),fn(),ko=nn(h.createJSDocMemberName(ko,It()),ks);Ma&&Hl(19);const is=h.createJSDocNameReference(ko);return cr(is),nn(is,Di)}z.parseJSDocNameReference=Tt;function Gt(Di,Ma,ks){Zi("",Di,99,void 0,1);const ko=we(8388608,()=>Li(Ma,ks)),Ud=Ox(st,{languageVariant:0,text:Di});return Or(),ko?{jsDoc:ko,diagnostics:Ud}:void 0}z.parseIsolatedJSDocComment=Gt;function Cn(Di,Ma,ks){const ko=Vt,is=st.length,Ud=Zt,jp=we(8388608,()=>Li(Ma,ks));return jo(jp,Di),Hn&262144&&(Ct||(Ct=[]),Ct.push(...st)),Vt=ko,st.length=is,Zt=Ud,jp}z.parseJSDocComment=Cn;let Br;(Di=>{Di[Di.BeginningOfLine=0]="BeginningOfLine",Di[Di.SawAsterisk=1]="SawAsterisk",Di[Di.SavingComments=2]="SavingComments",Di[Di.SavingBackticks=3]="SavingBackticks"})(Br||(Br={}));let bi;(Di=>{Di[Di.Property=1]="Property",Di[Di.Parameter=2]="Parameter",Di[Di.CallbackParameter=4]="CallbackParameter"})(bi||(bi={}));function Li(Di=0,Ma){const ks=Me,ko=Ma===void 0?ks.length:Di+Ma;if(Ma=ko-Di,D.assert(Di>=0),D.assert(Di<=ko),D.assert(ko<=ks.length),!VK(ks,Di))return;let is,Ud,jp,Tm,ty,M_=[];const cv=[];return t.scanRange(Di+3,Ma-5,()=>{let Rn=1,Kr,Vr=Di-(ks.lastIndexOf(`
- `,Di)+1)+4;function oi(xo){Kr||(Kr=Vr),M_.push(xo),Vr+=xo.length}for(fn();MS(5););MS(4)&&(Rn=0,Vr=0);e:for(;;){switch(q()){case 59:Rn===0||Rn===1?(jE(M_),ty||(ty=ee()),D0(OL(Vr)),Rn=0,Kr=void 0):oi(t.getTokenText());break;case 4:M_.push(t.getTokenText()),Rn=0,Vr=0;break;case 41:const xo=t.getTokenText();Rn===1||Rn===2?(Rn=2,oi(xo)):(Rn=1,Vr+=xo.length);break;case 5:const Fo=t.getTokenText();Rn===2?M_.push(Fo):Kr!==void 0&&Vr+Fo.length>Kr&&M_.push(Fo.slice(Kr-Vr)),Vr+=Fo.length;break;case 1:break e;case 18:Rn=2;const If=t.getStartPos(),mp=t.getTextPos()-1,eg=TD(mp);if(eg){Tm||Q2(M_),cv.push(nn(h.createJSDocText(M_.join("")),Tm!=null?Tm:Di,If)),cv.push(eg),M_=[],Tm=t.getTextPos();break}default:Rn=2,oi(t.getTokenText());break}fn()}jE(M_),cv.length&&M_.length&&cv.push(nn(h.createJSDocText(M_.join("")),Tm!=null?Tm:Di,ty)),cv.length&&is&&D.assertIsDefined(ty,"having parsed tags implies that the end of the comment span should be set");const qi=is&&Ys(is,Ud,jp);return nn(h.createJSDocComment(cv.length?Ys(cv,Di,ty):M_.length?M_.join(""):void 0,qi),Di,ko)});function Q2(Rn){for(;Rn.length&&(Rn[0]===`
- `||Rn[0]==="\r");)Rn.shift()}function jE(Rn){for(;Rn.length&&Rn[Rn.length-1].trim()==="";)Rn.pop()}function NL(){for(;;){if(fn(),q()===1)return!0;if(!(q()===5||q()===4))return!1}}function pp(){if(!((q()===5||q()===4)&&Xr(NL)))for(;q()===5||q()===4;)fn()}function w0(){if((q()===5||q()===4)&&Xr(NL))return"";let Rn=t.hasPrecedingLineBreak(),Kr=!1,Vr="";for(;Rn&&q()===41||q()===5||q()===4;)Vr+=t.getTokenText(),q()===4?(Rn=!0,Kr=!0,Vr=""):q()===41&&(Rn=!1),fn();return Kr?Vr:""}function OL(Rn){D.assert(q()===59);const Kr=t.getTokenPos();fn();const Vr=O0(void 0),oi=w0();let qi;switch(Vr.escapedText){case"author":qi=Kt(Kr,Vr,Rn,oi);break;case"implements":qi=na(Kr,Vr,Rn,oi);break;case"augments":case"extends":qi=Qa(Kr,Vr,Rn,oi);break;case"class":case"constructor":qi=iy(Kr,h.createJSDocClassTag,Vr,Rn,oi);break;case"public":qi=iy(Kr,h.createJSDocPublicTag,Vr,Rn,oi);break;case"private":qi=iy(Kr,h.createJSDocPrivateTag,Vr,Rn,oi);break;case"protected":qi=iy(Kr,h.createJSDocProtectedTag,Vr,Rn,oi);break;case"readonly":qi=iy(Kr,h.createJSDocReadonlyTag,Vr,Rn,oi);break;case"override":qi=iy(Kr,h.createJSDocOverrideTag,Vr,Rn,oi);break;case"deprecated":Ht=!0,qi=iy(Kr,h.createJSDocDeprecatedTag,Vr,Rn,oi);break;case"this":qi=uie(Kr,Vr,Rn,oi);break;case"enum":qi=die(Kr,Vr,Rn,oi);break;case"arg":case"argument":case"param":return AD(Kr,Vr,2,Rn);case"return":case"returns":qi=w(Kr,Vr,Rn,oi);break;case"template":qi=fv(Kr,Vr,Rn,oi);break;case"type":qi=B(Kr,Vr,Rn,oi);break;case"typedef":qi=PL(Kr,Vr,Rn,oi);break;case"callback":qi=or(Kr,Vr,Rn,oi);break;case"overload":qi=R0(Kr,Vr,Rn,oi);break;case"satisfies":qi=Lf(Kr,Vr,Rn,oi);break;case"see":qi=se(Kr,Vr,Rn,oi);break;case"exception":case"throws":qi=qe(Kr,Vr,Rn,oi);break;default:qi=xl(Kr,Vr,Rn,oi);break}return qi}function Xf(Rn,Kr,Vr,oi){return oi||(Vr+=Kr-Rn),Z2(Vr,oi.slice(Vr))}function Z2(Rn,Kr){const Vr=ee();let oi=[];const qi=[];let xo,Fo=0,If=!0,mp;function eg(tg){mp||(mp=Rn),oi.push(tg),Rn+=tg.length}Kr!==void 0&&(Kr!==""&&eg(Kr),Fo=1);let ph=q();e:for(;;){switch(ph){case 4:Fo=0,oi.push(t.getTokenText()),Rn=0;break;case 59:if(Fo===3||Fo===2&&(!If||Xr(uv))){oi.push(t.getTokenText());break}t.setTextPos(t.getTextPos()-1);case 1:break e;case 5:if(Fo===2||Fo===3)eg(t.getTokenText());else{const Xb=t.getTokenText();mp!==void 0&&Rn+Xb.length>mp&&oi.push(Xb.slice(mp-Rn)),Rn+=Xb.length}break;case 18:Fo=2;const tg=t.getStartPos(),BL=t.getTextPos()-1,Qu=TD(BL);Qu?(qi.push(nn(h.createJSDocText(oi.join("")),xo!=null?xo:Vr,tg)),qi.push(Qu),oi=[],xo=t.getTextPos()):eg(t.getTokenText());break;case 61:Fo===3?Fo=2:Fo=3,eg(t.getTokenText());break;case 41:if(Fo===0){Fo=1,Rn+=1;break}default:Fo!==3&&(Fo=2),eg(t.getTokenText());break}If=q()===5,ph=fn()}if(Q2(oi),jE(oi),qi.length)return oi.length&&qi.push(nn(h.createJSDocText(oi.join("")),xo!=null?xo:Vr)),Ys(qi,Vr,t.getTextPos());if(oi.length)return oi.join("")}function uv(){const Rn=fn();return Rn===5||Rn===4}function TD(Rn){const Kr=ss(SD);if(!Kr)return;fn(),pp();const Vr=ee();let oi=id(q())?Qo(!0):void 0;if(oi)for(;q()===80;)ho(),fn(),oi=nn(h.createJSDocMemberName(oi,It()),Vr);const qi=[];for(;q()!==19&&q()!==4&&q()!==1;)qi.push(t.getTokenText()),fn();const xo=Kr==="link"?h.createJSDocLink:Kr==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return nn(xo(oi,qi.join("")),Rn,t.getTextPos())}function SD(){if(w0(),q()===18&&fn()===59&&id(fn())){const Rn=t.getTokenValue();if(wo(Rn))return Rn}}function wo(Rn){return Rn==="link"||Rn==="linkcode"||Rn==="linkplain"}function xl(Rn,Kr,Vr,oi){return nn(h.createJSDocUnknownTag(Kr,Xf(Rn,ee(),Vr,oi)),Rn)}function D0(Rn){Rn&&(is?is.push(Rn):(is=[Rn],Ud=Rn.pos),jp=Rn.end)}function dv(){return w0(),q()===18?$e():void 0}function xD(){const Rn=MS(22);Rn&&pp();const Kr=MS(61),Vr=OP();return Kr&&Qd(61),Rn&&(pp(),$o(63)&&mu(),Dn(23)),{name:Vr,isBracketed:Rn}}function Vd(Rn){switch(Rn.kind){case 149:return!0;case 185:return Vd(Rn.elementType);default:return ep(Rn)&&je(Rn.typeName)&&Rn.typeName.escapedText==="Object"&&!Rn.typeArguments}}function AD(Rn,Kr,Vr,oi){let qi=dv(),xo=!qi;w0();const{name:Fo,isBracketed:If}=xD(),mp=w0();xo&&!Xr(SD)&&(qi=dv());const eg=Xf(Rn,ee(),oi,mp),ph=Vr!==4&&b(qi,Fo,Vr,oi);ph&&(qi=ph,xo=!0);const tg=Vr===1?h.createJSDocPropertyTag(Kr,Fo,If,qi,xo,eg):h.createJSDocParameterTag(Kr,Fo,If,qi,xo,eg);return nn(tg,Rn)}function b(Rn,Kr,Vr,oi){if(Rn&&Vd(Rn.type)){const qi=ee();let xo,Fo;for(;xo=ss(()=>HE(Vr,oi,Kr));)(xo.kind===344||xo.kind===351)&&(Fo=Bn(Fo,xo));if(Fo){const If=nn(h.createJSDocTypeLiteral(Fo,Rn.type.kind===185),qi);return nn(h.createJSDocTypeExpression(If),qi)}}}function w(Rn,Kr,Vr,oi){kt(is,E5)&&it(Kr.pos,t.getTokenPos(),_._0_tag_already_specified,Kr.escapedText);const qi=dv();return nn(h.createJSDocReturnTag(Kr,qi,Xf(Rn,ee(),Vr,oi)),Rn)}function B(Rn,Kr,Vr,oi){kt(is,uw)&&it(Kr.pos,t.getTokenPos(),_._0_tag_already_specified,Kr.escapedText);const qi=$e(!0),xo=Vr!==void 0&&oi!==void 0?Xf(Rn,ee(),Vr,oi):void 0;return nn(h.createJSDocTypeTag(Kr,qi,xo),Rn)}function se(Rn,Kr,Vr,oi){const xo=q()===22||Xr(()=>fn()===59&&id(fn())&&wo(t.getTokenValue()))?void 0:Tt(),Fo=Vr!==void 0&&oi!==void 0?Xf(Rn,ee(),Vr,oi):void 0;return nn(h.createJSDocSeeTag(Kr,xo,Fo),Rn)}function qe(Rn,Kr,Vr,oi){const qi=dv(),xo=Xf(Rn,ee(),Vr,oi);return nn(h.createJSDocThrowsTag(Kr,qi,xo),Rn)}function Kt(Rn,Kr,Vr,oi){const qi=ee(),xo=Gr();let Fo=t.getStartPos();const If=Xf(Rn,Fo,Vr,oi);If||(Fo=t.getStartPos());const mp=typeof If!="string"?Ys(ya([nn(xo,qi,Fo)],If),qi):xo.text+If;return nn(h.createJSDocAuthorTag(Kr,mp),Rn)}function Gr(){const Rn=[];let Kr=!1,Vr=t.getToken();for(;Vr!==1&&Vr!==4;){if(Vr===29)Kr=!0;else{if(Vr===59&&!Kr)break;if(Vr===31&&Kr){Rn.push(t.getTokenText()),t.setTextPos(t.getTokenPos()+1);break}}Rn.push(t.getTokenText()),Vr=fn()}return h.createJSDocText(Rn.join(""))}function na(Rn,Kr,Vr,oi){const qi=ny();return nn(h.createJSDocImplementsTag(Kr,qi,Xf(Rn,ee(),Vr,oi)),Rn)}function Qa(Rn,Kr,Vr,oi){const qi=ny();return nn(h.createJSDocAugmentsTag(Kr,qi,Xf(Rn,ee(),Vr,oi)),Rn)}function Lf(Rn,Kr,Vr,oi){const qi=$e(!1),xo=Vr!==void 0&&oi!==void 0?Xf(Rn,ee(),Vr,oi):void 0;return nn(h.createJSDocSatisfiesTag(Kr,qi,xo),Rn)}function ny(){const Rn=Ca(18),Kr=ee(),Vr=ry(),oi=rf(),qi=h.createExpressionWithTypeArguments(Vr,oi),xo=nn(qi,Kr);return Rn&&Dn(19),xo}function ry(){const Rn=ee();let Kr=O0();for(;Ca(24);){const Vr=O0();Kr=nn(ne(Kr,Vr),Rn)}return Kr}function iy(Rn,Kr,Vr,oi,qi){return nn(Kr(Vr,Xf(Rn,ee(),oi,qi)),Rn)}function uie(Rn,Kr,Vr,oi){const qi=$e(!0);return pp(),nn(h.createJSDocThisTag(Kr,qi,Xf(Rn,ee(),Vr,oi)),Rn)}function die(Rn,Kr,Vr,oi){const qi=$e(!0);return pp(),nn(h.createJSDocEnumTag(Kr,qi,Xf(Rn,ee(),Vr,oi)),Rn)}function PL(Rn,Kr,Vr,oi){var qi;let xo=dv();w0();const Fo=CD();pp();let If=Z2(Vr),mp;if(!xo||Vd(xo.type)){let ph,tg,BL,Qu=!1;for(;ph=ss(()=>eA(Vr));)if(Qu=!0,ph.kind===347)if(tg){const Xb=mt(_.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Xb&&Yo(Xb,TC(ze,0,0,_.The_tag_was_first_specified_here));break}else tg=ph;else BL=Bn(BL,ph);if(Qu){const Xb=xo&&xo.type.kind===185,LD=h.createJSDocTypeLiteral(BL,Xb);xo=tg&&tg.typeExpression&&!Vd(tg.typeExpression.type)?tg.typeExpression:nn(LD,Rn),mp=xo.end}}mp=mp||If!==void 0?ee():((qi=Fo!=null?Fo:xo)!=null?qi:Kr).end,If||(If=Xf(Rn,mp,Vr,oi));const eg=h.createJSDocTypedefTag(Kr,xo,Fo,If);return nn(eg,Rn,mp)}function CD(Rn){const Kr=t.getTokenPos();if(!id(q()))return;const Vr=O0();if(Ca(24)){const oi=CD(!0),qi=h.createModuleDeclaration(void 0,Vr,oi,Rn?4:void 0);return nn(qi,Kr)}return Rn&&(Vr.flags|=2048),Vr}function fie(Rn){const Kr=ee();let Vr,oi;for(;Vr=ss(()=>HE(4,Rn));)oi=Bn(oi,Vr);return Ys(oi||[],Kr)}function ML(Rn,Kr){const Vr=fie(Kr),oi=ss(()=>{if(MS(59)){const qi=OL(Kr);if(qi&&qi.kind===345)return qi}});return nn(h.createJSDocSignature(void 0,Vr,oi),Rn)}function or(Rn,Kr,Vr,oi){const qi=CD();pp();let xo=Z2(Vr);const Fo=ML(Rn,Vr);xo||(xo=Xf(Rn,ee(),Vr,oi));const If=xo!==void 0?ee():Fo.end;return nn(h.createJSDocCallbackTag(Kr,Fo,qi,xo),Rn,If)}function R0(Rn,Kr,Vr,oi){pp();let qi=Z2(Vr);const xo=ML(Rn,Vr);qi||(qi=Xf(Rn,ee(),Vr,oi));const Fo=qi!==void 0?ee():xo.end;return nn(h.createJSDocOverloadTag(Kr,xo,qi),Rn,Fo)}function N0(Rn,Kr){for(;!je(Rn)||!je(Kr);)if(!je(Rn)&&!je(Kr)&&Rn.right.escapedText===Kr.right.escapedText)Rn=Rn.left,Kr=Kr.left;else return!1;return Rn.escapedText===Kr.escapedText}function eA(Rn){return HE(1,Rn)}function HE(Rn,Kr,Vr){let oi=!0,qi=!1;for(;;)switch(fn()){case 59:if(oi){const xo=NP(Rn,Kr);return xo&&(xo.kind===344||xo.kind===351)&&Rn!==4&&Vr&&(je(xo.name)||!N0(Vr,xo.name.left))?!1:xo}qi=!1;break;case 4:oi=!0,qi=!1;break;case 41:qi&&(oi=!1),qi=!0;break;case 79:oi=!1;break;case 1:return!1}}function NP(Rn,Kr){D.assert(q()===59);const Vr=t.getStartPos();fn();const oi=O0();pp();let qi;switch(oi.escapedText){case"type":return Rn===1&&B(Vr,oi);case"prop":case"property":qi=1;break;case"arg":case"argument":case"param":qi=6;break;default:return!1}return Rn&qi?AD(Vr,oi,Rn,Kr):!1}function FL(){const Rn=ee(),Kr=MS(22);Kr&&pp();const Vr=O0(_.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let oi;if(Kr&&(pp(),Dn(63),oi=we(8388608,fc),Dn(23)),!kl(Vr))return nn(h.createTypeParameterDeclaration(void 0,Vr,void 0,oi),Rn)}function JU(){const Rn=ee(),Kr=[];do{pp();const Vr=FL();Vr!==void 0&&Kr.push(Vr),w0()}while(MS(27));return Ys(Kr,Rn)}function fv(Rn,Kr,Vr,oi){const qi=q()===18?$e():void 0,xo=JU();return nn(h.createJSDocTemplateTag(Kr,qi,xo,Xf(Rn,ee(),Vr,oi)),Rn)}function MS(Rn){return q()===Rn?(fn(),!0):!1}function OP(){let Rn=O0();for(Ca(22)&&Dn(23);Ca(24);){const Kr=O0();Ca(22)&&Dn(23),Rn=R_(Rn,Kr)}return Rn}function O0(Rn){if(!id(q()))return zl(79,!Rn,Rn||_.Identifier_expected);on++;const Kr=t.getTokenPos(),Vr=t.getTextPos(),oi=q(),qi=wu(t.getTokenValue()),xo=nn(O(qi,oi),Kr,Vr);return fn(),xo}}})($2=e.JSDocParser||(e.JSDocParser={}))})(Zv||(Zv={})),(e=>{function t(L,I,O,k){if(k=k||D.shouldAssert(2),h(L,I,O,k),dde(O))return L;if(L.statements.length===0)return Zv.parseSourceFile(L.fileName,I,L.languageVersion,void 0,!0,L.scriptKind,L.setExternalModuleIndicator);const G=L;D.assert(!G.hasBeenIncrementallyParsed),G.hasBeenIncrementallyParsed=!0,Zv.fixupParentReferences(G);const V=L.text,H=E(L),ne=d(L,O);h(L,I,ne,k),D.assert(ne.span.start<=O.span.start),D.assert(uu(ne.span)===uu(O.span)),D.assert(uu(WI(ne))===uu(WI(O)));const Y=WI(ne).length-ne.span.length;f(G,ne.span.start,uu(ne.span),uu(WI(ne)),Y,V,I,k);const $=Zv.parseSourceFile(L.fileName,I,L.languageVersion,H,!0,L.scriptKind,L.setExternalModuleIndicator);return $.commentDirectives=r(L.commentDirectives,$.commentDirectives,ne.span.start,uu(ne.span),Y,V,I,k),$.impliedNodeFormat=L.impliedNodeFormat,$}e.updateSourceFile=t;function r(L,I,O,k,G,V,H,ne){if(!L)return I;let Y,$=!1;for(const de of L){const{range:re,type:be}=de;if(re.end<O)Y=Bn(Y,de);else if(re.pos>k){M();const ae={range:{pos:re.pos+G,end:re.end+G},type:be};Y=Bn(Y,ae),ne&&D.assert(V.substring(re.pos,re.end)===H.substring(ae.range.pos,ae.range.end))}}return M(),Y;function M(){$||($=!0,Y?I&&Y.push(...I):Y=I)}}function i(L,I,O,k,G,V){I?ne(L):H(L);return;function H(Y){let $="";if(V&&o(Y)&&($=k.substring(Y.pos,Y.end)),Y._children&&(Y._children=void 0),Ym(Y,Y.pos+O,Y.end+O),V&&o(Y)&&D.assert($===G.substring(Y.pos,Y.end)),Pa(Y,H,ne),Of(Y))for(const M of Y.jsDoc)H(M);c(Y,V)}function ne(Y){Y._children=void 0,Ym(Y,Y.pos+O,Y.end+O);for(const $ of Y)H($)}}function o(L){switch(L.kind){case 10:case 8:case 79:return!0}return!1}function s(L,I,O,k,G){D.assert(L.end>=I,"Adjusting an element that was entirely before the change range"),D.assert(L.pos<=O,"Adjusting an element that was entirely after the change range"),D.assert(L.pos<=L.end);const V=Math.min(L.pos,k),H=L.end>=O?L.end+G:Math.min(L.end,k);D.assert(V<=H),L.parent&&(D.assertGreaterThanOrEqual(V,L.parent.pos),D.assertLessThanOrEqual(H,L.parent.end)),Ym(L,V,H)}function c(L,I){if(I){let O=L.pos;const k=G=>{D.assert(G.pos>=O),O=G.end};if(Of(L))for(const G of L.jsDoc)k(G);Pa(L,k),D.assert(O<=L.end)}}function f(L,I,O,k,G,V,H,ne){Y(L);return;function Y(M){if(D.assert(M.pos<=M.end),M.pos>O){i(M,!1,G,V,H,ne);return}const de=M.end;if(de>=I){if(M.intersectsChange=!0,M._children=void 0,s(M,I,O,k,G),Pa(M,Y,$),Of(M))for(const re of M.jsDoc)Y(re);c(M,ne);return}D.assert(de<I)}function $(M){if(D.assert(M.pos<=M.end),M.pos>O){i(M,!0,G,V,H,ne);return}const de=M.end;if(de>=I){M.intersectsChange=!0,M._children=void 0,s(M,I,O,k,G);for(const re of M)Y(re);return}D.assert(de<I)}}function d(L,I){let k=I.span.start;for(let H=0;k>0&&H<=1;H++){const ne=v(L,k);D.assert(ne.pos<=k);const Y=ne.pos;k=Math.max(0,Y-1)}const G=Tc(k,uu(I.span)),V=I.newLength+(I.span.start-k);return lN(G,V)}function v(L,I){let O=L,k;if(Pa(L,V),k){const H=G(k);H.pos>O.pos&&(O=H)}return O;function G(H){for(;;){const ne=$q(H);if(ne)H=ne;else return H}}function V(H){if(!kl(H))if(H.pos<=I){if(H.pos>=O.pos&&(O=H),I<H.end)return Pa(H,V),!0;D.assert(H.end<=I),k=H}else return D.assert(H.pos>I),!0}}function h(L,I,O,k){const G=L.text;if(O&&(D.assert(G.length-O.span.length+O.newLength===I.length),k||D.shouldAssert(3))){const V=G.substr(0,O.span.start),H=I.substr(0,O.span.start);D.assert(V===H);const ne=G.substring(uu(O.span),G.length),Y=I.substring(uu(WI(O)),I.length);D.assert(ne===Y)}}function E(L){let I=L.statements,O=0;D.assert(O<I.length);let k=I[O],G=-1;return{currentNode(H){return H!==G&&(k&&k.end===H&&O<I.length-1&&(O++,k=I[O]),(!k||k.pos!==H)&&V(H)),G=H,D.assert(!k||k.pos===H),k}};function V(H){I=void 0,O=-1,k=void 0,Pa(L,ne,Y);return;function ne($){return H>=$.pos&&H<$.end?(Pa($,ne,Y),!0):!1}function Y($){if(H>=$.pos&&H<$.end)for(let M=0;M<$.length;M++){const de=$[M];if(de){if(de.pos===H)return I=$,O=M,k=de,!0;if(de.pos<H&&H<de.end)return Pa(de,ne,Y),!0}}return!1}}}e.createSyntaxCursor=E;let C;(L=>{L[L.Value=-1]="Value"})(C||(C={}))})(N5||(N5={})),O5=new Map,vhe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,bhe=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im}});function P5(e){const t=new Map,r=new Map;return Je(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function QC(){return Yhe||(Yhe=P5(wg))}function JK(e){return Ehe(e,Gs)}function Ehe(e,t){const r=No(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(_.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function M5(e,t,r){return Whe(e,S1(t||""),r)}function The(e,t="",r){if(t=S1(t),Ta(t,"-"))return;if(e.type==="listOrElement"&&!bu(t,","))return XT(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return pa(i,o=>XT(e.element,parseInt(o),r));case"string":return pa(i,o=>XT(e.element,o||"",r));case"boolean":case"object":return D.fail(`List of ${e.element.type} is not yet supported.`);default:return pa(i,o=>M5(e.element,o,r))}}function She(e){return e.name}function KK(e,t,r,i){var o;if((o=t.alternateMode)!=null&&o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return r(t.alternateMode.diagnostic,e);const s=DI(e,t.optionDeclarations,She);return s?r(t.unknownDidYouMeanDiagnostic,i||e,s.name):r(t.unknownOptionDiagnostic,i||e)}function XK(e,t,r){const i={};let o;const s=[],c=[];return f(t),{options:i,watchOptions:o,fileNames:s,errors:c};function f(v){let h=0;for(;h<v.length;){const E=v[h];if(h++,E.charCodeAt(0)===64)d(E.slice(1));else if(E.charCodeAt(0)===45){const C=E.slice(E.charCodeAt(1)===45?2:1),L=$K(e.getOptionsNameMap,C,!0);if(L)h=xhe(v,h,e,L,i,c);else{const I=$K(R8.getOptionsNameMap,C,!0);I?h=xhe(v,h,R8,I,o||(o={}),c):c.push(KK(C,e,Gs,E))}}else s.push(E)}}function d(v){const h=v8(v,r||(L=>nu.readFile(L)));if(!Ha(h)){c.push(h);return}const E=[];let C=0;for(;;){for(;C<h.length&&h.charCodeAt(C)<=32;)C++;if(C>=h.length)break;const L=C;if(h.charCodeAt(L)===34){for(C++;C<h.length&&h.charCodeAt(C)!==34;)C++;C<h.length?(E.push(h.substring(L+1,C)),C++):c.push(Gs(_.Unterminated_quoted_string_in_response_file_0,v))}else{for(;h.charCodeAt(C)>32;)C++;E.push(h.substring(L,C))}}f(E)}}function xhe(e,t,r,i,o,s){if(i.isTSConfigOnly){const c=e[t];c==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?c==="false"?(o[i.name]=XT(i,!1,s),t++):(c==="true"&&t++,s.push(Gs(_.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Gs(_.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),c&&!Ta(c,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Gs(r.optionTypeMismatchDiagnostic,i.name,_w(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=XT(i,parseInt(e[t]),s),t++;break;case"boolean":const c=e[t];o[i.name]=XT(i,c!=="false",s),(c==="false"||c==="true")&&t++;break;case"string":o[i.name]=XT(i,e[t]||"",s),t++;break;case"list":const f=The(i,e[t],s);o[i.name]=f||[],f&&t++;break;case"listOrElement":D.fail("listOrElement not supported here");break;default:o[i.name]=M5(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function r7e(e,t){return XK(D8,e,t)}function YK(e,t){return $K(QC,e,t)}function $K(e,t,r=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:o}=e();if(r){const s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function Ahe(){return Qhe||(Qhe=P5(z5))}function i7e(e){const{options:t,watchOptions:r,fileNames:i,errors:o}=XK(ege,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Gs(_.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Gs(_.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Gs(_.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Gs(_.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function a7e(e,...t){return Gs.apply(void 0,arguments).messageText}function g8(e,t,r,i,o,s){const c=v8(e,v=>r.readFile(v));if(!Ha(c)){r.onUnRecoverableConfigFileDiagnostic(c);return}const f=h8(e,c),d=r.getCurrentDirectory();return f.path=Js(e,d,cu(r.useCaseSensitiveFileNames)),f.resolvedPath=f.path,f.originalFileName=f.fileName,E8(f,r,Oa(yi(e),d),t,Oa(e,d),void 0,s,i,o)}function y8(e,t){const r=v8(e,t);return Ha(r)?QK(e,r):{config:{},error:r}}function QK(e,t){const r=h8(e,t);return{config:Dhe(r,r.parseDiagnostics,!1,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function Che(e,t){const r=v8(e,t);return Ha(r)?h8(e,r):{fileName:e,parseDiagnostics:[r]}}function v8(e,t){let r;try{r=t(e)}catch(i){return Gs(_.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Gs(_.Cannot_read_file_0,e):r}function F5(e){return y1(e,She)}function Lhe(){return tge||(tge=P5(I8))}function Ihe(){return nge||(nge=F5(wg))}function khe(){return rge||(rge=F5(I8))}function whe(){return ige||(ige=F5(q5))}function o7e(){return EX===void 0&&(EX={name:void 0,type:"object",elementOptions:F5([{name:"compilerOptions",type:"object",elementOptions:Ihe(),extraKeyDiagnostics:D8},{name:"watchOptions",type:"object",elementOptions:khe(),extraKeyDiagnostics:R8},{name:"typeAcquisition",type:"object",elementOptions:whe(),extraKeyDiagnostics:bX},N8,{name:"references",type:"list",element:{name:"references",type:"object"},category:_.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:_.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:_.File_Management,defaultValueDescription:_.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:_.File_Management,defaultValueDescription:_.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},A8])}),EX}function Dhe(e,t,r,i){var o;const s=(o=e.statements[0])==null?void 0:o.expression,c=r?o7e():void 0;if(s&&s.kind!==207){if(t.push(md(e,s,_.The_root_value_of_a_0_file_must_be_an_object,Eu(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),zu(s)){const f=In(s.elements,Is);if(f)return b8(e,f,t,!0,c,i)}return{}}return b8(e,s,t,!0,c,i)}function Rhe(e,t){var r;return b8(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0,void 0)}function b8(e,t,r,i,o,s){if(!t)return i?{}:void 0;return v(t,o);function c(E){return o&&o.elementOptions===E}function f(E,C,L,I){const O=i?{}:void 0;for(const k of E.properties){if(k.kind!==299){r.push(md(e,k,_.Property_assignment_expected));continue}k.questionToken&&r.push(md(e,k.questionToken,_.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),h(k.name)||r.push(md(e,k.name,_.String_literal_with_double_quotes_expected));const G=CN(k.name)?void 0:QA(k.name),V=G&&ra(G),H=V&&C?C.get(V):void 0;V&&L&&!H&&(C?r.push(KK(V,L,(Y,$,M)=>md(e,k.name,Y,$,M))):r.push(md(e,k.name,L.unknownOptionDiagnostic,V)));const ne=v(k.initializer,H);if(typeof V!="undefined"&&(i&&(O[V]=ne),s&&(I||c(C)))){const Y=B5(H,ne);I?Y&&s.onSetValidOptionKeyValueInParent(I,H,ne):c(C)&&(Y?s.onSetValidOptionKeyValueInRoot(V,k.name,ne,k.initializer):H||s.onSetUnknownOptionKeyValueInRoot(V,k.name,ne,k.initializer))}}return O}function d(E,C){if(!i){E.forEach(L=>v(L,C));return}return yn(E.map(L=>v(L,C)),L=>L!==void 0)}function v(E,C){let L;switch(E.kind){case 110:return O(C&&C.type!=="boolean"&&(C.type!=="listOrElement"||C.element.type!=="boolean")),I(!0);case 95:return O(C&&C.type!=="boolean"&&(C.type!=="listOrElement"||C.element.type!=="boolean")),I(!1);case 104:return O(C&&C.name==="extends"),I(null);case 10:h(E)||r.push(md(e,E,_.String_literal_with_double_quotes_expected)),O(C&&Ha(C.type)&&C.type!=="string"&&(C.type!=="listOrElement"||Ha(C.element.type)&&C.element.type!=="string"));const k=E.text;if(C&&D.assert(C.type!=="listOrElement"||C.element.type==="string","Only string or array of string is handled for now"),C&&!Ha(C.type)){const V=C;V.type.has(k.toLowerCase())||(r.push(Ehe(V,(H,ne,Y)=>md(e,E,H,ne,Y))),L=!0)}return I(k);case 8:return O(C&&C.type!=="number"&&(C.type!=="listOrElement"||C.element.type!=="number")),I(Number(E.text));case 221:if(E.operator!==40||E.operand.kind!==8)break;return O(C&&C.type!=="number"&&(C.type!=="listOrElement"||C.element.type!=="number")),I(-Number(E.operand.text));case 207:O(C&&C.type!=="object"&&(C.type!=="listOrElement"||C.element.type!=="object"));const G=E;if(C){const{elementOptions:V,extraKeyDiagnostics:H,name:ne}=C;return I(f(G,V,H,ne))}else return I(f(G,void 0,void 0,void 0));case 206:return O(C&&C.type!=="list"&&C.type!=="listOrElement"),I(d(E.elements,C&&C.element))}C?O(!0):r.push(md(e,E,_.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function I(k){var G;if(!L){const V=(G=C==null?void 0:C.extraValidation)==null?void 0:G.call(C,k);if(V){r.push(md(e,E,...V));return}}return k}function O(k){k&&(r.push(md(e,E,_.Compiler_option_0_requires_a_value_of_type_1,C.name,_w(C))),L=!0)}}function h(E){return Ho(E)&&W3(E,e)}}function _w(e){return e.type==="listOrElement"?`${_w(e.element)} or Array`:e.type==="list"?"Array":Ha(e.type)?e.type:"string"}function B5(e,t){if(e){if(ZC(t))return!0;if(e.type==="list")return Va(t);if(e.type==="listOrElement")return Va(t)||B5(e.element,t);const r=Ha(e.type)?e.type:"string";return typeof t===r}return!1}function s7e(e,t,r){var i,o,s;const c=cu(r.useCaseSensitiveFileNames),f=zt(yn(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?c7e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):b1),E=>QR(Oa(t,r.getCurrentDirectory()),Oa(E,r.getCurrentDirectory()),c)),d=tX(e.options,{configFilePath:Oa(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),v=e.watchOptions&&u7e(e.watchOptions);return Ka(Ti({compilerOptions:Ka(Ti({},ZK(d)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:v&&ZK(v),references:zt(e.projectReferences,E=>Ka(Ti({},E),{path:E.originalPath?E.originalPath:"",originalPath:void 0})),files:Le(f)?f:void 0},(s=e.options.configFile)!=null&&s.configFileSpecs?{include:l7e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:e.compileOnSave?!0:void 0})}function ZK(e){return Ti({},No(e.entries()).reduce((t,r)=>Ka(Ti({},t),{[r[0]]:r[1]}),{}))}function l7e(e){if(Le(e)){if(Le(e)!==1)return e;if(e[0]!==K5)return e}}function c7e(e,t,r,i){if(!t)return b1;const o=Pk(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&qv(o.excludePattern,i.useCaseSensitiveFileNames),c=o.includeFilePattern&&qv(o.includeFilePattern,i.useCaseSensitiveFileNames);return c?s?f=>!(c.test(f)&&!s.test(f)):f=>!c.test(f):s?f=>s.test(f):b1}function Nhe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return Nhe(e.element);default:return e.type}}function eX(e,t){return pf(t,(r,i)=>{if(r===e)return i})}function tX(e,t){return Ohe(e,QC(),t)}function u7e(e){return Ohe(e,Lhe())}function Ohe(e,{optionsNameMap:t},r){const i=new Map,o=r&&cu(r.useCaseSensitiveFileNames);for(const s in e)if(Fs(e,s)){if(t.has(s)&&(t.get(s).category===_.Command_line_Options||t.get(s).category===_.Output_Formatting))continue;const c=e[s],f=t.get(s.toLowerCase());if(f){D.assert(f.type!=="listOrElement");const d=Nhe(f);d?f.type==="list"?i.set(s,c.map(v=>eX(v,d))):i.set(s,eX(c,d)):r&&f.isFilePath?i.set(s,QR(r.configFilePath,Oa(c,yi(r.configFilePath)),o)):i.set(s,c)}}return i}function d7e(e,t){const r=Phe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){const s=[],c=i(2);return j5.forEach(f=>{if(!r.has(f.name))return;const d=r.get(f.name),v=uX(f);d!==v?s.push(`${c}${f.name}: ${d}`):Fs(J5,f.name)&&s.push(`${c}${f.name}: ${v}`)}),s.join(t)+t}}function Phe(e){const t=pM(e,J5);return tX(t)}function f7e(e,t,r){const i=Phe(e);return c();function o(f){return Array(f+1).join(" ")}function s({category:f,name:d,isCommandLineOnly:v}){const h=[_.Command_line_Options,_.Editor_Support,_.Compiler_Diagnostics,_.Backwards_Compatibility,_.Watch_and_Build_Modes,_.Output_Formatting];return!v&&f!==void 0&&(!h.includes(f)||i.has(d))}function c(){const f=new Map;f.set(_.Projects,[]),f.set(_.Language_and_Environment,[]),f.set(_.Modules,[]),f.set(_.JavaScript_Support,[]),f.set(_.Emit,[]),f.set(_.Interop_Constraints,[]),f.set(_.Type_Checking,[]),f.set(_.Completeness,[]);for(const L of wg)if(s(L)){let I=f.get(L.category);I||f.set(L.category,I=[]),I.push(L)}let d=0,v=0;const h=[];f.forEach((L,I)=>{h.length!==0&&h.push({value:""}),h.push({value:`/* ${Po(I)} */`});for(const O of L){let k;i.has(O.name)?k=`"${O.name}": ${JSON.stringify(i.get(O.name))}${(v+=1)===i.size?"":","}`:k=`// "${O.name}": ${JSON.stringify(uX(O))},`,h.push({value:k,description:`/* ${O.description&&Po(O.description)||O.name} */`}),d=Math.max(k.length,d)}});const E=o(2),C=[];C.push("{"),C.push(`${E}"compilerOptions": {`),C.push(`${E}${E}/* ${Po(_.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),C.push("");for(const L of h){const{value:I,description:O=""}=L;C.push(I&&`${E}${E}${I}${O&&o(d-I.length+2)+O}`)}if(t.length){C.push(`${E}},`),C.push(`${E}"files": [`);for(let L=0;L<t.length;L++)C.push(`${E}${E}${JSON.stringify(t[L])}${L===t.length-1?"":","}`);C.push(`${E}]`)}else C.push(`${E}}`);return C.push("}"),C.join(r)+r}}function nX(e,t){const r={},i=QC().optionsNameMap;for(const o in e)Fs(e,o)&&(r[o]=_7e(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function _7e(e,t,r){if(e&&!ZC(t)){if(e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);D.assert(e.type!=="listOrElement")}return t}function p7e(e,t,r,i,o,s,c,f,d){return Mhe(e,void 0,t,r,i,d,o,s,c,f)}function E8(e,t,r,i,o,s,c,f,d){var v,h;(v=Si)==null||v.push(Si.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const E=Mhe(void 0,e,t,r,i,d,o,s,c,f);return(h=Si)==null||h.pop(),E}function rX(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function ZC(e){return e==null}function iX(e,t){return yi(Oa(e,t))}function Mhe(e,t,r,i,o={},s,c,f=[],d=[],v){D.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);const h=[],E=Ghe(e,t,r,i,c,f,h,v),{raw:C}=E,L=pM(o,E.options||{}),I=s&&E.watchOptions?pM(s,E.watchOptions):E.watchOptions||s;L.configFilePath=c&&ru(c);const O=G();t&&(t.configFileSpecs=O),rX(L,t);const k=Ko(c?iX(c,i):i);return{options:L,watchOptions:I,fileNames:V(k),projectReferences:H(k),typeAcquisition:E.typeAcquisition||U5(),raw:C,errors:h,wildcardDirectories:x7e(O,k,r.useCaseSensitiveFileNames),compileOnSave:!!C.compileOnSave};function G(){const de=$("references",xe=>typeof xe=="object","object"),re=ne(Y("files"));if(re){const xe=de==="no-prop"||Va(de)&&de.length===0,te=Fs(C,"extends");if(re.length===0&&xe&&!te)if(t){const Qe=c||"tsconfig.json",Ve=_.The_files_list_in_config_file_0_is_empty,Ge=Jt(IN(t,"files"),Oe=>Oe.initializer),ze=Ge?md(t,Ge,Ve,Qe):Gs(Ve,Qe);h.push(ze)}else M(_.The_files_list_in_config_file_0_is_empty,c||"tsconfig.json")}let be=ne(Y("include"));const ae=Y("exclude");let W=!1,ce=ne(ae);if(ae==="no-prop"&&C.compilerOptions){const xe=C.compilerOptions.outDir,te=C.compilerOptions.declarationDir;(xe||te)&&(ce=[xe,te].filter(Qe=>!!Qe))}re===void 0&&be===void 0&&(be=[K5],W=!0);let me,Ee;return be&&(me=Xhe(be,h,!0,t,"include")),ce&&(Ee=Xhe(ce,h,!1,t,"exclude")),{filesSpecs:re,includeSpecs:be,excludeSpecs:ce,validatedFilesSpec:yn(re,Ha),validatedIncludeSpecs:me,validatedExcludeSpecs:Ee,pathPatterns:void 0,isDefaultIncludeSpec:W}}function V(de){const re=x8(O,de,L,r,d);return Bhe(re,T8(C),f)&&h.push(Fhe(O,c)),re}function H(de){let re;const be=$("references",ae=>typeof ae=="object","object");if(Va(be))for(const ae of be)typeof ae.path!="string"?M(_.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(re||(re=[])).push({path:Oa(ae.path,de),originalPath:ae.path,prepend:ae.prepend,circular:ae.circular});return re}function ne(de){return Va(de)?de:void 0}function Y(de){return $(de,Ha,"string")}function $(de,re,be){if(Fs(C,de)&&!ZC(C[de]))if(Va(C[de])){const ae=C[de];return!t&&!Zn(ae,re)&&h.push(Gs(_.Compiler_option_0_requires_a_value_of_type_1,de,be)),ae}else return M(_.Compiler_option_0_requires_a_value_of_type_1,de,"Array"),"not-array";return"no-prop"}function M(de,re,be){t||h.push(Gs(de,re,be))}}function m7e(e){return e.code===_.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function Fhe({includeSpecs:e,excludeSpecs:t},r){return Gs(_.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function Bhe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function T8(e){return!Fs(e,"files")&&!Fs(e,"references")}function aX(e,t,r,i,o){const s=i.length;return Bhe(e,o)?i.push(Fhe(r,t)):ni(i,c=>!m7e(c)),s!==i.length}function h7e(e){return!!e.options}function Ghe(e,t,r,i,o,s,c,f){var d;i=ru(i);const v=Oa(o||"",i);if(s.indexOf(v)>=0)return c.push(Gs(_.Circularity_detected_while_resolving_configuration_Colon_0,[...s,v].join(" -> "))),{raw:e||Rhe(t,c)};const h=e?g7e(e,r,i,o,c):y7e(t,r,i,o,c);if((d=h.options)!=null&&d.paths&&(h.options.pathsBasePath=i),h.extendedConfigPath){s=s.concat([v]);const C={options:{}};Ha(h.extendedConfigPath)?E(C,h.extendedConfigPath):h.extendedConfigPath.forEach(L=>E(C,L)),!h.raw.include&&C.include&&(h.raw.include=C.include),!h.raw.exclude&&C.exclude&&(h.raw.exclude=C.exclude),!h.raw.files&&C.files&&(h.raw.files=C.files),h.raw.compileOnSave===void 0&&C.compileOnSave&&(h.raw.compileOnSave=C.compileOnSave),t&&C.extendedSourceFiles&&(t.extendedSourceFiles=No(C.extendedSourceFiles.keys())),h.options=DR(C.options,h.options),h.watchOptions=h.watchOptions&&C.watchOptions?DR(C.watchOptions,h.watchOptions):h.watchOptions||C.watchOptions}return h;function E(C,L){const I=v7e(t,L,r,s,c,f,C);if(I&&h7e(I)){const O=I.raw;let k;const G=V=>{O[V]&&(C[V]=zt(O[V],H=>Bm(H)?H:Bi(k||(k=FI(yi(L),i,cu(r.useCaseSensitiveFileNames))),H)))};G("include"),G("exclude"),G("files"),O.compileOnSave!==void 0&&(C.compileOnSave=O.compileOnSave),DR(C.options,I.options),C.watchOptions=C.watchOptions&&I.watchOptions?DR({},C.watchOptions,I.watchOptions):C.watchOptions||I.watchOptions}}}function g7e(e,t,r,i,o){Fs(e,"excludes")&&o.push(Gs(_.Unknown_option_excludes_Did_you_mean_exclude));const s=Vhe(e.compilerOptions,r,o,i),c=jhe(e.typeAcquisition,r,o,i),f=S7e(e.watchOptions,r,o);e.compileOnSave=b7e(e,r,o);let d;if(e.extends||e.extends==="")if(!B5(N8,e.extends))o.push(Gs(_.Compiler_option_0_requires_a_value_of_type_1,"extends",_w(N8)));else{const v=i?iX(i,r):r;if(Ha(e.extends))d=G5(e.extends,t,v,o,Gs);else{d=[];for(const h of e.extends)Ha(h)?d=Bn(d,G5(h,t,v,o,Gs)):o.push(Gs(_.Compiler_option_0_requires_a_value_of_type_1,"extends",_w(N8.element)))}}return{raw:e,options:s,watchOptions:f,typeAcquisition:c,extendedConfigPath:d}}function y7e(e,t,r,i,o){const s=Uhe(i);let c,f,d,v;const E=Dhe(e,o,!0,{onSetValidOptionKeyValueInParent(C,L,I){let O;switch(C){case"compilerOptions":O=s;break;case"watchOptions":O=f||(f={});break;case"typeAcquisition":O=c||(c=U5(i));break;default:D.fail("Unknown option")}O[L.name]=sX(L,r,I)},onSetValidOptionKeyValueInRoot(C,L,I,O){switch(C){case"extends":const k=i?iX(i,r):r;if(Ha(I))d=G5(I,t,k,o,(G,V)=>md(e,O,G,V));else{d=[];for(let G=0;G<I.length;G++){const V=I[G];Ha(V)&&(d=Bn(d,G5(V,t,k,o,(H,ne)=>md(e,O.elements[G],H,ne))))}}return}},onSetUnknownOptionKeyValueInRoot(C,L,I,O){C==="excludes"&&o.push(md(e,L,_.Unknown_option_excludes_Did_you_mean_exclude)),In(j5,k=>k.name===C)&&(v=Bn(v,L))}});return c||(c=U5(i)),v&&E&&E.compilerOptions===void 0&&o.push(md(e,v[0],_._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,QA(v[0]))),{raw:E,options:s,watchOptions:f,typeAcquisition:c,extendedConfigPath:d}}function G5(e,t,r,i,o){if(e=ru(e),Bm(e)||Ta(e,"./")||Ta(e,"../")){let c=Oa(e,r);if(!t.fileExists(c)&&!cc(c,".json")&&(c=`${c}.json`,!t.fileExists(c))){i.push(o(_.File_0_not_found,e));return}return c}const s=Ege(e,Bi(r,"tsconfig.json"),t);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;e===""?i.push(o(_.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(o(_.File_0_not_found,e))}function v7e(e,t,r,i,o,s,c){var f;const d=r.useCaseSensitiveFileNames?t:V_(t);let v,h,E;if(s&&(v=s.get(d))?{extendedResult:h,extendedConfig:E}=v:(h=Che(t,C=>r.readFile(C)),h.parseDiagnostics.length||(E=Ghe(void 0,h,r,yi(t),Eu(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:E})),e&&(((f=c.extendedSourceFiles)!=null?f:c.extendedSourceFiles=new Set).add(h.fileName),h.extendedSourceFiles))for(const C of h.extendedSourceFiles)c.extendedSourceFiles.add(C);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return E}function b7e(e,t,r){if(!Fs(e,A8.name))return!1;const i=S8(A8,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function E7e(e,t,r){const i=[];return{options:Vhe(e,t,i,r),errors:i}}function T7e(e,t,r){const i=[];return{options:jhe(e,t,i,r),errors:i}}function Uhe(e){return e&&Eu(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function Vhe(e,t,r,i){const o=Uhe(i);return oX(Ihe(),e,t,o,D8,r),i&&(o.configFilePath=ru(i)),o}function U5(e){return{enable:!!e&&Eu(e)==="jsconfig.json",include:[],exclude:[]}}function jhe(e,t,r,i){const o=U5(i);return oX(whe(),e,t,o,bX,r),o}function S7e(e,t,r){return oX(khe(),e,t,void 0,R8,r)}function oX(e,t,r,i,o,s){if(t){for(const c in t){const f=e.get(c);f?(i||(i={}))[f.name]=S8(f,t[c],r,s):s.push(KK(c,o,Gs))}return i}}function S8(e,t,r,i){if(B5(e,t)){const o=e.type;if(o==="list"&&Va(t))return zhe(e,t,r,i);if(o==="listOrElement")return Va(t)?zhe(e,t,r,i):S8(e.element,t,r,i);if(!Ha(e.type))return Whe(e,t,i);const s=XT(e,t,i);return ZC(s)?s:Hhe(e,r,s)}else i.push(Gs(_.Compiler_option_0_requires_a_value_of_type_1,e.name,_w(e)))}function sX(e,t,r){if(!ZC(r)){if(e.type==="listOrElement"&&!Va(r))return sX(e.element,t,r);if(e.type==="list"||e.type==="listOrElement"){const i=e;return i.element.isFilePath||!Ha(i.element.type)?yn(zt(r,o=>sX(i.element,t,o)),o=>i.listPreserveFalsyValues?!0:!!o):r}else if(!Ha(e.type))return e.type.get(Ha(r)?r.toLowerCase():r);return Hhe(e,t,r)}}function Hhe(e,t,r){return e.isFilePath&&(r=Oa(r,t),r===""&&(r=".")),r}function XT(e,t,r){var i;if(ZC(t))return;const o=(i=e.extraValidation)==null?void 0:i.call(e,t);if(!o)return t;r.push(Gs(...o))}function Whe(e,t,r){if(ZC(t))return;const i=t.toLowerCase(),o=e.type.get(i);if(o!==void 0)return XT(e,o,r);r.push(JK(e))}function zhe(e,t,r,i){return yn(zt(t,o=>S8(e.element,o,r,i)),o=>e.listPreserveFalsyValues?!0:!!o)}function x8(e,t,r,i,o=rt){t=Ko(t);const s=cu(i.useCaseSensitiveFileNames),c=new Map,f=new Map,d=new Map,{validatedFilesSpec:v,validatedIncludeSpecs:h,validatedExcludeSpecs:E}=e,C=Mk(r,o),L=TO(r,C);if(v)for(const G of v){const V=Oa(G,t);c.set(s(V),V)}let I;if(h&&h.length>0)for(const G of i.readDirectory(t,Ds(L),E,h,void 0)){if(hc(G,".json")){if(!I){const ne=h.filter($=>cc($,".json")),Y=zt(y7(ne,t,"files"),$=>`^${$}$`);I=Y?Y.map($=>qv($,i.useCaseSensitiveFileNames)):rt}if(mi(I,ne=>ne.test(G))!==-1){const ne=s(G);!c.has(ne)&&!d.has(ne)&&d.set(ne,G)}continue}if(C7e(G,c,f,C,s))continue;L7e(G,f,C,s);const V=s(G);!c.has(V)&&!f.has(V)&&f.set(V,G)}const O=No(c.values()),k=No(f.values());return O.concat(k,No(d.values()))}function qhe(e,t,r,i,o){const{validatedFilesSpec:s,validatedIncludeSpecs:c,validatedExcludeSpecs:f}=t;if(!Le(c)||!Le(f))return!1;r=Ko(r);const d=cu(i);if(s){for(const v of s)if(d(Oa(v,r))===e)return!1}return Khe(e,f,i,o,r)}function Jhe(e){const t=Ta(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(cc(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function V5(e,t,r,i){return Khe(e,yn(t,o=>!Jhe(o)),r,i)}function Khe(e,t,r,i,o){const s=Ok(t,Bi(Ko(i),o),"exclude"),c=s&&qv(s,r);return c?c.test(e)?!0:!BA(e)&&c.test(Vu(e)):!1}function Xhe(e,t,r,i,o){return e.filter(c=>{if(!Ha(c))return!1;const f=lX(c,r);return f!==void 0&&t.push(s(...f)),f===void 0});function s(c,f){const d=O3(i,o,f);return d?md(i,d,c,f):Gs(c,f)}}function lX(e,t){if(D.assert(typeof e=="string"),t&&age.test(e))return[_.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(Jhe(e))return[_.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function x7e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const o=Ok(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),c={};if(e!==void 0){const f=[];for(const d of e){const v=Ko(Bi(r,d));if(s&&s.test(v))continue;const h=A7e(v,i);if(h){const{key:E,flags:C}=h,L=c[E];(L===void 0||L<C)&&(c[E]=C,C===1&&f.push(E))}}for(const d in c)if(Fs(c,d))for(const v of f)d!==v&&Rv(v,d,r,!i)&&delete c[d]}return c}function A7e(e,t){const r=oge.exec(e);if(r){const i=e.indexOf("?"),o=e.indexOf("*"),s=e.lastIndexOf(Bs);return{key:t?r[0]:V_(r[0]),flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(sJ(e.substring(e.lastIndexOf(Bs)+1)))return{key:_T(t?e:V_(e)),flags:1}}function C7e(e,t,r,i,o){const s=Je(i,c=>Ic(e,c)?c:void 0);if(!s)return!1;for(const c of s){if(hc(e,c))return!1;const f=o(z1(e,c));if(t.has(f)||r.has(f)){if(c===".d.ts"&&(hc(e,".js")||hc(e,".jsx")))continue;return!0}}return!1}function L7e(e,t,r,i){const o=Je(r,s=>Ic(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){const c=o[s];if(hc(e,c))return;const f=i(z1(e,c));t.delete(f)}}function I7e(e){const t={};for(const r in e)if(Fs(e,r)){const i=YK(r);i!==void 0&&(t[r]=cX(e[r],i))}return t}function cX(e,t){switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!Va(e))return cX(e,t.element);case"list":const r=t.element;return Va(e)?e.map(i=>cX(i,r)):"";default:return pf(t.type,(i,o)=>{if(i===e)return o})}}function uX(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return uX(e.element);case"object":return{};default:const r=_M(e.type.keys());return r!==void 0?r:D.fail("Expected 'option.type' to have entries.")}}var A8,dX,pw,fX,C8,L8,I8,k8,w8,_X,j5,wg,pX,mX,hX,H5,W5,gX,yX,vX,z5,q5,Yhe,$he,J5,D8,Qhe,Zhe,ege,bX,tge,R8,nge,rge,ige,N8,EX,K5,age,oge,k7e=S({"src/compiler/commandLineParser.ts"(){Na(),A8={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},dX=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),pw=new Map(us(dX.entries(),([e,t])=>[""+t,e])),fX=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],C8=fX.map(e=>e[0]),L8=new Map(fX),I8=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:_.Watch_and_Build_Modes,description:_.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:_.Watch_and_Build_Modes,description:_.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:_.Watch_and_Build_Modes,description:_.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:_.Watch_and_Build_Modes,description:_.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:lX},category:_.Watch_and_Build_Modes,description:_.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:lX},category:_.Watch_and_Build_Modes,description:_.Remove_a_list_of_files_from_the_watch_mode_s_processing}],k8=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_.Command_line_Options,description:_.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:_.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_.Command_line_Options,description:_.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:_.Output_Formatting,description:_.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:_.Compiler_Diagnostics,description:_.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:_.Compiler_Diagnostics,description:_.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:_.Compiler_Diagnostics,description:_.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:_.Output_Formatting,description:_.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:_.Compiler_Diagnostics,description:_.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:_.Compiler_Diagnostics,description:_.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:_.Compiler_Diagnostics,description:_.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:_.FILE_OR_DIRECTORY,category:_.Compiler_Diagnostics,description:_.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:_.DIRECTORY,category:_.Compiler_Diagnostics,description:_.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:_.Projects,description:_.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:_.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,transpileOptionValue:void 0,description:_.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:_.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:_.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,description:_.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,defaultValueDescription:!1,description:_.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:_.Emit,description:_.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_.Watch_and_Build_Modes,description:_.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:_.Command_line_Options,isCommandLineOnly:!0,description:_.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:_.Platform_specific}],w8={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:_.VERSION,showInSimplifiedHelpView:!0,category:_.Language_and_Environment,description:_.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},_X={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:_.KIND,showInSimplifiedHelpView:!0,category:_.Modules,description:_.Specify_what_module_code_is_generated,defaultValueDescription:void 0},j5=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:_.Command_line_Options,paramType:_.FILE_OR_DIRECTORY,description:_.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,isCommandLineOnly:!0,description:_.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:_.Command_line_Options,isCommandLineOnly:!0,description:_.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},w8,_X,{name:"lib",type:"list",element:{name:"lib",type:L8,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_.Language_and_Environment,description:_.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:_.JavaScript_Support,description:_.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:_.JavaScript_Support,description:_.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:dX,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,paramType:_.KIND,showInSimplifiedHelpView:!0,category:_.Language_and_Environment,description:_.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.FILE,showInSimplifiedHelpView:!0,category:_.Emit,description:_.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.DIRECTORY,showInSimplifiedHelpView:!0,category:_.Emit,description:_.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.LOCATION,category:_.Modules,description:_.Specify_the_root_folder_within_your_source_files,defaultValueDescription:_.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:_.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:_.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:_.FILE,category:_.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:_.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,defaultValueDescription:!1,description:_.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:_.Emit,description:_.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:_.Interop_Constraints,description:_.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:_.Interop_Constraints,description:_.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Type_Checking,description:_.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:_.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:_.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Ensure_use_strict_is_always_emitted,defaultValueDescription:_.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:_.Type_Checking,description:_.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsModuleResolution:!0,paramType:_.STRATEGY,category:_.Modules,description:_.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:_.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:_.Modules,description:_.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:_.Modules,description:_.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:_.Modules,description:_.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:_.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:_.Modules,description:_.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_.Modules,description:_.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Interop_Constraints,description:_.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:_.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Interop_Constraints,description:_.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:_.Interop_Constraints,description:_.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Modules,description:_.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:_.Modules,description:_.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,category:_.Modules,description:_.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:_.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:_.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:_.Modules,description:_.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_.LOCATION,category:_.Emit,description:_.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_.LOCATION,category:_.Emit,description:_.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:_.Language_and_Environment,description:_.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:_.Language_and_Environment,description:_.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:_.Language_and_Environment,description:_.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:_.Modules,description:_.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:_.Backwards_Compatibility,paramType:_.FILE,transpileOptionValue:void 0,description:_.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:_.Completeness,description:_.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:_.Backwards_Compatibility,description:_.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:_.NEWLINE,category:_.Emit,description:_.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Output_Formatting,description:_.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:_.Language_and_Environment,affectsProgramStructure:!0,description:_.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:_.Editor_Support,description:_.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:_.Projects,description:_.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:_.Projects,description:_.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:_.Projects,description:_.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,transpileOptionValue:void 0,description:_.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.DIRECTORY,category:_.Emit,transpileOptionValue:void 0,description:_.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:_.Completeness,description:_.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:_.Interop_Constraints,description:_.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:_.JavaScript_Support,description:_.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:_.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:_.Backwards_Compatibility,description:_.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:_.Specify_a_list_of_language_service_plugins_to_include,category:_.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsModuleResolution:!0,description:_.Control_what_method_is_used_to_detect_module_format_JS_files,category:_.Language_and_Environment,defaultValueDescription:_.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],wg=[...k8,...j5],pX=wg.filter(e=>!!e.affectsSemanticDiagnostics),mX=wg.filter(e=>!!e.affectsEmit),hX=wg.filter(e=>!!e.affectsDeclarationPath),H5=wg.filter(e=>!!e.affectsModuleResolution),W5=wg.filter(e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics),gX=wg.filter(e=>!!e.affectsProgramStructure),yX=wg.filter(e=>Fs(e,"transpileOptionValue")),vX=[{name:"verbose",shortName:"v",category:_.Command_line_Options,description:_.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:_.Command_line_Options,description:_.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:_.Command_line_Options,description:_.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:_.Command_line_Options,description:_.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],z5=[...k8,...vX],q5=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],$he={diagnostic:_.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:Ahe},J5={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},D8={alternateMode:$he,getOptionsNameMap:QC,optionDeclarations:wg,unknownOptionDiagnostic:_.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:_.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_.Compiler_option_0_expects_an_argument},Zhe={diagnostic:_.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:QC},ege={alternateMode:Zhe,getOptionsNameMap:Ahe,optionDeclarations:z5,unknownOptionDiagnostic:_.Unknown_build_option_0,unknownDidYouMeanDiagnostic:_.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_.Build_option_0_requires_a_value_of_type_1},bX={optionDeclarations:q5,unknownOptionDiagnostic:_.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:_.Unknown_type_acquisition_option_0_Did_you_mean_1},R8={getOptionsNameMap:Lhe,optionDeclarations:I8,unknownOptionDiagnostic:_.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:_.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_.Watch_option_0_requires_a_value_of_type_1},N8={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:_.File_Management},K5="**/*",age=/(^|\/)\*\*\/?$/,oge=/^[^*?]*(?=\/[^/]*[*?])/}});function ma(e){e.trace(tJ.apply(void 0,arguments))}function e0(e,t){return!!e.traceResolution&&t.trace!==void 0}function eL(e,t){let r;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Bs.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function X5(e){return eL(void 0,e)}function sge(e){if(e)return D.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function lge(e){const t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function cge(e){if(e)return D.assert(E7(e.extension)),{fileName:e.path,packageId:e.packageId}}function uge(e,t,r,i,o,s,c,f){if(!c.resultFromCache&&!c.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!zc(e)){const{resolvedFileName:d,originalPath:v}=_ge(t.path,c.host,c.traceEnabled);v&&(t=Ka(Ti({},t),{path:d,originalPath:v}))}return dge(t,r,i,o,s,c.resultFromCache,f)}function dge(e,t,r,i,o,s,c){return s?(s.failedLookupLocations=tL(s.failedLookupLocations,r),s.affectingLocations=tL(s.affectingLocations,i),s.resolutionDiagnostics=tL(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:mw(r),affectingLocations:mw(i),resolutionDiagnostics:mw(o),node10Result:c}}function mw(e){return e.length?e:void 0}function tL(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function fge(e,t,r,i){if(!Fs(e,t)){i.traceEnabled&&ma(i.host,_.package_json_does_not_have_a_0_field,t);return}const o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&ma(i.host,_.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function Y5(e,t,r,i){const o=fge(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&ma(i.host,_.package_json_had_a_falsy_0_field,t);return}const s=Ko(Bi(r,o));return i.traceEnabled&&ma(i.host,_.package_json_has_0_field_1_that_references_2,t,o,s),s}function w7e(e,t,r){return Y5(e,"typings",t,r)||Y5(e,"types",t,r)}function D7e(e,t,r){return Y5(e,"tsconfig",t,r)}function R7e(e,t,r){return Y5(e,"main",t,r)}function N7e(e,t){const r=fge(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&ma(t.host,_.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function O7e(e,t){const r=N7e(e,t);if(r===void 0)return;if(t.traceEnabled)for(const c in r)Fs(r,c)&&!MA.tryParse(c)&&ma(t.host,_.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,c);const i=$5(r);if(!i){t.traceEnabled&&ma(t.host,_.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,_e);return}const{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&ma(t.host,_.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function $5(e){MX||(MX=new j_(ve));for(const t in e){if(!Fs(e,t))continue;const r=MA.tryParse(t);if(r!==void 0&&r.test(MX))return{version:t,paths:e[t]}}}function O8(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=yi(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return P7e(r,t)}function P7e(e,t){if(!t.directoryExists)return[Bi(e,FX)];let r;return mg(Ko(e),i=>{const o=Bi(i,FX);t.directoryExists(o)&&(r||(r=[])).push(o)}),r}function M7e(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return pT(e,t,!i)===0}function _ge(e,t,r){const i=Y7e(e,t,r),o=M7e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function TX(e,t,r,i,o,s,c){D.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const f=e0(r,i);o&&(r=o.commandLine.options);const d=t?yi(t):void 0;let v=d?s==null?void 0:s.getFromDirectoryCache(e,c,d,o):void 0;if(!v&&d&&!zc(e)&&(v=s==null?void 0:s.getFromNonRelativeNameCache(e,c,d,o)),v)return f&&(ma(i,_.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&ma(i,_.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),ma(i,_.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,d),ne(v)),v;const h=O8(r,i);f&&(t===void 0?h===void 0?ma(i,_.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):ma(i,_.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,h):h===void 0?ma(i,_.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):ma(i,_.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,h),o&&ma(i,_.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const E=[],C=[];let L=SX(r);c===99&&(Tl(r)===3||Tl(r)===99)&&(L|=32);const I=L&8?nL(r,!!(L&32)):[],O=[],k={compilerOptions:r,host:i,traceEnabled:f,failedLookupLocations:E,affectingLocations:C,packageJsonInfoCache:s,features:L,conditions:I,requestContainingDirectory:d,reportDiagnostic:M=>void O.push(M),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let G=Y(),V=!0;G||(G=$(),V=!1);let H;if(G){const{fileName:M,packageId:de}=G;let re=M,be;r.preserveSymlinks||({resolvedFileName:re,originalPath:be}=_ge(M,i,f)),H={primary:V,resolvedFileName:re,originalPath:be,packageId:de,isExternalLibraryImport:s2(M)}}return v={resolvedTypeReferenceDirective:H,failedLookupLocations:mw(E),affectingLocations:mw(C),resolutionDiagnostics:mw(O)},d&&(s==null||s.getOrCreateCacheForDirectory(d,o).set(e,c,v),zc(e)||s==null||s.getOrCreateCacheForNonRelativeName(e,c,o).set(d,v)),f&&ne(v),v;function ne(M){var de;(de=M.resolvedTypeReferenceDirective)!=null&&de.resolvedFileName?M.resolvedTypeReferenceDirective.packageId?ma(i,_.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,M.resolvedTypeReferenceDirective.resolvedFileName,TT(M.resolvedTypeReferenceDirective.packageId),M.resolvedTypeReferenceDirective.primary):ma(i,_.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,M.resolvedTypeReferenceDirective.resolvedFileName,M.resolvedTypeReferenceDirective.primary):ma(i,_.Type_reference_directive_0_was_not_resolved,e)}function Y(){if(h&&h.length)return f&&ma(i,_.Resolving_with_primary_search_path_0,h.join(", ")),Jt(h,M=>{const de=Bi(M,e),re=yi(de),be=om(re,i);return!be&&f&&ma(i,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,re),cge(Lge(4,de,!be,k))});f&&ma(i,_.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function $(){const M=t&&yi(t);if(M!==void 0){f&&ma(i,_.Looking_up_in_node_modules_folder_initial_location_0,M);let de;if(zc(e)){const{path:re}=Tge(M,e);de=tF(4,re,!1,k,!0)}else{const re=wge(4,e,M,k,void 0,void 0);de=re&&re.value}return cge(de)}else f&&ma(i,_.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function SX(e){let t=0;switch(Tl(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function nL(e,t){const r=t||Tl(e)===100?["import"]:["require"];return e.noDtsResolution||r.push("types"),Tl(e)!==100&&r.push("node"),ya(r,e.customConditions)}function F7e(e,t,r,i,o){const s=nF(o==null?void 0:o.getPackageJsonInfoCache(),i,r);return mg(t,c=>{if(Eu(c)!=="node_modules"){const f=Bi(c,"node_modules"),d=Bi(f,e);return l2(d,!1,s)}})}function Q5(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=O8(e,t);if(i){for(const o of i)if(t.directoryExists(o))for(const s of t.getDirectories(o)){const c=Ko(s),f=Bi(o,c,"package.json");if(!(t.fileExists(f)&&Ck(f,t).typings===null)){const v=Eu(c);v.charCodeAt(0)!==46&&r.push(v)}}}}return r}function xX(e){var t;if(e===null||typeof e!="object")return""+e;if(Va(e))return`[${(t=e.map(i=>xX(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)Fs(e,i)&&(r+=`${i}: ${xX(e[i])}`);return r+"}"}function AX(e,t){return t.map(r=>xX(m7(e,r))).join("|")+(e.pathsBasePath?`|${e.pathsBasePath}`:void 0)}function CX(e){const t=new Map,r=new Map,i=new Map;let o=new Map;return e&&t.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:c,update:f,clear:v};function s(E){return E?d(E.commandLine.options,!1):o}function c(E){return E?d(E.commandLine.options,!0):o}function f(E){e!==E&&(e?o=d(E,!0):t.set(E,o),e=E)}function d(E,C){let L=t.get(E);if(L)return L;const I=h(E);if(L=i.get(I),!L){if(e){const O=h(e);O===I?L=o:i.has(O)||i.set(O,o)}C&&(L!=null||(L=new Map)),L&&i.set(I,L)}return L&&t.set(E,L),L}function v(){const E=e&&r.get(e);o.clear(),t.clear(),r.clear(),i.clear(),e&&(E&&r.set(e,E),t.set(e,o))}function h(E){let C=r.get(E);return C||r.set(E,C=AX(E,H5)),C}}function B7e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,entries:c,getInternalMap:f};function i(d){return r==null?void 0:r.get(Js(d,e,t))}function o(d,v){(r||(r=new Map)).set(Js(d,e,t),v)}function s(){r=void 0}function c(){const d=r==null?void 0:r.entries();return d?No(d):[]}function f(){return r}}function pge(e,t,r,i){const o=e.getOrCreateMapOfCacheRedirects(t);let s=o.get(r);return s||(s=i(),o.set(r,s)),s}function G7e(e,t,r){const i=CX(r);return{getFromDirectoryCache:f,getOrCreateCacheForDirectory:c,clear:o,update:s};function o(){i.clear()}function s(d){i.update(d)}function c(d,v){const h=Js(d,e,t);return pge(i,v,h,()=>YT())}function f(d,v,h,E){var C,L;const I=Js(h,e,t);return(L=(C=i.getMapOfCacheRedirects(E))==null?void 0:C.get(I))==null?void 0:L.get(d,v)}}function hw(e,t){return t===void 0?e:`${t}|${e}`}function YT(){const e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,c){return e.set(i(o,s),c),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,c)=>{const[f,d]=t.get(c);return o(s,f,d)})},size(){return e.size}};return r;function i(o,s){const c=hw(o,s);return t.set(c,[o,s]),c}}function LX(e,t,r,i){D.assert(t.length===r.length);const o=YT();for(let s=0;s<t.length;++s){const c=t[s];o.set(i.getName(c),i.getMode(c,e),r[s])}return o}function U7e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function V7e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function j7e(e,t,r,i){const o=CX(r);return{getFromNonRelativeNameCache:f,getOrCreateCacheForNonRelativeName:d,clear:s,update:c};function s(){o.clear()}function c(h){o.update(h)}function f(h,E,C,L){var I,O;return D.assert(!zc(h)),(O=(I=o.getMapOfCacheRedirects(L))==null?void 0:I.get(hw(h,E)))==null?void 0:O.get(C)}function d(h,E,C){return D.assert(!zc(h)),pge(o,C,hw(h,E),v)}function v(){const h=new Map;return{get:E,set:C};function E(I){return h.get(Js(I,e,t))}function C(I,O){const k=Js(I,e,t);if(h.has(k))return;h.set(k,O);const G=i(O),V=G&&L(k,G);let H=k;for(;H!==V;){const ne=yi(H);if(ne===H||h.has(ne))break;h.set(ne,O),H=ne}}function L(I,O){const k=Js(yi(O),e,t);let G=0;const V=Math.min(I.length,k.length);for(;G<V&&I.charCodeAt(G)===k.charCodeAt(G);)G++;if(G===I.length&&(k.length===G||k[G]===Bs))return I;const H=nm(I);if(G<H)return;const ne=I.lastIndexOf(Bs,G-1);if(ne!==-1)return I.substr(0,Math.max(ne,H))}}}function mge(e,t,r,i,o){const s=G7e(e,t,r),c=j7e(e,t,r,o);return i!=null||(i=B7e(e,t)),Ka(Ti(Ti(Ti({},i),s),c),{clear:f,update:v,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:d});function f(){d(),i.clear()}function d(){s.clear(),c.clear()}function v(h){s.update(h),c.update(h)}}function Z5(e,t,r){const i=mge(e,t,r,void 0,U7e);return i.getOrCreateCacheForModuleName=(o,s,c)=>i.getOrCreateCacheForNonRelativeName(o,s,c),i}function eF(e,t,r,i){return mge(e,t,r,i,V7e)}function H7e(e,t,r,i){const o=yi(t);return r.getFromDirectoryCache(e,i,o,void 0)}function gw(e,t,r,i,o,s,c){const f=e0(r,i);s&&(r=s.commandLine.options),f&&(ma(i,_.Resolving_module_0_from_1,e,t),s&&ma(i,_.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const d=yi(t);let v=o==null?void 0:o.getFromDirectoryCache(e,c,d,s);if(v)f&&ma(i,_.Resolution_for_module_0_was_found_in_cache_from_location_1,e,d);else{let h=r.moduleResolution;if(h===void 0){switch(du(r)){case 1:h=2;break;case 100:h=3;break;case 199:h=99;break;default:h=1;break}f&&ma(i,_.Module_resolution_kind_is_not_specified_using_0,jR[h])}else f&&ma(i,_.Explicitly_specified_module_resolution_kind_Colon_0,jR[h]);switch(tm.logStartResolveModule(e),h){case 3:v=J7e(e,t,r,i,o,s,c);break;case 99:v=K7e(e,t,r,i,o,s,c);break;case 2:v=bge(e,t,r,i,o,s);break;case 1:v=Pge(e,t,r,i,o,s);break;case 100:v=vge(e,t,r,i,o,s);break;default:return D.fail(`Unexpected moduleResolution: ${h}`)}v&&v.resolvedModule&&tm.logInfoEvent(`Module "${e}" resolved to "${v.resolvedModule.resolvedFileName}"`),tm.logStopResolveModule(v&&v.resolvedModule?""+v.resolvedModule.resolvedFileName:"null"),o==null||o.getOrCreateCacheForDirectory(d,s).set(e,c,v),zc(e)||o==null||o.getOrCreateCacheForNonRelativeName(e,c,s).set(d,v)}return f&&(v.resolvedModule?v.resolvedModule.packageId?ma(i,_.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,v.resolvedModule.resolvedFileName,TT(v.resolvedModule.packageId)):ma(i,_.Module_name_0_was_successfully_resolved_to_1,e,v.resolvedModule.resolvedFileName):ma(i,_.Module_name_0_was_not_resolved,e)),v}function hge(e,t,r,i,o){const s=W7e(e,t,i,o);return s?s.value:zc(t)?z7e(e,t,r,i,o):q7e(e,t,i,o)}function W7e(e,t,r,i){var o;const{baseUrl:s,paths:c,configFile:f}=i.compilerOptions;if(c&&!Nf(t)){i.traceEnabled&&(s&&ma(i.host,_.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),ma(i.host,_.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const d=Rq(i.compilerOptions,i.host),v=f!=null&&f.configFileSpecs?(o=f.configFileSpecs).pathPatterns||(o.pathPatterns=b7(c)):void 0;return PX(e,t,d,c,v,r,!1,i)}}function z7e(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&ma(o.host,_.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const s=Ko(Bi(r,t));let c,f;for(const d of o.compilerOptions.rootDirs){let v=Ko(d);cc(v,Bs)||(v+=Bs);const h=Ta(s,v)&&(f===void 0||f.length<v.length);o.traceEnabled&&ma(o.host,_.Checking_if_0_is_the_longest_matching_prefix_for_1_2,v,s,h),h&&(f=v,c=d)}if(f){o.traceEnabled&&ma(o.host,_.Longest_matching_prefix_for_0_is_1,s,f);const d=s.substr(f.length);o.traceEnabled&&ma(o.host,_.Loading_0_from_the_root_dir_1_candidate_location_2,d,f,s);const v=i(e,s,!om(r,o.host),o);if(v)return v;o.traceEnabled&&ma(o.host,_.Trying_other_entries_in_rootDirs);for(const h of o.compilerOptions.rootDirs){if(h===c)continue;const E=Bi(Ko(h),d);o.traceEnabled&&ma(o.host,_.Loading_0_from_the_root_dir_1_candidate_location_2,d,h,E);const C=yi(E),L=i(e,E,!om(C,o.host),o);if(L)return L}o.traceEnabled&&ma(o.host,_.Module_resolution_using_rootDirs_has_failed)}}function q7e(e,t,r,i){const{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&ma(i.host,_.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);const s=Ko(Bi(o,t));return i.traceEnabled&&ma(i.host,_.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!om(yi(s),i.host),i)}function gge(e,t,r){const{resolvedModule:i,failedLookupLocations:o}=X7e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o==null?void 0:o.join(", ")}`);return i.resolvedFileName}function J7e(e,t,r,i,o,s,c){return yge(30,e,t,r,i,o,s,c)}function K7e(e,t,r,i,o,s,c){return yge(30,e,t,r,i,o,s,c)}function yge(e,t,r,i,o,s,c,f){const d=yi(r),v=f===99?32:0;let h=i.noDtsResolution?3:7;return BT(i)&&(h|=8),yw(e|v,t,d,i,o,s,h,!1,c)}function X7e(e,t,r){return yw(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0)}function vge(e,t,r,i,o,s){const c=yi(t);let f=r.noDtsResolution?3:7;return BT(r)&&(f|=8),yw(SX(r),e,c,r,i,o,f,!1,s)}function bge(e,t,r,i,o,s,c){let f;return c?f=8:r.noDtsResolution?(f=3,BT(r)&&(f|=8)):f=BT(r)?15:7,yw(0,e,yi(t),r,i,o,f,!!c,s)}function Ege(e,t,r){return yw(8,e,yi(t),{moduleResolution:99},r,void 0,8,!0,void 0)}function yw(e,t,r,i,o,s,c,f,d){var v,h,E,C;const L=e0(i,o),I=[],O=[],k=nL(i,!!(e&32)),G=[],V={compilerOptions:i,host:o,traceEnabled:L,failedLookupLocations:I,affectingLocations:O,packageJsonInfoCache:s,features:e,conditions:k,requestContainingDirectory:r,reportDiagnostic:$=>void G.push($),isConfigLookup:f,candidateIsFromPackageJsonField:!1};L&&Px(Tl(i))&&ma(o,_.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",k.map($=>`'${$}'`).join(", "));let H;if(Tl(i)===2){const $=c&5,M=c&-6;H=$&&Y($,V)||M&&Y(M,V)||void 0}else H=Y(c,V);let ne;if((v=H==null?void 0:H.value)!=null&&v.isExternalLibraryImport&&!f&&c&5&&e&8&&!zc(t)&&!DX(5,H.value.resolved.extension)&&k.indexOf("import")>-1){eE(V,_.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const $=Ka(Ti({},V),{features:V.features&-9,failedLookupLocations:[],affectingLocations:[],reportDiagnostic:lo}),M=Y(c&5,$);(h=M==null?void 0:M.value)!=null&&h.isExternalLibraryImport&&(ne=M.value.resolved.path)}return uge(t,(E=H==null?void 0:H.value)==null?void 0:E.resolved,(C=H==null?void 0:H.value)==null?void 0:C.isExternalLibraryImport,I,O,G,V,ne);function Y($,M){const re=hge($,t,r,(be,ae,W,ce)=>tF(be,ae,W,ce,!0),M);if(re)return d_({resolved:re,isExternalLibraryImport:s2(re.path)});if(zc(t)){const{path:be,parts:ae}=Tge(r,t),W=tF($,be,!1,M,!0);return W&&d_({resolved:W,isExternalLibraryImport:Ur(ae,"node_modules")})}else{let be;return e&2&&Ta(t,"#")&&(be=n5e($,t,r,M,s,d)),!be&&e&4&&(be=t5e($,t,r,M,s,d)),be||(L&&ma(o,_.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,lge($)),be=wge($,t,r,M,s,d)),be&&{value:be.value&&{resolved:be.value,isExternalLibraryImport:!0}}}}}function Tge(e,t){const r=Bi(e,t),i=pd(r),o=rl(i);return{path:o==="."||o===".."?Vu(Ko(r)):Ko(r),parts:i}}function Y7e(e,t,r){if(!t.realpath)return e;const i=Ko(t.realpath(e));return r&&ma(t,_.Resolving_real_path_for_0_result_1,e,i),D.assert(t.fileExists(i),`${e} linked to nonexistent file ${i}`),i}function tF(e,t,r,i,o){if(i.traceEnabled&&ma(i.host,_.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,lge(e)),!wv(t)){if(!r){const c=yi(t);om(c,i.host)||(i.traceEnabled&&ma(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),r=!0)}const s=vw(e,t,r,i);if(s){const c=o?IX(s.path):void 0,f=c?l2(c,!1,i):void 0;return eL(f,s)}}if(r||om(t,i.host)||(i.traceEnabled&&ma(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Lge(e,t,r,i,o)}function s2(e){return bu(e,By)}function IX(e){const t=Ko(e),r=t.lastIndexOf(By);if(r===-1)return;const i=r+By.length;let o=Sge(t,i);return t.charCodeAt(i)===64&&(o=Sge(t,o)),t.slice(0,o)}function Sge(e,t){const r=e.indexOf(Bs,t+1);return r===-1?t:r}function kX(e,t,r,i){return X5(vw(e,t,r,i))}function vw(e,t,r,i){const o=xge(e,t,r,i);if(o)return o;if(!(i.features&32)){const s=Age(t,e,"",r,i);if(s)return s}}function xge(e,t,r,i){if(Eu(t).indexOf(".")===-1)return;let s=qd(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));const c=t.substring(s.length);return i.traceEnabled&&ma(i.host,_.File_name_0_has_a_1_extension_stripping_it,t,c),Age(s,e,c,r,i)}function wX(e,t,r,i){return e&1&&Ic(t,D7)||e&4&&Ic(t,w7)?P8(t,r,i)!==void 0?{path:t,ext:o7(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&hc(t,".json")?P8(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:xge(e,t,r,i)}function Age(e,t,r,i,o){if(!i){const c=yi(e);c&&(i=!om(c,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!yd(e+r)&&s(`.d${r}.ts`)||void 0}function s(c,f){const d=P8(e+c,i,o);return d===void 0?void 0:{path:d,ext:c,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&f}}}function P8(e,t,r){var i,o;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return Cge(e,t,r);const s=(o=Nh(e))!=null?o:"",c=s?AO(e,s):e;return Je(r.compilerOptions.moduleSuffixes,f=>Cge(c+f+s,t,r))}function Cge(e,t,r){if(!t){if(r.host.fileExists(e))return r.traceEnabled&&ma(r.host,_.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&ma(r.host,_.File_0_does_not_exist,e)}r.failedLookupLocations.push(e)}function Lge(e,t,r,i,o=!0){const s=o?l2(t,r,i):void 0,c=s&&s.contents.packageJsonContent,f=s&&M8(s,i);return eL(s,iF(e,t,r,i,c,f))}function $7e(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s;const c=5|(o?2:0),f=SX(t),d=nF(i==null?void 0:i.getPackageJsonInfoCache(),r,t);d.conditions=nL(t),d.requestContainingDirectory=e.packageDirectory;const v=iF(c,e.packageDirectory,!1,d,e.contents.packageJsonContent,M8(e,d));if(s=Bn(s,v==null?void 0:v.path),f&8&&e.contents.packageJsonContent.exports){const h=NA([nL(t,!0),nL(t,!1)],Zp);for(const E of h){const C=Ka(Ti({},d),{failedLookupLocations:[],conditions:E}),L=Q7e(e,e.contents.packageJsonContent.exports,C,c);if(L)for(const I of L)s=yy(s,I.path)}}return e.contents.resolvedEntrypoints=s||!1}function Q7e(e,t,r,i){let o;if(Va(t))for(const c of t)s(c);else if(typeof t=="object"&&t!==null&&aF(t))for(const c in t)s(t[c]);else s(t);return o;function s(c){var f,d;if(typeof c=="string"&&Ta(c,"./")&&c.indexOf("*")===-1){const v=pd(c).slice(2);if(v.indexOf("..")>=0||v.indexOf(".")>=0||v.indexOf("node_modules")>=0)return!1;const h=Bi(e.packageDirectory,c),E=Oa(h,(d=(f=r.host).getCurrentDirectory)==null?void 0:d.call(f)),C=wX(i,E,!1,r);if(C)return o=yy(o,C,(L,I)=>L.path===I.path),!0}else if(Array.isArray(c)){for(const v of c)if(s(v))return!0}else if(typeof c=="object"&&c!==null)return Je(_g(c),v=>{if(v==="default"||Ur(r.conditions,v)||F8(r.conditions,v))return s(c[v]),!0})}}function nF(e,t,r){return{host:t,compilerOptions:r,traceEnabled:e0(r,t),failedLookupLocations:xM,affectingLocations:xM,packageJsonInfoCache:e,features:0,conditions:rt,requestContainingDirectory:void 0,reportDiagnostic:lo,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function rF(e,t){const r=pd(e);for(r.pop();r.length>0;){const i=l2(C1(r),!1,t);if(i)return i;r.pop()}}function M8(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=O7e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function l2(e,t,r){var i,o,s;const{host:c,traceEnabled:f}=r,d=Bi(e,"package.json");if(t){r.failedLookupLocations.push(d);return}const v=(i=r.packageJsonInfoCache)==null?void 0:i.getPackageJsonInfo(d);if(v!==void 0){if(typeof v!="boolean")return f&&ma(c,_.File_0_exists_according_to_earlier_cached_lookups,d),r.affectingLocations.push(d),v.packageDirectory===e?v:{packageDirectory:e,contents:v.contents};v&&f&&ma(c,_.File_0_does_not_exist_according_to_earlier_cached_lookups,d),r.failedLookupLocations.push(d);return}const h=om(e,c);if(h&&c.fileExists(d)){const E=Ck(d,c);f&&ma(c,_.Found_package_json_at_0,d);const C={packageDirectory:e,contents:{packageJsonContent:E,versionPaths:void 0,resolvedEntrypoints:void 0}};return(o=r.packageJsonInfoCache)==null||o.setPackageJsonInfo(d,C),r.affectingLocations.push(d),C}else h&&f&&ma(c,_.File_0_does_not_exist,d),(s=r.packageJsonInfoCache)==null||s.setPackageJsonInfo(d,h),r.failedLookupLocations.push(d)}function iF(e,t,r,i,o,s){let c;o&&(i.isConfigLookup?c=D7e(o,t,i):c=e&4&&w7e(o,t,i)||e&7&&R7e(o,t,i)||void 0);const f=(C,L,I,O)=>{const k=P8(L,I,O);if(k){const Y=Z7e(C,k);if(Y)return X5(Y);O.traceEnabled&&ma(O.host,_.File_0_has_an_unsupported_extension_so_skipping_it,k)}const G=C===4?5:C,V=O.features,H=O.candidateIsFromPackageJsonField;O.candidateIsFromPackageJsonField=!0,(o==null?void 0:o.type)!=="module"&&(O.features&=-33);const ne=tF(G,L,I,O,!1);return O.features=V,O.candidateIsFromPackageJsonField=H,ne},d=c?!om(yi(c),i.host):void 0,v=r||!om(t,i.host),h=Bi(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!c||Rv(t,c))){const C=Gm(t,c||h,!1);i.traceEnabled&&ma(i.host,_.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,ve,C);const L=PX(e,C,t,s.paths,void 0,f,d||v,i);if(L)return sge(L.value)}const E=c&&sge(f(e,c,d,i));if(E)return E;if(!(i.features&32))return vw(e,h,v,i)}function Z7e(e,t,r){const i=Nh(t);return i!==void 0&&DX(e,i)?{path:t,ext:i,resolvedUsingTsExtension:r}:void 0}function DX(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function RX(e){let t=e.indexOf(Bs);return e[0]==="@"&&(t=e.indexOf(Bs,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function aF(e){return Zn(_g(e),t=>Ta(t,"."))}function e5e(e){return!kt(_g(e),t=>Ta(t,"."))}function t5e(e,t,r,i,o,s){var c,f;const d=Oa(Bi(r,"dummy"),(f=(c=i.host).getCurrentDirectory)==null?void 0:f.call(c)),v=rF(d,i);if(!v||!v.contents.packageJsonContent.exports||typeof v.contents.packageJsonContent.name!="string")return;const h=pd(t),E=pd(v.contents.packageJsonContent.name);if(!Zn(E,(k,G)=>h[G]===k))return;const C=h.slice(E.length),L=Le(C)?`.${Bs}${C.join(Bs)}`:".",I=e&5,O=e&-6;return NX(v,I,L,i,o,s)||NX(v,O,L,i,o,s)}function NX(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let c;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&e5e(e.contents.packageJsonContent.exports)?c=e.contents.packageJsonContent.exports:Fs(e.contents.packageJsonContent.exports,".")&&(c=e.contents.packageJsonContent.exports["."]),c)return kge(t,i,o,s,r,e,!1)(c,"",!1,".")}else if(aF(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&ma(i.host,_.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),d_(void 0);const c=Ige(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(c)return c}return i.traceEnabled&&ma(i.host,_.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),d_(void 0)}}function n5e(e,t,r,i,o,s){var c,f;if(t==="#"||Ta(t,"#/"))return i.traceEnabled&&ma(i.host,_.Invalid_import_specifier_0_has_no_possible_resolutions,t),d_(void 0);const d=Oa(Bi(r,"dummy"),(f=(c=i.host).getCurrentDirectory)==null?void 0:f.call(c)),v=rF(d,i);if(!v)return i.traceEnabled&&ma(i.host,_.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),d_(void 0);if(!v.contents.packageJsonContent.imports)return i.traceEnabled&&ma(i.host,_.package_json_scope_0_has_no_imports_defined,v.packageDirectory),d_(void 0);const h=Ige(e,i,o,s,t,v.contents.packageJsonContent.imports,v,!0);return h||(i.traceEnabled&&ma(i.host,_.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,v.packageDirectory),d_(void 0))}function OX(e,t){const r=e.indexOf("*"),i=t.indexOf("*"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function Ige(e,t,r,i,o,s,c,f){const d=kge(e,t,r,i,o,c,f);if(!cc(o,Bs)&&o.indexOf("*")===-1&&Fs(s,o)){const E=s[o];return d(E,"",!1,o)}const v=kI(yn(_g(s),E=>E.indexOf("*")!==-1||cc(E,"/")),OX);for(const E of v)if(t.features&16&&h(E,o)){const C=s[E],L=E.indexOf("*"),I=o.substring(E.substring(0,L).length,o.length-(E.length-1-L));return d(C,I,!0,E)}else if(cc(E,"*")&&Ta(o,E.substring(0,E.length-1))){const C=s[E],L=o.substring(E.length-1);return d(C,L,!0,E)}else if(Ta(o,E)){const C=s[E],L=o.substring(E.length);return d(C,L,!1,E)}function h(E,C){if(cc(E,"*"))return!1;const L=E.indexOf("*");return L===-1?!1:Ta(C,E.substring(0,L))&&cc(C,E.substring(L+1))}}function kge(e,t,r,i,o,s,c){return f;function f(d,v,h,E){if(typeof d=="string"){if(!h&&v.length>0&&!cc(d,"/"))return t.traceEnabled&&ma(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),d_(void 0);if(!Ta(d,"./")){if(c&&!Ta(d,"../")&&!Ta(d,"/")&&!Bm(d)){const $=h?d.replace(/\*/g,v):d+v;eE(t,_.Using_0_subpath_1_with_target_2,"imports",E,$),eE(t,_.Resolving_module_0_from_1,$,s.packageDirectory+"/");const M=yw(t.features,$,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i);return d_(M.resolvedModule?{path:M.resolvedModule.resolvedFileName,extension:M.resolvedModule.extension,packageId:M.resolvedModule.packageId,originalPath:M.resolvedModule.originalPath,resolvedUsingTsExtension:M.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&ma(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),d_(void 0)}const G=(Nf(d)?pd(d).slice(1):pd(d)).slice(1);if(G.indexOf("..")>=0||G.indexOf(".")>=0||G.indexOf("node_modules")>=0)return t.traceEnabled&&ma(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),d_(void 0);const V=Bi(s.packageDirectory,d),H=pd(v);if(H.indexOf("..")>=0||H.indexOf(".")>=0||H.indexOf("node_modules")>=0)return t.traceEnabled&&ma(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),d_(void 0);t.traceEnabled&&ma(t.host,_.Using_0_subpath_1_with_target_2,c?"imports":"exports",E,h?d.replace(/\*/g,v):d+v);const ne=C(h?V.replace(/\*/g,v):V+v),Y=O(ne,v,Bi(s.packageDirectory,"package.json"),c);return Y||d_(eL(s,wX(e,ne,!1,t)))}else if(typeof d=="object"&&d!==null)if(Array.isArray(d)){if(!Le(d))return t.traceEnabled&&ma(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),d_(void 0);for(const k of d){const G=f(k,v,h,E);if(G)return G}}else{eE(t,_.Entering_conditional_exports);for(const k of _g(d))if(k==="default"||t.conditions.indexOf(k)>=0||F8(t.conditions,k)){eE(t,_.Matched_0_condition_1,c?"imports":"exports",k);const G=d[k],V=f(G,v,h,E);if(V)return eE(t,_.Resolved_under_condition_0,k),eE(t,_.Exiting_conditional_exports),V;eE(t,_.Failed_to_resolve_under_condition_0,k)}else eE(t,_.Saw_non_matching_condition_0,k);eE(t,_.Exiting_conditional_exports);return}else if(d===null)return t.traceEnabled&&ma(t.host,_.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),d_(void 0);return t.traceEnabled&&ma(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),d_(void 0);function C(k){var G,V;return k===void 0?k:Oa(k,(V=(G=t.host).getCurrentDirectory)==null?void 0:V.call(G))}function L(k,G){return Vu(Bi(k,G))}function I(){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}function O(k,G,V,H){var ne,Y,$,M;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&k.indexOf("/node_modules/")===-1&&(!t.compilerOptions.configFile||Rv(s.packageDirectory,C(t.compilerOptions.configFile.fileName),!I()))){const re=db({useCaseSensitiveFileNames:I}),be=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const ae=C(X8(t.compilerOptions,()=>[],((Y=(ne=t.host).getCurrentDirectory)==null?void 0:Y.call(ne))||"",re));be.push(ae)}else if(t.requestContainingDirectory){const ae=C(Bi(t.requestContainingDirectory,"index.ts")),W=C(X8(t.compilerOptions,()=>[ae,C(V)],((M=($=t.host).getCurrentDirectory)==null?void 0:M.call($))||"",re));be.push(W);let ce=Vu(W);for(;ce&&ce.length>1;){const me=pd(ce);me.pop();const Ee=C1(me);be.unshift(Ee),ce=Vu(Ee)}}be.length>1&&t.reportDiagnostic(Gs(H?_.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:_.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,G===""?".":G,V));for(const ae of be){const W=de(ae);for(const ce of W)if(Rv(ce,k,!I())){const me=k.slice(ce.length+1),Ee=Bi(ae,me),xe=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const te of xe)if(hc(Ee,te)){const Qe=l_e(Ee);for(const Ve of Qe){if(!DX(e,Ve))continue;const Ge=HW(Ee,Ve,te,!I());if(t.host.fileExists(Ge))return d_(eL(s,wX(e,Ge,!1,t)))}}}}}return;function de(re){var be,ae;const W=t.compilerOptions.configFile?((ae=(be=t.host).getCurrentDirectory)==null?void 0:ae.call(be))||"":re,ce=[];return t.compilerOptions.declarationDir&&ce.push(C(L(W,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&ce.push(C(L(W,t.compilerOptions.outDir))),ce}}}}function F8(e,t){if(e.indexOf("types")===-1||!Ta(t,"types@"))return!1;const r=MA.tryParse(t.substring(6));return r?r.test(ve):!1}function wge(e,t,r,i,o,s){return Dge(e,t,r,i,!1,o,s)}function r5e(e,t,r){return Dge(4,e,t,r,!0,void 0,void 0)}function Dge(e,t,r,i,o,s,c){const f=i.features===0?void 0:i.features&32?99:1,d=e&5,v=e&-6;if(d){const E=h(d);if(E)return E}if(v&&!o)return h(v);function h(E){return mg(ru(r),C=>{if(Eu(C)!=="node_modules"){const L=Oge(s,t,f,C,c,i);return L||d_(Rge(E,t,C,i,o,s,c))}})}}function Rge(e,t,r,i,o,s,c){const f=Bi(r,"node_modules"),d=om(f,i.host);if(!d&&i.traceEnabled&&ma(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,f),!o){const v=Nge(e,t,f,d,i,s,c);if(v)return v}if(e&4){const v=Bi(f,"@types");let h=d;return d&&!om(v,i.host)&&(i.traceEnabled&&ma(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,v),h=!1),Nge(4,i5e(t,i),v,h,i,s,c)}}function Nge(e,t,r,i,o,s,c){var f,d,v;const h=Ko(Bi(r,t)),{packageName:E,rest:C}=RX(t),L=Bi(r,E);let I,O=l2(h,!i,o);if(C!==""&&O&&(!(o.features&8)||!Fs((d=(f=I=l2(L,!i,o))==null?void 0:f.contents.packageJsonContent)!=null?d:rt,"exports"))){const V=vw(e,h,!i,o);if(V)return X5(V);const H=iF(e,h,!i,o,O.contents.packageJsonContent,M8(O,o));return eL(O,H)}const k=(V,H,ne,Y)=>{let $=vw(V,H,ne,Y)||iF(V,H,ne,Y,O&&O.contents.packageJsonContent,O&&M8(O,Y));return!$&&O&&(O.contents.packageJsonContent.exports===void 0||O.contents.packageJsonContent.exports===null)&&Y.features&32&&($=vw(V,Bi(H,"index.js"),ne,Y)),eL(O,$)};if(C!==""&&(O=I!=null?I:l2(L,!i,o)),O&&O.contents.packageJsonContent.exports&&o.features&8)return(v=NX(O,e,Bi(".",C),o,s,c))==null?void 0:v.value;const G=C!==""&&O?M8(O,o):void 0;if(G){o.traceEnabled&&ma(o.host,_.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,G.version,ve,C);const V=i&&om(L,o.host),H=PX(e,C,L,G.paths,void 0,k,!V,o);if(H)return H.value}return k(e,h,!i,o)}function PX(e,t,r,i,o,s,c,f){o||(o=b7(i));const d=_J(o,t);if(d){const v=Ha(d)?void 0:aue(d,t),h=Ha(d)?d:iue(d);return f.traceEnabled&&ma(f.host,_.Module_name_0_matched_pattern_1,t,h),{value:Je(i[h],C=>{const L=v?C.replace("*",v):C,I=Ko(Bi(r,L));f.traceEnabled&&ma(f.host,_.Trying_substitution_0_candidate_module_location_Colon_1,C,L);const O=Nh(C);if(O!==void 0){const k=P8(I,c,f);if(k!==void 0)return X5({path:k,ext:O,resolvedUsingTsExtension:void 0})}return s(e,I,c||!om(yi(I),f.host),f)})}}}function i5e(e,t){const r=bw(e);return t.traceEnabled&&r!==e&&ma(t.host,_.Scoped_package_detected_looking_in_0,r),r}function oF(e){return`@types/${bw(e)}`}function bw(e){if(Ta(e,"@")){const t=e.replace(Bs,lF);if(t!==e)return t.slice(1)}return e}function B8(e){const t=RI(e,"@types/");return t!==e?sF(t):e}function sF(e){return bu(e,lF)?"@"+e.replace(lF,Bs):e}function Oge(e,t,r,i,o,s){const c=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(c)return s.traceEnabled&&ma(s.host,_.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=c,{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,originalPath:c.resolvedModule.originalPath||!0,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId,resolvedUsingTsExtension:c.resolvedModule.resolvedUsingTsExtension}}}function Pge(e,t,r,i,o,s){const c=e0(r,i),f=[],d=[],v=yi(t),h=[],E={compilerOptions:r,host:i,traceEnabled:c,failedLookupLocations:f,affectingLocations:d,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:v,reportDiagnostic:I=>void h.push(I),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},C=L(5)||L(2|(r.resolveJsonModule?8:0));return uge(e,C&&C.value,(C==null?void 0:C.value)&&s2(C.value.path),f,d,h,E);function L(I){const O=hge(I,e,v,kX,E);if(O)return{value:O};if(zc(e)){const k=Ko(Bi(v,e));return d_(kX(I,k,!1,E))}else{const k=mg(v,G=>{const V=Oge(o,e,void 0,G,s,E);if(V)return V;const H=Ko(Bi(G,e));return d_(kX(I,H,!1,E))});if(k)return k;if(I&5)return r5e(e,v,E)}}}function Ew(e,t){return!!e.allowImportingTsExtensions||t&&yd(t)}function Mge(e,t,r,i,o,s){const c=e0(r,i);c&&ma(i,_.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);const f=[],d=[],v=[],h={compilerOptions:r,host:i,traceEnabled:c,failedLookupLocations:f,affectingLocations:d,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:C=>void v.push(C),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},E=Rge(4,e,o,h,!1,void 0,void 0);return dge(E,!0,f,d,v,h.resultFromCache)}function d_(e){return e!==void 0?{value:e}:void 0}function eE(e,t,...r){e.traceEnabled&&ma(e.host,t,...r)}var MX,FX,BX,By,lF,a5e=S({"src/compiler/moduleNameResolver.ts"(){Na(),FX=Bi("node_modules","@types"),BX=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(BX||{}),By="/node_modules/",lF="__"}});function Dg(e,t){return e.body&&!e.body.parent&&(jo(e.body,e),Jv(e.body,!1)),e.body?GX(e.body,t):1}function GX(e,t=new Map){const r=hs(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=o5e(e,t);return t.set(r,i),i}function o5e(e,t){switch(e.kind){case 261:case 262:return 0;case 263:if(M1(e))return 2;break;case 269:case 268:if(!$r(e,1))return 0;break;case 275:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===276){let i=0;for(const o of r.exportClause.elements){const s=s5e(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 265:{let i=0;return Pa(e,o=>{const s=GX(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:D.assertNever(s)}}),i}case 264:return Dg(e,t);case 79:if(e.flags&2048)return 0}return 1}function s5e(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if(uo(i)||dm(i)||Ji(i)){const o=i.statements;let s;for(const c of o)if(cN(c,r)){c.parent||(jo(c,i),Jv(c,!1));const f=GX(c,t);if((s===void 0||f>s)&&(s=f),s===1)return s}if(s!==void 0)return s}i=i.parent}return 1}function $T(e){return D.attachFlowNodeDebugInfo(e),e}function Fge(e,t){ll("beforeBind"),tm.logStartBindFile(""+e.fileName),Uge(e,t),tm.logStopBindFile(),ll("afterBind"),n_("Bind","beforeBind","afterBind")}function l5e(){var e,t,r,i,o,s,c,f,d,v,h,E,C,L,I,O,k,G,V,H,ne,Y,$=!1,M=0,de,re,be={flags:1},ae={flags:1},W=Wt();return me;function ce(U,et,qt,Yn,wa){return md(er(U)||e,U,et,qt,Yn,wa)}function me(U,et){var qt,Yn;e=U,t=et,r=ts(t),Y=Ee(e,et),re=new Set,M=0,de=Kc.getSymbolConstructor(),D.attachFlowNodeDebugInfo(be),D.attachFlowNodeDebugInfo(ae),e.locals||((qt=Si)==null||qt.push(Si.Phase.Bind,"bindSourceFile",{path:e.path},!0),xt(e),(Yn=Si)==null||Yn.pop(),e.symbolCount=M,e.classifiableNames=re,Hl()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,c=void 0,f=void 0,d=void 0,v=!1,h=void 0,E=void 0,C=void 0,L=void 0,I=void 0,O=void 0,k=void 0,V=void 0,H=!1,$=!1,ne=0}function Ee(U,et){return C_(et,"alwaysStrict")&&!U.isDeclarationFile?!0:!!U.externalModuleIndicator}function xe(U,et){return M++,new de(U,et)}function te(U,et,qt){U.flags|=qt,et.symbol=U,U.declarations=yy(U.declarations,et),qt&1955&&!U.exports&&(U.exports=co()),qt&6240&&!U.members&&(U.members=co()),U.constEnumOnlyModule&&U.flags&304&&(U.constEnumOnlyModule=!1),qt&111551&&jN(U,et)}function Qe(U){if(U.kind===274)return U.isExportEquals?"export=":"default";const et=Ia(U);if(et){if(ju(U)){const qt=K_(et);return im(U)?"__global":`"${qt}"`}if(et.kind===164){const qt=et.expression;if(i_(qt))return ul(qt.text);if(Q3(qt))return vo(qt.operator)+qt.operand.text;D.fail("Only computed properties with literal names have declaration names")}if(Oi(et)){const qt=wc(U);if(!qt)return;const Yn=qt.symbol;return tO(Yn,et.escapedText)}return J_(et)?hk(et):void 0}switch(U.kind){case 173:return"__constructor";case 181:case 176:case 326:return"__call";case 182:case 177:return"__new";case 178:return"__index";case 275:return"__export";case 308:return"export=";case 223:if(wl(U)===2)return"export=";D.fail("Unknown binary declaration kind");break;case 320:return cC(U)?"__new":"__call";case 166:return D.assert(U.parent.kind===320,"Impossible parameter parent kind",()=>`parent is: ${D.formatSyntaxKind(U.parent.kind)}, expected JSDocFunctionType`),"arg"+U.parent.parameters.indexOf(U)}}function Ve(U){return Su(U)?Rs(U.name):ra(D.checkDefined(Qe(U)))}function Ge(U,et,qt,Yn,wa,La,Ie){D.assert(Ie||!Hv(qt));const Ue=$r(qt,1024)||gd(qt)&&qt.name.escapedText==="default",Lt=Ie?"__computed":Ue&&et?"default":Qe(qt);let Ot;if(Lt===void 0)Ot=xe(0,"__missing");else if(Ot=U.get(Lt),Yn&2885600&&re.add(Lt),!Ot)U.set(Lt,Ot=xe(0,Lt)),La&&(Ot.isReplaceableByMethod=!0);else{if(La&&!Ot.isReplaceableByMethod)return Ot;if(Ot.flags&wa){if(Ot.isReplaceableByMethod)U.set(Lt,Ot=xe(0,Lt));else if(!(Yn&3&&Ot.flags&67108864)){Su(qt)&&jo(qt.name,qt);let mn=Ot.flags&2?_.Cannot_redeclare_block_scoped_variable_0:_.Duplicate_identifier_0,bn=!0;(Ot.flags&384||Yn&384)&&(mn=_.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,bn=!1);let Tn=!1;Le(Ot.declarations)&&(Ue||Ot.declarations&&Ot.declarations.length&&qt.kind===274&&!qt.isExportEquals)&&(mn=_.A_module_cannot_have_multiple_default_exports,bn=!1,Tn=!0);const Wn=[];um(qt)&&kl(qt.type)&&$r(qt,1)&&Ot.flags&2887656&&Wn.push(ce(qt,_.Did_you_mean_0,`export type { ${ra(qt.name.escapedText)} }`));const qr=Ia(qt)||qt;Je(Ot.declarations,(nr,_n)=>{const dr=Ia(nr)||nr,Sa=ce(dr,mn,bn?Ve(nr):void 0);e.bindDiagnostics.push(Tn?Yo(Sa,ce(qr,_n===0?_.Another_export_default_is_here:_.and_here)):Sa),Tn&&Wn.push(ce(dr,_.The_first_export_default_is_here))});const Ki=ce(qr,mn,bn?Ve(qt):void 0);e.bindDiagnostics.push(Yo(Ki,...Wn)),Ot=xe(0,Lt)}}}return te(Ot,qt,Yn),Ot.parent?D.assert(Ot.parent===et,"Existing symbol parent should match new one"):Ot.parent=et,Ot}function ze(U,et,qt){const Yn=!!(Ay(U)&1)||Oe(U);if(et&2097152)return U.kind===278||U.kind===268&&Yn?Ge(o.symbol.exports,o.symbol,U,et,qt):(D.assertNode(o,jm),Ge(o.locals,void 0,U,et,qt));if(S_(U)&&D.assert(fr(U)),!ju(U)&&(Yn||o.flags&64)){if(!jm(o)||!o.locals||$r(U,1024)&&!Qe(U))return Ge(o.symbol.exports,o.symbol,U,et,qt);const wa=et&111551?1048576:0,La=Ge(o.locals,void 0,U,wa,qt);return La.exportSymbol=Ge(o.symbol.exports,o.symbol,U,et,qt),U.localSymbol=La,La}else return D.assertNode(o,jm),Ge(o.locals,void 0,U,et,qt)}function Oe(U){if(U.parent&&$l(U)&&(U=U.parent),!S_(U))return!1;if(!i8(U)&&U.fullName)return!0;const et=Ia(U);return et?!!(_O(et.parent)&&ii(et.parent)||Au(et.parent)&&Ay(et.parent)&1):!1}function Me(U,et){const qt=o,Yn=s,wa=c;if(et&1?(U.kind!==216&&(s=o),o=c=U,et&32&&(o.locals=co(),So(o))):et&2&&(c=U,et&32&&(c.locals=void 0)),et&4){const La=h,Ie=E,Ue=C,Lt=L,Ot=k,mn=V,bn=H,Tn=et&16&&!$r(U,512)&&!U.asteriskToken&&!!LT(U)||U.kind===172;Tn||(h=$T({flags:2}),et&144&&(h.node=U)),L=Tn||U.kind===173||fr(U)&&(U.kind===259||U.kind===215)?Pn():void 0,k=void 0,E=void 0,C=void 0,V=void 0,H=!1,st(U),U.flags&=-2817,!(h.flags&1)&&et&8&&E_(U.body)&&(U.flags|=256,H&&(U.flags|=512),U.endFlowNode=h),U.kind===308&&(U.flags|=ne,U.endFlowNode=h),L&&(_r(L,h),h=At(L),(U.kind===173||U.kind===172||fr(U)&&(U.kind===259||U.kind===215))&&(U.returnFlowNode=h)),Tn||(h=La),E=Ie,C=Ue,L=Lt,k=Ot,V=mn,H=bn}else et&64?(v=!1,st(U),D.assertNotNode(U,je),U.flags=v?U.flags|128:U.flags&-129):st(U);o=qt,s=Yn,c=wa}function Ye(U){We(U,et=>et.kind===259?xt(et):void 0),We(U,et=>et.kind!==259?xt(et):void 0)}function We(U,et=xt){U!==void 0&&Je(U,et)}function Fe(U){Pa(U,xt,We)}function st(U){const et=$;if($=!1,Mp(U)){Fe(U),pn(U),$=et;return}switch(U.kind>=240&&U.kind<=256&&!t.allowUnreachableCode&&(U.flowNode=h),U.kind){case 244:rn(U);break;case 243:Mn(U);break;case 245:Ar(U);break;case 246:case 247:Hr(U);break;case 242:we(U);break;case 250:case 254:yt(U);break;case 249:case 248:pt(U);break;case 255:pe(U);break;case 252:ie(U);break;case 266:he(U);break;case 292:j(U);break;case 241:He(U);break;case 253:Xe(U);break;case 221:Er(U);break;case 222:ue(U);break;case 223:if(Dy(U)){$=et,mt(U);return}W(U);break;case 217:it(U);break;case 224:K(U);break;case 257:ee(U);break;case 208:case 209:Hi(U);break;case 210:ho(U);break;case 232:ki(U);break;case 349:case 341:case 343:gt(U);break;case 308:{Ye(U.statements),xt(U.endOfFileToken);break}case 238:case 265:Ye(U.statements);break;case 205:Re(U);break;case 166:q(U);break;case 207:case 206:case 299:case 227:$=et;default:Fe(U);break}pn(U),$=et}function Ct(U){switch(U.kind){case 79:case 80:case 108:case 208:case 209:return Vt(U);case 210:return tt(U);case 214:case 232:return Ct(U.expression);case 223:return on(U);case 221:return U.operator===53&&Ct(U.operand);case 218:return Ct(U.expression)}return!1}function Et(U){return xk(U)||(Fr(U)||Yx(U)||Jd(U))&&Et(U.expression)||br(U)&&U.operatorToken.kind===27&&Et(U.right)||fl(U)&&(i_(U.argumentExpression)||Xl(U.argumentExpression))&&Et(U.expression)||ld(U)&&Et(U.left)}function Vt(U){return Et(U)||xu(U)&&Vt(U.expression)}function tt(U){if(U.arguments){for(const et of U.arguments)if(Vt(et))return!0}return!!(U.expression.kind===208&&Vt(U.expression.expression))}function at(U,et){return GC(U)&&Qt(U.expression)&&As(et)}function on(U){switch(U.operatorToken.kind){case 63:case 75:case 76:case 77:return Vt(U.left);case 34:case 35:case 36:case 37:return Qt(U.left)||Qt(U.right)||at(U.right,U.left)||at(U.left,U.right);case 102:return Qt(U.left);case 101:return Ct(U.right);case 27:return Ct(U.right)}return!1}function Qt(U){switch(U.kind){case 214:return Qt(U.expression);case 223:switch(U.operatorToken.kind){case 63:return Qt(U.left);case 27:return Qt(U.right)}}return Vt(U)}function Pn(){return $T({flags:4,antecedents:void 0})}function Hn(){return $T({flags:8,antecedents:void 0})}function kn(U,et,qt){return $T({flags:1024,target:U,antecedents:et,antecedent:qt})}function Zt(U){U.flags|=U.flags&2048?4096:2048}function _r(U,et){!(et.flags&1)&&!Ur(U.antecedents,et)&&((U.antecedents||(U.antecedents=[])).push(et),Zt(et))}function wi(U,et,qt){return et.flags&1?et:qt?(qt.kind===110&&U&64||qt.kind===95&&U&32)&&!o3(qt)&&!uz(qt.parent)?be:Ct(qt)?(Zt(et),$T({flags:U,antecedent:et,node:qt})):et:U&32?et:be}function Qi(U,et,qt,Yn){return Zt(U),$T({flags:128,antecedent:U,switchStatement:et,clauseStart:qt,clauseEnd:Yn})}function Zi(U,et,qt){Zt(et);const Yn=$T({flags:U,antecedent:et,node:qt});return k&&_r(k,Yn),Yn}function Or(U,et){return Zt(U),$T({flags:512,antecedent:U,node:et})}function At(U){const et=U.antecedents;return et?et.length===1?et[0]:U:be}function vn(U){const et=U.parent;switch(et.kind){case 242:case 244:case 243:return et.expression===U;case 245:case 224:return et.condition===U}return!1}function Ht(U){for(;;)if(U.kind===214)U=U.expression;else if(U.kind===221&&U.operator===53)U=U.operand;else return dO(U)}function un(U){return Vq(Ws(U))}function ir(U){for(;Jd(U.parent)||Xv(U.parent)&&U.parent.operator===53;)U=U.parent;return!vn(U)&&!Ht(U.parent)&&!(xu(U.parent)&&U.parent.expression===U)}function cr(U,et,qt,Yn){const wa=I,La=O;I=qt,O=Yn,U(et),I=wa,O=La}function Mi(U,et,qt){cr(xt,U,et,qt),(!U||!un(U)&&!Ht(U)&&!(xu(U)&&XI(U)))&&(_r(et,wi(32,h,U)),_r(qt,wi(64,h,U)))}function vi(U,et,qt){const Yn=E,wa=C;E=et,C=qt,xt(U),E=Yn,C=wa}function Nn(U,et){let qt=V;for(;qt&&U.parent.kind===253;)qt.continueTarget=et,qt=qt.next,U=U.parent;return et}function rn(U){const et=Nn(U,Hn()),qt=Pn(),Yn=Pn();_r(et,h),h=et,Mi(U.expression,qt,Yn),h=At(qt),vi(U.statement,Yn,et),_r(et,h),h=At(Yn)}function Mn(U){const et=Hn(),qt=Nn(U,Pn()),Yn=Pn();_r(et,h),h=et,vi(U.statement,Yn,qt),_r(qt,h),h=At(qt),Mi(U.expression,et,Yn),h=At(Yn)}function Ar(U){const et=Nn(U,Hn()),qt=Pn(),Yn=Pn();xt(U.initializer),_r(et,h),h=et,Mi(U.condition,qt,Yn),h=At(qt),vi(U.statement,Yn,et),xt(U.incrementor),_r(et,h),h=At(Yn)}function Hr(U){const et=Nn(U,Hn()),qt=Pn();xt(U.expression),_r(et,h),h=et,U.kind===247&&xt(U.awaitModifier),_r(qt,h),xt(U.initializer),U.initializer.kind!==258&&ln(U.initializer),vi(U.statement,qt,et),_r(et,h),h=At(qt)}function we(U){const et=Pn(),qt=Pn(),Yn=Pn();Mi(U.expression,et,qt),h=At(et),xt(U.thenStatement),_r(Yn,h),h=At(qt),xt(U.elseStatement),_r(Yn,h),h=At(Yn)}function yt(U){xt(U.expression),U.kind===250&&(H=!0,L&&_r(L,h)),h=be}function Nt(U){for(let et=V;et;et=et.next)if(et.name===U)return et}function Ce(U,et,qt){const Yn=U.kind===249?et:qt;Yn&&(_r(Yn,h),h=be)}function pt(U){if(xt(U.label),U.label){const et=Nt(U.label.escapedText);et&&(et.referenced=!0,Ce(U,et.breakTarget,et.continueTarget))}else Ce(U,E,C)}function pe(U){const et=L,qt=k,Yn=Pn(),wa=Pn();let La=Pn();if(U.finallyBlock&&(L=wa),_r(La,h),k=La,xt(U.tryBlock),_r(Yn,h),U.catchClause&&(h=At(La),La=Pn(),_r(La,h),k=La,xt(U.catchClause),_r(Yn,h)),L=et,k=qt,U.finallyBlock){const Ie=Pn();Ie.antecedents=ya(ya(Yn.antecedents,La.antecedents),wa.antecedents),h=Ie,xt(U.finallyBlock),h.flags&1?h=be:(L&&wa.antecedents&&_r(L,kn(Ie,wa.antecedents,h)),k&&La.antecedents&&_r(k,kn(Ie,La.antecedents,h)),h=Yn.antecedents?kn(Ie,Yn.antecedents,h):be)}else h=At(Yn)}function ie(U){const et=Pn();xt(U.expression);const qt=E,Yn=G;E=et,G=h,xt(U.caseBlock),_r(et,h);const wa=Je(U.caseBlock.clauses,La=>La.kind===293);U.possiblyExhaustive=!wa&&!et.antecedents,wa||_r(et,Qi(G,U,0,0)),E=qt,G=Yn,h=At(et)}function he(U){const et=U.clauses,qt=Ct(U.parent.expression);let Yn=be;for(let wa=0;wa<et.length;wa++){const La=wa;for(;!et[wa].statements.length&&wa+1<et.length;)xt(et[wa]),wa++;const Ie=Pn();_r(Ie,qt?Qi(G,U.parent,La,wa+1):G),_r(Ie,Yn),h=At(Ie);const Ue=et[wa];xt(Ue),Yn=h,!(h.flags&1)&&wa!==et.length-1&&t.noFallthroughCasesInSwitch&&(Ue.fallthroughFlowNode=h)}}function j(U){const et=h;h=G,xt(U.expression),h=et,We(U.statements)}function He(U){xt(U.expression),Ze(U.expression)}function Ze(U){if(U.kind===210){const et=U;et.expression.kind!==106&&xk(et.expression)&&(h=Or(h,et))}}function Xe(U){const et=Pn();V={next:V,name:U.label.escapedText,breakTarget:et,continueTarget:void 0,referenced:!1},xt(U.label),xt(U.statement),!V.referenced&&!t.allowUnusedLabels&&jt(Q_e(t),U.label,_.Unused_label),V=V.next,_r(et,h),h=At(et)}function Ut(U){U.kind===223&&U.operatorToken.kind===63?ln(U.left):ln(U)}function ln(U){if(Et(U))h=Zi(16,h,U);else if(U.kind===206)for(const et of U.elements)et.kind===227?ln(et.expression):Ut(et);else if(U.kind===207)for(const et of U.properties)et.kind===299?Ut(et.initializer):et.kind===300?ln(et.name):et.kind===301&&ln(et.expression)}function Sn(U,et,qt){const Yn=Pn();U.operatorToken.kind===55||U.operatorToken.kind===76?Mi(U.left,Yn,qt):Mi(U.left,et,Yn),h=At(Yn),xt(U.operatorToken),Sk(U.operatorToken.kind)?(cr(xt,U.right,et,qt),ln(U.left),_r(et,wi(32,h,U)),_r(qt,wi(64,h,U))):Mi(U.right,et,qt)}function Er(U){if(U.operator===53){const et=I;I=O,O=et,Fe(U),O=I,I=et}else Fe(U),(U.operator===45||U.operator===46)&&ln(U.operand)}function ue(U){Fe(U),(U.operator===45||U.operator===46)&&ln(U.operand)}function mt(U){$?($=!1,xt(U.operatorToken),xt(U.right),$=!0,xt(U.left)):($=!0,xt(U.left),$=!1,xt(U.operatorToken),xt(U.right)),ln(U.left)}function Wt(){return k5(U,et,qt,Yn,wa,void 0);function U(Ie,Ue){if(Ue){Ue.stackIndex++,jo(Ie,i);const Ot=Y;ba(Ie);const mn=i;i=Ie,Ue.skip=!1,Ue.inStrictModeStack[Ue.stackIndex]=Ot,Ue.parentStack[Ue.stackIndex]=mn}else Ue={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const Lt=Ie.operatorToken.kind;if(uO(Lt)||Sk(Lt)){if(ir(Ie)){const Ot=Pn();Sn(Ie,Ot,Ot),h=At(Ot)}else Sn(Ie,I,O);Ue.skip=!0}return Ue}function et(Ie,Ue,Lt){if(!Ue.skip){const Ot=La(Ie);return Lt.operatorToken.kind===27&&Ze(Ie),Ot}}function qt(Ie,Ue,Lt){Ue.skip||xt(Ie)}function Yn(Ie,Ue,Lt){if(!Ue.skip){const Ot=La(Ie);return Lt.operatorToken.kind===27&&Ze(Ie),Ot}}function wa(Ie,Ue){if(!Ue.skip){const mn=Ie.operatorToken.kind;if(wy(mn)&&!wh(Ie)&&(ln(Ie.left),mn===63&&Ie.left.kind===209)){const bn=Ie.left;Qt(bn.expression)&&(h=Zi(256,h,Ie))}}const Lt=Ue.inStrictModeStack[Ue.stackIndex],Ot=Ue.parentStack[Ue.stackIndex];Lt!==void 0&&(Y=Lt),Ot!==void 0&&(i=Ot),Ue.skip=!1,Ue.stackIndex--}function La(Ie){if(Ie&&br(Ie)&&!Dy(Ie))return Ie;xt(Ie)}}function it(U){Fe(U),U.expression.kind===208&&ln(U.expression)}function K(U){const et=Pn(),qt=Pn(),Yn=Pn();Mi(U.condition,et,qt),h=At(et),xt(U.questionToken),xt(U.whenTrue),_r(Yn,h),h=At(qt),xt(U.colonToken),xt(U.whenFalse),_r(Yn,h),h=At(Yn)}function Pe(U){const et=Fc(U)?void 0:U.name;if(Ya(et))for(const qt of et.elements)Pe(qt);else h=Zi(16,h,U)}function ee(U){Fe(U),(U.initializer||JA(U.parent.parent))&&Pe(U)}function Re(U){xt(U.dotDotDotToken),xt(U.propertyName),Rt(U.initializer),xt(U.name)}function q(U){We(U.modifiers),xt(U.dotDotDotToken),xt(U.questionToken),xt(U.type),Rt(U.initializer),xt(U.name)}function Rt(U){if(!U)return;const et=h;if(xt(U),et===be||et===h)return;const qt=Pn();_r(qt,et),_r(qt,h),h=At(qt)}function gt(U){xt(U.tagName),U.kind!==343&&U.fullName&&(jo(U.fullName,U),Jv(U.fullName,!1)),typeof U.comment!="string"&&We(U.comment)}function ft(U){Fe(U);const et=cb(U);et&&et.kind!==171&&te(et.symbol,et,32)}function fn(U,et,qt){cr(xt,U,et,qt),(!xu(U)||XI(U))&&(_r(et,wi(32,h,U)),_r(qt,wi(64,h,U)))}function $n(U){switch(U.kind){case 208:xt(U.questionDotToken),xt(U.name);break;case 209:xt(U.questionDotToken),xt(U.argumentExpression);break;case 210:xt(U.questionDotToken),We(U.typeArguments),We(U.arguments);break}}function li(U,et,qt){const Yn=KI(U)?Pn():void 0;fn(U.expression,Yn||et,qt),Yn&&(h=At(Yn)),cr($n,U,et,qt),XI(U)&&(_r(et,wi(32,h,U)),_r(qt,wi(64,h,U)))}function Ii(U){if(ir(U)){const et=Pn();li(U,et,et),h=At(et)}else li(U,I,O)}function ki(U){xu(U)?Ii(U):Fe(U)}function Hi(U){xu(U)?Ii(U):Fe(U)}function ho(U){if(xu(U))Ii(U);else{const et=Ws(U.expression);et.kind===215||et.kind===216?(We(U.typeArguments),We(U.arguments),xt(U.expression)):(Fe(U),U.expression.kind===106&&(h=Or(h,U)))}if(U.expression.kind===208){const et=U.expression;je(et.name)&&Qt(et.expression)&&Eq(et.name)&&(h=Zi(256,h,U))}}function So(U){f&&(f.nextContainer=U),f=U}function oo(U,et,qt){switch(o.kind){case 264:return ze(U,et,qt);case 308:return Wi(U,et,qt);case 228:case 260:return ca(U,et,qt);case 263:return Ge(o.symbol.exports,o.symbol,U,et,qt);case 184:case 325:case 207:case 261:case 289:return Ge(o.symbol.members,o.symbol,U,et,qt);case 181:case 182:case 176:case 177:case 326:case 178:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 320:case 172:case 262:case 197:return o.locals&&D.assertNode(o,jm),Ge(o.locals,void 0,U,et,qt)}}function ca(U,et,qt){return Ja(U)?Ge(o.symbol.exports,o.symbol,U,et,qt):Ge(o.symbol.members,o.symbol,U,et,qt)}function Wi(U,et,qt){return rc(e)?ze(U,et,qt):Ge(e.locals,void 0,U,et,qt)}function Xr(U){const et=Ji(U)?U:si(U.body,dm);return!!et&&et.statements.some(qt=>au(qt)||Vl(qt))}function ss(U){U.flags&16777216&&!Xr(U)?U.flags|=64:U.flags&=-65}function hi(U){if(ss(U),ju(U))if($r(U,1)&&It(U,_.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Hz(U))ua(U);else{let et;if(U.name.kind===10){const{text:Yn}=U.name;et=SC(Yn),et===void 0&&It(U.name,_.Pattern_0_can_have_at_most_one_Asterisk_character,Yn)}const qt=oo(U,512,110735);e.patternAmbientModules=Bn(e.patternAmbientModules,et&&!Ha(et)?{pattern:et,symbol:qt}:void 0)}else{const et=ua(U);if(et!==0){const{symbol:qt}=U;qt.constEnumOnlyModule=!(qt.flags&304)&&et===2&&qt.constEnumOnlyModule!==!1}}}function ua(U){const et=Dg(U),qt=et!==0;return oo(U,qt?512:1024,qt?110735:0),et}function Dn(U){const et=xe(131072,Qe(U));te(et,U,131072);const qt=xe(2048,"__type");te(qt,U,2048),qt.members=co(),qt.members.set(et.escapedName,et)}function fa(U){return jl(U,4096,"__object")}function ic(U){return jl(U,4096,"__jsxAttributes")}function al(U,et,qt){return oo(U,et,qt)}function jl(U,et,qt){const Yn=xe(et,qt);return et&106508&&(Yn.parent=o.symbol),te(Yn,U,et),Yn}function Zl(U,et,qt){switch(c.kind){case 264:ze(U,et,qt);break;case 308:if(mf(o)){ze(U,et,qt);break}default:D.assertNode(c,jm),c.locals||(c.locals=co(),So(c)),Ge(c.locals,void 0,U,et,qt)}}function Hl(){if(!d)return;const U=o,et=f,qt=c,Yn=i,wa=h;for(const La of d){const Ie=La.parent.parent;o=rr(Ie.parent,Lt=>!!(Gge(Lt)&1))||e,c=zm(Ie)||e,h=$T({flags:2}),i=La,xt(La.typeExpression);const Ue=Ia(La);if((i8(La)||!La.fullName)&&Ue&&_O(Ue.parent)){const Lt=ii(Ue.parent);if(Lt){jn(e.symbol,Ue.parent,Lt,!!rr(Ue,mn=>Fr(mn)&&mn.name.escapedText==="prototype"),!1);const Ot=o;switch(UN(Ue.parent)){case 1:case 2:mf(e)?o=e:o=void 0;break;case 4:o=Ue.parent.expression;break;case 3:o=Ue.parent.expression.name;break;case 5:o=tE(e,Ue.parent.expression)?e:Fr(Ue.parent.expression)?Ue.parent.expression.name:Ue.parent.expression;break;case 0:return D.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&ze(La,524288,788968),o=Ot}}else i8(La)||!La.fullName||La.fullName.kind===79?(i=La.parent,Zl(La,524288,788968)):xt(La.fullName)}o=U,f=et,c=qt,i=Yn,h=wa}function Lo(U){if(!e.parseDiagnostics.length&&!(U.flags&16777216)&&!(U.flags&8388608)&&!Qfe(U)){const et=ib(U);if(et===void 0)return;Y&&et>=117&&et<=125?e.bindDiagnostics.push(ce(U,Ca(U),Rs(U))):et===133?rc(e)&&M3(U)?e.bindDiagnostics.push(ce(U,_.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Rs(U))):U.flags&32768&&e.bindDiagnostics.push(ce(U,_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Rs(U))):et===125&&U.flags&8192&&e.bindDiagnostics.push(ce(U,_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Rs(U)))}}function Ca(U){return wc(U)?_.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:_.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function $o(U){U.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ce(U,_.constructor_is_a_reserved_word,Rs(U))))}function Wl(U){Y&&Id(U.left)&&wy(U.operatorToken.kind)&&Zc(U,U.left)}function ou(U){Y&&U.variableDeclaration&&Zc(U,U.variableDeclaration.name)}function Qd(U){if(Y&&U.expression.kind===79){const et=P1(e,U.expression);e.bindDiagnostics.push(Mc(e,et.start,et.length,_.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function dc(U){return je(U)&&(U.escapedText==="eval"||U.escapedText==="arguments")}function Zc(U,et){if(et&&et.kind===79){const qt=et;if(dc(qt)){const Yn=P1(e,et);e.bindDiagnostics.push(Mc(e,Yn.start,Yn.length,Ns(U),Mr(qt)))}}}function Ns(U){return wc(U)?_.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?_.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:_.Invalid_use_of_0_in_strict_mode}function vl(U){Y&&Zc(U,U.name)}function nl(U){return wc(U)?_.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:_.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ys(U){if(r<2&&c.kind!==308&&c.kind!==264&&!WA(c)){const et=P1(e,U);e.bindDiagnostics.push(Mc(e,et.start,et.length,nl(U)))}}function nn(U){r<1&&Y&&U.numericLiteralFlags&32&&e.bindDiagnostics.push(ce(U,_.Octal_literals_are_not_allowed_in_strict_mode))}function zl(U){Y&&Zc(U,U.operand)}function wu(U){Y&&(U.operator===45||U.operator===46)&&Zc(U,U.operand)}function $u(U){Y&&It(U,_.with_statements_are_not_allowed_in_strict_mode)}function fe(U){Y&&ts(t)>=2&&(Xde(U.statement)||gc(U.statement))&&It(U.label,_.A_label_is_not_allowed_here)}function It(U,et,qt,Yn,wa){const La=ky(e,U.pos);e.bindDiagnostics.push(Mc(e,La.start,La.length,et,qt,Yn,wa))}function jt(U,et,qt){Z(U,et,et,qt)}function Z(U,et,qt,Yn){ot(U,{pos:ST(et,e),end:qt.end},Yn)}function ot(U,et,qt){const Yn=Mc(e,et.pos,et.end-et.pos,qt);U?e.bindDiagnostics.push(Yn):e.bindSuggestionDiagnostics=Bn(e.bindSuggestionDiagnostics,Ka(Ti({},Yn),{category:2}))}function xt(U){if(!U)return;jo(U,i),Si&&(U.tracingPath=e.path);const et=Y;if(ba(U),U.kind>162){const qt=i;i=U;const Yn=Gge(U);Yn===0?st(U):Me(U,Yn),i=qt}else{const qt=i;U.kind===1&&(i=U),pn(U),i=qt}Y=et}function pn(U){if(Of(U))if(fr(U))for(const et of U.jsDoc)xt(et);else for(const et of U.jsDoc)jo(et,U),Jv(et,!1)}function wr(U){if(!Y)for(const et of U){if(!Ap(et))return;if(Pr(et)){Y=!0;return}}}function Pr(U){const et=N1(e,U.expression);return et==='"use strict"'||et==="'use strict'"}function ba(U){switch(U.kind){case 79:if(U.flags&2048){let Ie=U.parent;for(;Ie&&!S_(Ie);)Ie=Ie.parent;Zl(Ie,524288,788968);break}case 108:return h&&(vt(U)||i.kind===300)&&(U.flowNode=h),Lo(U);case 163:h&&V3(U)&&(U.flowNode=h);break;case 233:case 106:U.flowNode=h;break;case 80:return $o(U);case 208:case 209:const et=U;h&&Et(et)&&(et.flowNode=h),Vfe(et)&&Yi(et),fr(et)&&e.commonJsModuleIndicator&&kh(et)&&!G8(c,"module")&&Ge(e.locals,void 0,et.expression,134217729,111550);break;case 223:switch(wl(U)){case 1:Zd(U);break;case 2:ql(U);break;case 3:ut(U.left,U);break;case 6:Io(U);break;case 4:Ae(U);break;case 5:const Ie=U.left.expression;if(fr(U)&&je(Ie)){const Ue=G8(c,Ie.escapedText);if(F3(Ue==null?void 0:Ue.valueDeclaration)){Ae(U);break}}Pt(U);break;case 0:break;default:D.fail("Unknown binary expression special property assignment kind")}return Wl(U);case 295:return ou(U);case 217:return Qd(U);case 8:return nn(U);case 222:return zl(U);case 221:return wu(U);case 251:return $u(U);case 253:return fe(U);case 194:v=!0;return;case 179:break;case 165:return Sf(U);case 166:return Du(U);case 257:return ef(U);case 205:return U.flowNode=h,ef(U);case 169:case 168:return ls(U);case 299:case 300:return Qo(U,4,0);case 302:return Qo(U,8,900095);case 176:case 177:case 178:return oo(U,131072,0);case 171:case 170:return Qo(U,8192|(U.questionToken?16777216:0),q_(U)?0:103359);case 259:return Tf(U);case 173:return oo(U,16384,0);case 174:return Qo(U,32768,46015);case 175:return Qo(U,65536,78783);case 181:case 320:case 326:case 182:return Dn(U);case 184:case 325:case 197:return go(U);case 335:return ft(U);case 207:return fa(U);case 215:case 216:return D_(U);case 210:switch(wl(U)){case 7:return Mt(U);case 8:return ml(U);case 9:return oe(U);case 0:break;default:return D.fail("Unknown call expression assignment declaration kind")}fr(U)&&bd(U);break;case 228:case 260:return Y=!0,Ef(U);case 261:return Zl(U,64,788872);case 262:return Zl(U,524288,788968);case 263:return ac(U);case 264:return hi(U);case 289:return ic(U);case 288:return al(U,4,0);case 268:case 271:case 273:case 278:return oo(U,2097152,2097152);case 267:return yc(U);case 270:return Ts(U);case 275:return vd(U);case 274:return pl(U);case 308:return wr(U.statements),Wo();case 238:if(!WA(U.parent))return;case 265:return wr(U.statements);case 344:if(U.parent.kind===326)return Du(U);if(U.parent.kind!==325)break;case 351:const wa=U,La=wa.isBracketed||wa.typeExpression&&wa.typeExpression.type.kind===319?16777220:4;return oo(wa,La,0);case 349:case 341:case 343:return(d||(d=[])).push(U);case 342:return xt(U.typeExpression)}}function ls(U){const et=_f(U),qt=et?98304:4,Yn=et?13247:0;return Qo(U,qt|(U.questionToken?16777216:0),Yn)}function go(U){return jl(U,2048,"__type")}function Wo(){if(ss(e),rc(e))$a();else if(T_(e)){$a();const U=e.symbol;Ge(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=U}}function $a(){jl(e,512,`"${qd(e.fileName)}"`)}function pl(U){if(!o.symbol||!o.symbol.exports)jl(U,111551,Qe(U));else{const et=fC(U)?2097152:4,qt=Ge(o.symbol.exports,o.symbol,U,et,67108863);U.isExportEquals&&jN(qt,U)}}function yc(U){kt(U.modifiers)&&e.bindDiagnostics.push(ce(U,_.Modifiers_cannot_appear_here));const et=Ji(U.parent)?rc(U.parent)?U.parent.isDeclarationFile?void 0:_.Global_module_exports_may_only_appear_in_declaration_files:_.Global_module_exports_may_only_appear_in_module_files:_.Global_module_exports_may_only_appear_at_top_level;et?e.bindDiagnostics.push(ce(U,et)):(e.symbol.globalExports=e.symbol.globalExports||co(),Ge(e.symbol.globalExports,e.symbol,U,2097152,2097152))}function vd(U){!o.symbol||!o.symbol.exports?jl(U,8388608,Qe(U)):U.exportClause?Bh(U.exportClause)&&(jo(U.exportClause,U),Ge(o.symbol.exports,o.symbol,U.exportClause,2097152,2097152)):Ge(o.symbol.exports,o.symbol,U,8388608,0)}function Ts(U){U.name&&oo(U,2097152,2097152)}function fs(U){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=U,e.externalModuleIndicator||$a()),!0)}function ml(U){if(!fs(U))return;const et=$s(U.arguments[0],void 0,(qt,Yn)=>(Yn&&te(Yn,qt,67110400),Yn));et&&Ge(et.exports,et,U,1048580,0)}function Zd(U){if(!fs(U))return;const et=$s(U.left.expression,void 0,(qt,Yn)=>(Yn&&te(Yn,qt,67110400),Yn));if(et){const Yn=ZN(U.right)&&(IT(U.left.expression)||kh(U.left.expression))?2097152:1048580;jo(U.left,U),Ge(et.exports,et,U.left,Yn,0)}}function ql(U){if(!fs(U))return;const et=FN(U.right);if(Wq(et)||o===e&&tE(e,et))return;if(Is(et)&&Zn(et.properties,u_)){Je(et.properties,Hf);return}const qt=fC(U)?2097152:1049092,Yn=Ge(e.symbol.exports,e.symbol,U,qt|67108864,0);jN(Yn,U)}function Hf(U){Ge(e.symbol.exports,e.symbol,U,69206016,0)}function Ae(U){if(D.assert(fr(U)),br(U)&&Fr(U.left)&&Oi(U.left.name)||Fr(U)&&Oi(U.name))return;const qt=kd(U,!1,!1);switch(qt.kind){case 259:case 215:let Yn=qt.symbol;if(br(qt.parent)&&qt.parent.operatorToken.kind===63){const Ie=qt.parent.left;kT(Ie)&&fb(Ie.expression)&&(Yn=Ss(Ie.expression.expression,s))}Yn&&Yn.valueDeclaration&&(Yn.members=Yn.members||co(),Hv(U)?Dt(U,Yn,Yn.members):Ge(Yn.members,Yn,U,67108868,0),te(Yn,Yn.valueDeclaration,32));break;case 173:case 169:case 171:case 174:case 175:case 172:const wa=qt.parent,La=Ja(qt)?wa.symbol.exports:wa.symbol.members;Hv(U)?Dt(U,wa.symbol,La):Ge(La,wa.symbol,U,67108868,0,!0);break;case 308:if(Hv(U))break;qt.commonJsModuleIndicator?Ge(qt.symbol.exports,qt.symbol,U,1048580,0):oo(U,1,111550);break;default:D.failBadSyntaxKind(qt)}}function Dt(U,et,qt){Ge(qt,et,U,4,0,!0,!0),On(U,et)}function On(U,et){et&&(et.assignmentDeclarationMembers||(et.assignmentDeclarationMembers=new Map)).set(hs(U),U)}function Yi(U){U.expression.kind===108?Ae(U):kT(U)&&U.parent.parent.kind===308&&(fb(U.expression)?ut(U,U.parent):cn(U))}function Io(U){jo(U.left,U),jo(U.right,U),Fi(U.left.expression,U.left,!1,!0)}function oe(U){const et=Ss(U.arguments[0].expression);et&&et.valueDeclaration&&te(et,et.valueDeclaration,32),Dr(U,et,!0)}function ut(U,et){const qt=U.expression,Yn=qt.expression;jo(Yn,qt),jo(qt,U),jo(U,et),Fi(Yn,U,!0,!0)}function Mt(U){let et=Ss(U.arguments[0]);const qt=U.parent.parent.kind===308;et=jn(et,U.arguments[0],qt,!1,!1),Dr(U,et,!1)}function Pt(U){var et;const qt=Ss(U.left.expression,o)||Ss(U.left.expression,c);if(!fr(U)&&!jfe(qt))return;const Yn=Dk(U.left);if(!(je(Yn)&&((et=G8(o,Yn.escapedText))==null?void 0:et.flags)&2097152))if(jo(U.left,U),jo(U.right,U),je(U.left.expression)&&o===e&&tE(e,U.left.expression))Zd(U);else if(Hv(U)){jl(U,67108868,"__computed");const wa=jn(qt,U.left.expression,ii(U.left),!1,!1);On(U,wa)}else cn(so(U.left,Sx))}function cn(U){D.assert(!je(U)),jo(U.expression,U),Fi(U.expression,U,!1,!1)}function jn(U,et,qt,Yn,wa){return(U==null?void 0:U.flags)&2097152||(qt&&!Yn&&(U=$s(et,U,(Ue,Lt,Ot)=>{if(Lt)return te(Lt,Ue,67110400),Lt;{const mn=Ot?Ot.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=co());return Ge(mn,Ot,Ue,67110400,110735)}})),wa&&U&&U.valueDeclaration&&te(U,U.valueDeclaration,32)),U}function Dr(U,et,qt){if(!et||!ja(et))return;const Yn=qt?et.members||(et.members=co()):et.exports||(et.exports=co());let wa=0,La=0;el(Ex(U))?(wa=8192,La=103359):io(U)&&Tx(U)&&(kt(U.arguments[2].properties,Ie=>{const Ue=Ia(Ie);return!!Ue&&je(Ue)&&Mr(Ue)==="set"})&&(wa|=65540,La|=78783),kt(U.arguments[2].properties,Ie=>{const Ue=Ia(Ie);return!!Ue&&je(Ue)&&Mr(Ue)==="get"})&&(wa|=32772,La|=46015)),wa===0&&(wa=4,La=0),Ge(Yn,et,U,wa|67108864,La&-67108865)}function ii(U){return br(U.parent)?zo(U.parent).parent.kind===308:U.parent.parent.kind===308}function Fi(U,et,qt,Yn){let wa=Ss(U,o)||Ss(U,c);const La=ii(et);wa=jn(wa,et.expression,La,qt,Yn),Dr(et,wa,qt)}function ja(U){if(U.flags&1072)return!0;const et=U.valueDeclaration;if(et&&io(et))return!!Ex(et);let qt=et?Xi(et)?et.initializer:br(et)?et.right:Fr(et)&&br(et.parent)?et.parent.right:void 0:void 0;if(qt=qt&&FN(qt),qt){const Yn=fb(Xi(et)?et.name:br(et)?et.left:et);return!!lb(br(qt)&&(qt.operatorToken.kind===56||qt.operatorToken.kind===60)?qt.right:qt,Yn)}return!1}function zo(U){for(;br(U.parent);)U=U.parent;return U.parent}function Ss(U,et=o){if(je(U))return G8(et,U.escapedText);{const qt=Ss(U.expression);return qt&&qt.exports&&qt.exports.get(xg(U))}}function $s(U,et,qt){if(tE(e,U))return e.symbol;if(je(U))return qt(U,Ss(U),et);{const Yn=$s(U.expression,et,qt),wa=GN(U);return Oi(wa)&&D.fail("unexpected PrivateIdentifier"),qt(wa,Yn&&Yn.exports&&Yn.exports.get(xg(U)),Yn)}}function bd(U){!e.commonJsModuleIndicator&&wd(U,!1)&&fs(U)}function Ef(U){if(U.kind===260)Zl(U,32,899503);else{const wa=U.name?U.name.escapedText:"__class";jl(U,32,wa),U.name&&re.add(U.name.escapedText)}const{symbol:et}=U,qt=xe(4194308,"prototype"),Yn=et.exports.get(qt.escapedName);Yn&&(U.name&&jo(U.name,U),e.bindDiagnostics.push(ce(Yn.declarations[0],_.Duplicate_identifier_0,Gl(qt)))),et.exports.set(qt.escapedName,qt),qt.parent=et}function ac(U){return M1(U)?Zl(U,128,899967):Zl(U,256,899327)}function ef(U){if(Y&&Zc(U,U.name),!Ya(U.name)){const et=U.kind===257?U:U.parent.parent;fr(U)&&Tl(t)!==100&&B1(et)&&!I1(U)&&!(Ay(U)&1)?oo(U,2097152,2097152):Uz(U)?Zl(U,2,111551):RT(U)?oo(U,1,111551):oo(U,1,111550)}}function Du(U){if(!(U.kind===344&&o.kind!==326)&&(Y&&!(U.flags&16777216)&&Zc(U,U.name),Ya(U.name)?jl(U,1,"__"+U.parent.parameters.indexOf(U)):oo(U,1,111551),df(U,U.parent))){const et=U.parent.parent;Ge(et.symbol.members,et.symbol,U,4|(U.questionToken?16777216:0),0)}}function Tf(U){!e.isDeclarationFile&&!(U.flags&16777216)&&mC(U)&&(ne|=2048),vl(U),Y?(Ys(U),Zl(U,16,110991)):oo(U,16,110991)}function D_(U){!e.isDeclarationFile&&!(U.flags&16777216)&&mC(U)&&(ne|=2048),h&&(U.flowNode=h),vl(U);const et=U.name?U.name.escapedText:"__function";return jl(U,16,et)}function Qo(U,et,qt){return!e.isDeclarationFile&&!(U.flags&16777216)&&mC(U)&&(ne|=2048),h&&N3(U)&&(U.flowNode=h),Hv(U)?jl(U,et,"__computed"):oo(U,et,qt)}function R_(U){const et=rr(U,qt=>qt.parent&&MC(qt.parent)&&qt.parent.extendsType===qt);return et&&et.parent}function Sf(U){var et,qt;if(kp(U.parent)){const Yn=X3(U.parent);Yn?(D.assertNode(Yn,jm),(et=Yn.locals)!=null||(Yn.locals=co()),Ge(Yn.locals,void 0,U,262144,526824)):oo(U,262144,526824)}else if(U.parent.kind===192){const Yn=R_(U.parent);Yn?(D.assertNode(Yn,jm),(qt=Yn.locals)!=null||(Yn.locals=co()),Ge(Yn.locals,void 0,U,262144,526824)):jl(U,262144,Qe(U))}else oo(U,262144,526824)}function op(U){const et=Dg(U);return et===1||et===2&&W1(t)}function Mp(U){if(!(h.flags&1))return!1;if(h===be&&(vN(U)&&U.kind!==239||U.kind===260||U.kind===264&&op(U))&&(h=ae,!t.allowUnreachableCode)){const qt=$_e(t)&&!(U.flags&16777216)&&(!gc(U)||!!(xp(U.declarationList)&3)||U.declarationList.declarations.some(Yn=>!!Yn.initializer));c5e(U,(Yn,wa)=>Z(qt,Yn,wa,_.Unreachable_code_detected))}return!0}}function c5e(e,t){if(ka(e)&&Bge(e)&&uo(e.parent)){const{statements:r}=e.parent,i=pJ(r,e);pH(i,Bge,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function Bge(e){return!xc(e)&&!u5e(e)&&!yb(e)&&!(gc(e)&&!(xp(e)&3)&&e.declarationList.declarations.some(t=>!t.initializer))}function u5e(e){switch(e.kind){case 261:case 262:return!0;case 264:return Dg(e)!==1;case 263:return $r(e,2048);default:return!1}}function tE(e,t){let r=0;const i=TH();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),IT(t)||kh(t))return!0;if(je(t)){const o=G8(e,t.escapedText);if(o&&o.valueDeclaration&&Xi(o.valueDeclaration)&&o.valueDeclaration.initializer){const s=o.valueDeclaration.initializer;i.enqueue(s),ld(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function Gge(e){switch(e.kind){case 228:case 260:case 263:case 207:case 184:case 325:case 289:return 1;case 261:return 65;case 264:case 262:case 197:case 178:return 33;case 308:return 37;case 174:case 175:case 171:if(N3(e))return 173;case 173:case 259:case 170:case 176:case 326:case 320:case 181:case 177:case 182:case 172:return 45;case 215:case 216:return 61;case 265:return 4;case 169:return e.initializer?4:0;case 295:case 245:case 246:case 247:case 266:return 34;case 238:return Xa(e.parent)||Rl(e.parent)?0:34}return 0}function G8(e,t){var r,i,o,s,c;const f=(i=(r=si(e,jm))==null?void 0:r.locals)==null?void 0:i.get(t);if(f)return(o=f.exportSymbol)!=null?o:f;if(Ji(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Vm(e))return(c=(s=e.symbol)==null?void 0:s.exports)==null?void 0:c.get(t)}var UX,Uge,d5e=S({"src/compiler/binder.ts"(){Na(),A1(),UX=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(UX||{}),Uge=l5e()}});function Vge(e,t,r,i,o,s,c,f,d,v){return h;function h(E=()=>!0){const C=[],L=[];return{walkType:re=>{try{return I(re),{visitedTypes:ix(C),visitedSymbols:ix(L)}}finally{Aa(C),Aa(L)}},walkSymbol:re=>{try{return de(re),{visitedTypes:ix(C),visitedSymbols:ix(L)}}finally{Aa(C),Aa(L)}}};function I(re){if(!(!re||C[re.id]||(C[re.id]=re,de(re.symbol)))){if(re.flags&524288){const ae=re,W=ae.objectFlags;W&4&&O(re),W&32&&ne(re),W&3&&$(re),W&24&&M(ae)}re.flags&262144&&k(re),re.flags&3145728&&G(re),re.flags&4194304&&V(re),re.flags&8388608&&H(re)}}function O(re){I(re.target),Je(v(re),I)}function k(re){I(f(re))}function G(re){Je(re.types,I)}function V(re){I(re.type)}function H(re){I(re.objectType),I(re.indexType),I(re.constraint)}function ne(re){I(re.typeParameter),I(re.constraintType),I(re.templateType),I(re.modifiersType)}function Y(re){const be=t(re);be&&I(be.type),Je(re.typeParameters,I);for(const ae of re.parameters)de(ae);I(e(re)),I(r(re))}function $(re){M(re),Je(re.typeParameters,I),Je(i(re),I),I(re.thisType)}function M(re){const be=o(re);for(const ae of be.indexInfos)I(ae.keyType),I(ae.type);for(const ae of be.callSignatures)Y(ae);for(const ae of be.constructSignatures)Y(ae);for(const ae of be.properties)de(ae)}function de(re){if(!re)return!1;const be=Eo(re);if(L[be])return!1;if(L[be]=re,!E(re))return!0;const ae=s(re);return I(ae),re.exports&&re.exports.forEach(de),Je(re.declarations,W=>{if(W.type&&W.type.kind===183){const ce=W.type,me=c(d(ce.exprName));de(me)}}),!1}}}var f5e=S({"src/compiler/symbolWalker.ts"(){Na()}});function cF({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){const s=c();return{relativePreference:o!==void 0?zc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:f=>{if((f!=null?f:i.impliedNodeFormat)===99)return Ew(r,i.fileName)?[3,2]:[2];if(Tl(r)===1)return[1,2];switch(s){case 2:return[2,0,1];case 3:return[3,0,2,1];case 1:return[1,0,2];case 0:return[0,1,2];default:D.assertNever(s)}}};function c(){if(o!==void 0){if(Mx(o))return 2;if(cc(o,"/index"))return 1}return fJ(t,i.impliedNodeFormat,r,i)}}function _5e(e,t,r,i,o,s,c={}){const f=jge(e,t,r,i,o,cF({},e,t,s),{},c);if(f!==s)return f}function uF(e,t,r,i,o,s={}){return jge(e,t,r,i,o,cF({},e,t),{},s)}function p5e(e,t,r,i,o,s={}){const c=VX(t.path,i),f=Yge(t.path,r,i,o,s);return Jt(f,d=>jX(d,c,t,i,e,o,!0,s.overrideImportMode))}function jge(e,t,r,i,o,s,c,f={}){const d=VX(r,o),v=Yge(r,i,o,c,f);return Jt(v,h=>jX(h,d,t,o,e,c,void 0,f.overrideImportMode))||qge(i,d,e,o,f.overrideImportMode||t.impliedNodeFormat,s)}function m5e(e,t,r,i,o={}){return Hge(e,t,r,i,o)[0]}function Hge(e,t,r,i,o={}){var s;const c=y3(e);if(!c)return rt;const f=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),d=f==null?void 0:f.get(t.path,c.path,i,o);return[d==null?void 0:d.moduleSpecifiers,c,d==null?void 0:d.modulePaths,f]}function Wge(e,t,r,i,o,s,c={}){return zge(e,t,r,i,o,s,c).moduleSpecifiers}function zge(e,t,r,i,o,s,c={}){let f=!1;const d=g5e(e,t);if(d)return{moduleSpecifiers:[d],computedWithoutCache:f};let[v,h,E,C]=Hge(e,i,o,s,c);if(v)return{moduleSpecifiers:v,computedWithoutCache:f};if(!h)return{moduleSpecifiers:rt,computedWithoutCache:f};f=!0,E||(E=$ge(i.path,h.originalFileName,o));const L=h5e(E,r,i,o,s,c);return C==null||C.set(i.path,h.path,s,c,E,L),{moduleSpecifiers:L,computedWithoutCache:f}}function h5e(e,t,r,i,o,s={}){const c=VX(r.path,i),f=cF(o,t,r),d=Je(e,I=>Je(i.getFileIncludeReasons().get(Js(I.path,i.getCurrentDirectory(),c.getCanonicalFileName)),O=>{if(O.kind!==3||O.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==BY(r,O.index))return;const k=VF(r,O.index).text;return f.relativePreference!==1||!Nf(k)?k:void 0}));if(d)return[d];const v=kt(e,I=>I.isInNodeModules);let h,E,C,L;for(const I of e){const O=I.isInNodeModules?jX(I,c,r,i,t,o,void 0,s.overrideImportMode):void 0;if(h=Bn(h,O),O&&I.isRedirect)return h;if(!O){const k=qge(I.path,c,t,i,s.overrideImportMode||r.impliedNodeFormat,f,I.isRedirect);if(!k)continue;I.isRedirect?C=Bn(C,k):VW(k)?E=Bn(E,k):(!v||I.isInNodeModules)&&(L=Bn(L,k))}}return E!=null&&E.length?E:C!=null&&C.length?C:h!=null&&h.length?h:D.checkDefined(L)}function VX(e,t){const r=cu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=yi(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i}}function qge(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:c},f){const{baseUrl:d,paths:v,rootDirs:h}=r;if(f&&!v)return;const{sourceDirectory:E,getCanonicalFileName:C}=t,L=s(o),I=h&&y5e(h,e,E,C,L,r)||Tw(L1(Gm(E,e,C)),L,r);if(!d&&!v||c===0)return f?void 0:I;const O=Oa(Rq(r,i)||d,i.getCurrentDirectory()),k=tye(e,O,C);if(!k)return f?void 0:I;const G=v&&Qge(k,v,L,i,r);if(f)return G;const V=G===void 0&&d!==void 0?Tw(k,L,r):G;if(!V)return I;if(c===1&&!Nf(V))return V;if(c===3&&!Nf(V)){const H=r.configFilePath?Js(yi(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ne=Js(e,H,C),Y=Ta(E,H),$=Ta(ne,H);if(Y&&!$||!Y&&$)return V;const M=Kge(i,yi(ne));return Kge(i,E)!==M?V:I}return nye(V)||U8(I)<U8(V)?I:V}function U8(e){let t=0;for(let r=Ta(e,"./")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function Jge(e,t){return E1(t.isRedirect,e.isRedirect)||xO(e.path,t.path)}function Kge(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):!!mg(t,r=>e.fileExists(Bi(r,"package.json"))?!0:void 0)}function Xge(e,t,r,i,o){var s;const c=db(r),f=r.getCurrentDirectory(),d=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,v=Js(t,f,c),h=r.redirectTargetsMap.get(v)||rt,C=[...d?[d]:rt,t,...h].map(G=>Oa(G,f));let L=!Zn(C,Vk);if(!i){const G=Je(C,V=>!(L&&Vk(V))&&o(V,d===V));if(G)return G}const I=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),O=Oa(t,f);return I&&mg(yi(O),G=>{const V=I.get(Vu(Js(G,f,c)));if(V)return zW(e,G,c)?!1:Je(C,H=>{if(!zW(H,G,c))return;const ne=Gm(G,H,c);for(const Y of V){const $=Dv(Y,ne),M=o($,H===d);if(L=!0,M)return M}})})||(i?Je(C,G=>L&&Vk(G)?void 0:o(G,G===d)):void 0)}function Yge(e,t,r,i,o={}){var s;const c=Js(t,r.getCurrentDirectory(),db(r)),f=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(f){const v=f.get(e,c,i,o);if(v!=null&&v.modulePaths)return v.modulePaths}const d=$ge(e,t,r);return f&&f.setModulePaths(e,c,i,o,d),d}function $ge(e,t,r){const i=db(r),o=new Map;Xge(e,t,r,!0,(c,f)=>{const d=s2(c);o.set(c,{path:i(c),isRedirect:f,isInNodeModules:d})});const s=[];for(let c=yi(e);o.size!==0;){const f=Vu(c);let d;o.forEach(({path:h,isRedirect:E,isInNodeModules:C},L)=>{Ta(h,f)&&((d||(d=[])).push({path:L,isRedirect:E,isInNodeModules:C}),o.delete(L))}),d&&(d.length>1&&d.sort(Jge),s.push(...d));const v=yi(c);if(v===c)break;c=v}if(o.size){const c=No(o.values());c.length>1&&c.sort(Jge),s.push(...c)}return s}function g5e(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(c=>jz(c)&&(!O1(c)||!zc(K_(c.name))));if(i)return i.name.text;const s=pa(e.declarations,c=>{var f,d,v,h;if(!$l(c))return;const E=O(c);if(!((f=E==null?void 0:E.parent)!=null&&f.parent&&dm(E.parent)&&ju(E.parent.parent)&&Ji(E.parent.parent.parent)))return;const C=(h=(v=(d=E.parent.parent.symbol.exports)==null?void 0:d.get("export="))==null?void 0:v.valueDeclaration)==null?void 0:h.expression;if(!C)return;const L=t.getSymbolAtLocation(C);if(!L)return;if(((L==null?void 0:L.flags)&2097152?t.getAliasedSymbol(L):L)===c.symbol)return E.parent.parent;function O(k){for(;k.flags&4;)k=k.parent;return k}})[0];if(s)return s.name.text}function Qge(e,t,r,i,o){for(const c in t)for(const f of t[c]){const d=Ko(f),v=d.indexOf("*"),h=r.map(E=>({ending:E,value:Tw(e,[E],o)}));if(Nh(d)&&h.push({ending:void 0,value:e}),v!==-1){const E=d.substring(0,v),C=d.substring(v+1);for(const{ending:L,value:I}of h)if(I.length>=E.length+C.length&&Ta(I,E)&&cc(I,C)&&s({ending:L,value:I})){const O=I.substring(E.length,I.length-C.length);return c.replace("*",O)}}else if(kt(h,E=>E.ending!==0&&d===E.value)||kt(h,E=>E.ending===0&&d===E.value&&s(E)))return c}function s({ending:c,value:f}){return c!==0||f===Tw(e,[c],o,i)}}function dF(e,t,r,i,o,s,c=0){if(typeof o=="string"){const f=Oa(Bi(r,o),void 0),d=SO(t)?qd(t)+fF(t,e):void 0;switch(c){case 0:if(pT(t,f)===0||d&&pT(d,f)===0)return{moduleFileToTry:i};break;case 1:if(Rv(f,t)){const C=Gm(f,t,!1);return{moduleFileToTry:Oa(Bi(Bi(i,o),C),void 0)}}break;case 2:const v=f.indexOf("*"),h=f.slice(0,v),E=f.slice(v+1);if(Ta(t,h)&&cc(t,E)){const C=t.slice(h.length,t.length-E.length);return{moduleFileToTry:i.replace("*",C)}}if(d&&Ta(d,h)&&cc(d,E)){const C=d.slice(h.length,d.length-E.length);return{moduleFileToTry:i.replace("*",C)}}break}}else{if(Array.isArray(o))return Je(o,f=>dF(e,t,r,i,f,s));if(typeof o=="object"&&o!==null){if(aF(o))return Je(_g(o),f=>{const d=Oa(Bi(i,f),void 0),v=cc(f,"/")?1:bu(f,"*")?2:0;return dF(e,t,r,d,o[f],s,v)});for(const f of _g(o))if(f==="default"||s.indexOf(f)>=0||F8(s,f)){const d=o[f],v=dF(e,t,r,i,d,s);if(v)return v}}}}function y5e(e,t,r,i,o,s){const c=Zge(t,e,i);if(c===void 0)return;const f=Zge(r,e,i),d=Ga(f,h=>zt(c,E=>L1(Gm(h,E,i)))),v=SH(d,xO);if(v)return Tw(v,o,s)}function jX({path:e,isRedirect:t},{getCanonicalFileName:r,sourceDirectory:i},o,s,c,f,d,v){if(!s.fileExists||!s.readFile)return;const h=EJ(e);if(!h)return;const C=cF(f,c,o).getAllowedEndingsInPreferredOrder();let L=e,I=!1;if(!d){let ne=h.packageRootIndex,Y;for(;;){const{moduleFileToTry:$,packageRootPath:M,blockedByExports:de,verbatimFromExports:re}=H(ne);if(Tl(c)!==1){if(de)return;if(re)return $}if(M){L=M,I=!0;break}if(Y||(Y=$),ne=e.indexOf(Bs,ne+1),ne===-1){L=Tw(Y,C,c,s);break}}}if(t&&!I)return;const O=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),k=r(L.substring(0,h.topLevelNodeModulesIndex));if(!(Ta(i,k)||O&&Ta(r(O),k)))return;const G=L.substring(h.topLevelPackageNameIndex+1),V=B8(G);return Tl(c)===1&&V===G?void 0:V;function H(ne){var Y,$;const M=e.substring(0,ne),de=Bi(M,"package.json");let re=e,be=!1;const ae=($=(Y=s.getPackageJsonInfoCache)==null?void 0:Y.call(s))==null?void 0:$.getPackageJsonInfo(de);if(typeof ae=="object"||ae===void 0&&s.fileExists(de)){const W=(ae==null?void 0:ae.contents.packageJsonContent)||JSON.parse(s.readFile(de)),ce=v||o.impliedNodeFormat;if(rJ(c)){const xe=M.substring(h.topLevelPackageNameIndex+1),te=B8(xe),Qe=nL(c,ce===99),Ve=W.exports?dF(c,e,M,te,W.exports,Qe):void 0;if(Ve){const Ge=SO(Ve.moduleFileToTry)?{moduleFileToTry:qd(Ve.moduleFileToTry)+fF(Ve.moduleFileToTry,c)}:Ve;return Ka(Ti({},Ge),{verbatimFromExports:!0})}if(W.exports)return{moduleFileToTry:e,blockedByExports:!0}}const me=W.typesVersions?$5(W.typesVersions):void 0;if(me){const xe=e.slice(M.length+1),te=Qge(xe,me.paths,C,s,c);te===void 0?be=!0:re=Bi(M,te)}const Ee=W.typings||W.types||W.main||"index.js";if(Ha(Ee)&&!(be&&_J(b7(me.paths),Ee))){const xe=Js(Ee,M,r);if(qd(xe)===qd(r(re)))return{packageRootPath:M,moduleFileToTry:re}}}else{const W=r(re.substring(h.packageRootIndex+1));if(W==="index.d.ts"||W==="index.js"||W==="index.ts"||W==="index.tsx")return{moduleFileToTry:re,packageRootPath:M}}return{moduleFileToTry:re}}}function v5e(e,t){if(!e.fileExists)return;const r=Ds(Mk({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of r){const o=t+i;if(e.fileExists(o))return o}}function Zge(e,t,r){return pa(t,i=>{const o=tye(e,i,r);return o!==void 0&&nye(o)?void 0:o})}function Tw(e,t,r,i){if(Ic(e,[".json",".mjs",".cjs"]))return e;const o=qd(e);if(e===o)return e;if(Ic(e,[".d.mts",".mts",".d.cts",".cts"]))return o+HX(e,r);if(!Ic(e,[".d.ts"])&&Ic(e,[".ts"])&&bu(e,".d."))return eye(e);switch(t[0]){case 0:const s=PA(o,"/index");return i&&s!==o&&v5e(i,s)?o:s;case 1:return o;case 2:return o+HX(e,r);case 3:if(yd(e)){const c=t.findIndex(d=>d===0||d===1),f=t.indexOf(2);return c!==-1&&c<f?o:o+HX(e,r)}return e;default:return D.assertNever(t[0])}}function eye(e){const t=Eu(e);if(!cc(e,".ts")||!bu(t,".d.")||Ic(t,[".d.ts"]))return;const r=AO(e,".ts"),i=r.substring(r.lastIndexOf("."));return r.substring(0,r.indexOf(".d."))+i}function HX(e,t){var r;return(r=fF(e,t))!=null?r:D.fail(`Extension ${LO(e)} is unsupported:: FileName:: ${e}`)}function fF(e,t){const r=Nh(e);switch(r){case".ts":case".d.ts":return".js";case".tsx":return t.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return r;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function tye(e,t,r){const i=_x(t,e,t,r,!1);return Bm(i)?void 0:i}function nye(e){return Ta(e,"..")}var rye=S({"src/compiler/moduleSpecifiers.ts"(){Na()}}),nE={};X(nE,{countPathComponents:()=>U8,forEachFileNameOfModule:()=>Xge,getModuleSpecifier:()=>uF,getModuleSpecifiers:()=>Wge,getModuleSpecifiersWithCacheInfo:()=>zge,getNodeModulesPackageName:()=>p5e,tryGetJSExtensionForFile:()=>fF,tryGetModuleSpecifiersFromCache:()=>m5e,tryGetRealFileNameForNonJsDeclarationFileName:()=>eye,updateModuleSpecifier:()=>_5e});var WX=S({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){rye()}});function b5e(){this.flags=0}function hs(e){return e.id||(e.id=KX,KX++),e.id}function Eo(e){return e.id||(e.id=JX,JX++),e.id}function zX(e,t){const r=Dg(e);return r===1||t&&r===2}function iye(e){var t=Ld(()=>{var n=new Map;return e.getSourceFiles().forEach(a=>{a.resolvedModules&&a.resolvedModules.forEach(({resolvedModule:l})=>{l!=null&&l.packageId&&n.set(l.packageId.name,l.extension===".d.ts"||!!n.get(l.packageId.name))})}),n}),r=[],i=n=>{r.push(n)},o,s=new Set,c,f,d=Kc.getSymbolConstructor(),v=Kc.getTypeConstructor(),h=Kc.getSignatureConstructor(),E=0,C=0,L=0,I=0,O=0,k=0,G,V,H=!1,ne=co(),Y=[1],$=e.getCompilerOptions(),M=ts($),de=du($),re=!!$.experimentalDecorators,be=EO($),ae=FT($),W=C_($,"strictNullChecks"),ce=C_($,"strictFunctionTypes"),me=C_($,"strictBindCallApply"),Ee=C_($,"strictPropertyInitialization"),xe=C_($,"noImplicitAny"),te=C_($,"noImplicitThis"),Qe=C_($,"useUnknownInCatchVariables"),Ve=!!$.keyofStringsOnly,Ge=$.suppressExcessPropertyErrors?0:8192,ze=$.exactOptionalPropertyTypes,Oe=zot(),Me=Tut(),Ye=po(),We=co(),Fe=ns(4,"undefined");Fe.declarations=[];var st=ns(1536,"globalThis",8);st.exports=We,st.declarations=[],We.set(st.escapedName,st);var Ct=ns(4,"arguments"),Et=ns(4,"require"),Vt=$.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",tt;const at={getNodeCount:()=>Gu(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Gu(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Gu(e.getSourceFiles(),(n,a)=>n+a.symbolCount,C),getTypeCount:()=>E,getInstantiationCount:()=>L,getRelationCacheSizes:()=>({assignable:Pd.size,identity:Fd.size,subtype:oh.size,strictSubtype:cp.size}),isUndefinedSymbol:n=>n===Fe,isArgumentsSymbol:n=>n===Ct,isUnknownSymbol:n=>n===rn,getMergedSymbol:as,getDiagnostics:yNe,getGlobalDiagnostics:Uct,getRecursionIdentity:qL,getUnmatchedProperties:jae,getTypeOfSymbolAtLocation:(n,a)=>{const l=va(a);return l?Urt(n,l):Ce},getTypeOfSymbol:or,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const l=va(n,Fa);return l===void 0?D.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(D.assert(df(l,l.parent)),TE(l,ul(a)))},getDeclaredTypeOfSymbol:js,getPropertiesOfType:gs,getPropertyOfType:(n,a)=>fo(n,ul(a)),getPrivateIdentifierPropertyOfType:(n,a,l)=>{const u=va(l);if(!u)return;const p=ul(a),y=XV(p,u);return y?xoe(n,y):void 0},getTypeOfPropertyOfType:(n,a)=>vc(n,ul(a)),getIndexInfoOfType:(n,a)=>hh(n,a===0?ue:mt),getIndexInfosOfType:Nu,getIndexInfosOfIndexSymbol:Gie,getSignaturesOfType:za,getIndexTypeOfType:(n,a)=>ay(n,a===0?ue:mt),getIndexType:n=>Lm(n),getBaseTypes:Fo,getBaseTypeOfLiteralType:Sv,getWidenedType:sf,getTypeFromTypeNode:n=>{const a=va(n,Gi);return a?pi(a):Ce},getParameterType:bp,getParameterIdentifierNameAtPosition:sot,getPromisedTypeOfPromise:dR,getAwaitedType:n=>sT(n),getReturnTypeOfSignature:vs,isNullableType:KV,getNullableType:AV,getNonNullableType:dy,getNonOptionalType:Nae,getTypeArguments:ys,typeToTypeNode:Ye.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Ye.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Ye.signatureToSignatureDeclaration,symbolToEntityName:Ye.symbolToEntityName,symbolToExpression:Ye.symbolToExpression,symbolToNode:Ye.symbolToNode,symbolToTypeParameterDeclarations:Ye.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Ye.symbolToParameterDeclaration,typeParameterToDeclaration:Ye.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const l=va(n);return l?Vct(l,a):[]},getSymbolAtLocation:n=>{const a=va(n);return a?G_(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=va(n);return a?Kct(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=va(n);return a?Xct(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=va(n,gd);return a?Yct(a):void 0},getExportSymbolOfSymbol(n){return as(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=va(n);return a?WS(a):Ce},getTypeOfAssignmentPattern:n=>{const a=va(n,ZI);return a&&Sj(a)||Ce},getPropertySymbolOfDestructuringAssignment:n=>{const a=va(n,je);return a?$ct(a):void 0},signatureToString:(n,a,l,u)=>le(n,va(a),l,u),typeToString:(n,a,l)=>ke(n,va(a),l),symbolToString:(n,a,l,u)=>x(n,va(a),l,u),typePredicateToString:(n,a,l)=>su(n,va(a),l),writeSignature:(n,a,l,u,p)=>le(n,va(a),l,u,p),writeType:(n,a,l,u)=>ke(n,va(a),l,u),writeSymbol:(n,a,l,u,p)=>x(n,va(a),l,u,p),writeTypePredicate:(n,a,l,u)=>su(n,va(a),l,u),getAugmentedPropertiesOfType:Sse,getRootSymbols:ANe,getSymbolOfExpando:rj,getContextualType:(n,a)=>{const l=va(n,vt);if(l)return a&4?Qt(l,()=>_d(l,a)):_d(l,a)},getContextualTypeForObjectLiteralElement:n=>{const a=va(n,Ly);return a?doe(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const l=va(n,yx);return l&&uoe(l,a)},getContextualTypeForJsxAttribute:n=>{const a=va(n,p3);return a&&jwe(a,void 0)},isContextSensitive:F_,getTypeOfPropertyOfContextualType:iT,getFullyQualifiedName:Jh,getResolvedSignature:(n,a,l)=>Pn(n,a,l,0),getResolvedSignatureForStringLiteralCompletions:(n,a,l)=>Qt(a,()=>Pn(n,l,void 0,32)),getResolvedSignatureForSignatureHelp:(n,a,l)=>on(n,()=>Pn(n,a,l,16)),getExpandedParameters:$Le,hasEffectiveRestParameter:Dm,containsArgumentsReference:Pie,getConstantValue:n=>{const a=va(n,wNe);return a?xse(a):void 0},isValidPropertyAccess:(n,a)=>{const l=va(n,Ude);return!!l&&vat(l,ul(a))},isValidPropertyAccessForCompletions:(n,a,l)=>{const u=va(n,Fr);return!!u&&yDe(u,a,l)},getSignatureFromDeclaration:n=>{const a=va(n,Xa);return a?Wp(a):void 0},isImplementationOfOverload:n=>{const a=va(n,Xa);return a?INe(a):void 0},getImmediateAliasedSymbol:moe,getAliasedSymbol:oc,getEmitResolver:kL,getExportsOfModule:tv,getExportsAndPropertiesOfModule:RS,forEachExportAndPropertyOfModule:S0,getSymbolWalker:Vge(set,p_,vs,Fo,gp,or,B_,Ru,Ff,ys),getAmbientModules:fdt,getJsxIntrinsicTagNamesAt:Qit,isOptionalParameter:n=>{const a=va(n,Fa);return a?RD(a):!1},tryGetMemberInModuleExports:(n,a)=>Yg(ul(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>qf(ul(n),a),tryFindAmbientModule:n=>Oie(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>Oie(n,!1),getApparentType:ed,getUnionType:Zr,isTypeAssignableTo:Ao,createAnonymousType:Ps,createSignature:mh,createSymbol:ns,createIndexInfo:Cm,getAnyType:()=>we,getStringType:()=>ue,getNumberType:()=>mt,createPromiseType:L4,createArrayType:Ou,getElementTypeOfArrayType:Iae,getBooleanType:()=>Re,getFalseType:n=>n?it:K,getTrueType:n=>n?Pe:ee,getVoidType:()=>Rt,getUndefinedType:()=>He,getNullType:()=>Sn,getESSymbolType:()=>q,getNeverType:()=>gt,getOptionalType:()=>ln,getPromiseType:()=>zP(!1),getPromiseLikeType:()=>OIe(!1),getAsyncIterableType:()=>{const n=nV(!1);if(n!==Lo)return n},isSymbolAccessible:av,isArrayType:Zf,isTupleType:Bo,isArrayLikeType:V0,isEmptyAnonymousObjectType:og,isTypeInvalidDueToUnionDiscriminant:HZe,getExactOptionalProperties:hnt,getAllPossiblePropertiesOfTypes:WZe,getSuggestedSymbolForNonexistentProperty:Loe,getSuggestionForNonexistentProperty:Ioe,getSuggestedSymbolForNonexistentJSXAttribute:hDe,getSuggestedSymbolForNonexistentSymbol:(n,a,l)=>koe(n,ul(a),l),getSuggestionForNonexistentSymbol:(n,a,l)=>mat(n,ul(a),l),getSuggestedSymbolForNonexistentModule:$V,getSuggestionForNonexistentExport:hat,getSuggestedSymbolForNonexistentClassMember:mDe,getBaseConstraintOfType:Zu,getDefaultFromTypeParameter:n=>n&&n.flags&262144?qE(n):void 0,resolveName(n,a,l,u){return hl(a,ul(n),l,void 0,void 0,!1,u)},getJsxNamespace:n=>ra(Ob(n)),getJsxFragmentFactory:n=>{const a=Cse(n);return a&&ra(Ff(a).escapedText)},getAccessibleSymbolChain:C0,getTypePredicateOfSignature:p_,resolveExternalModuleName:n=>{const a=va(n,vt);return a&&gu(a,a,!0)},resolveExternalModuleSymbol:Td,tryGetThisTypeAt:(n,a,l)=>{const u=va(n);return u&&aoe(u,a,l)},getTypeArgumentConstraint:n=>{const a=va(n,Gi);return a&&xst(a)},getSuggestionDiagnostics:(n,a)=>{const l=va(n,Ji)||D.fail("Could not determine parsed source file.");if(Fk(l,$,e))return rt;let u;try{return o=a,Ese(l),D.assert(!!(Jr(l).flags&1)),u=Ai(u,vE.getDiagnostics(l.fileName)),RRe(gNe(l),(p,y,A)=>{!SN(p)&&!hNe(y,!!(p.flags&16777216))&&(u||(u=[])).push(Ka(Ti({},A),{category:2}))}),u||rt}finally{o=void 0}},runWithCancellationToken:(n,a)=>{try{return o=n,a(at)}finally{o=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:fv,isDeclarationVisible:P_,isPropertyAccessible:Doe,getTypeOnlyAliasDeclaration:Bd,getMemberOverrideModifierStatus:tct,isTypeParameterPossiblyReferenced:$P,typeHasCallOrConstructSignatures:xj};function on(n,a){const l=rr(n,yx),u=l&&Jr(l).resolvedSignature;l&&(Jr(l).resolvedSignature=void 0);const p=a();return l&&(Jr(l).resolvedSignature=u),p}function Qt(n,a){const l=rr(n,yx);if(l){let p=n;do Jr(p).skipDirectInference=!0,p=p.parent;while(p&&p!==l)}H=!0;const u=on(n,a);if(H=!1,l){let p=n;do Jr(p).skipDirectInference=void 0,p=p.parent;while(p&&p!==l)}return u}function Pn(n,a,l,u){const p=va(n,yx);tt=l;const y=p?rI(p,a,u):void 0;return tt=void 0,y}var Hn=new Map,kn=new Map,Zt=new Map,_r=new Map,wi=new Map,Qi=new Map,Zi=new Map,Or=new Map,At=new Map,vn=new Map,Ht=new Map,un=new Map,ir=new Map,cr=new Map,Mi=[],vi=new Map,Nn=new Set,rn=ns(4,"unknown"),Mn=ns(0,"__resolving__"),Ar=new Map,Hr=new Map,we=tc(1,"any"),yt=tc(1,"any",262144),Nt=tc(1,"any"),Ce=tc(1,"error"),pt=tc(1,"unresolved"),pe=tc(1,"any",65536),ie=tc(1,"intrinsic"),he=tc(2,"unknown"),j=tc(2,"unknown"),He=tc(32768,"undefined"),Ze=W?He:tc(32768,"undefined",65536),Xe=tc(32768,"undefined"),Ut=ze?Xe:He,ln=tc(32768,"undefined"),Sn=tc(65536,"null"),Er=W?Sn:tc(65536,"null",65536),ue=tc(4,"string"),mt=tc(8,"number"),Wt=tc(64,"bigint"),it=tc(512,"false"),K=tc(512,"false"),Pe=tc(512,"true"),ee=tc(512,"true");Pe.regularType=ee,Pe.freshType=Pe,ee.regularType=ee,ee.freshType=Pe,it.regularType=K,it.freshType=it,K.regularType=K,K.freshType=it;var Re=Zr([K,ee]),q=tc(4096,"symbol"),Rt=tc(16384,"void"),gt=tc(131072,"never"),ft=tc(131072,"never",262144),fn=tc(131072,"never"),$n=tc(131072,"never"),li=tc(67108864,"object"),Ii=Zr([ue,mt]),ki=Zr([ue,mt,q]),Hi=Ve?ue:ki,ho=Zr([mt,Wt]),So=Zr([ue,mt,Re,Wt,Sn,He]),oo=KE(["",""],[mt]),ca=YP(n=>n.flags&262144?Htt(n):n,()=>"(restrictive mapper)"),Wi=YP(n=>n.flags&262144?Nt:n,()=>"(permissive mapper)"),Xr=tc(131072,"never"),ss=YP(n=>n.flags&262144?Xr:n,()=>"(unique literal mapper)"),hi,ua=YP(n=>(hi&&(n===Qd||n===dc||n===Zc)&&hi(!0),n),()=>"(unmeasurable reporter)"),Dn=YP(n=>(hi&&(n===Qd||n===dc||n===Zc)&&hi(!1),n),()=>"(unreliable reporter)"),fa=Ps(void 0,ne,rt,rt,rt),ic=Ps(void 0,ne,rt,rt,rt);ic.objectFlags|=2048;var al=ns(2048,"__type");al.members=co();var jl=Ps(al,ne,rt,rt,rt),Zl=Ps(void 0,ne,rt,rt,rt),Hl=W?Zr([He,Sn,Zl]):he,Lo=Ps(void 0,ne,rt,rt,rt);Lo.instantiations=new Map;var Ca=Ps(void 0,ne,rt,rt,rt);Ca.objectFlags|=262144;var $o=Ps(void 0,ne,rt,rt,rt),Wl=Ps(void 0,ne,rt,rt,rt),ou=Ps(void 0,ne,rt,rt,rt),Qd=Gd(),dc=Gd();dc.constraint=Qd;var Zc=Gd(),Ns=Gd(),vl=Gd();vl.constraint=Ns;var nl=HP(1,"<<unresolved>>",0,we),Ys=mh(void 0,void 0,void 0,rt,we,void 0,0,0),nn=mh(void 0,void 0,void 0,rt,Ce,void 0,0,0),zl=mh(void 0,void 0,void 0,rt,we,void 0,0,0),wu=mh(void 0,void 0,void 0,rt,ft,void 0,0,0),$u=Cm(mt,ue,!0),fe=new Map,It={get yieldType(){return D.fail("Not supported")},get returnType(){return D.fail("Not supported")},get nextType(){return D.fail("Not supported")}},jt=py(we,we,we),Z=py(we,we,he),ot=py(gt,we,He),xt={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:xet,getGlobalIterableType:nV,getGlobalIterableIteratorType:Aet,getGlobalGeneratorType:Cet,resolveIterationType:sT,mustHaveANextMethodDiagnostic:_.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:_.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},pn={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Let,getGlobalIterableType:Jie,getGlobalIterableIteratorType:Iet,getGlobalGeneratorType:ket,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:_.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:_.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},wr,Pr=new Map,ba=!1,ls,go,Wo,$a,pl,yc,vd,Ts,fs,ml,Zd,ql,Hf,Ae,Dt,On,Yi,Io,oe,ut,Mt,Pt,cn,jn,Dr,ii,Fi,ja,zo,Ss,$s,bd,Ef,ac,ef,Du,Tf,D_,Qo,R_,Sf,op,Mp,U,et,qt,Yn,wa,La,Ie,Ue,Lt,Ot,mn,bn=new Map,Tn=0,Wn=0,qr=0,Ki=!1,nr=0,_n,dr,Sa,Qs=[],fc=[],ah=[],Mg=0,sp=[],Ib=[],c0=0,R2=Qf(""),vS=qp(0),N2=lV({negative:!1,base10Value:"0"}),Fg=[],lp=[],u0=[],Wh=0,Fp=10,d0=[],_E=[],kb=[],Bg=[],bS=[],pE=[],mE=[],hE=[],f0=[],O2=[],gE=[],yE=[],_0=[],wb=[],p0=[],ES=[],Gg=[],Zo=hC(),vE=hC(),IL=fh(),Jy,Ug,oh=new Map,cp=new Map,Pd=new Map,Md=new Map,Fd=new Map,Db=new Map,Rb=co();Rb.set(Fe.escapedName,Fe);var P2=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",$.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Sut(),at;function Nb(n){return n?cr.get(n):void 0}function Vg(n,a){return n&&cr.set(n,a),a}function Ob(n){if(n){const a=er(n);if(a)if(t2(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const l=a.pragmas.get("jsxfrag");if(l){const p=Va(l)?l[0]:l;if(a.localJsxFragmentFactory=o2(p.arguments.factory,M),lt(a.localJsxFragmentFactory,Pb,ff),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Ff(a.localJsxFragmentFactory).escapedText}const u=Cse(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=Ff(u).escapedText}else{const l=TS(a);if(l)return a.localJsxNamespace=l}}return Jy||(Jy="React",$.jsxFactory?(Ug=o2($.jsxFactory,M),lt(Ug,Pb),Ug&&(Jy=Ff(Ug).escapedText)):$.reactNamespace&&(Jy=ul($.reactNamespace))),Ug||(Ug=N.createQualifiedName(N.createIdentifier(ra(Jy)),"createElement")),Jy}function TS(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const l=Va(a)?a[0]:a;if(n.localJsxFactory=o2(l.arguments.factory,M),lt(n.localJsxFactory,Pb,ff),n.localJsxFactory)return n.localJsxNamespace=Ff(n.localJsxFactory).escapedText}}function Pb(n){return Ym(n,-1,-1),Gn(n,Pb,Rg)}function kL(n,a){return yNe(n,a),Me}function M2(n,a,l,u,p,y){const A=n?Nr(n,a,l,u,p,y):Gs(a,l,u,p,y),R=Zo.lookup(A);return R||(Zo.add(A),A)}function m0(n,a,l,u,p,y,A){const R=Ke(a,l,u,p,y,A);return R.skippedOn=n,R}function bE(n,a,l,u,p,y){return n?Nr(n,a,l,u,p,y):Gs(a,l,u,p,y)}function Ke(n,a,l,u,p,y){const A=bE(n,a,l,u,p,y);return Zo.add(A),A}function Ky(n,a){n?Zo.add(a):vE.add(Ka(Ti({},a),{category:2}))}function hm(n,a,l,u,p,y,A){if(a.pos<0||a.end<0){if(!n)return;const R=er(a);Ky(n,"message"in l?Mc(R,0,0,l,u,p,y,A):$z(R,l));return}Ky(n,"message"in l?Nr(a,l,u,p,y,A):Eg(er(a),a,l))}function h0(n,a,l,u,p,y,A){const R=Ke(n,l,u,p,y,A);if(a){const F=Nr(n,_.Did_you_forget_to_use_await);Yo(R,F)}return R}function Mb(n,a){const l=Array.isArray(n)?Je(n,az):az(n);return l&&Yo(a,Nr(l,_.The_declaration_was_marked_as_deprecated_here)),vE.add(a),a}function g0(n){if(Le(n.declarations)>1){const a=Sd(n);if(a&&a.flags&64)return kt(n.declarations,l=>!!(xp(l)&268435456))}return!!(JV(n)&268435456)}function jg(n,a,l){const u=Nr(n,_._0_is_deprecated,l);return Mb(a,u)}function SS(n,a,l,u){const p=l?Nr(n,_.The_signature_0_of_1_is_deprecated,u,l):Nr(n,_._0_is_deprecated,u);return Mb(a,p)}function ns(n,a,l){C++;const u=new d(n|33554432,a);return u.links=new $X,u.links.checkFlags=l||0,u}function up(n,a){const l=ns(1,n);return l.links.type=a,l}function EE(n,a){const l=ns(4,n);return l.links.type=a,l}function Ac(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function zh(n,a){a.mergeId||(a.mergeId=XX,XX++),d0[a.mergeId]=n}function Fb(n){const a=ns(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),zh(a,n),a}function dp(n,a,l=!1){if(!(n.flags&Ac(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const p=ec(n);if(p===rn)return a;n=Fb(p)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&jN(n,a.valueDeclaration),Ai(n.declarations,a.declarations),a.members&&(n.members||(n.members=co()),Uc(n.members,a.members,l)),a.exports&&(n.exports||(n.exports=co()),Uc(n.exports,a.exports,l)),l||zh(n,a)}else if(n.flags&1024)n!==st&&Ke(a.declarations&&Ia(a.declarations[0]),_.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,x(n));else{const p=!!(n.flags&384||a.flags&384),y=!!(n.flags&2||a.flags&2),A=p?_.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:y?_.Cannot_redeclare_block_scoped_variable_0:_.Duplicate_identifier_0,R=a.declarations&&er(a.declarations[0]),F=n.declarations&&er(n.declarations[0]),J=v3(R,$.checkJs),Q=v3(F,$.checkJs),ge=x(a);if(R&&F&&wr&&!p&&R!==F){const Ne=pT(R.path,F.path)===-1?R:F,De=Ne===R?F:R,_t=RA(wr,`${Ne.path}|${De.path}`,()=>({firstFile:Ne,secondFile:De,conflictingSymbols:new Map})),Bt=RA(_t.conflictingSymbols,ge,()=>({isBlockScoped:y,firstFileLocations:[],secondFileLocations:[]}));J||u(Bt.firstFileLocations,a),Q||u(Bt.secondFileLocations,n)}else J||Bb(a,A,ge,n),Q||Bb(n,A,ge,a)}return n;function u(p,y){if(y.declarations)for(const A of y.declarations)v_(p,A)}}function Bb(n,a,l,u){Je(n.declarations,p=>{mu(p,a,l,u.declarations)})}function mu(n,a,l,u){const p=(lb(n,!1)?uq(n):Ia(n))||n,y=M2(p,a,l);for(const A of u||rt){const R=(lb(A,!1)?uq(A):Ia(A))||A;if(R===p)continue;y.relatedInformation=y.relatedInformation||[];const F=Nr(R,_._0_was_also_declared_here,l),J=Nr(R,_.and_here);Le(y.relatedInformation)>=5||kt(y.relatedInformation,Q=>Nk(Q,J)===0||Nk(Q,F)===0)||Yo(y,Le(y.relatedInformation)?J:F)}}function Hg(n,a){if(!(n!=null&&n.size))return a;if(!(a!=null&&a.size))return n;const l=co();return Uc(l,n),Uc(l,a),l}function Uc(n,a,l=!1){a.forEach((u,p)=>{const y=n.get(p);n.set(p,y?dp(y,u,l):as(u))})}function xS(n){var a,l,u;const p=n.parent;if(((a=p.symbol.declarations)==null?void 0:a[0])!==p){D.assert(p.symbol.declarations.length>1);return}if(im(p))Uc(We,p.symbol.exports);else{const y=n.parent.parent.flags&16777216?void 0:_.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let A=Xh(n,n,y,!0);if(!A)return;if(A=Td(A),A.flags&1920)if(kt(go,R=>A===R.symbol)){const R=dp(p.symbol,A,!0);Wo||(Wo=new Map),Wo.set(n.text,R)}else{if((l=A.exports)!=null&&l.get("__export")&&((u=p.symbol.exports)!=null&&u.size)){const R=mie(A,"resolvedExports");for(const[F,J]of No(p.symbol.exports.entries()))R.has(F)&&!A.exports.has(F)&&dp(R.get(F),J)}dp(A,p.symbol)}else Ke(n,_.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function wL(n,a,l){a.forEach((p,y)=>{const A=n.get(y);A?Je(A.declarations,u(ra(y),l)):n.set(y,p)});function u(p,y){return A=>Zo.add(Nr(A,y,p))}}function zi(n){var a;if(n.flags&33554432)return n.links;const l=Eo(n);return(a=_E[l])!=null?a:_E[l]=new $X}function Jr(n){const a=hs(n);return kb[a]||(kb[a]=new b5e)}function sh(n){return n.kind===308&&!mf(n)}function tf(n,a,l){if(l){const u=as(n.get(a));if(u&&(D.assert((Dl(u)&1)===0,"Should never get an instantiated symbol here."),u.flags&l||u.flags&2097152&&hu(u)&l))return u}}function TE(n,a){const l=n.parent,u=n.parent.parent,p=tf(l.locals,a,111551),y=tf(_v(u.symbol),a,111551);return p&&y?[p,y]:D.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Wg(n,a){const l=er(n),u=er(a),p=zm(n);if(l!==u){if(de&&(l.externalModuleIndicator||u.externalModuleIndicator)||!Ks($)||YL(a)||n.flags&16777216||A(a,n))return!0;const F=e.getSourceFiles();return F.indexOf(l)<=F.indexOf(u)}if(n.pos<=a.pos&&!(ro(n)&&wN(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===205){const F=ub(a,205);return F?rr(F,ms)!==rr(n,ms)||n.pos<F.pos:Wg(ub(n,257),a)}else{if(n.kind===257)return!y(n,a);if(Bc(n))return!rr(a,F=>Cs(F)&&F.parent.parent===n);if(ro(n))return!R(n,a,!1);if(df(n,n.parent))return!(ts($)===99&&be&&wc(n)===wc(a)&&A(a,n))}return!0}if(a.parent.kind===278||a.parent.kind===274&&a.parent.isExportEquals||a.kind===274&&a.isExportEquals||a.flags&8388608||YL(a)||iwe(a))return!0;if(A(a,n))return ts($)===99&&be&&wc(n)&&(ro(n)||df(n,n.parent))?!R(n,a,!0):!0;return!1;function y(F,J){switch(F.parent.parent.kind){case 240:case 245:case 247:if(gm(J,F,p))return!0;break}const Q=F.parent.parent;return JA(Q)&&gm(J,Q.expression,p)}function A(F,J){return!!rr(F,Q=>{if(Q===p)return"quit";if(Xa(Q))return!0;if(Rl(Q))return J.pos<F.pos;const ge=si(Q.parent,ro);if(ge&&ge.initializer===Q){if(Ja(Q.parent)){if(J.kind===171)return!0;if(ro(J)&&wc(F)===wc(J)){const De=J.name;if(je(De)||Oi(De)){const _t=or(Ir(J)),Bt=yn(J.parent.members,Rl);if(sct(De,_t,Bt,J.parent.pos,Q.pos))return!0}}}else if(!(J.kind===169&&!Ja(J))||wc(F)!==wc(J))return!0}return!1})}function R(F,J,Q){return J.end>F.end?!1:rr(J,Ne=>{if(Ne===F)return"quit";switch(Ne.kind){case 216:return!0;case 169:return Q&&(ro(F)&&Ne.parent===F.parent||df(F,F.parent)&&Ne.parent===F.parent.parent)?"quit":!0;case 238:switch(Ne.parent.kind){case 174:case 171:case 175:return!0;default:return!1}default:return!1}})===void 0}}function qh(n,a,l){const u=ts($),p=a;if(Fa(l)&&p.body&&n.valueDeclaration&&n.valueDeclaration.pos>=p.body.pos&&n.valueDeclaration.end<=p.body.end&&u>=2){const R=Jr(p);return R.declarationRequiresScopeChange===void 0&&(R.declarationRequiresScopeChange=Je(p.parameters,y)||!1),!R.declarationRequiresScopeChange}return!1;function y(R){return A(R.name)||!!R.initializer&&A(R.initializer)}function A(R){switch(R.kind){case 216:case 215:case 259:case 173:return!1;case 171:case 174:case 175:case 299:return A(R.name);case 169:return Sc(R)?u<99||!be:A(R.name);default:return uz(R)||xu(R)?u<7:ms(R)&&R.dotDotDotToken&&Qm(R.parent)?u<4:Gi(R)?!1:Pa(R,A)||!1}}}function lh(n){return bT(n)&&vg(n.type)||uw(n)&&vg(n.typeExpression)}function hl(n,a,l,u,p,y,A=!1,R=!0){return Gb(n,a,l,u,p,y,A,R,tf)}function Gb(n,a,l,u,p,y,A,R,F){var J,Q,ge;const Ne=n;let De,_t,Bt,Fn,An,Xn=!1;const hn=n;let xn,yr=!1;e:for(;n;){if(a==="const"&&lh(n))return;if(jm(n)&&n.locals&&!sh(n)&&(De=F(n.locals,a,l))){let Un=!0;if(Xa(n)&&_t&&_t!==n.body?(l&De.flags&788968&&_t.kind!==323&&(Un=De.flags&262144?_t===n.type||_t.kind===166||_t.kind===344||_t.kind===345||_t.kind===165:!1),l&De.flags&3&&(qh(De,n,_t)?Un=!1:De.flags&1&&(Un=_t.kind===166||_t===n.type&&!!rr(De.valueDeclaration,Fa)))):n.kind===191&&(Un=_t===n.trueType),Un)break e;De=void 0}switch(Xn=Xn||Ub(n,_t),n.kind){case 308:if(!mf(n))break;yr=!0;case 264:const Un=((J=Ir(n))==null?void 0:J.exports)||ne;if(n.kind===308||$l(n)&&n.flags&16777216&&!im(n)){if(De=Un.get("default")){const ai=vC(De);if(ai&&De.flags&l&&ai.escapedName===a)break e;De=void 0}const ei=Un.get(a);if(ei&&ei.flags===2097152&&(Il(ei,278)||Il(ei,277)))break}if(a!=="default"&&(De=F(Un,a,l&2623475)))if(Ji(n)&&n.commonJsModuleIndicator&&!((Q=De.declarations)!=null&&Q.some(S_)))De=void 0;else break e;break;case 263:if(De=F(((ge=Ir(n))==null?void 0:ge.exports)||ne,a,l&8)){u&&Y_($)&&!(n.flags&16777216)&&er(n)!==er(De.valueDeclaration)&&Ke(hn,_.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,ra(a),Vt,`${ra(nf(n).escapedName)}.${ra(a)}`);break e}break;case 169:if(!Ja(n)){const ei=A0(n.parent);ei&&ei.locals&&F(ei.locals,a,l&111551)&&(D.assertNode(n,ro),Fn=n)}break;case 260:case 228:case 261:if(De=F(Ir(n).members||ne,a,l&788968)){if(!F2(De,n)){De=void 0;break}if(_t&&Ja(_t)){u&&Ke(hn,_.Static_members_cannot_reference_class_type_parameters);return}break e}if(qu(n)&&l&32){const ei=n.name;if(ei&&a===ei.escapedText){De=n.symbol;break e}}break;case 230:if(_t===n.expression&&n.parent.token===94){const ei=n.parent.parent;if(_i(ei)&&(De=F(Ir(ei).members,a,l&788968))){u&&Ke(hn,_.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 164:if(xn=n.parent.parent,(_i(xn)||xn.kind===261)&&(De=F(Ir(xn).members,a,l&788968))){u&&Ke(hn,_.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 216:if(ts($)>=2)break;case 171:case 173:case 174:case 175:case 259:if(l&3&&a==="arguments"){De=Ct;break e}break;case 215:if(l&3&&a==="arguments"){De=Ct;break e}if(l&16){const ei=n.name;if(ei&&a===ei.escapedText){De=n.symbol;break e}}break;case 167:n.parent&&n.parent.kind===166&&(n=n.parent),n.parent&&(qc(n.parent)||n.parent.kind===260)&&(n=n.parent);break;case 349:case 341:case 343:const Jn=_k(n);Jn&&(n=Jn.parent);break;case 166:_t&&(_t===n.initializer||_t===n.name&&Ya(_t))&&(An||(An=n));break;case 205:_t&&(_t===n.initializer||_t===n.name&&Ya(_t))&&RT(n)&&!An&&(An=n);break;case 192:if(l&262144){const ei=n.typeParameter.name;if(ei&&a===ei.escapedText){De=n.typeParameter.symbol;break e}}break}CS(n)&&(Bt=n),_t=n,n=kp(n)?X3(n)||n.parent:(_m(n)||E5(n))&&cb(n)||n.parent}if(y&&De&&(!Bt||De!==Bt.symbol)&&(De.isReferenced|=l),!De){if(_t&&(D.assertNode(_t,Ji),_t.commonJsModuleIndicator&&a==="exports"&&l&_t.symbol.flags))return _t.symbol;A||(De=F(We,a,l))}if(!De&&Ne&&fr(Ne)&&Ne.parent&&wd(Ne.parent,!1))return Et;function sn(){return Fn&&!(be&&ts($)>=9)?(Ke(hn,hn&&Fn.type&&ZM(Fn.type,hn.pos)?_.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:_.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Rs(Fn.name),f_(p)),!0):!1}if(De){if(u&&sn())return}else{u&&i(()=>{if(!hn||!B2(hn,a,p)&&!sn()&&!y0(hn)&&!IS(hn,a,l)&&!kS(hn,a)&&!U2(hn,a,l)&&!Wf(hn,a,l)&&!G2(hn,a,l)){let Un,Jn;if(p&&(Jn=_at(p),Jn&&Ke(hn,u,f_(p),Jn)),!Jn&&R&&Wh<Fp&&(Un=koe(Ne,a,l),(Un==null?void 0:Un.valueDeclaration)&&ju(Un.valueDeclaration)&&im(Un.valueDeclaration)&&(Un=void 0),Un)){const ai=x(Un),_a=Coe(Ne,Un,!1),Za=l===1920||p&&typeof p!="string"&&tl(p)?_.Cannot_find_namespace_0_Did_you_mean_1:_a?_.Could_not_find_name_0_Did_you_mean_1:_.Cannot_find_name_0_Did_you_mean_1,Lc=bE(hn,Za,f_(p),ai);Ky(!_a,Lc),Un.valueDeclaration&&Yo(Lc,Nr(Un.valueDeclaration,_._0_is_declared_here,ai))}!Un&&!Jn&&p&&Ke(hn,u,f_(p)),Wh++}});return}return u&&i(()=>{if(hn&&(l&2||(l&32||l&384)&&(l&111551)===111551)){const Un=Vp(De);(Un.flags&2||Un.flags&32||Un.flags&384)&&jb(Un,hn)}if(De&&yr&&(l&111551)===111551&&!(Ne.flags&8388608)){const Un=as(De);Le(Un.declarations)&&Zn(Un.declarations,Jn=>n8(Jn)||Ji(Jn)&&!!Jn.symbol.globalExports)&&hm(!$.allowUmdGlobalAccess,hn,_._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,ra(a))}if(De&&An&&!Xn&&(l&111551)===111551){const Un=as(KU(De)),Jn=qm(An);Un===Ir(An)?Ke(hn,_.Parameter_0_cannot_reference_itself,Rs(An.name)):Un.valueDeclaration&&Un.valueDeclaration.pos>An.pos&&Jn.parent.locals&&F(Jn.parent.locals,Un.escapedName,l)===Un&&Ke(hn,_.Parameter_0_cannot_reference_identifier_1_declared_after_it,Rs(An.name),Rs(hn))}if(De&&hn&&l&111551&&De.flags&2097152&&!(De.flags&111551)&&!Fx(hn)){const Un=Bd(De,111551);if(Un){const Jn=Un.kind===278||Un.kind===275||Un.kind===277?_._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:_._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,ei=ra(a);AS(Ke(hn,Jn,ei),Un,ei)}}}),De}function AS(n,a,l){return a?Yo(n,Nr(a,a.kind===278||a.kind===275||a.kind===277?_._0_was_exported_here:_._0_was_imported_here,l)):n}function Ub(n,a){return n.kind!==216&&n.kind!==215?Zk(n)||(el(n)||n.kind===169&&!Ja(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||$r(n,512)?!0:!LT(n)}function CS(n){switch(n.kind){case 259:case 260:case 261:case 263:case 262:case 264:return!0;default:return!1}}function f_(n){return Ha(n)?ra(n):Rs(n)}function F2(n,a){if(n.declarations){for(const l of n.declarations)if(l.kind===165&&(kp(l.parent)?Cx(l.parent):l.parent)===a)return!(kp(l.parent)&&In(l.parent.parent.tags,S_))}return!1}function B2(n,a,l){if(!je(n)||n.escapedText!==a||vNe(n)||YL(n))return!1;const u=kd(n,!1,!1);let p=u;for(;p;){if(_i(p.parent)){const y=Ir(p.parent);if(!y)break;const A=or(y);if(fo(A,a))return Ke(n,_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,f_(l),x(y)),!0;if(p===u&&!Ja(p)){const R=js(y).thisType;if(fo(R,a))return Ke(n,_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,f_(l)),!0}}p=p.parent}return!1}function y0(n){const a=LS(n);return a&&Ml(a,64,!0)?(Ke(n,_.Cannot_extend_an_interface_0_Did_you_mean_implements,kc(a)),!0):!1}function LS(n){switch(n.kind){case 79:case 208:return n.parent?LS(n.parent):void 0;case 230:if(Xl(n.expression))return n.expression;default:return}}function IS(n,a,l){const u=1920|(fr(n)?111551:0);if(l===u){const p=ec(hl(n,a,788968&~u,void 0,void 0,!1)),y=n.parent;if(p){if(Rd(y)){D.assert(y.left===n,"Should only be resolving left side of qualified name as a namespace");const A=y.right.escapedText;if(fo(js(p),A))return Ke(y,_.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ra(a),ra(A)),!0}return Ke(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,ra(a)),!0}}return!1}function G2(n,a,l){if(l&788584){const u=ec(hl(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return Ke(n,_._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,ra(a)),!0}return!1}function Vb(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function kS(n,a){return Vb(a)&&n.parent.kind===278?(Ke(n,_.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function Wf(n,a,l){if(l&111551){if(Vb(a))return zg(n)?Ke(n,_.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,ra(a)):Ke(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,ra(a)),!0;const u=ec(hl(n,a,788544,void 0,void 0,!1)),p=u&&hu(u);if(u&&p!==void 0&&!(p&111551)){const y=ra(a);return fp(a)?Ke(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,y):Bp(n,u)?Ke(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,y,y==="K"?"P":"K"):Ke(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,y),!0}}return!1}function zg(n){const a=n.parent.parent,l=a.parent;if(a&&l){const u=Kd(a)&&a.token===94,p=ud(l);return u&&p}return!1}function Bp(n,a){const l=rr(n.parent,u=>Cs(u)||Bf(u)?!1:yf(u)||"quit");if(l&&l.members.length===1){const u=js(a);return!!(u.flags&1048576)&&w4(u,384,!0)}return!1}function fp(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function U2(n,a,l){if(l&111127){if(ec(hl(n,a,1024,void 0,void 0,!1)))return Ke(n,_.Cannot_use_namespace_0_as_a_value,ra(a)),!0}else if(l&788544&&ec(hl(n,a,1536,void 0,void 0,!1)))return Ke(n,_.Cannot_use_namespace_0_as_a_type,ra(a)),!0;return!1}function jb(n,a){var l;if(D.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const u=(l=n.declarations)==null?void 0:l.find(p=>Uz(p)||_i(p)||p.kind===263);if(u===void 0)return D.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(u.flags&16777216)&&!Wg(u,a)){let p;const y=Rs(Ia(u));n.flags&2?p=Ke(a,_.Block_scoped_variable_0_used_before_its_declaration,y):n.flags&32?p=Ke(a,_.Class_0_used_before_its_declaration,y):n.flags&256?p=Ke(a,_.Enum_0_used_before_its_declaration,y):(D.assert(!!(n.flags&128)),W1($)&&(p=Ke(a,_.Enum_0_used_before_its_declaration,y))),p&&Yo(p,Nr(u,_._0_is_declared_here,y))}}function gm(n,a,l){return!!a&&!!rr(n,u=>u===a||(u===l||Xa(u)&&(!LT(u)||mC(u))?"quit":!1))}function wS(n){switch(n.kind){case 268:return n;case 270:return n.parent;case 271:return n.parent.parent;case 273:return n.parent.parent.parent;default:return}}function Ed(n){return n.declarations&&Yr(n.declarations,qg)}function qg(n){return n.kind===268||n.kind===267||n.kind===270&&!!n.name||n.kind===271||n.kind===277||n.kind===273||n.kind===278||n.kind===274&&fC(n)||br(n)&&wl(n)===2&&fC(n)||dl(n)&&br(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63&&ym(n.parent.right)||n.kind===300||n.kind===299&&ym(n.initializer)||n.kind===257&&B1(n)||n.kind===205&&B1(n.parent.parent)}function ym(n){return ZN(n)||Us(n)&&Kp(n)}function vm(n,a){const l=$y(n);if(l){const p=Dk(l.expression).arguments[0];return je(l.name)?ec(fo(fIe(p),l.name.escapedText)):void 0}if(Xi(n)||n.moduleReference.kind===280){const p=gu(n,oq(n)||dk(n)),y=Td(p);return O_(n,p,y,!1),y}const u=Up(n.moduleReference,a);return Jg(n,u),u}function Jg(n,a){if(O_(n,void 0,a,!1)&&!n.isTypeOnly){const l=Bd(Ir(n)),u=l.kind===278||l.kind===275,p=u?_.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:_.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,y=u?_._0_was_exported_here:_._0_was_imported_here,A=l.kind===275?"*":ra(l.name.escapedText);Yo(Ke(n.moduleReference,p),Nr(l,y,A))}}function SE(n,a,l,u){const p=n.exports.get("export="),y=p?fo(or(p),a,!0):n.exports.get(a),A=ec(y,u);return O_(l,y,A,!1),A}function DS(n){return Vl(n)&&!n.isExportEquals||$r(n,1024)||gd(n)}function Xy(n){return As(n)?wp(er(n),n):void 0}function xE(n,a){return n===99&&a===1}function Os(n){return Xy(n)===99&&cc(n.text,".json")}function Yy(n,a,l,u){const p=n&&Xy(u);if(n&&p!==void 0){const y=xE(p,n.impliedNodeFormat);if(p===99||y)return y}if(!ae)return!1;if(!n||n.isDeclarationFile){const y=SE(a,"default",void 0,!0);return!(y&&kt(y.declarations,DS)||SE(a,ul("__esModule"),void 0,l))}return sd(n)?typeof n.externalModuleIndicator!="object"&&!SE(a,ul("__esModule"),void 0,l):kE(a)}function V2(n,a){const l=gu(n,n.parent.moduleSpecifier);if(l)return Hb(l,n,a)}function Hb(n,a,l){var u;let p;ok(n)?p=n:p=SE(n,"default",a,l);const y=(u=n.declarations)==null?void 0:u.find(Ji),A=Wb(a);if(!A)return p;const R=Os(A),F=Yy(y,n,l,A);if(!p&&!F&&!R)if(kE(n)&&!(FT($)||$_($))){const J=de>=5?"allowSyntheticDefaultImports":"esModuleInterop",ge=n.exports.get("export=").valueDeclaration,Ne=Ke(a.name,_.Module_0_can_only_be_default_imported_using_the_1_flag,x(n),J);ge&&Yo(Ne,Nr(ge,_.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,J))}else Zm(a)?j2(n,a):v0(n,n,a,mx(a)&&a.propertyName||a.name);else if(F||R){const J=Td(n,l)||ec(n,l);return O_(a,n,J,!1),J}return O_(a,p,void 0,!1),p}function Wb(n){switch(n.kind){case 270:return n.parent.moduleSpecifier;case 268:return eh(n.moduleReference)?n.moduleReference.expression:void 0;case 271:return n.parent.parent.moduleSpecifier;case 273:return n.parent.parent.parent.moduleSpecifier;case 278:return n.parent.parent.moduleSpecifier;default:return D.assertNever(n)}}function j2(n,a){var l,u,p;if((l=n.exports)!=null&&l.has(a.symbol.escapedName))Ke(a.name,_.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,x(n),x(a.symbol));else{const y=Ke(a.name,_.Module_0_has_no_default_export,x(n)),A=(u=n.exports)==null?void 0:u.get("__export");if(A){const R=(p=A.declarations)==null?void 0:p.find(F=>{var J,Q;return!!(au(F)&&F.moduleSpecifier&&((Q=(J=gu(F,F.moduleSpecifier))==null?void 0:J.exports)!=null&&Q.has("default")))});R&&Yo(y,Nr(R,_.export_Asterisk_does_not_re_export_a_default))}}}function DL(n,a){const l=n.parent.parent.moduleSpecifier,u=gu(n,l),p=Kb(u,l,a,!1);return O_(n,u,p,!1),p}function H2(n,a){const l=n.parent.moduleSpecifier,u=l&&gu(n,l),p=l&&Kb(u,l,a,!1);return O_(n,u,p,!1),p}function pr(n,a){if(n===rn&&a===rn)return rn;if(n.flags&790504)return n;const l=ns(n.flags|a.flags,n.escapedName);return D.assert(n.declarations||a.declarations),l.declarations=NA(ya(n.declarations,a.declarations),tb),l.parent=n.parent||a.parent,n.valueDeclaration&&(l.valueDeclaration=n.valueDeclaration),a.members&&(l.members=new Map(a.members)),n.exports&&(l.exports=new Map(n.exports)),l}function Pl(n,a,l,u){var p;if(n.flags&1536){const y=xf(n).get(a.escapedText),A=ec(y,u),R=(p=zi(n).typeOnlyExportStarMap)==null?void 0:p.get(a.escapedText);return O_(l,y,A,!1,R,a.escapedText),A}}function da(n,a){if(n.flags&3){const l=n.valueDeclaration.type;if(l)return ec(fo(pi(l),a))}}function zf(n,a,l=!1){var u;const p=oq(n)||n.moduleSpecifier,y=gu(n,p),A=!Fr(a)&&a.propertyName||a.name;if(!je(A))return;const R=A.escapedText==="default"&&!!($.allowSyntheticDefaultImports||$_($)),F=Kb(y,p,!1,R);if(F&&A.escapedText){if(ok(y))return y;let J;y&&y.exports&&y.exports.get("export=")?J=fo(or(F),A.escapedText,!0):J=da(F,A.escapedText),J=ec(J,l);let Q=Pl(F,A,a,l);if(Q===void 0&&A.escapedText==="default"){const Ne=(u=y.declarations)==null?void 0:u.find(Ji);(Os(p)||Yy(Ne,y,l,p))&&(Q=Td(y,l)||ec(y,l))}const ge=Q&&J&&Q!==J?pr(J,Q):Q||J;return ge||v0(y,F,n,A),ge}}function v0(n,a,l,u){var p;const y=Jh(n,l),A=Rs(u),R=$V(u,a);if(R!==void 0){const F=x(R),J=Ke(u,_._0_has_no_exported_member_named_1_Did_you_mean_2,y,A,F);R.valueDeclaration&&Yo(J,Nr(R.valueDeclaration,_._0_is_declared_here,F))}else(p=n.exports)!=null&&p.has("default")?Ke(u,_.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,y,A):ch(l,u,A,n,y)}function ch(n,a,l,u,p){var y,A;const R=(A=(y=si(u.valueDeclaration,jm))==null?void 0:y.locals)==null?void 0:A.get(a.escapedText),F=u.exports;if(R){const J=F==null?void 0:F.get("export=");if(J)bm(J,R)?ar(n,a,l,p):Ke(a,_.Module_0_has_no_exported_member_1,p,l);else{const Q=F?In(Nie(F),Ne=>!!bm(Ne,R)):void 0,ge=Q?Ke(a,_.Module_0_declares_1_locally_but_it_is_exported_as_2,p,l,x(Q)):Ke(a,_.Module_0_declares_1_locally_but_it_is_not_exported,p,l);R.declarations&&Yo(ge,...zt(R.declarations,(Ne,De)=>Nr(Ne,De===0?_._0_is_declared_here:_.and_here,l)))}}else Ke(a,_.Module_0_has_no_exported_member_1,p,l)}function ar(n,a,l,u){if(de>=5){const p=$_($)?_._0_can_only_be_imported_by_using_a_default_import:_._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ke(a,p,l)}else if(fr(n)){const p=$_($)?_._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:_._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ke(a,p,l)}else{const p=$_($)?_._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:_._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ke(a,p,l,l,u)}}function W2(n,a){if(Nd(n)&&Mr(n.propertyName||n.name)==="default"){const A=Wb(n),R=A&&gu(n,A);if(R)return Hb(R,n,a)}const l=ms(n)?qm(n):n.parent.parent.parent,u=$y(l),p=zf(l,u||n,a),y=n.propertyName||n.name;return u&&p&&je(y)?ec(fo(or(p),y.escapedText),a):(O_(n,void 0,p,!1),p)}function $y(n){if(Xi(n)&&n.initializer&&Fr(n.initializer))return n.initializer}function Nc(n,a){if(Vm(n.parent)){const l=Td(n.parent.symbol,a);return O_(n,void 0,l,!1),l}}function N_(n,a,l){if(Mr(n.propertyName||n.name)==="default"){const p=Wb(n),y=p&&gu(n,p);if(y)return Hb(y,n,!!l)}const u=n.parent.parent.moduleSpecifier?zf(n.parent.parent,n,l):Ml(n.propertyName||n.name,a,!1,l);return O_(n,void 0,u,!1),u}function Gp(n,a){const l=Vl(n)?n.expression:n.right,u=Qy(l,a);return O_(n,void 0,u,!1),u}function Qy(n,a){if(qu(n))return nc(n).symbol;if(!ff(n)&&!Xl(n))return;const l=Ml(n,901119,!0,a);return l||(nc(n),Jr(n).resolvedSymbol)}function AE(n,a){if(br(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63)return Qy(n.parent.right,a)}function _p(n,a=!1){switch(n.kind){case 268:case 257:return vm(n,a);case 270:return V2(n,a);case 271:return DL(n,a);case 277:return H2(n,a);case 273:case 205:return W2(n,a);case 278:return N_(n,901119,a);case 274:case 223:return Gp(n,a);case 267:return Nc(n,a);case 300:return Ml(n.name,901119,!0,a);case 299:return Qy(n.initializer,a);case 209:case 208:return AE(n,a);default:return D.fail()}}function Zy(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function ec(n,a){return!a&&Zy(n)?oc(n):n}function oc(n){D.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=zi(n);if(a.aliasTarget)a.aliasTarget===Mn&&(a.aliasTarget=rn);else{a.aliasTarget=Mn;const l=Ed(n);if(!l)return D.fail();const u=_p(l);a.aliasTarget===Mn?a.aliasTarget=u||rn:Ke(l,_.Circular_definition_of_import_alias_0,x(n))}return a.aliasTarget}function Kg(n){if(zi(n).aliasTarget!==Mn)return oc(n)}function hu(n){let a=n.flags,l;for(;n.flags&2097152;){const u=oc(n);if(u===rn)return 67108863;if(u===n||l!=null&&l.has(u))break;u.flags&2097152&&(l?l.add(u):l=new Set([n,u])),a|=u.flags,n=u}return a}function O_(n,a,l,u,p,y){if(!n||Fr(n))return!1;const A=Ir(n);if(D1(n)){const F=zi(A);return F.typeOnlyDeclaration=n,!0}if(p){const F=zi(A);return F.typeOnlyDeclaration=p,A.escapedName!==y&&(F.typeOnlyExportStarName=y),!0}const R=zi(A);return uh(R,a,u)||uh(R,l,u)}function uh(n,a,l){var u,p,y;if(a&&(n.typeOnlyDeclaration===void 0||l&&n.typeOnlyDeclaration===!1)){const A=(p=(u=a.exports)==null?void 0:u.get("export="))!=null?p:a,R=A.declarations&&In(A.declarations,D1);n.typeOnlyDeclaration=(y=R!=null?R:zi(A).typeOnlyDeclaration)!=null?y:!1}return!!n.typeOnlyDeclaration}function Bd(n,a){if(!(n.flags&2097152))return;const l=zi(n);if(a===void 0)return l.typeOnlyDeclaration||void 0;if(l.typeOnlyDeclaration){const u=l.typeOnlyDeclaration.kind===275?ec($h(l.typeOnlyDeclaration.symbol.parent).get(l.typeOnlyExportStarName||n.escapedName)):oc(l.typeOnlyDeclaration.symbol);return hu(u)&a?l.typeOnlyDeclaration:void 0}}function CE(n){if($.verbatimModuleSyntax)return;const a=Ir(n),l=oc(a);l&&(l===rn||hu(l)&111551&&!hR(l)&&!Bd(a,111551))&&zb(a)}function zb(n){D.assert(!$.verbatimModuleSyntax);const a=zi(n);if(!a.referenced){a.referenced=!0;const l=Ed(n);if(!l)return D.fail();aC(l)&&hu(ec(n))&111551&&nc(l.moduleReference)}}function qb(n){const a=zi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function Up(n,a){return n.kind===79&&Ak(n)&&(n=n.parent),n.kind===79||n.parent.kind===163?Ml(n,1920,!1,a):(D.assert(n.parent.kind===268),Ml(n,901119,!1,a))}function Jh(n,a){return n.parent?Jh(n.parent,a)+"."+x(n):x(n,a,void 0,36)}function LE(n){for(;Rd(n.parent);)n=n.parent;return n}function ev(n){let a=Ff(n),l=hl(a,a.escapedText,111551,void 0,a,!0);if(l){for(;Rd(a.parent);){const u=or(l);if(l=fo(u,a.parent.right.escapedText),!l)return;a=a.parent}return l}}function Ml(n,a,l,u,p){if(kl(n))return;const y=1920|(fr(n)?a&111551:0);let A;if(n.kind===79){const R=a===y||tl(n)?_.Cannot_find_namespace_0:rwe(Ff(n)),F=fr(n)&&!tl(n)?Xg(n,a):void 0;if(A=as(hl(p||n,n.escapedText,a,l||F?void 0:R,n,!0,!1)),!A)return as(F)}else if(n.kind===163||n.kind===208){const R=n.kind===163?n.left:n.expression,F=n.kind===163?n.right:n.name;let J=Ml(R,y,l,!1,p);if(!J||kl(F))return;if(J===rn)return J;if(J.valueDeclaration&&fr(J.valueDeclaration)&&Tl($)!==100&&Xi(J.valueDeclaration)&&J.valueDeclaration.initializer&&UDe(J.valueDeclaration.initializer)){const Q=J.valueDeclaration.initializer.arguments[0],ge=gu(Q,Q);if(ge){const Ne=Td(ge);Ne&&(J=Ne)}}if(A=as(tf(xf(J),F.escapedText,a)),!A){if(!l){const Q=Jh(J),ge=Rs(F),Ne=$V(F,J);if(Ne){Ke(F,_._0_has_no_exported_member_named_1_Did_you_mean_2,Q,ge,x(Ne));return}const De=Rd(n)&&LE(n);if($a&&a&788968&&De&&!GC(De.parent)&&ev(De)){Ke(De,_._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Pf(De));return}if(a&1920&&Rd(n.parent)){const Bt=as(tf(xf(J),F.escapedText,788968));if(Bt){Ke(n.parent.right,_.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,x(Bt),ra(n.parent.right.escapedText));return}}Ke(F,_.Namespace_0_has_no_exported_member_1,Q,ge)}return}}else throw D.assertNever(n,"Unknown entity name kind.");return D.assert((Dl(A)&1)===0,"Should never get an instantiated symbol here."),!tl(n)&&ff(n)&&(A.flags&2097152||n.parent.kind===274)&&O_(yq(n),A,void 0,!0),A.flags&a||u?A:oc(A)}function Xg(n,a){if(eV(n.parent)){const l=Kh(n.parent);if(l)return hl(l,n.escapedText,a,void 0,n,!0)}}function Kh(n){if(rr(n,p=>KA(p)||p.flags&8388608?S_(p):"quit"))return;const l=Cx(n);if(l&&fu(l)&&VN(l.expression)){const p=Ir(l.expression.left);if(p)return b0(p)}if(l&&Us(l)&&VN(l.parent)&&fu(l.parent.parent)){const p=Ir(l.parent.left);if(p)return b0(p)}if(l&&(q_(l)||$c(l))&&br(l.parent.parent)&&wl(l.parent.parent)===6){const p=Ir(l.parent.parent.left);if(p)return b0(p)}const u=dC(n);if(u&&Xa(u)){const p=Ir(u);return p&&p.valueDeclaration}}function b0(n){const a=n.parent.valueDeclaration;return a?(fk(a)?Ex(a):ET(a)?MN(a):void 0)||a:void 0}function E0(n){const a=n.valueDeclaration;if(!a||!fr(a)||n.flags&524288||lb(a,!1))return;const l=Xi(a)?MN(a):Ex(a);if(l){const u=nf(l);if(u)return Goe(u,n)}}function gu(n,a,l){const p=Tl($)===1?_.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_.Cannot_find_module_0_or_its_corresponding_type_declarations;return Xh(n,a,l?void 0:p)}function Xh(n,a,l,u=!1){return As(a)?Cc(n,a.text,l,a,u):void 0}function Cc(n,a,l,u,p=!1){var y,A,R,F,J,Q,ge,Ne,De;if(Ta(a,"@types/")){const Un=_.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Jn=RI(a,"@types/");Ke(u,Un,Jn,a)}const _t=Oie(a,!0);if(_t)return _t;const Bt=er(n),Fn=As(n)?n:((y=rr(n,hf))==null?void 0:y.arguments[0])||((A=rr(n,Yc))==null?void 0:A.moduleSpecifier)||((R=rr(n,sb))==null?void 0:R.moduleReference.expression)||((F=rr(n,au))==null?void 0:F.moduleSpecifier)||((J=$l(n)?n:n.parent&&$l(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:J.name)||((Q=ob(n)?n:void 0)==null?void 0:Q.argument.literal),An=Fn&&As(Fn)?wp(Bt,Fn):Bt.impliedNodeFormat,Xn=Tl($),hn=YA(Bt,a,An),xn=hn&&qY($,hn,Bt),yr=hn&&(!xn||xn===_.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(hn.resolvedFileName);if(yr){if(xn&&Ke(u,xn,a,hn.resolvedFileName),hn.resolvedUsingTsExtension&&yd(a)){const Un=((ge=rr(n,Yc))==null?void 0:ge.importClause)||rr(n,Fm(_u,au));(Un&&!Un.isTypeOnly||rr(n,hf))&&Ke(u,_.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,sn(D.checkDefined(o7(a))))}else if(hn.resolvedUsingTsExtension&&!Ew($,Bt.fileName)){const Un=D.checkDefined(o7(a));Ke(u,_.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Un)}if(yr.symbol){if(hn.isExternalLibraryImport&&!CO(hn.extension)&&IE(!1,u,Bt,An,hn,a),Xn===3||Xn===99){const Un=Bt.impliedNodeFormat===1&&!rr(n,hf)||!!rr(n,_u),Jn=rr(n,ai=>kg(ai)||au(ai)||Yc(ai)),ei=Jn&&kg(Jn)?(Ne=Jn.assertions)==null?void 0:Ne.assertClause:Jn==null?void 0:Jn.assertClause;if(Un&&yr.impliedNodeFormat===99&&!c2(ei))if(rr(n,_u))Ke(u,_.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let ai;const _a=Nh(Bt.fileName);if(_a===".ts"||_a===".js"||_a===".tsx"||_a===".jsx"){const Za=Bt.packageJsonScope,Lc=_a===".ts"?".mts":_a===".js"?".mjs":void 0;Za&&!Za.contents.packageJsonContent.type?Lc?ai=Ra(void 0,_.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Lc,Bi(Za.packageDirectory,"package.json")):ai=Ra(void 0,_.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Bi(Za.packageDirectory,"package.json")):Lc?ai=Ra(void 0,_.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Lc):ai=Ra(void 0,_.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Zo.add(Eg(er(u),u,Ra(ai,_.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return as(yr.symbol)}l&&Ke(u,_.File_0_is_not_a_module,yr.fileName);return}if(go){const Un=AH(go,Jn=>Jn.pattern,a);if(Un){const Jn=Wo&&Wo.get(a);return as(Jn||Un.symbol)}}if(hn&&!CO(hn.extension)&&xn===void 0||xn===_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(p){const Un=_.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Ke(u,Un,a,hn.resolvedFileName)}else IE(xe&&!!l,u,Bt,An,hn,a);return}if(l){if(hn){const Un=e.getProjectReferenceRedirect(hn.resolvedFileName);if(Un){Ke(u,_.Output_file_0_has_not_been_built_from_source_file_1,Un,hn.resolvedFileName);return}}if(xn)Ke(u,xn,a,hn.resolvedFileName);else{const Un=Nf(a)&&!BA(a),Jn=Xn===3||Xn===99;if(!BT($)&&hc(a,".json")&&Xn!==1&&f7($))Ke(u,_.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(An===99&&Jn&&Un){const ei=Oa(a,yi(Bt.path)),ai=(De=P2.find(([_a,Za])=>e.fileExists(ei+_a)))==null?void 0:De[1];ai?Ke(u,_.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+ai):Ke(u,_.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Ke(u,l,a)}}return;function sn(Un){const Jn=AO(a,Un);if(nJ(de)||An===99){const ei=yd(a)&&Ew($);return Jn+(Un===".mts"||Un===".d.mts"?ei?".mts":".mjs":Un===".cts"||Un===".d.mts"?ei?".cts":".cjs":ei?".ts":".js")}return Jn}}function IE(n,a,l,u,{packageId:p,resolvedFileName:y},A){var R,F;let J;if(!zc(A)&&p){const Q=(F=(R=l.resolvedModules)==null?void 0:R.get(A,u))==null?void 0:F.node10Result;J=Q?Ra(void 0,_.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,Q,Q.indexOf(By+"@types/")>-1?`@types/${bw(p.name)}`:p.name):Yh(p.name)?Ra(void 0,_.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,p.name,bw(p.name)):Jb(p.name)?Ra(void 0,_.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,p.name,A):Ra(void 0,_.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,A,bw(p.name))}hm(n,a,Ra(J,_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,A,y))}function Yh(n){return t().has(oF(n))}function Jb(n){return!!t().get(n)}function Td(n,a){if(n!=null&&n.exports){const l=ec(n.exports.get("export="),a),u=dh(as(l),as(n));return as(u)||n}}function dh(n,a){if(!n||n===rn||n===a||a.exports.size===1||n.flags&2097152)return n;const l=zi(n);if(l.cjsExportMerged)return l.cjsExportMerged;const u=n.flags&33554432?n:Fb(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=co()),a.exports.forEach((p,y)=>{y!=="export="&&u.exports.set(y,u.exports.has(y)?dp(u.exports.get(y),p):p)}),zi(u).cjsExportMerged=u,l.cjsExportMerged=u}function Kb(n,a,l,u){var p;const y=Td(n,l);if(!l&&y){if(!u&&!(y.flags&1539)&&!Il(y,308)){const R=de>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Ke(a,_.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,R),y}const A=a.parent;if(Yc(A)&&lC(A)||hf(A)){const R=hf(A)?A.arguments[0]:A.moduleSpecifier,F=or(y),J=BDe(F,y,n,R);if(J)return T0(y,J,A);const Q=(p=n==null?void 0:n.declarations)==null?void 0:p.find(Ji),ge=Q&&xE(Xy(R),Q.impliedNodeFormat);if($_($)||ge){let Ne=VP(F,0);if((!Ne||!Ne.length)&&(Ne=VP(F,1)),Ne&&Ne.length||fo(F,"default",!0)||ge){const De=GDe(F,y,n,R);return T0(y,De,A)}}}}return y}function T0(n,a,l){const u=ns(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=l,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));const p=gp(a);return u.links.type=Ps(u,p.members,rt,rt,p.indexInfos),u}function kE(n){return n.exports.get("export=")!==void 0}function tv(n){return Nie($h(n))}function RS(n){const a=tv(n),l=Td(n);if(l!==n){const u=or(l);wE(u)&&Ai(a,gs(u))}return a}function S0(n,a){$h(n).forEach((p,y)=>{RE(y)||a(p,y)});const u=Td(n);if(u!==n){const p=or(u);wE(p)&&jZe(p,(y,A)=>{a(y,A)})}}function Yg(n,a){const l=$h(a);if(l)return l.get(n)}function qf(n,a){const l=Yg(n,a);if(l)return l;const u=Td(a);if(u===a)return;const p=or(u);return wE(p)?fo(p,n):void 0}function wE(n){return!(n.flags&134348796||ri(n)&1||Zf(n)||Bo(n))}function xf(n){return n.flags&6256?mie(n,"resolvedExports"):n.flags&1536?$h(n):n.exports||ne}function $h(n){const a=zi(n);if(!a.resolvedExports){const{exports:l,typeOnlyExportStarMap:u}=z2(n);a.resolvedExports=l,a.typeOnlyExportStarMap=u}return a.resolvedExports}function x0(n,a,l,u){a&&a.forEach((p,y)=>{if(y==="default")return;const A=n.get(y);if(!A)n.set(y,p),l&&u&&l.set(y,{specifierText:kc(u.moduleSpecifier)});else if(l&&u&&A&&ec(A)!==ec(p)){const R=l.get(y);R.exportsWithDuplicate?R.exportsWithDuplicate.push(u):R.exportsWithDuplicate=[u]}})}function z2(n){const a=[];let l;const u=new Set;n=Td(n);const p=y(n)||ne;return l&&u.forEach(A=>l.delete(A)),{exports:p,typeOnlyExportStarMap:l};function y(A,R,F){if(!F&&(A!=null&&A.exports)&&A.exports.forEach((ge,Ne)=>u.add(Ne)),!(A&&A.exports&&v_(a,A)))return;const J=new Map(A.exports),Q=A.exports.get("__export");if(Q){const ge=co(),Ne=new Map;if(Q.declarations)for(const De of Q.declarations){const _t=gu(De,De.moduleSpecifier),Bt=y(_t,De,F||De.isTypeOnly);x0(ge,Bt,Ne,De)}Ne.forEach(({exportsWithDuplicate:De},_t)=>{if(!(_t==="export="||!(De&&De.length)||J.has(_t)))for(const Bt of De)Zo.add(Nr(Bt,_.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Ne.get(_t).specifierText,ra(_t)))}),x0(J,ge)}return R!=null&&R.isTypeOnly&&(l!=null||(l=new Map),J.forEach((ge,Ne)=>l.set(Ne,R))),J}}function as(n){let a;return n&&n.mergeId&&(a=d0[n.mergeId])?a:n}function Ir(n){return as(n.symbol&&KU(n.symbol))}function nf(n){return Vm(n)?Ir(n):void 0}function Sd(n){return as(n.parent&&KU(n.parent))}function NS(n,a){const l=er(a),u=hs(l),p=zi(n);let y;if(p.extendedContainersByFile&&(y=p.extendedContainersByFile.get(u)))return y;if(l&&l.imports){for(const R of l.imports){if(tl(R))continue;const F=gu(a,R,!0);!F||!rv(F,n)||(y=Bn(y,F))}if(Le(y))return(p.extendedContainersByFile||(p.extendedContainersByFile=new Map)).set(u,y),y}if(p.extendedContainers)return p.extendedContainers;const A=e.getSourceFiles();for(const R of A){if(!rc(R))continue;const F=Ir(R);rv(F,n)&&(y=Bn(y,F))}return p.extendedContainers=y||rt}function DE(n,a,l){const u=Sd(n);if(u&&!(n.flags&262144)){const A=pa(u.declarations,y),R=a&&NS(n,a),F=nv(u,l);if(a&&u.flags&Zg(l)&&C0(u,a,1920,!1))return Bn(ya(ya([u],A),R),F);const J=!(u.flags&Zg(l))&&u.flags&788968&&js(u).flags&524288&&l===111551?OE(a,ge=>pf(ge,Ne=>{if(Ne.flags&Zg(l)&&or(Ne)===js(u))return Ne})):void 0;let Q=J?[J,...A,u]:[...A,u];return Q=Bn(Q,F),Q=Ai(Q,R),Q}const p=pa(n.declarations,A=>{if(!ju(A)&&A.parent){if(ey(A.parent))return Ir(A.parent);if(dm(A.parent)&&A.parent.parent&&Td(Ir(A.parent.parent))===n)return Ir(A.parent.parent)}if(qu(A)&&br(A.parent)&&A.parent.operatorToken.kind===63&&dl(A.parent.left)&&Xl(A.parent.left.expression))return kh(A.parent.left)||IT(A.parent.left.expression)?Ir(er(A)):(nc(A.parent.left.expression),Jr(A.parent.left.expression).resolvedSymbol)});if(!Le(p))return;return pa(p,A=>rv(A,n)?A:void 0);function y(A){return u&&q2(A,u)}}function nv(n,a){const l=!!Le(n.declarations)&&ds(n.declarations);if(a&111551&&l&&l.parent&&Xi(l.parent)&&(Is(l)&&l===l.parent.initializer||yf(l)&&l===l.parent.type))return Ir(l.parent)}function q2(n,a){const l=Zh(n),u=l&&l.exports&&l.exports.get("export=");return u&&bm(u,a)?l:void 0}function rv(n,a){if(n===Sd(a))return a;const l=n.exports&&n.exports.get("export=");if(l&&bm(l,a))return n;const u=xf(n),p=u.get(a.escapedName);return p&&bm(p,a)?p:pf(u,y=>{if(bm(y,a))return y})}function bm(n,a){if(as(ec(as(n)))===as(ec(as(a))))return n}function Vp(n){return as(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function $g(n,a){return!!(n.flags&111551||n.flags&2097152&&hu(n)&111551&&(a||!Bd(n)))}function A0(n){const a=n.members;for(const l of a)if(l.kind===173&&E_(l.body))return l}function Qh(n){var a;const l=new v(at,n);return E++,l.id=E,(a=Si)==null||a.recordType(l),l}function Em(n,a){const l=Qh(n);return l.symbol=a,l}function OS(n){return new v(at,n)}function tc(n,a,l=0){const u=Qh(n);return u.intrinsicName=a,u.objectFlags=l,u}function Af(n,a){const l=Em(524288,a);return l.objectFlags=n,l.members=void 0,l.properties=void 0,l.callSignatures=void 0,l.constructSignatures=void 0,l.indexInfos=void 0,l}function fh(){return Zr(No(mF.keys(),Qf))}function Gd(n){return Em(262144,n)}function RE(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function iv(n){let a;return n.forEach((l,u)=>{Qg(l,u)&&(a||(a=[])).push(l)}),a||rt}function Qg(n,a){return!RE(a)&&$g(n)}function J2(n){const a=iv(n),l=Bie(n);return l?ya(a,[l]):a}function Jf(n,a,l,u,p){const y=n;return y.members=a,y.properties=rt,y.callSignatures=l,y.constructSignatures=u,y.indexInfos=p,a!==ne&&(y.properties=iv(a)),y}function Ps(n,a,l,u,p){return Jf(Af(16,n),a,l,u,p)}function NE(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=yn(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;const l=Ps(n.symbol,n.members,n.callSignatures,kt(a)?a:rt,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=l,l.objectTypeWithoutAbstractConstructSignatures=l,l}function OE(n,a){let l;for(let u=n;u;u=u.parent){if(jm(u)&&u.locals&&!sh(u)&&(l=a(u.locals,void 0,!0,u)))return l;switch(u.kind){case 308:if(!mf(u))break;case 264:const p=Ir(u);if(l=a((p==null?void 0:p.exports)||ne,void 0,!0,u))return l;break;case 260:case 228:case 261:let y;if((Ir(u).members||ne).forEach((A,R)=>{A.flags&788968&&(y||(y=co())).set(R,A)}),y&&(l=a(y,void 0,!1,u)))return l;break}}return a(We,void 0,!0)}function Zg(n){return n===111551?111551:1920}function C0(n,a,l,u,p=new Map){if(!(n&&!PE(n)))return;const y=zi(n),A=y.accessibleChainCache||(y.accessibleChainCache=new Map),R=OE(a,(An,Xn,hn,xn)=>xn),F=`${u?0:1}|${R&&hs(R)}|${l}`;if(A.has(F))return A.get(F);const J=Eo(n);let Q=p.get(J);Q||p.set(J,Q=[]);const ge=OE(a,Ne);return A.set(F,ge),ge;function Ne(An,Xn,hn){if(!v_(Q,An))return;const xn=Bt(An,Xn,hn);return Q.pop(),xn}function De(An,Xn){return!PS(An,a,Xn)||!!C0(An.parent,a,Zg(Xn),u,p)}function _t(An,Xn,hn){return(n===(Xn||An)||as(n)===as(Xn||An))&&!kt(An.declarations,ey)&&(hn||De(as(An),l))}function Bt(An,Xn,hn){return _t(An.get(n.escapedName),void 0,Xn)?[n]:pf(An,yr=>{if(yr.flags&2097152&&yr.escapedName!=="export="&&yr.escapedName!=="default"&&!(c7(yr)&&a&&rc(er(a)))&&(!u||kt(yr.declarations,sb))&&(!hn||!kt(yr.declarations,Ffe))&&(Xn||!Il(yr,278))){const sn=oc(yr),Un=Fn(yr,sn,Xn);if(Un)return Un}if(yr.escapedName===n.escapedName&&yr.exportSymbol&&_t(as(yr.exportSymbol),void 0,Xn))return[n]})||(An===We?Fn(st,st,Xn):void 0)}function Fn(An,Xn,hn){if(_t(An,Xn,hn))return[An];const xn=xf(Xn),yr=xn&&Ne(xn,!0);if(yr&&De(An,Zg(l)))return[An].concat(yr)}}function PS(n,a,l){let u=!1;return OE(a,p=>{let y=as(p.get(n.escapedName));if(!y)return!1;if(y===n)return!0;const A=y.flags&2097152&&!Il(y,278);return y=A?oc(y):y,(A?hu(y):y.flags)&l?(u=!0,!0):!1}),u}function PE(n){if(n.declarations&&n.declarations.length){for(const a of n.declarations)switch(a.kind){case 169:case 171:case 174:case 175:continue;default:return!1}return!0}return!1}function ME(n,a){return rf(n,a,788968,!1,!0).accessibility===0}function FE(n,a){return rf(n,a,111551,!1,!0).accessibility===0}function BE(n,a,l){return rf(n,a,l,!1,!1).accessibility===0}function GE(n,a,l,u,p,y){if(!Le(n))return;let A,R=!1;for(const F of n){const J=C0(F,a,u,!1);if(J){A=F;const Ne=K2(J[0],p);if(Ne)return Ne}if(y&&kt(F.declarations,ey)){if(p){R=!0;continue}return{accessibility:0}}const Q=DE(F,a,u),ge=GE(Q,a,l,l===F?Zg(u):u,p,y);if(ge)return ge}if(R)return{accessibility:0};if(A)return{accessibility:1,errorSymbolName:x(l,a,u),errorModuleName:A!==l?x(A,a,1920):void 0}}function av(n,a,l,u){return rf(n,a,l,u,!0)}function rf(n,a,l,u,p){if(n&&a){const y=GE([n],a,n,l,u,p);if(y)return y;const A=Je(n.declarations,Zh);if(A){const R=Zh(a);if(A!==R)return{accessibility:2,errorSymbolName:x(n,a,l),errorModuleName:x(A),errorNode:fr(a)?a:void 0}}return{accessibility:1,errorSymbolName:x(n,a,l)}}return{accessibility:0}}function Zh(n){const a=rr(n,RL);return a&&Ir(a)}function RL(n){return ju(n)||n.kind===308&&mf(n)}function ey(n){return S3(n)||n.kind===308&&mf(n)}function K2(n,a){let l;if(!Zn(yn(n.declarations,y=>y.kind!==79),u))return;return{accessibility:0,aliasesToMakeVisible:l};function u(y){var A,R;if(!P_(y)){const F=wS(y);if(F&&!$r(F,1)&&P_(F.parent))return p(y,F);if(Xi(y)&&gc(y.parent.parent)&&!$r(y.parent.parent,1)&&P_(y.parent.parent.parent))return p(y,y.parent.parent);if(x3(y)&&!$r(y,1)&&P_(y.parent))return p(y,y);if(ms(y)){if(n.flags&2097152&&fr(y)&&((A=y.parent)!=null&&A.parent)&&Xi(y.parent.parent)&&((R=y.parent.parent.parent)!=null&&R.parent)&&gc(y.parent.parent.parent.parent)&&!$r(y.parent.parent.parent.parent,1)&&y.parent.parent.parent.parent.parent&&P_(y.parent.parent.parent.parent.parent))return p(y,y.parent.parent.parent.parent);if(n.flags&2){const J=rr(y,gc);return $r(J,1)?!0:P_(J.parent)?p(y,J):!1}}return!1}return!0}function p(y,A){return a&&(Jr(y).isVisible=!0,l=yy(l,A)),!0}}function X2(n,a){let l;n.parent.kind===183||n.parent.kind===230&&!Ih(n.parent)||n.parent.kind===164?l=1160127:n.kind===163||n.kind===208||n.parent.kind===268?l=1920:l=788968;const u=Ff(n),p=hl(a,u.escapedText,l,void 0,void 0,!1);return p&&p.flags&262144&&l&788968?{accessibility:0}:!p&&OT(u)&&av(Ir(kd(u,!1,!1)),u,l,!1).accessibility===0?{accessibility:0}:p&&K2(p,!0)||{accessibility:1,errorSymbolName:kc(u),errorNode:u}}function x(n,a,l,u=4,p){let y=70221824;u&2&&(y|=128),u&1&&(y|=512),u&8&&(y|=16384),u&32&&(y|=134217728),u&16&&(y|=1073741824);const A=u&4?Ye.symbolToNode:Ye.symbolToEntityName;return p?R(p).getText():rk(R);function R(F){const J=A(n,l,a,y),Q=(a==null?void 0:a.kind)===308?IY():sE(),ge=a&&er(a);return Q.writeNode(4,J,ge,F),F}}function le(n,a,l=0,u,p){return p?y(p).getText():rk(y);function y(A){let R;l&262144?R=u===1?182:181:R=u===1?177:176;const F=Ye.signatureToSignatureDeclaration(n,R,a,ui(l)|70221824|512),J=$8(),Q=a&&er(a);return J.writeNode(4,F,Q,Iq(A)),A}}function ke(n,a,l=1064960,u=lO("")){const p=$.noErrorTruncation||l&1,y=Ye.typeToTypeNode(n,a,ui(l)|70221824|(p?1:0));if(y===void 0)return D.fail("should always get typenode");const A=n!==pt?sE():LY(),R=a&&er(a);A.writeNode(4,y,R,u);const F=u.getText(),J=p?L7*2:RO*2;return J&&F&&F.length>=J?F.substr(0,J-3)+"...":F}function an(n,a){let l=Ci(n.symbol)?ke(n,n.symbol.valueDeclaration):ke(n),u=Ci(a.symbol)?ke(a,a.symbol.valueDeclaration):ke(a);return l===u&&(l=Cr(n),u=Cr(a)),[l,u]}function Cr(n){return ke(n,void 0,64)}function Ci(n){return n&&!!n.valueDeclaration&&vt(n.valueDeclaration)&&!F_(n.valueDeclaration)}function ui(n=0){return n&848330091}function Vi(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Qu(n.symbol)||!!(n.flags&524288)&&!!(ri(n)&16777216))}function po(){return{typeToTypeNode:(dt,Se,tr,Qn)=>a(Se,tr,Qn,Tr=>u(dt,Tr)),indexInfoToIndexSignatureDeclaration:(dt,Se,tr,Qn)=>a(Se,tr,Qn,Tr=>Q(dt,Tr,void 0)),signatureToSignatureDeclaration:(dt,Se,tr,Qn,Tr)=>a(tr,Qn,Tr,kr=>ge(dt,Se,kr)),symbolToEntityName:(dt,Se,tr,Qn,Tr)=>a(tr,Qn,Tr,kr=>_a(dt,kr,Se,!1)),symbolToExpression:(dt,Se,tr,Qn,Tr)=>a(tr,Qn,Tr,kr=>Za(dt,kr,Se)),symbolToTypeParameterDeclarations:(dt,Se,tr,Qn)=>a(Se,tr,Qn,Tr=>hn(dt,Tr)),symbolToParameterDeclaration:(dt,Se,tr,Qn)=>a(Se,tr,Qn,Tr=>Bt(dt,Tr)),typeParameterToDeclaration:(dt,Se,tr,Qn)=>a(Se,tr,Qn,Tr=>_t(dt,Tr)),symbolTableToDeclarationStatements:(dt,Se,tr,Qn,Tr)=>a(Se,tr,Qn,kr=>td(dt,kr,Tr)),symbolToNode:(dt,Se,tr,Qn,Tr)=>a(tr,Qn,Tr,kr=>n(dt,kr,Se))};function n(dt,Se,tr){if(Se.flags&1073741824){if(dt.valueDeclaration){const Tr=Ia(dt.valueDeclaration);if(Tr&&Cs(Tr))return Tr}const Qn=zi(dt).nameType;if(Qn&&Qn.flags&9216)return Se.enclosingDeclaration=Qn.symbol.valueDeclaration,N.createComputedPropertyName(Za(Qn.symbol,Se,tr))}return Za(dt,Se,tr)}function a(dt,Se,tr,Qn){D.assert(dt===void 0||(dt.flags&8)===0);const Tr=tr!=null&&tr.trackSymbol?tr.moduleResolverHost:Se&134217728?T5e(e):void 0,kr={enclosingDeclaration:dt,flags:Se||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};kr.tracker=new H8(kr,tr,Tr);const Da=Qn(kr);return kr.truncating&&kr.flags&1&&kr.tracker.reportTruncationError(),kr.encounteredError?void 0:Da}function l(dt){return dt.truncating?dt.truncating:dt.truncating=dt.approximateLength>(dt.flags&1?L7:RO)}function u(dt,Se){const tr=Se.flags,Qn=p(dt,Se);return Se.flags=tr,Qn}function p(dt,Se){var tr,Qn;o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();const Tr=Se.flags&8388608;if(Se.flags&=-8388609,!dt){if(!(Se.flags&262144)){Se.encounteredError=!0;return}return Se.approximateLength+=3,N.createKeywordTypeNode(131)}if(Se.flags&536870912||(dt=yp(dt)),dt.flags&1)return dt.aliasSymbol?N.createTypeReferenceNode(Un(dt.aliasSymbol),F(dt.aliasTypeArguments,Se)):dt===pt?VO(N.createKeywordTypeNode(131),3,"unresolved"):(Se.approximateLength+=3,N.createKeywordTypeNode(dt===ie?139:131));if(dt.flags&2)return N.createKeywordTypeNode(157);if(dt.flags&4)return Se.approximateLength+=6,N.createKeywordTypeNode(152);if(dt.flags&8)return Se.approximateLength+=6,N.createKeywordTypeNode(148);if(dt.flags&64)return Se.approximateLength+=6,N.createKeywordTypeNode(160);if(dt.flags&16&&!dt.aliasSymbol)return Se.approximateLength+=7,N.createKeywordTypeNode(134);if(dt.flags&1056){if(dt.symbol.flags&8){const gn=Sd(dt.symbol),ur=Jn(gn,Se,788968);if(js(gn)===dt)return ur;const ti=Gl(dt.symbol);return H_(ti,0)?qn(ur,N.createTypeReferenceNode(ti,void 0)):kg(ur)?(ur.isTypeOf=!0,N.createIndexedAccessTypeNode(ur,N.createLiteralTypeNode(N.createStringLiteral(ti)))):ep(ur)?N.createIndexedAccessTypeNode(N.createTypeQueryNode(ur.typeName),N.createLiteralTypeNode(N.createStringLiteral(ti))):D.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Jn(dt.symbol,Se,788968)}if(dt.flags&128)return Se.approximateLength+=dt.value.length+2,N.createLiteralTypeNode(sr(N.createStringLiteral(dt.value,!!(Se.flags&268435456)),33554432));if(dt.flags&256){const gn=dt.value;return Se.approximateLength+=(""+gn).length,N.createLiteralTypeNode(gn<0?N.createPrefixUnaryExpression(40,N.createNumericLiteral(-gn)):N.createNumericLiteral(gn))}if(dt.flags&2048)return Se.approximateLength+=q1(dt.value).length+1,N.createLiteralTypeNode(N.createBigIntLiteral(dt.value));if(dt.flags&512)return Se.approximateLength+=dt.intrinsicName.length,N.createLiteralTypeNode(dt.intrinsicName==="true"?N.createTrue():N.createFalse());if(dt.flags&8192){if(!(Se.flags&1048576)){if(FE(dt.symbol,Se.enclosingDeclaration))return Se.approximateLength+=6,Jn(dt.symbol,Se,111551);Se.tracker.reportInaccessibleUniqueSymbolError&&Se.tracker.reportInaccessibleUniqueSymbolError()}return Se.approximateLength+=13,N.createTypeOperatorNode(156,N.createKeywordTypeNode(153))}if(dt.flags&16384)return Se.approximateLength+=4,N.createKeywordTypeNode(114);if(dt.flags&32768)return Se.approximateLength+=9,N.createKeywordTypeNode(155);if(dt.flags&65536)return Se.approximateLength+=4,N.createLiteralTypeNode(N.createNull());if(dt.flags&131072)return Se.approximateLength+=5,N.createKeywordTypeNode(144);if(dt.flags&4096)return Se.approximateLength+=6,N.createKeywordTypeNode(153);if(dt.flags&67108864)return Se.approximateLength+=6,N.createKeywordTypeNode(149);if(Hk(dt))return Se.flags&4194304&&(!Se.encounteredError&&!(Se.flags&32768)&&(Se.encounteredError=!0),(Qn=(tr=Se.tracker).reportInaccessibleThisError)==null||Qn.call(tr)),Se.approximateLength+=4,N.createThisTypeNode();if(!Tr&&dt.aliasSymbol&&(Se.flags&16384||ME(dt.aliasSymbol,Se.enclosingDeclaration))){const gn=F(dt.aliasTypeArguments,Se);return RE(dt.aliasSymbol.escapedName)&&!(dt.aliasSymbol.flags&32)?N.createTypeReferenceNode(N.createIdentifier(""),gn):Le(gn)===1&&dt.aliasSymbol===Ts.symbol?N.createArrayTypeNode(gn[0]):Jn(dt.aliasSymbol,Se,788968,gn)}const kr=ri(dt);if(kr&4)return D.assert(!!(dt.flags&524288)),dt.node?en(dt,wn):wn(dt);if(dt.flags&262144||kr&3){if(dt.flags&262144&&Ur(Se.inferTypeParameters,dt)){Se.approximateLength+=Gl(dt.symbol).length+6;let ur;const ti=Ru(dt);if(ti){const vr=gIe(dt,!0);vr&&ig(ti,vr)||(Se.approximateLength+=9,ur=ti&&u(ti,Se))}return N.createInferTypeNode(De(dt,Se,ur))}if(Se.flags&4&&dt.flags&262144&&!ME(dt.symbol,Se.enclosingDeclaration)){const ur=ai(dt,Se);return Se.approximateLength+=Mr(ur).length,N.createTypeReferenceNode(N.createIdentifier(Mr(ur)),void 0)}if(dt.symbol)return Jn(dt.symbol,Se,788968);const gn=(dt===Ns||dt===vl)&&V&&V.symbol?(dt===vl?"sub-":"super-")+Gl(V.symbol):"?";return N.createTypeReferenceNode(N.createIdentifier(gn),void 0)}if(dt.flags&1048576&&dt.origin&&(dt=dt.origin),dt.flags&3145728){const gn=dt.flags&1048576?af(dt.types):dt.types;if(Le(gn)===1)return u(gn[0],Se);const ur=F(gn,Se,!0);if(ur&&ur.length>0)return dt.flags&1048576?N.createUnionTypeNode(ur):N.createIntersectionTypeNode(ur);!Se.encounteredError&&!(Se.flags&262144)&&(Se.encounteredError=!0);return}if(kr&48)return D.assert(!!(dt.flags&524288)),Ft(dt);if(dt.flags&4194304){const gn=dt.type;Se.approximateLength+=6;const ur=u(gn,Se);return N.createTypeOperatorNode(141,ur)}if(dt.flags&134217728){const gn=dt.texts,ur=dt.types,ti=N.createTemplateHead(gn[0]),vr=N.createNodeArray(zt(ur,(Ea,cs)=>N.createTemplateLiteralTypeSpan(u(Ea,Se),(cs<ur.length-1?N.createTemplateMiddle:N.createTemplateTail)(gn[cs+1]))));return Se.approximateLength+=2,N.createTemplateLiteralType(ti,vr)}if(dt.flags&268435456){const gn=u(dt.type,Se);return Jn(dt.symbol,Se,788968,[gn])}if(dt.flags&8388608){const gn=u(dt.objectType,Se),ur=u(dt.indexType,Se);return Se.approximateLength+=2,N.createIndexedAccessTypeNode(gn,ur)}if(dt.flags&16777216)return en(dt,gn=>Da(gn));if(dt.flags&33554432)return u(dt.baseType,Se);return D.fail("Should be unreachable.");function Da(gn){const ur=u(gn.checkType,Se);if(Se.approximateLength+=15,Se.flags&4&&gn.root.isDistributive&&!(gn.checkType.flags&262144)){const Vs=Gd(ns(262144,"T")),Hs=ai(Vs,Se),Cd=N.createTypeReferenceNode(Hs);Se.approximateLength+=37;const nt=GS(gn.root.checkType,Vs,gn.mapper),St=Se.inferTypeParameters;Se.inferTypeParameters=gn.root.inferTypeParameters;const tn=u($i(gn.root.extendsType,nt),Se);Se.inferTypeParameters=St;const zn=Ni($i(pi(gn.root.node.trueType),nt)),mr=Ni($i(pi(gn.root.node.falseType),nt));return N.createConditionalTypeNode(ur,N.createInferTypeNode(N.createTypeParameterDeclaration(void 0,N.cloneNode(Cd.typeName))),N.createConditionalTypeNode(N.createTypeReferenceNode(N.cloneNode(Hs)),u(gn.checkType,Se),N.createConditionalTypeNode(Cd,tn,zn,mr),N.createKeywordTypeNode(144)),N.createKeywordTypeNode(144))}const ti=Se.inferTypeParameters;Se.inferTypeParameters=gn.root.inferTypeParameters;const vr=u(gn.extendsType,Se);Se.inferTypeParameters=ti;const Ea=Ni(F0(gn)),cs=Ni(B0(gn));return N.createConditionalTypeNode(ur,vr,Ea,cs)}function Ni(gn){var ur,ti,vr;return gn.flags&1048576?(ur=Se.visitedTypes)!=null&&ur.has(Pu(gn))?(Se.flags&131072||(Se.encounteredError=!0,(vr=(ti=Se.tracker)==null?void 0:ti.reportCyclicStructureError)==null||vr.call(ti)),y(Se)):en(gn,Ea=>u(Ea,Se)):u(gn,Se)}function Lr(gn){return wD(gn)&&!(GL(gn).flags&262144)}function bt(gn){D.assert(!!(gn.flags&524288));const ur=gn.declaration.readonlyToken?N.createToken(gn.declaration.readonlyToken.kind):void 0,ti=gn.declaration.questionToken?N.createToken(gn.declaration.questionToken.kind):void 0;let vr,Ea;if(wD(gn)){if(Lr(gn)&&Se.flags&4){const St=Gd(ns(262144,"T")),tn=ai(St,Se);Ea=N.createTypeReferenceNode(tn)}vr=N.createTypeOperatorNode(141,Ea||u(GL(gn),Se))}else vr=u(Hp(gn),Se);const cs=De(hp(gn),Se,vr),Vs=gn.declaration.nameType?u(pv(gn),Se):void 0,Hs=u($E(rg(gn),!!(xm(gn)&4)),Se),Cd=N.createMappedTypeNode(ur,cs,Vs,ti,Hs,void 0);Se.approximateLength+=10;const nt=sr(Cd,1);if(Lr(gn)&&Se.flags&4){const St=$i(Ru(pi(gn.declaration.typeParameter.constraint.type))||he,gn.mapper);return N.createConditionalTypeNode(u(GL(gn),Se),N.createInferTypeNode(N.createTypeParameterDeclaration(void 0,N.cloneNode(Ea.typeName),St.flags&2?void 0:u(St,Se))),nt,N.createKeywordTypeNode(144))}return nt}function Ft(gn){var ur,ti;const vr=gn.id,Ea=gn.symbol;if(Ea){const Vs=Vi(gn)?788968:111551;if(Kp(Ea.valueDeclaration))return Jn(Ea,Se,Vs);if(Ea.flags&32&&!Qa(Ea)&&!(Ea.valueDeclaration&&_i(Ea.valueDeclaration)&&Se.flags&2048&&(!Bc(Ea.valueDeclaration)||av(Ea,Se.enclosingDeclaration,Vs,!1).accessibility!==0))||Ea.flags&896||cs())return Jn(Ea,Se,Vs);if((ur=Se.visitedTypes)!=null&&ur.has(vr)){const Hs=ov(gn);return Hs?Jn(Hs,Se,788968):y(Se)}else return en(gn,$t)}else{if(!!(ri(gn)&8388608)){const Hs=gn;if(Zk(Hs.node)){const Cd=Co(Se,Hs.node);if(Cd)return Cd}return(ti=Se.visitedTypes)!=null&&ti.has(vr)?y(Se):en(gn,$t)}return $t(gn)}function cs(){var Vs;const Hs=!!(Ea.flags&8192)&&kt(Ea.declarations,nt=>Ja(nt)),Cd=!!(Ea.flags&16)&&(Ea.parent||Je(Ea.declarations,nt=>nt.parent.kind===308||nt.parent.kind===265));if(Hs||Cd)return(!!(Se.flags&4096)||((Vs=Se.visitedTypes)==null?void 0:Vs.has(vr)))&&(!(Se.flags&8)||FE(Ea,Se.enclosingDeclaration))}}function en(gn,ur){var ti,vr;const Ea=gn.id,cs=ri(gn)&16&&gn.symbol&&gn.symbol.flags&32,Vs=ri(gn)&4&&gn.node?"N"+hs(gn.node):gn.flags&16777216?"N"+hs(gn.root.node):gn.symbol?(cs?"+":"")+Eo(gn.symbol):void 0;Se.visitedTypes||(Se.visitedTypes=new Set),Vs&&!Se.symbolDepth&&(Se.symbolDepth=new Map);const Hs=Se.enclosingDeclaration&&Jr(Se.enclosingDeclaration),Cd=`${Pu(gn)}|${Se.flags}`;Hs&&(Hs.serializedTypes||(Hs.serializedTypes=new Map));const nt=(ti=Hs==null?void 0:Hs.serializedTypes)==null?void 0:ti.get(Cd);if(nt)return nt.truncating&&(Se.truncating=!0),Se.approximateLength+=nt.addedLength,Ln(nt.node);let St;if(Vs){if(St=Se.symbolDepth.get(Vs)||0,St>10)return y(Se);Se.symbolDepth.set(Vs,St+1)}Se.visitedTypes.add(Ea);const tn=Se.approximateLength,zn=ur(gn),mr=Se.approximateLength-tn;return!Se.reportedDiagnostic&&!Se.encounteredError&&((vr=Hs==null?void 0:Hs.serializedTypes)==null||vr.set(Cd,{node:zn,truncating:Se.truncating,addedLength:mr})),Se.visitedTypes.delete(Ea),Vs&&Se.symbolDepth.set(Vs,St),zn;function Ln(jr){return!tl(jr)&&va(jr)===jr?jr:ht(N.cloneNode(Gn(jr,Ln,Rg,Sr)),jr)}function Sr(jr,Ui,xa,qa,eo){return jr&&jr.length===0?ht(N.createNodeArray(void 0,jr.hasTrailingComma),jr):Kn(jr,Ui,xa,qa,eo)}}function $t(gn){if($f(gn)||gn.containsError)return bt(gn);const ur=gp(gn);if(!ur.properties.length&&!ur.indexInfos.length){if(!ur.callSignatures.length&&!ur.constructSignatures.length)return Se.approximateLength+=2,sr(N.createTypeLiteralNode(void 0),1);if(ur.callSignatures.length===1&&!ur.constructSignatures.length){const Vs=ur.callSignatures[0];return ge(Vs,181,Se)}if(ur.constructSignatures.length===1&&!ur.callSignatures.length){const Vs=ur.constructSignatures[0];return ge(Vs,182,Se)}}const ti=yn(ur.constructSignatures,Vs=>!!(Vs.flags&4));if(kt(ti)){const Vs=zt(ti,JE);return ur.callSignatures.length+(ur.constructSignatures.length-ti.length)+ur.indexInfos.length+(Se.flags&2048?Wc(ur.properties,Cd=>!(Cd.flags&4194304)):Le(ur.properties))&&Vs.push(NE(ur)),u(Do(Vs),Se)}const vr=Se.flags;Se.flags|=4194304;const Ea=Ei(ur);Se.flags=vr;const cs=N.createTypeLiteralNode(Ea);return Se.approximateLength+=2,sr(cs,Se.flags&1024?0:1),cs}function wn(gn){let ur=ys(gn);if(gn.target===Ts||gn.target===fs){if(Se.flags&2){const Ea=u(ur[0],Se);return N.createTypeReferenceNode(gn.target===Ts?"Array":"ReadonlyArray",[Ea])}const ti=u(ur[0],Se),vr=N.createArrayTypeNode(ti);return gn.target===Ts?vr:N.createTypeOperatorNode(146,vr)}else if(gn.target.objectFlags&8){if(ur=no(ur,(ti,vr)=>$E(ti,!!(gn.target.elementFlags[vr]&2))),ur.length>0){const ti=P0(gn),vr=F(ur.slice(0,ti),Se);if(vr){if(gn.target.labeledElementDeclarations)for(let cs=0;cs<vr.length;cs++){const Vs=gn.target.elementFlags[cs];vr[cs]=N.createNamedTupleMember(Vs&12?N.createToken(25):void 0,N.createIdentifier(ra(aj(gn.target.labeledElementDeclarations[cs]))),Vs&2?N.createToken(57):void 0,Vs&4?N.createArrayTypeNode(vr[cs]):vr[cs])}else for(let cs=0;cs<Math.min(ti,vr.length);cs++){const Vs=gn.target.elementFlags[cs];vr[cs]=Vs&12?N.createRestTypeNode(Vs&4?N.createArrayTypeNode(vr[cs]):vr[cs]):Vs&2?N.createOptionalTypeNode(vr[cs]):vr[cs]}const Ea=sr(N.createTupleTypeNode(vr),1);return gn.target.readonly?N.createTypeOperatorNode(146,Ea):Ea}}if(Se.encounteredError||Se.flags&524288){const ti=sr(N.createTupleTypeNode([]),1);return gn.target.readonly?N.createTypeOperatorNode(146,ti):ti}Se.encounteredError=!0;return}else{if(Se.flags&2048&&gn.symbol.valueDeclaration&&_i(gn.symbol.valueDeclaration)&&!FE(gn.symbol,Se.enclosingDeclaration))return Ft(gn);{const ti=gn.target.outerTypeParameters;let vr=0,Ea;if(ti){const Cd=ti.length;for(;vr<Cd;){const nt=vr,St=yIe(ti[vr]);do vr++;while(vr<Cd&&yIe(ti[vr])===St);if(!gH(ti,ur,nt,vr)){const tn=F(ur.slice(nt,vr),Se),zn=Se.flags;Se.flags|=16;const mr=Jn(St,Se,788968,tn);Se.flags=zn,Ea=Ea?qn(Ea,mr):mr}}}let cs;if(ur.length>0){const Cd=(gn.target.typeParameters||rt).length;cs=F(ur.slice(vr,Cd),Se)}const Vs=Se.flags;Se.flags|=16;const Hs=Jn(gn.symbol,Se,788968,cs);return Se.flags=Vs,Ea?qn(Ea,Hs):Hs}}}function qn(gn,ur){if(kg(gn)){let ti=gn.typeArguments,vr=gn.qualifier;vr&&(je(vr)?ti!==UT(vr)&&(vr=Oy(N.cloneNode(vr),ti)):ti!==UT(vr.right)&&(vr=N.updateQualifiedName(vr,vr.left,Oy(N.cloneNode(vr.right),ti)))),ti=ur.typeArguments;const Ea=la(ur);for(const cs of Ea)vr=vr?N.createQualifiedName(vr,cs):cs;return N.updateImportTypeNode(gn,gn.argument,gn.assertions,vr,ti,gn.isTypeOf)}else{let ti=gn.typeArguments,vr=gn.typeName;je(vr)?ti!==UT(vr)&&(vr=Oy(N.cloneNode(vr),ti)):ti!==UT(vr.right)&&(vr=N.updateQualifiedName(vr,vr.left,Oy(N.cloneNode(vr.right),ti))),ti=ur.typeArguments;const Ea=la(ur);for(const cs of Ea)vr=N.createQualifiedName(vr,cs);return N.updateTypeReferenceNode(gn,vr,ti)}}function la(gn){let ur=gn.typeName;const ti=[];for(;!je(ur);)ti.unshift(ur.right),ur=ur.left;return ti.unshift(ur),ti}function Ei(gn){if(l(Se))return[N.createPropertySignature(void 0,"...",void 0,void 0)];const ur=[];for(const Ea of gn.callSignatures)ur.push(ge(Ea,176,Se));for(const Ea of gn.constructSignatures)Ea.flags&4||ur.push(ge(Ea,177,Se));for(const Ea of gn.indexInfos)ur.push(Q(Ea,Se,gn.objectFlags&1024?y(Se):void 0));const ti=gn.properties;if(!ti)return ur;let vr=0;for(const Ea of ti){if(vr++,Se.flags&2048){if(Ea.flags&4194304)continue;s_(Ea)&24&&Se.tracker.reportPrivateInBaseOfClassExpression&&Se.tracker.reportPrivateInBaseOfClassExpression(ra(Ea.escapedName))}if(l(Se)&&vr+2<ti.length-1){ur.push(N.createPropertySignature(void 0,`... ${ti.length-vr} more ...`,void 0,void 0)),R(ti[ti.length-1],Se,ur);break}R(Ea,Se,ur)}return ur.length?ur:void 0}}function y(dt){return dt.approximateLength+=3,dt.flags&1?N.createKeywordTypeNode(131):N.createTypeReferenceNode(N.createIdentifier("..."),void 0)}function A(dt,Se){var tr;return!!(Dl(dt)&8192)&&(Ur(Se.reverseMappedStack,dt)||((tr=Se.reverseMappedStack)==null?void 0:tr[0])&&!(ri(Jo(Se.reverseMappedStack).links.propertyType)&16))}function R(dt,Se,tr){var Qn;const Tr=!!(Dl(dt)&8192),kr=A(dt,Se)?we:R0(dt),Da=Se.enclosingDeclaration;if(Se.enclosingDeclaration=void 0,Se.tracker.canTrackSymbol&&ID(dt.escapedName))if(dt.declarations){const Ft=ds(dt.declarations);if(MP(Ft))if(br(Ft)){const en=Ia(Ft);en&&fl(en)&&_O(en.argumentExpression)&&Fn(en.argumentExpression,Da,Se)}else Fn(Ft.name.expression,Da,Se)}else Se.tracker.reportNonSerializableProperty(x(dt));Se.enclosingDeclaration=dt.valueDeclaration||((Qn=dt.declarations)==null?void 0:Qn[0])||Da;const Ni=kf(dt,Se);Se.enclosingDeclaration=Da,Se.approximateLength+=Gl(dt).length+1;const Lr=dt.flags&16777216?N.createToken(57):void 0;if(dt.flags&8208&&!mv(kr).length&&!Ep(dt)){const Ft=za(bc(kr,en=>!(en.flags&32768)),0);for(const en of Ft){const $t=ge(en,170,Se,{name:Ni,questionToken:Lr});tr.push(bt($t))}}else{let Ft;A(dt,Se)?Ft=y(Se):(Tr&&(Se.reverseMappedStack||(Se.reverseMappedStack=[]),Se.reverseMappedStack.push(dt)),Ft=kr?ia(Se,kr,dt,Da):N.createKeywordTypeNode(131),Tr&&Se.reverseMappedStack.pop());const en=Ep(dt)?[N.createToken(146)]:void 0;en&&(Se.approximateLength+=9);const $t=N.createPropertySignature(en,Ni,Lr,Ft);tr.push(bt($t))}function bt(Ft){var en;if(kt(dt.declarations,$t=>$t.kind===351)){const $t=(en=dt.declarations)==null?void 0:en.find(qn=>qn.kind===351),wn=dN($t.comment);wn&&K1(Ft,[{kind:3,text:`*
- * `+wn.replace(/\n/g,`
- * `)+`
- `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else dt.valueDeclaration&&Xc(Ft,dt.valueDeclaration);return Ft}}function F(dt,Se,tr){if(kt(dt)){if(l(Se))if(tr){if(dt.length>2)return[u(dt[0],Se),N.createTypeReferenceNode(`... ${dt.length-2} more ...`,void 0),u(dt[dt.length-1],Se)]}else return[N.createTypeReferenceNode("...",void 0)];const Tr=!(Se.flags&64)?Kce():void 0,kr=[];let Da=0;for(const Ni of dt){if(Da++,l(Se)&&Da+2<dt.length-1){kr.push(N.createTypeReferenceNode(`... ${dt.length-Da} more ...`,void 0));const bt=u(dt[dt.length-1],Se);bt&&kr.push(bt);break}Se.approximateLength+=2;const Lr=u(Ni,Se);Lr&&(kr.push(Lr),Tr&&dpe(Lr)&&Tr.add(Lr.typeName.escapedText,[Ni,kr.length-1]))}if(Tr){const Ni=Se.flags;Se.flags|=64,Tr.forEach(Lr=>{if(!fpe(Lr,([bt],[Ft])=>J(bt,Ft)))for(const[bt,Ft]of Lr)kr[Ft]=u(bt,Se)}),Se.flags=Ni}return kr}}function J(dt,Se){return dt===Se||!!dt.symbol&&dt.symbol===Se.symbol||!!dt.aliasSymbol&&dt.aliasSymbol===Se.aliasSymbol}function Q(dt,Se,tr){const Qn=Tfe(dt)||"x",Tr=u(dt.keyType,Se),kr=N.createParameterDeclaration(void 0,void 0,Qn,void 0,Tr,void 0);return tr||(tr=u(dt.type||we,Se)),!dt.type&&!(Se.flags&2097152)&&(Se.encounteredError=!0),Se.approximateLength+=Qn.length+4,N.createIndexSignature(dt.isReadonly?[N.createToken(146)]:void 0,[kr],tr)}function ge(dt,Se,tr,Qn){var Tr,kr,Da,Ni,Lr;const bt=tr.flags&256;bt&&(tr.flags&=-257),tr.approximateLength+=3;let Ft,en;tr.flags&32&&dt.target&&dt.mapper&&dt.target.typeParameters?en=dt.target.typeParameters.map(vr=>u($i(vr,dt.mapper),tr)):Ft=dt.typeParameters&&dt.typeParameters.map(vr=>_t(vr,tr));const $t=$Le(dt,!0)[0];let wn;if(tr.enclosingDeclaration&&dt.declaration&&dt.declaration!==tr.enclosingDeclaration&&!fr(dt.declaration)&&kt($t)){const vr=Jr(tr.enclosingDeclaration).fakeScopeForSignatureDeclaration?tr.enclosingDeclaration:void 0;D.assertOptionalNode(vr,uo);const Ea=(Tr=vr==null?void 0:vr.locals)!=null?Tr:co();let cs;for(const Vs of $t)Ea.has(Vs.escapedName)||(cs=Bn(cs,Vs.escapedName),Ea.set(Vs.escapedName,Vs));if(cs){let Vs=function(){Je(cs,Hs=>Ea.delete(Hs))};if(vr)wn=Vs;else{const Hs=nh.createBlock(rt);Jr(Hs).fakeScopeForSignatureDeclaration=!0,Hs.locals=Ea;const Cd=tr.enclosingDeclaration;jo(Hs,Cd),tr.enclosingDeclaration=Hs,wn=()=>{tr.enclosingDeclaration=Cd,Vs()}}}}const qn=(kt($t,vr=>vr!==$t[$t.length-1]&&!!(Dl(vr)&32768))?dt.parameters:$t).map(vr=>Bt(vr,tr,Se===173,Qn==null?void 0:Qn.privateSymbolVisitor,Qn==null?void 0:Qn.bundledImports)),la=tr.flags&33554432?void 0:Ne(dt,tr);la&&qn.unshift(la);let Ei;const gn=p_(dt);if(gn){const vr=gn.kind===2||gn.kind===3?N.createToken(129):void 0,Ea=gn.kind===1||gn.kind===3?sr(N.createIdentifier(gn.parameterName),33554432):N.createThisTypeNode(),cs=gn.type&&u(gn.type,tr);Ei=N.createTypePredicateNode(vr,Ea,cs)}else{const vr=vs(dt);vr&&!(bt&&xs(vr))?Ei=Ms(tr,vr,dt,Qn==null?void 0:Qn.privateSymbolVisitor,Qn==null?void 0:Qn.bundledImports):bt||(Ei=N.createKeywordTypeNode(131))}let ur=Qn==null?void 0:Qn.modifiers;if(Se===182&&dt.flags&4){const vr=Km(ur);ur=N.createModifiersFromModifierFlags(vr|256)}const ti=Se===176?N.createCallSignature(Ft,qn,Ei):Se===177?N.createConstructSignature(Ft,qn,Ei):Se===170?N.createMethodSignature(ur,(kr=Qn==null?void 0:Qn.name)!=null?kr:N.createIdentifier(""),Qn==null?void 0:Qn.questionToken,Ft,qn,Ei):Se===171?N.createMethodDeclaration(ur,void 0,(Da=Qn==null?void 0:Qn.name)!=null?Da:N.createIdentifier(""),void 0,Ft,qn,Ei,void 0):Se===173?N.createConstructorDeclaration(ur,qn,void 0):Se===174?N.createGetAccessorDeclaration(ur,(Ni=Qn==null?void 0:Qn.name)!=null?Ni:N.createIdentifier(""),qn,Ei,void 0):Se===175?N.createSetAccessorDeclaration(ur,(Lr=Qn==null?void 0:Qn.name)!=null?Lr:N.createIdentifier(""),qn,void 0):Se===178?N.createIndexSignature(ur,qn,Ei):Se===320?N.createJSDocFunctionType(qn,Ei):Se===181?N.createFunctionTypeNode(Ft,qn,Ei!=null?Ei:N.createTypeReferenceNode(N.createIdentifier(""))):Se===182?N.createConstructorTypeNode(ur,Ft,qn,Ei!=null?Ei:N.createTypeReferenceNode(N.createIdentifier(""))):Se===259?N.createFunctionDeclaration(ur,void 0,Qn!=null&&Qn.name?so(Qn.name,je):N.createIdentifier(""),Ft,qn,Ei,void 0):Se===215?N.createFunctionExpression(ur,void 0,Qn!=null&&Qn.name?so(Qn.name,je):N.createIdentifier(""),Ft,qn,Ei,N.createBlock([])):Se===216?N.createArrowFunction(ur,Ft,qn,Ei,void 0,N.createBlock([])):D.assertNever(Se);return en&&(ti.typeArguments=N.createNodeArray(en)),wn==null||wn(),ti}function Ne(dt,Se){if(dt.thisParameter)return Bt(dt.thisParameter,Se);if(dt.declaration&&fr(dt.declaration)){const tr=r3(dt.declaration);if(tr&&tr.typeExpression)return N.createParameterDeclaration(void 0,void 0,"this",void 0,u(pi(tr.typeExpression),Se))}}function De(dt,Se,tr){const Qn=Se.flags;Se.flags&=-513;const Tr=N.createModifiersFromModifierFlags(Aae(dt)),kr=ai(dt,Se),Da=qE(dt),Ni=Da&&u(Da,Se);return Se.flags=Qn,N.createTypeParameterDeclaration(Tr,kr,tr,Ni)}function _t(dt,Se,tr=Ru(dt)){const Qn=tr&&u(tr,Se);return De(dt,Se,Qn)}function Bt(dt,Se,tr,Qn,Tr){let kr=Il(dt,166);!kr&&!Hm(dt)&&(kr=Il(dt,344));let Da=or(dt);kr&&kNe(kr)&&(Da=uy(Da));const Ni=ia(Se,Da,dt,Se.enclosingDeclaration,Qn,Tr),Lr=!(Se.flags&8192)&&tr&&kr&&np(kr)?zt(hT(kr),N.cloneNode):void 0,Ft=kr&&Lh(kr)||Dl(dt)&32768?N.createToken(25):void 0,en=kr&&kr.name?kr.name.kind===79?sr(N.cloneNode(kr.name),33554432):kr.name.kind===163?sr(N.cloneNode(kr.name.right),33554432):la(kr.name):Gl(dt),wn=kr&&RD(kr)||Dl(dt)&16384?N.createToken(57):void 0,qn=N.createParameterDeclaration(Lr,Ft,en,wn,Ni,void 0);return Se.approximateLength+=Gl(dt).length+3,qn;function la(Ei){return gn(Ei);function gn(ur){Se.tracker.canTrackSymbol&&Cs(ur)&&pie(ur)&&Fn(ur.expression,Se.enclosingDeclaration,Se);let ti=Gn(ur,gn,Rg,void 0,gn);return ms(ti)&&(ti=N.updateBindingElement(ti,ti.dotDotDotToken,ti.propertyName,ti.name,void 0)),tl(ti)||(ti=N.cloneNode(ti)),sr(ti,33554433)}}}function Fn(dt,Se,tr){if(!tr.tracker.canTrackSymbol)return;const Qn=Ff(dt),Tr=hl(Qn,Qn.escapedText,1160127,void 0,void 0,!0);Tr&&tr.tracker.trackSymbol(Tr,Se,111551)}function An(dt,Se,tr,Qn){return Se.tracker.trackSymbol(dt,Se.enclosingDeclaration,tr),Xn(dt,Se,tr,Qn)}function Xn(dt,Se,tr,Qn){let Tr;return!(dt.flags&262144)&&(Se.enclosingDeclaration||Se.flags&64)&&!(Se.flags&134217728)?(Tr=D.checkDefined(Da(dt,tr,!0)),D.assert(Tr&&Tr.length>0)):Tr=[dt],Tr;function Da(Ni,Lr,bt){let Ft=C0(Ni,Se.enclosingDeclaration,Lr,!!(Se.flags&128)),en;if(!Ft||PS(Ft[0],Se.enclosingDeclaration,Ft.length===1?Lr:Zg(Lr))){const wn=DE(Ft?Ft[0]:Ni,Se.enclosingDeclaration,Lr);if(Le(wn)){en=wn.map(Ei=>kt(Ei.declarations,ey)?sn(Ei,Se):void 0);const qn=wn.map((Ei,gn)=>gn);qn.sort($t);const la=qn.map(Ei=>wn[Ei]);for(const Ei of la){const gn=Da(Ei,Zg(Lr),!1);if(gn){if(Ei.exports&&Ei.exports.get("export=")&&bm(Ei.exports.get("export="),Ni)){Ft=gn;break}Ft=gn.concat(Ft||[rv(Ei,Ni)||Ni]);break}}}}if(Ft)return Ft;if(bt||!(Ni.flags&6144))return!bt&&!Qn&&Je(Ni.declarations,ey)?void 0:[Ni];function $t(wn,qn){const la=en[wn],Ei=en[qn];if(la&&Ei){const gn=Nf(Ei);return Nf(la)===gn?U8(la)-U8(Ei):gn?-1:1}return 0}}}function hn(dt,Se){let tr;return EA(dt).flags&524384&&(tr=N.createNodeArray(zt(fv(dt),Tr=>_t(Tr,Se)))),tr}function xn(dt,Se,tr){var Qn;D.assert(dt&&0<=Se&&Se<dt.length);const Tr=dt[Se],kr=Eo(Tr);if((Qn=tr.typeParameterSymbolList)!=null&&Qn.has(kr))return;(tr.typeParameterSymbolList||(tr.typeParameterSymbolList=new Set)).add(kr);let Da;if(tr.flags&512&&Se<dt.length-1){const Ni=Tr,Lr=dt[Se+1];if(Dl(Lr)&1){const bt=MS(Ni.flags&2097152?oc(Ni):Ni);Da=F(zt(bt,Ft=>G0(Ft,Lr.links.mapper)),tr)}else Da=hn(Tr,tr)}return Da}function yr(dt){return Kx(dt.objectType)?yr(dt.objectType):dt}function sn(dt,Se,tr){var Qn;let Tr=Il(dt,308);if(!Tr){const Ft=Jt(dt.declarations,en=>q2(en,dt));Ft&&(Tr=Il(Ft,308))}if(Tr&&Tr.moduleName!==void 0)return Tr.moduleName;if(!Tr){if(Se.tracker.trackReferencedAmbientModule){const Ft=yn(dt.declarations,ju);if(Le(Ft))for(const en of Ft)Se.tracker.trackReferencedAmbientModule(en,dt)}if(_F.test(dt.escapedName))return dt.escapedName.substring(1,dt.escapedName.length-1)}if(!Se.enclosingDeclaration||!Se.tracker.moduleResolverHost)return _F.test(dt.escapedName)?dt.escapedName.substring(1,dt.escapedName.length-1):er(Wz(dt)).fileName;const kr=er(Cl(Se.enclosingDeclaration)),Da=tr||(kr==null?void 0:kr.impliedNodeFormat),Ni=hw(kr.path,Da),Lr=zi(dt);let bt=Lr.specifierCache&&Lr.specifierCache.get(Ni);if(!bt){const Ft=!!Ks($),{moduleResolverHost:en}=Se.tracker,$t=Ft?Ka(Ti({},$),{baseUrl:en.getCommonSourceDirectory()}):$;bt=ds(Wge(dt,at,$t,kr,en,{importModuleSpecifierPreference:Ft?"non-relative":"project-relative",importModuleSpecifierEnding:Ft?"minimal":Da===99?"js":void 0},{overrideImportMode:tr})),(Qn=Lr.specifierCache)!=null||(Lr.specifierCache=new Map),Lr.specifierCache.set(Ni,bt)}return bt}function Un(dt){const Se=N.createIdentifier(ra(dt.escapedName));return dt.parent?N.createQualifiedName(Un(dt.parent),Se):Se}function Jn(dt,Se,tr,Qn){var Tr,kr,Da,Ni;const Lr=An(dt,Se,tr,!(Se.flags&16384)),bt=tr===111551;if(kt(Lr[0].declarations,ey)){const $t=Lr.length>1?en(Lr,Lr.length-1,1):void 0,wn=Qn||xn(Lr,0,Se),qn=er(Cl(Se.enclosingDeclaration)),la=y3(Lr[0]);let Ei,gn;if((Tl($)===3||Tl($)===99)&&(la==null?void 0:la.impliedNodeFormat)===99&&la.impliedNodeFormat!==(qn==null?void 0:qn.impliedNodeFormat)&&(Ei=sn(Lr[0],Se,99),gn=N.createImportTypeAssertionContainer(N.createAssertClause(N.createNodeArray([N.createAssertEntry(N.createStringLiteral("resolution-mode"),N.createStringLiteral("import"))]))),(kr=(Tr=Se.tracker).reportImportTypeNodeResolutionModeOverride)==null||kr.call(Tr)),Ei||(Ei=sn(Lr[0],Se)),!(Se.flags&67108864)&&Tl($)!==1&&Ei.indexOf("/node_modules/")>=0){const ti=Ei;if(Tl($)===3||Tl($)===99){const vr=(qn==null?void 0:qn.impliedNodeFormat)===99?1:99;Ei=sn(Lr[0],Se,vr),Ei.indexOf("/node_modules/")>=0?Ei=ti:(gn=N.createImportTypeAssertionContainer(N.createAssertClause(N.createNodeArray([N.createAssertEntry(N.createStringLiteral("resolution-mode"),N.createStringLiteral(vr===99?"import":"require"))]))),(Ni=(Da=Se.tracker).reportImportTypeNodeResolutionModeOverride)==null||Ni.call(Da))}gn||(Se.encounteredError=!0,Se.tracker.reportLikelyUnsafeImportRequiredError&&Se.tracker.reportLikelyUnsafeImportRequiredError(ti))}const ur=N.createLiteralTypeNode(N.createStringLiteral(Ei));if(Se.tracker.trackExternalModuleSymbolOfImportTypeNode&&Se.tracker.trackExternalModuleSymbolOfImportTypeNode(Lr[0]),Se.approximateLength+=Ei.length+10,!$t||ff($t)){if($t){const ti=je($t)?$t:$t.right;Oy(ti,void 0)}return N.createImportTypeNode(ur,gn,$t,wn,bt)}else{const ti=yr($t),vr=ti.objectType.typeName;return N.createIndexedAccessTypeNode(N.createImportTypeNode(ur,gn,vr,wn,bt),ti.indexType)}}const Ft=en(Lr,Lr.length-1,0);if(Kx(Ft))return Ft;if(bt)return N.createTypeQueryNode(Ft);{const $t=je(Ft)?Ft:Ft.right,wn=UT($t);return Oy($t,void 0),N.createTypeReferenceNode(Ft,wn)}function en($t,wn,qn){const la=wn===$t.length-1?Qn:xn($t,wn,Se),Ei=$t[wn],gn=$t[wn-1];let ur;if(wn===0)Se.flags|=16777216,ur=sv(Ei,Se),Se.approximateLength+=(ur?ur.length:0)+1,Se.flags^=16777216;else if(gn&&xf(gn)){const vr=xf(gn);pf(vr,(Ea,cs)=>{if(bm(Ea,Ei)&&!ID(cs)&&cs!=="export=")return ur=ra(cs),!0})}if(ur===void 0){const vr=Jt(Ei.declarations,Ia);if(vr&&Cs(vr)&&ff(vr.expression)){const Ea=en($t,wn-1,qn);return ff(Ea)?N.createIndexedAccessTypeNode(N.createParenthesizedType(N.createTypeQueryNode(Ea)),N.createTypeQueryNode(vr.expression)):Ea}ur=sv(Ei,Se)}if(Se.approximateLength+=ur.length+1,!(Se.flags&16)&&gn&&_v(gn)&&_v(gn).get(Ei.escapedName)&&bm(_v(gn).get(Ei.escapedName),Ei)){const vr=en($t,wn-1,qn);return Kx(vr)?N.createIndexedAccessTypeNode(vr,N.createLiteralTypeNode(N.createStringLiteral(ur))):N.createIndexedAccessTypeNode(N.createTypeReferenceNode(vr,la),N.createLiteralTypeNode(N.createStringLiteral(ur)))}const ti=sr(N.createIdentifier(ur),33554432);if(la&&Oy(ti,N.createNodeArray(la)),ti.symbol=Ei,wn>qn){const vr=en($t,wn-1,qn);return ff(vr)?N.createQualifiedName(vr,ti):D.fail("Impossible construct - an export of an indexed access cannot be reachable")}return ti}}function ei(dt,Se,tr){const Qn=hl(Se.enclosingDeclaration,dt,788968,void 0,dt,!1);return Qn?!(Qn.flags&262144&&Qn===tr.symbol):!1}function ai(dt,Se){var tr,Qn;if(Se.flags&4&&Se.typeParameterNames){const kr=Se.typeParameterNames.get(Pu(dt));if(kr)return kr}let Tr=_a(dt.symbol,Se,788968,!0);if(!(Tr.kind&79))return N.createIdentifier("(Missing type parameter)");if(Se.flags&4){const kr=Tr.escapedText;let Da=((tr=Se.typeParameterNamesByTextNextNameCount)==null?void 0:tr.get(kr))||0,Ni=kr;for(;(Qn=Se.typeParameterNamesByText)!=null&&Qn.has(Ni)||ei(Ni,Se,dt);)Da++,Ni=`${kr}_${Da}`;if(Ni!==kr){const Lr=UT(Tr);Tr=N.createIdentifier(Ni),Oy(Tr,Lr)}(Se.typeParameterNamesByTextNextNameCount||(Se.typeParameterNamesByTextNextNameCount=new Map)).set(kr,Da),(Se.typeParameterNames||(Se.typeParameterNames=new Map)).set(Pu(dt),Tr),(Se.typeParameterNamesByText||(Se.typeParameterNamesByText=new Set)).add(kr)}return Tr}function _a(dt,Se,tr,Qn){const Tr=An(dt,Se,tr);return Qn&&Tr.length!==1&&!Se.encounteredError&&!(Se.flags&65536)&&(Se.encounteredError=!0),kr(Tr,Tr.length-1);function kr(Da,Ni){const Lr=xn(Da,Ni,Se),bt=Da[Ni];Ni===0&&(Se.flags|=16777216);const Ft=sv(bt,Se);Ni===0&&(Se.flags^=16777216);const en=sr(N.createIdentifier(Ft),33554432);return Lr&&Oy(en,N.createNodeArray(Lr)),en.symbol=bt,Ni>0?N.createQualifiedName(kr(Da,Ni-1),en):en}}function Za(dt,Se,tr){const Qn=An(dt,Se,tr);return Tr(Qn,Qn.length-1);function Tr(kr,Da){const Ni=xn(kr,Da,Se),Lr=kr[Da];Da===0&&(Se.flags|=16777216);let bt=sv(Lr,Se);Da===0&&(Se.flags^=16777216);let Ft=bt.charCodeAt(0);if(ON(Ft)&&kt(Lr.declarations,ey))return N.createStringLiteral(sn(Lr,Se));if(Da===0||TJ(bt,M)){const en=sr(N.createIdentifier(bt),33554432);return Ni&&Oy(en,N.createNodeArray(Ni)),en.symbol=Lr,Da>0?N.createPropertyAccessExpression(Tr(kr,Da-1),en):en}else{Ft===91&&(bt=bt.substring(1,bt.length-1),Ft=bt.charCodeAt(0));let en;if(ON(Ft)&&!(Lr.flags&8)?en=N.createStringLiteral(X_(bt).replace(/\\./g,$t=>$t.substring(1)),Ft===39):""+ +bt===bt&&(en=N.createNumericLiteral(+bt)),!en){const $t=sr(N.createIdentifier(bt),33554432);Ni&&Oy($t,N.createNodeArray(Ni)),$t.symbol=Lr,en=$t}return N.createElementAccessExpression(Tr(kr,Da-1),en)}}}function Lc(dt){const Se=Ia(dt);return!!Se&&Ho(Se)}function e_(dt){const Se=Ia(dt);return!!(Se&&Ho(Se)&&(Se.singleQuote||!tl(Se)&&Ta(kc(Se,!1),"'")))}function kf(dt,Se){const tr=!!Le(dt.declarations)&&Zn(dt.declarations,Lc),Qn=!!Le(dt.declarations)&&Zn(dt.declarations,e_),Tr=sa(dt,Se,Qn,tr);if(Tr)return Tr;const kr=ra(dt.escapedName);return x7(kr,ts($),Qn,tr)}function sa(dt,Se,tr,Qn){const Tr=zi(dt).nameType;if(Tr){if(Tr.flags&384){const kr=""+Tr.value;return!H_(kr,ts($))&&(Qn||!Oh(kr))?N.createStringLiteral(kr,!!tr):Oh(kr)&&Ta(kr,"-")?N.createComputedPropertyName(N.createNumericLiteral(+kr)):x7(kr,ts($))}if(Tr.flags&8192)return N.createComputedPropertyName(Za(Tr.symbol,Se,111551))}}function Vn(dt){const Se=Ti({},dt);return Se.typeParameterNames&&(Se.typeParameterNames=new Map(Se.typeParameterNames)),Se.typeParameterNamesByText&&(Se.typeParameterNamesByText=new Set(Se.typeParameterNamesByText)),Se.typeParameterSymbolList&&(Se.typeParameterSymbolList=new Set(Se.typeParameterSymbolList)),Se.tracker=new H8(Se,Se.tracker.inner,Se.tracker.moduleResolverHost),Se}function lr(dt,Se){return dt.declarations&&In(dt.declarations,tr=>!!iu(tr)&&(!Se||!!rr(tr,Qn=>Qn===Se)))}function ea(dt,Se){return!(ri(Se)&4)||!ep(dt)||Le(dt.typeArguments)>=Am(Se.target.typeParameters)}function Ba(dt){return Jr(dt).fakeScopeForSignatureDeclaration?dt.parent:dt}function ia(dt,Se,tr,Qn,Tr,kr){if(!rs(Se)&&Qn){const Lr=lr(tr,Ba(Qn));if(Lr&&!el(Lr)&&!Z_(Lr)){const bt=iu(Lr);if(es(bt,Lr,Se)&&ea(bt,Se)){const Ft=Co(dt,bt,Tr,kr);if(Ft)return Ft}}}const Da=dt.flags;Se.flags&8192&&Se.symbol===tr&&(!dt.enclosingDeclaration||kt(tr.declarations,Lr=>er(Lr)===er(dt.enclosingDeclaration)))&&(dt.flags|=1048576);const Ni=u(Se,dt);return dt.flags=Da,Ni}function es(dt,Se,tr){const Qn=pi(dt);return Qn===tr?!0:Fa(Se)&&Se.questionToken?g_(tr,524288)===Qn:!1}function Ms(dt,Se,tr,Qn,Tr){if(!rs(Se)&&dt.enclosingDeclaration){const kr=tr.declaration&&Cp(tr.declaration),Da=Ba(dt.enclosingDeclaration);if(rr(kr,Ni=>Ni===Da)&&kr){const Ni=pi(kr);if((Ni.flags&262144&&Ni.isThisType?$i(Ni,tr.mapper):Ni)===Se&&ea(kr,Se)){const bt=Co(dt,kr,Qn,Tr);if(bt)return bt}}}return u(Se,dt)}function bl(dt,Se,tr){let Qn=!1;const Tr=Ff(dt);if(fr(dt)&&(IT(Tr)||kh(Tr.parent)||Rd(Tr.parent)&&dq(Tr.parent.left)&&IT(Tr.parent.right)))return Qn=!0,{introducesError:Qn,node:dt};const kr=Ml(Tr,67108863,!0,!0);if(kr&&(av(kr,Se.enclosingDeclaration,67108863,!1).accessibility!==0?Qn=!0:(Se.tracker.trackSymbol(kr,Se.enclosingDeclaration,67108863),tr==null||tr(kr)),je(dt))){const Da=js(kr),Ni=kr.flags&262144&&!ME(Da.symbol,Se.enclosingDeclaration)?ai(Da,Se):N.cloneNode(dt);return Ni.symbol=kr,{introducesError:Qn,node:sr(Wr(Ni,dt),33554432)}}return{introducesError:Qn,node:dt}}function Co(dt,Se,tr,Qn){o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();let Tr=!1;const kr=er(Se),Da=lt(Se,Ni,Gi);if(Tr)return;return Da===Se?ht(N.cloneNode(Se),Se):Da;function Ni(Lr){if(Tme(Lr)||Lr.kind===322)return N.createKeywordTypeNode(131);if(Sme(Lr))return N.createKeywordTypeNode(157);if(HC(Lr))return N.createUnionTypeNode([lt(Lr.type,Ni,Gi),N.createLiteralTypeNode(N.createNull())]);if(vK(Lr))return N.createUnionTypeNode([lt(Lr.type,Ni,Gi),N.createKeywordTypeNode(155)]);if(y5(Lr))return lt(Lr.type,Ni);if(v5(Lr))return N.createArrayTypeNode(lt(Lr.type,Ni,Gi));if(lw(Lr))return N.createTypeLiteralNode(zt(Lr.jsDocPropertyTags,$t=>{const wn=je($t.name)?$t.name:$t.name.right,qn=vc(pi(Lr),wn.escapedText),la=qn&&$t.typeExpression&&pi($t.typeExpression.type)!==qn?u(qn,dt):void 0;return N.createPropertySignature(void 0,wn,$t.isBracketed||$t.typeExpression&&vK($t.typeExpression.type)?N.createToken(57):void 0,la||$t.typeExpression&<($t.typeExpression.type,Ni,Gi)||N.createKeywordTypeNode(131))}));if(ep(Lr)&&je(Lr.typeName)&&Lr.typeName.escapedText==="")return Wr(N.createKeywordTypeNode(131),Lr);if((Py(Lr)||ep(Lr))&&H3(Lr))return N.createTypeLiteralNode([N.createIndexSignature(void 0,[N.createParameterDeclaration(void 0,void 0,"x",void 0,lt(Lr.typeArguments[0],Ni,Gi))],lt(Lr.typeArguments[1],Ni,Gi))]);if(WC(Lr))if(cC(Lr)){let $t;return N.createConstructorTypeNode(void 0,Kn(Lr.typeParameters,Ni,Ul),pa(Lr.parameters,(wn,qn)=>wn.name&&je(wn.name)&&wn.name.escapedText==="new"?($t=wn.type,void 0):N.createParameterDeclaration(void 0,bt(wn),Ft(wn,qn),wn.questionToken,lt(wn.type,Ni,Gi),void 0)),lt($t||Lr.type,Ni,Gi)||N.createKeywordTypeNode(131))}else return N.createFunctionTypeNode(Kn(Lr.typeParameters,Ni,Ul),zt(Lr.parameters,($t,wn)=>N.createParameterDeclaration(void 0,bt($t),Ft($t,wn),$t.questionToken,lt($t.type,Ni,Gi),void 0)),lt(Lr.type,Ni,Gi)||N.createKeywordTypeNode(131));if(ep(Lr)&&NN(Lr)&&(!ea(Lr,pi(Lr))||AIe(Lr)||rn===lA(Lr,788968,!0)))return Wr(u(pi(Lr),dt),Lr);if(ob(Lr)){const $t=Jr(Lr).resolvedSymbol;return NN(Lr)&&$t&&(!Lr.isTypeOf&&!($t.flags&788968)||!(Le(Lr.typeArguments)>=Am(fv($t))))?Wr(u(pi(Lr),dt),Lr):N.updateImportTypeNode(Lr,N.updateLiteralTypeNode(Lr.argument,en(Lr,Lr.argument.literal)),Lr.assertions,Lr.qualifier,Kn(Lr.typeArguments,Ni,Gi),Lr.isTypeOf)}if(ff(Lr)||Xl(Lr)){const{introducesError:$t,node:wn}=bl(Lr,dt,tr);if(Tr=Tr||$t,wn!==Lr)return wn}return kr&&PC(Lr)&&cl(kr,Lr.pos).line===cl(kr,Lr.end).line&&sr(Lr,1),Gn(Lr,Ni,Rg);function bt($t){return $t.dotDotDotToken||($t.type&&v5($t.type)?N.createToken(25):void 0)}function Ft($t,wn){return $t.name&&je($t.name)&&$t.name.escapedText==="this"?"this":bt($t)?"args":`arg${wn}`}function en($t,wn){if(Qn){if(dt.tracker&&dt.tracker.moduleResolverHost){const qn=Lse($t);if(qn){const Ei={getCanonicalFileName:cu(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>dt.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>dt.tracker.moduleResolverHost.getCommonSourceDirectory()},gn=n7(Ei,qn);return N.createStringLiteral(gn)}}}else if(dt.tracker&&dt.tracker.trackExternalModuleSymbolOfImportTypeNode){const qn=Xh(wn,wn,void 0);qn&&dt.tracker.trackExternalModuleSymbolOfImportTypeNode(qn)}return wn}}}function td(dt,Se,tr){const Qn=Tp(N.createPropertyDeclaration,171,!0),Tr=Tp((wt,xr,xi,ci)=>N.createPropertySignature(wt,xr,xi,ci),170,!1),kr=Se.enclosingDeclaration;let Da=[];const Ni=new Set,Lr=[],bt=Se;Se=Ka(Ti({},bt),{usedSymbolNames:new Set(bt.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0});const Ft=Ka(Ti({},bt.tracker.inner),{trackSymbol:(wt,xr,xi)=>{var ci;if(av(wt,xr,xi,!1).accessibility===0){const os=Xn(wt,Se,xi);wt.flags&4||Hs(os[0])}else if((ci=bt.tracker.inner)!=null&&ci.trackSymbol)return bt.tracker.inner.trackSymbol(wt,xr,xi);return!1}});Se.tracker=new H8(Se,Ft,bt.tracker.moduleResolverHost),pf(dt,(wt,xr)=>{const xi=ra(xr);Hd(wt,xi)});let en=!tr;const $t=dt.get("export=");return $t&&dt.size>1&&$t.flags&2097152&&(dt=co(),dt.set("export=",$t)),Ea(dt),ur(Da);function wn(wt){return!!wt&&wt.kind===79}function qn(wt){return gc(wt)?yn(zt(wt.declarationList.declarations,Ia),wn):yn([Ia(wt)],wn)}function la(wt){const xr=In(wt,Vl),xi=mi(wt,$l);let ci=xi!==-1?wt[xi]:void 0;if(ci&&xr&&xr.isExportEquals&&je(xr.expression)&&je(ci.name)&&Mr(ci.name)===Mr(xr.expression)&&ci.body&&dm(ci.body)){const di=yn(wt,aa=>!!(Hu(aa)&1)),os=ci.name;let Ua=ci.body;if(Le(di)&&(ci=N.updateModuleDeclaration(ci,ci.modifiers,ci.name,Ua=N.updateModuleBlock(Ua,N.createNodeArray([...ci.body.statements,N.createExportDeclaration(void 0,!1,N.createNamedExports(zt(Ga(di,aa=>qn(aa)),aa=>N.createExportSpecifier(!1,void 0,aa))),void 0)]))),wt=[...wt.slice(0,xi),ci,...wt.slice(xi+1)]),!In(wt,aa=>aa!==ci&&cN(aa,os))){Da=[];const aa=!kt(Ua.statements,qo=>$r(qo,1)||Vl(qo)||au(qo));Je(Ua.statements,qo=>{nt(qo,aa?1:0)}),wt=[...yn(wt,qo=>qo!==ci&&qo!==xr),...Da]}}return wt}function Ei(wt){const xr=yn(wt,ci=>au(ci)&&!ci.moduleSpecifier&&!!ci.exportClause&&tp(ci.exportClause));Le(xr)>1&&(wt=[...yn(wt,di=>!au(di)||!!di.moduleSpecifier||!di.exportClause),N.createExportDeclaration(void 0,!1,N.createNamedExports(Ga(xr,di=>so(di.exportClause,tp).elements)),void 0)]);const xi=yn(wt,ci=>au(ci)&&!!ci.moduleSpecifier&&!!ci.exportClause&&tp(ci.exportClause));if(Le(xi)>1){const ci=wI(xi,di=>Ho(di.moduleSpecifier)?">"+di.moduleSpecifier.text:">");if(ci.length!==xi.length)for(const di of ci)di.length>1&&(wt=[...yn(wt,os=>di.indexOf(os)===-1),N.createExportDeclaration(void 0,!1,N.createNamedExports(Ga(di,os=>so(os.exportClause,tp).elements)),di[0].moduleSpecifier)])}return wt}function gn(wt){const xr=mi(wt,xi=>au(xi)&&!xi.moduleSpecifier&&!xi.assertClause&&!!xi.exportClause&&tp(xi.exportClause));if(xr>=0){const xi=wt[xr],ci=pa(xi.exportClause.elements,di=>{if(!di.propertyName){const os=LR(wt),Ua=yn(os,aa=>cN(wt[aa],di.name));if(Le(Ua)&&Zn(Ua,aa=>kO(wt[aa]))){for(const aa of Ua)wt[aa]=ti(wt[aa]);return}}return di});Le(ci)?wt[xr]=N.updateExportDeclaration(xi,xi.modifiers,xi.isTypeOnly,N.updateNamedExports(xi.exportClause,ci),xi.moduleSpecifier,xi.assertClause):T1(wt,xr)}return wt}function ur(wt){return wt=la(wt),wt=Ei(wt),wt=gn(wt),kr&&(Ji(kr)&&mf(kr)||$l(kr))&&(!kt(wt,gN)||!Jde(wt)&&kt(wt,f3))&&wt.push(a8(N)),wt}function ti(wt){const xr=(Hu(wt)|1)&-3;return N.updateModifiers(wt,xr)}function vr(wt){const xr=Hu(wt)&-2;return N.updateModifiers(wt,xr)}function Ea(wt,xr,xi){xr||Lr.push(new Map),wt.forEach(ci=>{cs(ci,!1,!!xi)}),xr||(Lr[Lr.length-1].forEach(ci=>{cs(ci,!0,!!xi)}),Lr.pop())}function cs(wt,xr,xi){const ci=as(wt);if(Ni.has(Eo(ci)))return;if(Ni.add(Eo(ci)),!xr||Le(wt.declarations)&&kt(wt.declarations,os=>!!rr(os,Ua=>Ua===kr))){const os=Se;Se=Vn(Se),Vs(wt,xr,xi),Se.reportedDiagnostic&&(bt.reportedDiagnostic=Se.reportedDiagnostic),Se=os}}function Vs(wt,xr,xi){var ci,di,os,Ua;const aa=ra(wt.escapedName),qo=wt.escapedName==="default";if(xr&&!(Se.flags&131072)&&Lx(aa)&&!qo){Se.encounteredError=!0;return}let bs=qo&&!!(wt.flags&-113||wt.flags&16&&Le(gs(or(wt))))&&!(wt.flags&2097152),sc=!bs&&!xr&&Lx(aa)&&!qo;(bs||sc)&&(xr=!0);const Oc=(xr?0:1)|(qo&&!bs?1024:0),wf=wt.flags&1536&&wt.flags&7&&wt.escapedName!=="export=",vu=wf&&yu(or(wt),wt);if((wt.flags&8208||vu)&&jr(or(wt),wt,Hd(wt,aa),Oc),wt.flags&524288&&St(wt,aa,Oc),wt.flags&7&&wt.escapedName!=="export="&&!(wt.flags&4194304)&&!(wt.flags&32)&&!(wt.flags&8192)&&!vu)if(xi)ws(wt)&&(sc=!1,bs=!1);else{const zs=or(wt),Fl=Hd(wt,aa);if(!(wt.flags&16)&&yu(zs,wt))jr(zs,wt,Fl,Oc);else{const my=wt.flags&2?QL(wt)?2:1:(ci=wt.parent)!=null&&ci.valueDeclaration&&Ji((di=wt.parent)==null?void 0:di.valueDeclaration)?2:void 0,Eh=bs||!(wt.flags&4)?Fl:xA(Fl,wt);let Th=wt.declarations&&In(wt.declarations,Cv=>Xi(Cv));Th&&Ju(Th.parent)&&Th.parent.declarations.length===1&&(Th=Th.parent.parent);const JS=(os=wt.declarations)==null?void 0:os.find(Fr);if(JS&&br(JS.parent)&&je(JS.parent.right)&&((Ua=zs.symbol)!=null&&Ua.valueDeclaration)&&Ji(zs.symbol.valueDeclaration)){const Cv=Fl===JS.parent.right.escapedText?void 0:JS.parent.right;nt(N.createExportDeclaration(void 0,!1,N.createNamedExports([N.createExportSpecifier(!1,Cv,Fl)])),0),Se.tracker.trackSymbol(zs.symbol,Se.enclosingDeclaration,111551)}else{const Cv=ht(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(Eh,void 0,ia(Se,zs,wt,kr,Hs,tr))],my)),Th);nt(Cv,Eh!==Fl?Oc&-2:Oc),Eh!==Fl&&!xr&&(nt(N.createExportDeclaration(void 0,!1,N.createNamedExports([N.createExportSpecifier(!1,Eh,Fl)])),0),sc=!1,bs=!1)}}}if(wt.flags&384&&Sr(wt,aa,Oc),wt.flags&32&&(wt.flags&4&&wt.valueDeclaration&&br(wt.valueDeclaration.parent)&&qu(wt.valueDeclaration.parent.right)?Go(wt,Hd(wt,aa),Oc):gi(wt,Hd(wt,aa),Oc)),(wt.flags&1536&&(!wf||mr(wt))||vu)&&Ln(wt,aa,Oc),wt.flags&64&&!(wt.flags&32)&&tn(wt,aa,Oc),wt.flags&2097152&&Go(wt,Hd(wt,aa),Oc),wt.flags&4&&wt.escapedName==="export="&&ws(wt),wt.flags&8388608&&wt.declarations)for(const zs of wt.declarations){const Fl=gu(zs,zs.moduleSpecifier);Fl&&nt(N.createExportDeclaration(void 0,zs.isTypeOnly,void 0,N.createStringLiteral(sn(Fl,Se))),0)}bs?nt(N.createExportAssignment(void 0,!1,N.createIdentifier(Hd(wt,aa))),0):sc&&nt(N.createExportDeclaration(void 0,!1,N.createNamedExports([N.createExportSpecifier(!1,Hd(wt,aa),aa)])),0)}function Hs(wt){if(kt(wt.declarations,RT))return;D.assertIsDefined(Lr[Lr.length-1]),xA(ra(wt.escapedName),wt);const xr=!!(wt.flags&2097152)&&!kt(wt.declarations,xi=>!!rr(xi,au)||Bh(xi)||_u(xi)&&!eh(xi.moduleReference));Lr[xr?0:Lr.length-1].set(Eo(wt),wt)}function Cd(wt){return Ji(wt)&&(mf(wt)||T_(wt))||ju(wt)&&!im(wt)}function nt(wt,xr){if(np(wt)){let xi=0;const ci=Se.enclosingDeclaration&&(S_(Se.enclosingDeclaration)?er(Se.enclosingDeclaration):Se.enclosingDeclaration);xr&1&&ci&&(Cd(ci)||$l(ci))&&kO(wt)&&(xi|=1),en&&!(xi&1)&&(!ci||!(ci.flags&16777216))&&(yb(wt)||gc(wt)||xc(wt)||Bc(wt)||$l(wt))&&(xi|=2),xr&1024&&(Bc(wt)||ud(wt)||xc(wt))&&(xi|=1024),xi&&(wt=N.updateModifiers(wt,xi|Hu(wt)))}Da.push(wt)}function St(wt,xr,xi){var ci;const di=Xb(wt),os=zi(wt).typeParameters,Ua=zt(os,wf=>_t(wf,Se)),aa=(ci=wt.declarations)==null?void 0:ci.find(S_),qo=dN(aa?aa.comment||aa.parent.comment:void 0),bs=Se.flags;Se.flags|=8388608;const sc=Se.enclosingDeclaration;Se.enclosingDeclaration=aa;const Oc=aa&&aa.typeExpression&&qT(aa.typeExpression)&&Co(Se,aa.typeExpression.type,Hs,tr)||u(di,Se);nt(K1(N.createTypeAliasDeclaration(void 0,Hd(wt,xr),Ua,Oc),qo?[{kind:3,text:`*
- * `+qo.replace(/\n/g,`
- * `)+`
- `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),xi),Se.flags=bs,Se.enclosingDeclaration=sc}function tn(wt,xr,xi){const ci=Qu(wt),di=fv(wt),os=zt(di,vu=>_t(vu,Se)),Ua=Fo(ci),aa=Le(Ua)?Do(Ua):void 0,qo=Ga(gs(ci),vu=>bh(vu,aa)),bs=z0(0,ci,aa,176),sc=z0(1,ci,aa,177),Oc=qS(ci,aa),wf=Le(Ua)?[N.createHeritageClause(94,pa(Ua,vu=>Rm(vu,111551)))]:void 0;nt(N.createInterfaceDeclaration(void 0,Hd(wt,xr),os,wf,[...Oc,...sc,...bs,...qo]),xi)}function zn(wt){return wt.exports?yn(No(wt.exports.values()),qa):[]}function mr(wt){return Zn(zn(wt),xr=>!(hu(ec(xr))&111551))}function Ln(wt,xr,xi){const ci=zn(wt),di=RR(ci,aa=>aa.parent&&aa.parent===wt?"real":"merged"),os=di.get("real")||rt,Ua=di.get("merged")||rt;if(Le(os)){const aa=Hd(wt,xr);xa(os,aa,xi,!!(wt.flags&67108880))}if(Le(Ua)){const aa=er(Se.enclosingDeclaration),qo=Hd(wt,xr),bs=N.createModuleBlock([N.createExportDeclaration(void 0,!1,N.createNamedExports(pa(yn(Ua,sc=>sc.escapedName!=="export="),sc=>{var Oc,wf;const vu=ra(sc.escapedName),zs=Hd(sc,vu),Fl=sc.declarations&&Ed(sc);if(aa&&(Fl?aa!==er(Fl):!kt(sc.declarations,Th=>er(Th)===aa))){(wf=(Oc=Se.tracker)==null?void 0:Oc.reportNonlocalAugmentation)==null||wf.call(Oc,aa,wt,sc);return}const my=Fl&&_p(Fl,!0);Hs(my||sc);const Eh=my?Hd(my,ra(my.escapedName)):zs;return N.createExportSpecifier(!1,vu===Eh?void 0:Eh,vu)})))]);nt(N.createModuleDeclaration(void 0,N.createIdentifier(qo),bs,16),0)}}function Sr(wt,xr,xi){nt(N.createEnumDeclaration(N.createModifiersFromModifierFlags(Yoe(wt)?2048:0),Hd(wt,xr),zt(yn(gs(or(wt)),ci=>!!(ci.flags&8)),ci=>{const di=ci.declarations&&ci.declarations[0]&&Q1(ci.declarations[0])?xse(ci.declarations[0]):void 0;return N.createEnumMember(ra(ci.escapedName),di===void 0?void 0:typeof di=="string"?N.createStringLiteral(di):N.createNumericLiteral(di))})),xi)}function jr(wt,xr,xi,ci){const di=za(wt,0);for(const os of di){const Ua=ge(os,259,Se,{name:N.createIdentifier(xi),privateSymbolVisitor:Hs,bundledImports:tr});nt(ht(Ua,Ui(os)),ci)}if(!(xr.flags&1536&&xr.exports&&xr.exports.size)){const os=yn(gs(wt),qa);xa(os,xi,ci,!0)}}function Ui(wt){if(wt.declaration&&wt.declaration.parent){if(br(wt.declaration.parent)&&wl(wt.declaration.parent)===5)return wt.declaration.parent;if(Xi(wt.declaration.parent)&&wt.declaration.parent.parent)return wt.declaration.parent.parent}return wt.declaration}function xa(wt,xr,xi,ci){if(Le(wt)){const os=RR(wt,zs=>!Le(zs.declarations)||kt(zs.declarations,Fl=>er(Fl)===er(Se.enclosingDeclaration))?"local":"remote").get("local")||rt;let Ua=nh.createModuleDeclaration(void 0,N.createIdentifier(xr),N.createModuleBlock([]),16);jo(Ua,kr),Ua.locals=co(wt),Ua.symbol=wt[0].parent;const aa=Da;Da=[];const qo=en;en=!1;const bs=Ka(Ti({},Se),{enclosingDeclaration:Ua}),sc=Se;Se=bs,Ea(co(os),ci,!0),Se=sc,en=qo;const Oc=Da;Da=aa;const wf=zt(Oc,zs=>Vl(zs)&&!zs.isExportEquals&&je(zs.expression)?N.createExportDeclaration(void 0,!1,N.createNamedExports([N.createExportSpecifier(!1,zs.expression,N.createIdentifier("default"))])):zs),vu=Zn(wf,zs=>$r(zs,1))?zt(wf,vr):wf;Ua=N.updateModuleDeclaration(Ua,Ua.modifiers,Ua.name,N.createModuleBlock(vu)),nt(Ua,xi)}}function qa(wt){return!!(wt.flags&2887656)||!(wt.flags&4194304||wt.escapedName==="prototype"||wt.valueDeclaration&&Ja(wt.valueDeclaration)&&_i(wt.valueDeclaration.parent))}function eo(wt){const xr=pa(wt,xi=>{const ci=Se.enclosingDeclaration;Se.enclosingDeclaration=xi;let di=xi.expression;if(Xl(di)){if(je(di)&&Mr(di)==="")return os(void 0);let Ua;if({introducesError:Ua,node:di}=bl(di,Se,Hs),Ua)return os(void 0)}return os(N.createExpressionWithTypeArguments(di,zt(xi.typeArguments,Ua=>Co(Se,Ua,Hs,tr)||u(pi(Ua),Se))));function os(Ua){return Se.enclosingDeclaration=ci,Ua}});if(xr.length===wt.length)return xr}function gi(wt,xr,xi){var ci,di;const os=(ci=wt.declarations)==null?void 0:ci.find(_i),Ua=Se.enclosingDeclaration;Se.enclosingDeclaration=os||Ua;const aa=fv(wt),qo=zt(aa,Xp=>_t(Xp,Se)),bs=Qu(wt),sc=Fo(bs),Oc=os&&_C(os),wf=Oc&&eo(Oc)||pa(qi(bs),SA),vu=or(wt),zs=!!((di=vu.symbol)!=null&&di.valueDeclaration)&&_i(vu.symbol.valueDeclaration),Fl=zs?oi(vu):we,my=[...Le(sc)?[N.createHeritageClause(94,zt(sc,Xp=>pI(Xp,Fl,xr)))]:[],...Le(wf)?[N.createHeritageClause(117,wf)]:[]],Eh=ict(bs,sc,gs(bs)),Th=yn(Eh,Xp=>{const mI=Xp.valueDeclaration;return!!mI&&!(Su(mI)&&Oi(mI.name))}),Cv=kt(Eh,Xp=>{const mI=Xp.valueDeclaration;return!!mI&&Su(mI)&&Oi(mI.name)})?[N.createPropertyDeclaration(void 0,N.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:rt,Ose=Ga(Th,Xp=>Qn(Xp,!1,sc[0])),Pse=Ga(yn(gs(vu),Xp=>!(Xp.flags&4194304)&&Xp.escapedName!=="prototype"&&!qa(Xp)),Xp=>Qn(Xp,!0,Fl)),bdt=!zs&&!!wt.valueDeclaration&&fr(wt.valueDeclaration)&&!kt(za(vu,1))?[N.createConstructorDeclaration(N.createModifiersFromModifierFlags(8),[],void 0)]:z0(1,vu,Fl,173),Edt=qS(bs,sc[0]);Se.enclosingDeclaration=Ua,nt(ht(N.createClassDeclaration(void 0,xr,qo,my,[...Edt,...Pse,...bdt,...Ose,...Cv]),wt.declarations&&yn(wt.declarations,Xp=>Bc(Xp)||qu(Xp))[0]),xi)}function to(wt){return Jt(wt,xr=>{if(Nd(xr)||gd(xr))return Mr(xr.propertyName||xr.name);if(br(xr)||Vl(xr)){const xi=Vl(xr)?xr.expression:xr.right;if(Fr(xi))return Mr(xi.name)}if(qg(xr)){const xi=Ia(xr);if(xi&&je(xi))return Mr(xi)}})}function Go(wt,xr,xi){var ci,di,os,Ua,aa;const qo=Ed(wt);if(!qo)return D.fail();const bs=as(_p(qo,!0));if(!bs)return;let sc=ok(bs)&&to(wt.declarations)||ra(bs.escapedName);sc==="export="&&($_($)||$.allowSyntheticDefaultImports)&&(sc="default");const Oc=Hd(bs,sc);switch(Hs(bs),qo.kind){case 205:if(((di=(ci=qo.parent)==null?void 0:ci.parent)==null?void 0:di.kind)===257){const zs=sn(bs.parent||bs,Se),{propertyName:Fl}=qo;nt(N.createImportDeclaration(void 0,N.createImportClause(!1,void 0,N.createNamedImports([N.createImportSpecifier(!1,Fl&&je(Fl)?N.createIdentifier(Mr(Fl)):void 0,N.createIdentifier(xr))])),N.createStringLiteral(zs),void 0),0);break}D.failBadSyntaxKind(((os=qo.parent)==null?void 0:os.parent)||qo,"Unhandled binding element grandparent kind in declaration serialization");break;case 300:((aa=(Ua=qo.parent)==null?void 0:Ua.parent)==null?void 0:aa.kind)===223&&Ro(ra(wt.escapedName),Oc);break;case 257:if(Fr(qo.initializer)){const zs=qo.initializer,Fl=N.createUniqueName(xr),my=sn(bs.parent||bs,Se);nt(N.createImportEqualsDeclaration(void 0,!1,Fl,N.createExternalModuleReference(N.createStringLiteral(my))),0),nt(N.createImportEqualsDeclaration(void 0,!1,N.createIdentifier(xr),N.createQualifiedName(Fl,zs.name)),xi);break}case 268:if(bs.escapedName==="export="&&kt(bs.declarations,zs=>Ji(zs)&&T_(zs))){ws(wt);break}const wf=!(bs.flags&512)&&!Xi(qo);nt(N.createImportEqualsDeclaration(void 0,!1,N.createIdentifier(xr),wf?_a(bs,Se,67108863,!1):N.createExternalModuleReference(N.createStringLiteral(sn(bs,Se)))),wf?xi:0);break;case 267:nt(N.createNamespaceExportDeclaration(Mr(qo.name)),0);break;case 270:{const zs=sn(bs.parent||bs,Se),Fl=tr?N.createStringLiteral(zs):qo.parent.moduleSpecifier;nt(N.createImportDeclaration(void 0,N.createImportClause(!1,N.createIdentifier(xr),void 0),Fl,qo.parent.assertClause),0);break}case 271:{const zs=sn(bs.parent||bs,Se),Fl=tr?N.createStringLiteral(zs):qo.parent.parent.moduleSpecifier;nt(N.createImportDeclaration(void 0,N.createImportClause(!1,void 0,N.createNamespaceImport(N.createIdentifier(xr))),Fl,qo.parent.parent.assertClause),0);break}case 277:nt(N.createExportDeclaration(void 0,!1,N.createNamespaceExport(N.createIdentifier(xr)),N.createStringLiteral(sn(bs,Se))),0);break;case 273:{const zs=sn(bs.parent||bs,Se),Fl=tr?N.createStringLiteral(zs):qo.parent.parent.parent.moduleSpecifier;nt(N.createImportDeclaration(void 0,N.createImportClause(!1,void 0,N.createNamedImports([N.createImportSpecifier(!1,xr!==sc?N.createIdentifier(sc):void 0,N.createIdentifier(xr))])),Fl,qo.parent.parent.parent.assertClause),0);break}case 278:const vu=qo.parent.parent.moduleSpecifier;Ro(ra(wt.escapedName),vu?sc:Oc,vu&&As(vu)?N.createStringLiteral(vu.text):void 0);break;case 274:ws(wt);break;case 223:case 208:case 209:wt.escapedName==="default"||wt.escapedName==="export="?ws(wt):Ro(xr,Oc);break;default:return D.failBadSyntaxKind(qo,"Unhandled alias declaration kind in symbol serializer!")}}function Ro(wt,xr,xi){nt(N.createExportDeclaration(void 0,!1,N.createNamedExports([N.createExportSpecifier(!1,wt!==xr?xr:void 0,wt)]),xi),0)}function ws(wt){if(wt.flags&4194304)return!1;const xr=ra(wt.escapedName),xi=xr==="export=",di=xi||xr==="default",os=wt.declarations&&Ed(wt),Ua=os&&_p(os,!0);if(Ua&&Le(Ua.declarations)&&kt(Ua.declarations,aa=>er(aa)===er(kr))){const aa=os&&(Vl(os)||br(os)?vq(os):Zfe(os)),qo=aa&&Xl(aa)?vct(aa):void 0,bs=qo&&Ml(qo,67108863,!0,!0,kr);(bs||Ua)&&Hs(bs||Ua);const sc=Se.tracker.disableTrackSymbol;if(Se.tracker.disableTrackSymbol=!0,di)Da.push(N.createExportAssignment(void 0,xi,Za(Ua,Se,67108863)));else if(qo===aa&&qo)Ro(xr,Mr(qo));else if(aa&&qu(aa))Ro(xr,Hd(Ua,Gl(Ua)));else{const Oc=xA(xr,wt);nt(N.createImportEqualsDeclaration(void 0,!1,N.createIdentifier(Oc),_a(Ua,Se,67108863,!1)),0),Ro(xr,Oc)}return Se.tracker.disableTrackSymbol=sc,!0}else{const aa=xA(xr,wt),qo=sf(or(as(wt)));if(yu(qo,wt))jr(qo,wt,aa,di?0:1);else{const bs=N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(aa,void 0,ia(Se,qo,wt,kr,Hs,tr))],2));nt(bs,Ua&&Ua.flags&4&&Ua.escapedName==="export="?2:xr===aa?1:0)}return di?(Da.push(N.createExportAssignment(void 0,xi,N.createIdentifier(aa))),!0):xr!==aa?(Ro(xr,aa),!0):!1}}function yu(wt,xr){const xi=er(Se.enclosingDeclaration);return ri(wt)&48&&!Le(Nu(wt))&&!Vi(wt)&&!!(Le(yn(gs(wt),qa))||Le(za(wt,0)))&&!Le(za(wt,1))&&!lr(xr,kr)&&!(wt.symbol&&kt(wt.symbol.declarations,ci=>er(ci)!==xi))&&!kt(gs(wt),ci=>ID(ci.escapedName))&&!kt(gs(wt),ci=>kt(ci.declarations,di=>er(di)!==xi))&&Zn(gs(wt),ci=>H_(Gl(ci),M))}function Tp(wt,xr,xi){return function(di,os,Ua){var aa,qo,bs,sc,Oc;const wf=s_(di),vu=!!(wf&8);if(os&&di.flags&2887656)return[];if(di.flags&4194304||Ua&&fo(Ua,di.escapedName)&&Ep(fo(Ua,di.escapedName))===Ep(di)&&(di.flags&16777216)===(fo(Ua,di.escapedName).flags&16777216)&&ig(or(di),vc(Ua,di.escapedName)))return[];const zs=wf&-513|(os?32:0),Fl=kf(di,Se),my=(aa=di.declarations)==null?void 0:aa.find(Fm(ro,ab,Xi,Bf,br,Fr));if(di.flags&98304&&xi){const Eh=[];if(di.flags&65536&&Eh.push(ht(N.createSetAccessorDeclaration(N.createModifiersFromModifierFlags(zs),Fl,[N.createParameterDeclaration(void 0,void 0,"arg",void 0,vu?void 0:ia(Se,or(di),di,kr,Hs,tr))],void 0),((qo=di.declarations)==null?void 0:qo.find(Iy))||my)),di.flags&32768){const Th=wf&8;Eh.push(ht(N.createGetAccessorDeclaration(N.createModifiersFromModifierFlags(zs),Fl,[],Th?void 0:ia(Se,or(di),di,kr,Hs,tr),void 0),((bs=di.declarations)==null?void 0:bs.find(Gv))||my))}return Eh}else if(di.flags&98311)return ht(wt(N.createModifiersFromModifierFlags((Ep(di)?64:0)|zs),Fl,di.flags&16777216?N.createToken(57):void 0,vu?void 0:ia(Se,ML(di),di,kr,Hs,tr),void 0),((sc=di.declarations)==null?void 0:sc.find(Fm(ro,Xi)))||my);if(di.flags&8208){const Eh=or(di),Th=za(Eh,0);if(zs&8)return ht(wt(N.createModifiersFromModifierFlags((Ep(di)?64:0)|zs),Fl,di.flags&16777216?N.createToken(57):void 0,void 0,void 0),((Oc=di.declarations)==null?void 0:Oc.find(el))||Th[0]&&Th[0].declaration||di.declarations&&di.declarations[0]);const JS=[];for(const Cv of Th){const Ose=ge(Cv,xr,Se,{name:Fl,questionToken:di.flags&16777216?N.createToken(57):void 0,modifiers:zs?N.createModifiersFromModifierFlags(zs):void 0}),Pse=Cv.declaration&&VN(Cv.declaration.parent)?Cv.declaration.parent:Cv.declaration;JS.push(ht(Ose,Pse))}return JS}return D.fail(`Unhandled class member kind! ${di.__debugFlags||di.flags}`)}}function bh(wt,xr){return Tr(wt,!1,xr)}function z0(wt,xr,xi,ci){const di=za(xr,wt);if(wt===1){if(!xi&&Zn(di,aa=>Le(aa.parameters)===0))return[];if(xi){const aa=za(xi,1);if(!Le(aa)&&Zn(di,qo=>Le(qo.parameters)===0))return[];if(aa.length===di.length){let qo=!1;for(let bs=0;bs<aa.length;bs++)if(!i4(di[bs],aa[bs],!1,!1,!0,VD)){qo=!0;break}if(!qo)return[]}}let Ua=0;for(const aa of di)aa.declaration&&(Ua|=Dx(aa.declaration,24));if(Ua)return[ht(N.createConstructorDeclaration(N.createModifiersFromModifierFlags(Ua),[],void 0),di[0].declaration)]}const os=[];for(const Ua of di){const aa=ge(Ua,ci,Se);os.push(ht(aa,Ua.declaration))}return os}function qS(wt,xr){const xi=[];for(const ci of Nu(wt)){if(xr){const di=hh(xr,ci.keyType);if(di&&ig(ci.type,di.type))continue}xi.push(Q(ci,Se,void 0))}return xi}function pI(wt,xr,xi){const ci=Rm(wt,111551);if(ci)return ci;const di=xA(`${xi}_base`),os=N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(di,void 0,u(xr,Se))],2));return nt(os,0),N.createExpressionWithTypeArguments(N.createIdentifier(di),void 0)}function Rm(wt,xr){let xi,ci;if(wt.target&&BE(wt.target.symbol,kr,xr)?(xi=zt(ys(wt),di=>u(di,Se)),ci=Za(wt.target.symbol,Se,788968)):wt.symbol&&BE(wt.symbol,kr,xr)&&(ci=Za(wt.symbol,Se,788968)),ci)return N.createExpressionWithTypeArguments(ci,xi)}function SA(wt){const xr=Rm(wt,788968);if(xr)return xr;if(wt.symbol)return N.createExpressionWithTypeArguments(Za(wt.symbol,Se,788968),void 0)}function xA(wt,xr){var xi,ci;const di=xr?Eo(xr):void 0;if(di&&Se.remappedSymbolNames.has(di))return Se.remappedSymbolNames.get(di);xr&&(wt=lT(xr,wt));let os=0;const Ua=wt;for(;(xi=Se.usedSymbolNames)!=null&&xi.has(wt);)os++,wt=`${Ua}_${os}`;return(ci=Se.usedSymbolNames)==null||ci.add(wt),di&&Se.remappedSymbolNames.set(di,wt),wt}function lT(wt,xr){if(xr==="default"||xr==="__class"||xr==="__function"){const xi=Se.flags;Se.flags|=16777216;const ci=sv(wt,Se);Se.flags=xi,xr=ci.length>0&&ON(ci.charCodeAt(0))?X_(ci):ci}return xr==="default"?xr="_default":xr==="export="&&(xr="_exports"),xr=H_(xr,M)&&!Lx(xr)?xr:"_"+xr.replace(/[^a-zA-Z0-9]/g,"_"),xr}function Hd(wt,xr){const xi=Eo(wt);return Se.remappedSymbolNames.has(xi)?Se.remappedSymbolNames.get(xi):(xr=lT(wt,xr),Se.remappedSymbolNames.set(xi,xr),xr)}}}function su(n,a,l=16384,u){return u?p(u).getText():rk(p);function p(y){const A=N.createTypePredicateNode(n.kind===2||n.kind===3?N.createToken(129):void 0,n.kind===1||n.kind===3?N.createIdentifier(n.parameterName):N.createThisTypeNode(),n.type&&Ye.typeToTypeNode(n.type,a,ui(l)|70221824|512)),R=sE(),F=a&&er(a);return R.writeNode(4,A,F,y),y}}function af(n){const a=[];let l=0;for(let u=0;u<n.length;u++){const p=n[u];if(l|=p.flags,!(p.flags&98304)){if(p.flags&1568){const y=p.flags&512?Re:LD(p);if(y.flags&1048576){const A=y.types.length;if(u+A<=n.length&&xd(n[u+A-1])===xd(y.types[A-1])){a.push(y),u+=A-1;continue}}}a.push(p)}}return l&65536&&a.push(Sn),l&32768&&a.push(He),a||n}function Cf(n){return n===8?"private":n===16?"protected":"public"}function ov(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){const a=YN(n.symbol.declarations[0].parent);if(um(a))return Ir(a)}}function of(n){return n&&n.parent&&n.parent.kind===265&&O1(n.parent.parent)}function L0(n){return n.kind===308||ju(n)}function I0(n,a){const l=zi(n).nameType;if(l){if(l.flags&384){const u=""+l.value;return!H_(u,ts($))&&!Oh(u)?`"${Ix(u,34)}"`:Oh(u)&&Ta(u,"-")?`[${u}]`:u}if(l.flags&8192)return`[${sv(l.symbol,a)}]`}}function sv(n,a){if(a&&n.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!n.declarations||a.enclosingDeclaration&&rr(n.declarations[0],L0)!==rr(a.enclosingDeclaration,L0)))return"default";if(n.declarations&&n.declarations.length){let u=Jt(n.declarations,y=>Ia(y)?y:void 0);const p=u&&Ia(u);if(u&&p){if(io(u)&&Tx(u))return Gl(n);if(Cs(p)&&!(Dl(n)&4096)){const y=zi(n).nameType;if(y&&y.flags&384){const A=I0(n,a);if(A!==void 0)return A}}return Rs(p)}if(u||(u=n.declarations[0]),u.parent&&u.parent.kind===257)return Rs(u.parent.name);switch(u.kind){case 228:case 215:case 216:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),u.kind===228?"(Anonymous class)":"(Anonymous function)"}}const l=I0(n,a);return l!==void 0?l:Gl(n)}function P_(n){if(n){const l=Jr(n);return l.isVisible===void 0&&(l.isVisible=!!a()),l.isVisible}return!1;function a(){switch(n.kind){case 341:case 349:case 343:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Ji(n.parent.parent.parent));case 205:return P_(n.parent.parent);case 257:if(Ya(n.name)&&!n.name.elements.length)return!1;case 264:case 260:case 261:case 262:case 259:case 263:case 268:if(O1(n))return!0;const l=VE(n);return!(Ay(n)&1)&&!(n.kind!==268&&l.kind!==308&&l.flags&16777216)?sh(l):P_(l);case 169:case 168:case 174:case 175:case 171:case 170:if(zd(n,24))return!1;case 173:case 177:case 176:case 178:case 166:case 265:case 181:case 182:case 184:case 180:case 185:case 186:case 189:case 190:case 193:case 199:return P_(n.parent);case 270:case 271:case 273:return!1;case 165:case 308:case 267:return!0;case 274:return!1;default:return!1}}}function UE(n,a){let l;n.parent&&n.parent.kind===274?l=hl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===278&&(l=N_(n.parent,2998271));let u,p;return l&&(p=new Set,p.add(Eo(l)),y(l.declarations)),u;function y(A){Je(A,R=>{const F=wS(R)||R;if(a?Jr(R).isVisible=!0:(u=u||[],v_(u,F)),aC(R)){const J=R.moduleReference,Q=Ff(J),ge=hl(R,Q.escapedText,901119,void 0,void 0,!1);ge&&p&&g1(p,Eo(ge))&&y(ge.declarations)}})}}function Kf(n,a){const l=_h(n,a);if(l>=0){const{length:u}=Fg;for(let p=l;p<u;p++)lp[p]=!1;return!1}return Fg.push(n),lp.push(!0),u0.push(a),!0}function _h(n,a){for(let l=Fg.length-1;l>=0;l--){if(lv(Fg[l],u0[l]))return-1;if(Fg[l]===n&&u0[l]===a)return l}return-1}function lv(n,a){switch(a){case 0:return!!zi(n).type;case 5:return!!Jr(n).resolvedEnumType;case 2:return!!zi(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!zi(n).writeType;case 9:return Jr(n).parameterInitializerContainsUndefined!==void 0}return D.assertNever(a)}function __(){return Fg.pop(),u0.pop(),lp.pop()}function VE(n){return rr(qm(n),a=>{switch(a.kind){case 257:case 258:case 273:case 272:case 271:case 270:return!1;default:return!0}}).parent}function k0(n){const a=js(Sd(n));return a.typeParameters?oy(a,zt(a.typeParameters,l=>we)):a}function vc(n,a){const l=fo(n,a);return l?or(l):void 0}function RP(n,a){var l;return vc(n,a)||((l=rA(n,a))==null?void 0:l.type)||he}function xs(n){return n&&(n.flags&1)!==0}function rs(n){return n===Ce||!!(n.flags&1&&n.aliasSymbol)}function Y2(n,a){if(a!==0)return is(n,!1,a);const l=Ir(n);return l&&zi(l).type||is(n,!1,a)}function $2(n,a,l){if(n=bc(n,F=>!(F.flags&98304)),n.flags&131072)return fa;if(n.flags&1048576)return Zs(n,F=>$2(F,a,l));let u=Zr(zt(a,sy));const p=[],y=[];for(const F of gs(n)){const J=HL(F,8576);!Ao(J,u)&&!(s_(F)&24)&&sV(F)?p.push(F):y.push(J)}if(t1(n)||M0(u)){if(y.length&&(u=Zr([u,...y])),u.flags&131072)return n;const F=Net();return F?sA(F,[n,u]):Ce}const A=co();for(const F of p)A.set(F.escapedName,cae(F,!1));const R=Ps(l,A,rt,rt,Nu(n));return R.objectFlags|=4194304,R}function z(n){return!!(n.flags&465829888)&&gl(Zu(n)||he,32768)}function Te(n){const a=lg(n,z)?Zs(n,l=>l.flags&465829888?hv(l):l):n;return g_(a,524288)}function $e(n,a){const l=Tt(n);return l?W0(l,a):a}function Tt(n){const a=Gt(n);if(a&&JN(a)&&a.flowNode){const l=Cn(n);if(l){const u=ht(nh.createStringLiteral(l),n),p=Id(a)?a:nh.createParenthesizedExpression(a),y=ht(nh.createElementAccessExpression(p,u),n);return jo(u,y),jo(y,n),p!==a&&jo(p,y),y.flowNode=a.flowNode,y}}}function Gt(n){const a=n.parent.parent;switch(a.kind){case 205:case 299:return Tt(a);case 206:return Tt(n.parent);case 257:return a.initializer;case 223:return a.right}}function Cn(n){const a=n.parent;return n.kind===205&&a.kind===203?Br(n.propertyName||n.name):n.kind===299||n.kind===300?Br(n.name):""+a.elements.indexOf(n)}function Br(n){const a=sy(n);return a.flags&384?""+a.value:void 0}function bi(n){const a=n.dotDotDotToken?64:0,l=Y2(n.parent.parent,a);return l&&Li(n,l)}function Li(n,a){if(xs(a))return a;const l=n.parent;W&&n.flags&16777216&&RT(n)?a=dy(a):W&&l.parent.initializer&&!(Mu(hwe(l.parent.initializer))&65536)&&(a=g_(a,524288));let u;if(l.kind===203)if(n.dotDotDotToken){if(a=yp(a),a.flags&2||!g4(a))return Ke(n,_.Rest_types_may_only_be_created_from_object_types),Ce;const p=[];for(const y of l.elements)y.dotDotDotToken||p.push(y.propertyName||y.name);u=$2(a,p,n.symbol)}else{const p=n.propertyName||n.name,y=sy(p),A=jd(a,y,32,p);u=$e(n,A)}else{const p=Av(65|(n.dotDotDotToken?0:128),a,He,l),y=l.elements.indexOf(n);if(n.dotDotDotToken){const A=hv(a);u=gh(A,Bo)?Zs(A,R=>jL(R,y)):Ou(p)}else if(V0(a)){const A=qp(y),R=32|(ZL(n)?16:0),F=vv(a,A,R,n.name)||Ce;u=$e(n,F)}else u=p}return n.initializer?iu(VA(n))?W&&!(Mu(sR(n,0))&16777216)?Te(u):u:Qoe(n,Zr([Te(u),sR(n,0)],2)):u}function Di(n){const a=Pv(n);if(a)return pi(a)}function Ma(n){const a=Ws(n,!0);return a.kind===104||a.kind===79&&B_(a)===Fe}function ks(n){const a=Ws(n,!0);return a.kind===206&&a.elements.length===0}function ko(n,a=!1,l=!0){return W&&l?uy(n,a):n}function is(n,a,l){if(Xi(n)&&n.parent.parent.kind===246){const A=Lm(Soe(ha(n.parent.parent.expression,l)));return A.flags&4456448?eke(A):ue}if(Xi(n)&&n.parent.parent.kind===247){const A=n.parent.parent;return G4(A)||we}if(Ya(n.parent))return bi(n);const u=ro(n)&&!Jm(n)||Bf(n)||Cme(n),p=a&&SJ(n),y=Vd(n);if(Vz(n))return y?xs(y)||y===he?y:Ce:Qe?he:we;if(y)return ko(y,u,p);if((xe||fr(n))&&Xi(n)&&!Ya(n.name)&&!(Ay(n)&1)&&!(n.flags&16777216)){if(!(xp(n)&2)&&(!n.initializer||Ma(n.initializer)))return yt;if(n.initializer&&ks(n.initializer))return On}if(Fa(n)){const A=n.parent;if(A.kind===175&&tA(A)){const J=Il(Ir(n.parent),174);if(J){const Q=Wp(J),ge=Dse(A);return ge&&n===ge?(D.assert(!ge.type),or(Q.thisParameter)):vs(Q)}}const R=iet(A,n);if(R)return R;const F=n.symbol.escapedName==="this"?Pwe(A):Mwe(n);if(F)return ko(F,!1,p)}if(ET(n)&&n.initializer){if(fr(n)&&!Fa(n)){const R=NL(n,Ir(n),MN(n));if(R)return R}const A=Qoe(n,sR(n,l));return ko(A,u,p)}if(ro(n)&&(xe||fr(n)))if(Sc(n)){const A=yn(n.parent.members,Rl),R=A.length?M_(n.symbol,A):Hu(n)&2?EV(n.symbol):void 0;return R&&ko(R,!0,p)}else{const A=A0(n.parent),R=A?cv(n.symbol,A):Hu(n)&2?EV(n.symbol):void 0;return R&&ko(R,!0,p)}if(fm(n))return Pe;if(Ya(n.name))return wo(n.name,!1,!0)}function Ud(n){if(n.valueDeclaration&&br(n.valueDeclaration)){const a=zi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!Tm(n)&&Zn(n.declarations,l=>br(l)&&VV(l)&&(l.left.kind!==209||i_(l.left.argumentExpression))&&!pp(void 0,l,n,l))),a.isConstructorDeclaredProperty}return!1}function jp(n){const a=n.valueDeclaration;return a&&ro(a)&&!iu(a)&&!a.initializer&&(xe||fr(a))}function Tm(n){if(n.declarations)for(const a of n.declarations){const l=kd(a,!1,!1);if(l&&(l.kind===173||Kp(l)))return l}}function ty(n){const a=er(n.declarations[0]),l=ra(n.escapedName),u=n.declarations.every(y=>fr(y)&&dl(y)&&kh(y.expression)),p=u?N.createPropertyAccessExpression(N.createPropertyAccessExpression(N.createIdentifier("module"),N.createIdentifier("exports")),l):N.createPropertyAccessExpression(N.createIdentifier("exports"),l);return u&&jo(p.expression.expression,p.expression),jo(p.expression,p),jo(p,a),p.flowNode=a.endFlowNode,W0(p,yt,He)}function M_(n,a){const l=Ta(n.escapedName,"__#")?N.createPrivateIdentifier(n.escapedName.split("@")[1]):ra(n.escapedName);for(const u of a){const p=N.createPropertyAccessExpression(N.createThis(),l);jo(p.expression,p),jo(p,u),p.flowNode=u.returnFlowNode;const y=Q2(p,n);if(xe&&(y===yt||y===On)&&Ke(n.valueDeclaration,_.Member_0_implicitly_has_an_1_type,x(n),ke(y)),!gh(y,KV))return mR(y)}}function cv(n,a){const l=Ta(n.escapedName,"__#")?N.createPrivateIdentifier(n.escapedName.split("@")[1]):ra(n.escapedName),u=N.createPropertyAccessExpression(N.createThis(),l);jo(u.expression,u),jo(u,a),u.flowNode=a.returnFlowNode;const p=Q2(u,n);return xe&&(p===yt||p===On)&&Ke(n.valueDeclaration,_.Member_0_implicitly_has_an_1_type,x(n),ke(p)),gh(p,KV)?void 0:mR(p)}function Q2(n,a){const l=(a==null?void 0:a.valueDeclaration)&&(!jp(a)||Hu(a.valueDeclaration)&2)&&EV(a)||He;return W0(n,yt,l)}function jE(n,a){const l=Ex(n.valueDeclaration);if(l){const R=fr(l)?I1(l):void 0;return R&&R.typeExpression?pi(R.typeExpression):n.valueDeclaration&&NL(n.valueDeclaration,n,l)||o1(nc(l))}let u,p=!1,y=!1;if(Ud(n)&&(u=cv(n,Tm(n))),!u){let R;if(n.declarations){let F;for(const J of n.declarations){const Q=br(J)||io(J)?J:dl(J)?br(J.parent)?J.parent:J:void 0;if(!Q)continue;const ge=dl(Q)?UN(Q):wl(Q);(ge===4||br(Q)&&VV(Q,ge))&&(Xf(Q)?p=!0:y=!0),io(Q)||(F=pp(F,Q,n,J)),F||(R||(R=[])).push(br(Q)||io(Q)?w0(n,a,Q,ge):gt)}u=F}if(!u){if(!Le(R))return Ce;let F=p&&n.declarations?Z2(R,n.declarations):void 0;if(y){const Q=EV(n);Q&&((F||(F=[])).push(Q),p=!0)}const J=kt(F,Q=>!!(Q.flags&-98305))?F:R;u=Zr(J)}}const A=sf(ko(u,!1,y&&!p));return n.valueDeclaration&&bc(A,R=>!!(R.flags&-98305))===gt?(j0(n.valueDeclaration,we),we):A}function NL(n,a,l){var u,p;if(!fr(n)||!l||!Is(l)||l.properties.length)return;const y=co();for(;br(n)||Fr(n);){const F=nf(n);(u=F==null?void 0:F.exports)!=null&&u.size&&Uc(y,F.exports),n=br(n)?n.parent:n.parent.parent}const A=nf(n);(p=A==null?void 0:A.exports)!=null&&p.size&&Uc(y,A.exports);const R=Ps(a,y,rt,rt,rt);return R.objectFlags|=4096,R}function pp(n,a,l,u){var p;const y=iu(a.parent);if(y){const A=sf(pi(y));if(n)!rs(n)&&!rs(A)&&!ig(n,A)&&FRe(void 0,n,u,A);else return A}if((p=l.parent)!=null&&p.valueDeclaration){const A=iu(l.parent.valueDeclaration);if(A){const R=fo(pi(A),l.escapedName);if(R)return R0(R)}}return n}function w0(n,a,l,u){if(io(l)){if(a)return or(a);const A=nc(l.arguments[2]),R=vc(A,"value");if(R)return R;const F=vc(A,"get");if(F){const Q=HS(F);if(Q)return vs(Q)}const J=vc(A,"set");if(J){const Q=HS(J);if(Q)return Hoe(Q)}return we}if(OL(l.left,l.right))return we;const p=u===1&&(Fr(l.left)||fl(l.left))&&(kh(l.left.expression)||je(l.left.expression)&&IT(l.left.expression)),y=a?or(a):p?xd(nc(l.right)):o1(nc(l.right));if(y.flags&524288&&u===2&&n.escapedName==="export="){const A=gp(y),R=co();EN(A.members,R);const F=R.size;a&&!a.exports&&(a.exports=co()),(a||n).exports.forEach((Q,ge)=>{var Ne;const De=R.get(ge);if(De&&De!==Q&&!(Q.flags&2097152))if(Q.flags&111551&&De.flags&111551){if(Q.valueDeclaration&&De.valueDeclaration&&er(Q.valueDeclaration)!==er(De.valueDeclaration)){const Bt=ra(Q.escapedName),Fn=((Ne=si(De.valueDeclaration,Su))==null?void 0:Ne.name)||De.valueDeclaration;Yo(Ke(Q.valueDeclaration,_.Duplicate_identifier_0,Bt),Nr(Fn,_._0_was_also_declared_here,Bt)),Yo(Ke(Fn,_.Duplicate_identifier_0,Bt),Nr(Q.valueDeclaration,_._0_was_also_declared_here,Bt))}const _t=ns(Q.flags|De.flags,ge);_t.links.type=Zr([or(Q),or(De)]),_t.valueDeclaration=De.valueDeclaration,_t.declarations=ya(De.declarations,Q.declarations),R.set(ge,_t)}else R.set(ge,dp(Q,De));else R.set(ge,Q)});const J=Ps(F!==R.size?void 0:A.symbol,R,A.callSignatures,A.constructSignatures,A.indexInfos);if(F===R.size&&(y.aliasSymbol&&(J.aliasSymbol=y.aliasSymbol,J.aliasTypeArguments=y.aliasTypeArguments),ri(y)&4)){J.aliasSymbol=y.symbol;const Q=ys(y);J.aliasTypeArguments=Le(Q)?Q:void 0}return J.objectFlags|=ri(y)&4096,J.symbol&&J.symbol.flags&32&&y===Qu(J.symbol)&&(J.objectFlags|=16777216),J}return SV(y)?(j0(l,Dt),Dt):y}function OL(n,a){return Fr(n)&&n.expression.kind===108&&p8(a,l=>eu(n,l))}function Xf(n){const a=kd(n,!1,!1);return a.kind===173||a.kind===259||a.kind===215&&!VN(a.parent)}function Z2(n,a){return D.assert(n.length===a.length),n.filter((l,u)=>{const p=a[u],y=br(p)?p:br(p.parent)?p.parent:void 0;return y&&Xf(y)})}function uv(n,a,l){if(n.initializer){const u=Ya(n.name)?wo(n.name,!0,!1):he;return ko(Qoe(n,sR(n,0,u)))}return Ya(n.name)?wo(n.name,a,l):(l&&!xD(n)&&j0(n,we),a?pe:we)}function TD(n,a,l){const u=co();let p,y=131200;Je(n.elements,R=>{const F=R.propertyName||R.name;if(R.dotDotDotToken){p=Cm(ue,we,!1);return}const J=sy(F);if(!ng(J)){y|=512;return}const Q=Sm(J),ge=4|(R.initializer?16777216:0),Ne=ns(ge,Q);Ne.links.type=uv(R,a,l),Ne.links.bindingElement=R,u.set(Ne.escapedName,Ne)});const A=Ps(void 0,u,rt,rt,p?[p]:rt);return A.objectFlags|=y,a&&(A.pattern=n,A.objectFlags|=131072),A}function SD(n,a,l){const u=n.elements,p=rl(u),y=p&&p.kind===205&&p.dotDotDotToken?p:void 0;if(u.length===0||u.length===1&&y)return M>=2?FIe(we):Dt;const A=zt(u,Q=>Fc(Q)?we:uv(Q,a,l)),R=ji(u,Q=>!(Q===y||Fc(Q)||ZL(Q)),u.length-1)+1,F=zt(u,(Q,ge)=>Q===y?4:ge>=R?2:1);let J=zp(A,F);return a&&(J=vIe(J),J.pattern=n,J.objectFlags|=131072),J}function wo(n,a=!1,l=!1){return n.kind===203?TD(n,a,l):SD(n,a,l)}function xl(n,a){return dv(is(n,!0,0),n,a)}function D0(n){const a=nf(n),l=Eet(!1);return l&&a&&a===l}function dv(n,a,l){return n?(n.flags&4096&&D0(a.parent)&&(n=uae(a)),l&&kV(a,n),n.flags&8192&&(ms(a)||!a.type)&&n.symbol!==Ir(a)&&(n=q),sf(n)):(n=Fa(a)&&a.dotDotDotToken?Dt:we,l&&(xD(a)||j0(a,n)),n)}function xD(n){const a=qm(n),l=a.kind===166?a.parent:a;return N4(l)}function Vd(n){const a=iu(n);if(a)return pi(a)}function AD(n){let a=n.valueDeclaration;return a?(ms(a)&&(a=VA(a)),Fa(a)?mV(a.parent):!1):!1}function b(n){const a=zi(n);if(!a.type){const l=w(n);return!a.type&&!AD(n)&&(a.type=l),l}return a.type}function w(n){if(n.flags&4194304)return k0(n);if(n===Et)return we;if(n.flags&134217728&&n.valueDeclaration){const u=Ir(er(n.valueDeclaration)),p=ns(u.flags,"exports");p.declarations=u.declarations?u.declarations.slice():[],p.parent=n,p.links.target=u,u.valueDeclaration&&(p.valueDeclaration=u.valueDeclaration),u.members&&(p.members=new Map(u.members)),u.exports&&(p.exports=new Map(u.exports));const y=co();return y.set("exports",p),Ps(n,y,rt,rt,rt)}D.assertIsDefined(n.valueDeclaration);const a=n.valueDeclaration;if(Ji(a)&&T_(a))return a.statements.length?sf(o1(ha(a.statements[0].expression))):fa;if(ab(a))return Gr(n);if(!Kf(n,0))return n.flags&512&&!(n.flags&67108864)?Lf(n):PL(n);let l;if(a.kind===274)l=dv(Vd(a)||nc(a.expression),a);else if(br(a)||fr(a)&&(io(a)||(Fr(a)||q3(a))&&br(a.parent)))l=jE(n);else if(Fr(a)||fl(a)||je(a)||As(a)||L_(a)||Bc(a)||xc(a)||uc(a)&&!q_(a)||Ph(a)||Ji(a)){if(n.flags&9136)return Lf(n);l=br(a.parent)?jE(n):Vd(a)||we}else if($c(a))l=Vd(a)||cRe(a);else if(fm(a))l=Vd(a)||Xwe(a);else if(u_(a))l=Vd(a)||oI(a.name,0);else if(q_(a))l=Vd(a)||uRe(a,0);else if(Fa(a)||ro(a)||Bf(a)||Xi(a)||ms(a)||l3(a))l=xl(a,!0);else if(yb(a))l=Lf(n);else if(Q1(a))l=ry(n);else return D.fail("Unhandled declaration kind! "+D.formatSyntaxKind(a.kind)+" for "+D.formatSymbol(n));return __()?l:n.flags&512&&!(n.flags&67108864)?Lf(n):PL(n)}function B(n){if(n)switch(n.kind){case 174:return Cp(n);case 175:return f_e(n);case 169:return D.assert(Jm(n)),iu(n)}}function se(n){const a=B(n);return a&&pi(a)}function qe(n){const a=Dse(n);return a&&a.symbol}function Kt(n){return Qb(Wp(n))}function Gr(n){const a=zi(n);if(!a.type){if(!Kf(n,0))return Ce;const l=Il(n,174),u=Il(n,175),p=si(Il(n,169),_f);let y=l&&fr(l)&&Di(l)||se(l)||se(u)||se(p)||l&&l.body&&oj(l)||p&&p.initializer&&xl(p,!0);y||(u&&!N4(u)?hm(xe,u,_.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,x(n)):l&&!N4(l)?hm(xe,l,_.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,x(n)):p&&!N4(p)&&hm(xe,p,_.Member_0_implicitly_has_an_1_type,x(n),"any"),y=we),__()||(B(l)?Ke(l,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,x(n)):B(u)||B(p)?Ke(u,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,x(n)):l&&xe&&Ke(l,_._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,x(n)),y=we),a.type=y}return a.type}function na(n){var a;const l=zi(n);if(!l.writeType){if(!Kf(n,8))return Ce;const u=(a=Il(n,175))!=null?a:si(Il(n,169),_f);let p=se(u);__()||(B(u)&&Ke(u,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,x(n)),p=we),l.writeType=p||Gr(n)}return l.writeType}function Qa(n){const a=oi(Qu(n));return a.flags&8650752?a:a.flags&2097152?In(a.types,l=>!!(l.flags&8650752)):void 0}function Lf(n){let a=zi(n);const l=a;if(!a.type){const u=n.valueDeclaration&&rj(n.valueDeclaration,!1);if(u){const p=Goe(n,u);p&&(n=p,a=p.links)}l.type=a.type=ny(n)}return a.type}function ny(n){const a=n.valueDeclaration;if(n.flags&1536&&ok(n))return we;if(a&&(a.kind===223||dl(a)&&a.parent.kind===223))return jE(n);if(n.flags&512&&a&&Ji(a)&&a.commonJsModuleIndicator){const u=Td(n);if(u!==n){if(!Kf(n,0))return Ce;const p=as(n.exports.get("export=")),y=jE(p,p===u?void 0:u);return __()?y:PL(n)}}const l=Af(16,n);if(n.flags&32){const u=Qa(n);return u?Do([l,u]):l}else return W&&n.flags&16777216?uy(l):l}function ry(n){const a=zi(n);return a.type||(a.type=jLe(n))}function iy(n){const a=zi(n);if(!a.type){const l=oc(n),u=n.declarations&&_p(Ed(n),!0),p=Jt(u==null?void 0:u.declarations,y=>Vl(y)?Vd(y):void 0);a.type=u!=null&&u.declarations&&Ej(u.declarations)&&n.declarations.length?ty(u):Ej(n.declarations)?yt:p||(hu(l)&111551?or(l):Ce)}return a.type}function uie(n){const a=zi(n);return a.type||(a.type=$i(or(a.target),a.mapper))}function die(n){const a=zi(n);return a.writeType||(a.writeType=$i(ML(a.target),a.mapper))}function PL(n){const a=n.valueDeclaration;return iu(a)?(Ke(n.valueDeclaration,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,x(n)),Ce):(xe&&(a.kind!==166||a.initializer)&&Ke(n.valueDeclaration,_._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,x(n)),we)}function CD(n){const a=zi(n);return a.type||(D.assertIsDefined(a.deferralParent),D.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?Zr(a.deferralConstituents):Do(a.deferralConstituents)),a.type}function fie(n){const a=zi(n);return!a.writeType&&a.deferralWriteConstituents&&(D.assertIsDefined(a.deferralParent),D.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?Zr(a.deferralWriteConstituents):Do(a.deferralWriteConstituents)),a.writeType}function ML(n){const a=Dl(n);return n.flags&4?a&2?a&65536?fie(n)||CD(n):n.links.writeType||n.links.type:or(n):n.flags&98304?a&1?die(n):na(n):or(n)}function or(n){const a=Dl(n);return a&65536?CD(n):a&1?uie(n):a&262144?UZe(n):a&8192?ert(n):n.flags&7?b(n):n.flags&9136?Lf(n):n.flags&8?ry(n):n.flags&98304?Gr(n):n.flags&2097152?iy(n):Ce}function R0(n){return $E(or(n),!!(n.flags&16777216))}function N0(n,a){return n!==void 0&&a!==void 0&&(ri(n)&4)!==0&&n.target===a}function eA(n){return ri(n)&4?n.target:n}function HE(n,a){return l(n);function l(u){if(ri(u)&7){const p=eA(u);return p===a||kt(Fo(p),l)}else if(u.flags&2097152)return kt(u.types,l);return!1}}function NP(n,a){for(const l of a)n=yy(n,WE(Ir(l)));return n}function FL(n,a){for(;;){if(n=n.parent,n&&br(n)){const l=wl(n);if(l===6||l===3){const u=Ir(n.left);u&&u.parent&&!rr(u.parent.valueDeclaration,p=>n===p)&&(n=u.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 260:case 228:case 261:case 176:case 177:case 170:case 181:case 182:case 320:case 259:case 171:case 215:case 216:case 262:case 348:case 349:case 343:case 341:case 197:case 191:{const u=FL(n,a);if(n.kind===197)return Bn(u,WE(Ir(n.typeParameter)));if(n.kind===191)return ya(u,uke(n));const p=NP(u,Mv(n)),y=a&&(n.kind===260||n.kind===228||n.kind===261||Kp(n))&&Qu(Ir(n)).thisType;return y?Bn(p,y):p}case 344:const l=XN(n);l&&(n=l.valueDeclaration);break;case 323:{const u=FL(n,a);return n.tags?NP(u,Ga(n.tags,p=>kp(p)?p.typeParameters:void 0)):u}}}}function JU(n){var a;const l=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(u=>{if(u.kind===261)return!0;if(u.kind!==257)return!1;const p=u.initializer;return!!p&&(p.kind===215||p.kind===216)});return D.assert(!!l,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),FL(l)}function fv(n){if(!n.declarations)return;let a;for(const l of n.declarations)(l.kind===261||l.kind===260||l.kind===228||Kp(l)||qN(l))&&(a=NP(a,Mv(l)));return a}function MS(n){return ya(JU(n),fv(n))}function OP(n){const a=za(n,1);if(a.length===1){const l=a[0];if(!l.typeParameters&&l.parameters.length===1&&Lu(l)){const u=A4(l.parameters[0]);return xs(u)||Iae(u)===we}}return!1}function O0(n){if(za(n,1).length>0)return!0;if(n.flags&8650752){const a=Zu(n);return!!a&&OP(a)}return!1}function Rn(n){const a=Lg(n.symbol);return a&&am(a)}function Kr(n,a,l){const u=Le(a),p=fr(l);return yn(za(n,1),y=>(p||u>=Am(y.typeParameters))&&u<=Le(y.typeParameters))}function Vr(n,a,l){const u=Kr(n,a,l),p=zt(a,pi);return no(u,y=>kt(y.typeParameters)?OD(y,p,fr(l)):y)}function oi(n){if(!n.resolvedBaseConstructorType){const a=Lg(n.symbol),l=a&&am(a),u=Rn(n);if(!u)return n.resolvedBaseConstructorType=He;if(!Kf(n,1))return Ce;const p=ha(u.expression);if(l&&u!==l&&(D.assert(!l.typeArguments),ha(l.expression)),p.flags&2621440&&gp(p),!__())return Ke(n.symbol.valueDeclaration,_._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,x(n.symbol)),n.resolvedBaseConstructorType=Ce;if(!(p.flags&1)&&p!==Er&&!O0(p)){const y=Ke(u.expression,_.Type_0_is_not_a_constructor_function_type,ke(p));if(p.flags&262144){const A=VL(p);let R=he;if(A){const F=za(A,1);F[0]&&(R=vs(F[0]))}p.symbol.declarations&&Yo(y,Nr(p.symbol.declarations[0],_.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,x(p.symbol),ke(R)))}return n.resolvedBaseConstructorType=Ce}n.resolvedBaseConstructorType=p}return n.resolvedBaseConstructorType}function qi(n){let a=rt;if(n.symbol.declarations)for(const l of n.symbol.declarations){const u=_C(l);if(u)for(const p of u){const y=pi(p);rs(y)||(a===rt?a=[y]:a.push(y))}}return a}function xo(n,a){Ke(n,_.Type_0_recursively_references_itself_as_a_base_type,ke(a,void 0,2))}function Fo(n){if(!n.baseTypesResolved){if(Kf(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[If(n)]:n.symbol.flags&96?(n.symbol.flags&32&&mp(n),n.symbol.flags&64&&tg(n)):D.fail("type must be class or interface"),!__()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===260||a.kind===261)&&xo(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function If(n){const a=no(n.typeParameters,(l,u)=>n.elementFlags[u]&8?jd(l,mt):l);return Ou(Zr(a||rt),n.readonly)}function mp(n){n.resolvedBaseTypes=C7;const a=ed(oi(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=rt;const l=Rn(n);let u;const p=a.symbol?js(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&eg(p))u=bIe(l,a.symbol);else if(a.flags&1)u=a;else{const A=Vr(a,l.typeArguments,l);if(!A.length)return Ke(l.expression,_.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=rt;u=vs(A[0])}if(rs(u))return n.resolvedBaseTypes=rt;const y=yp(u);if(!ph(y)){const A=Iie(void 0,u),R=Ra(A,_.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ke(y));return Zo.add(Eg(er(l.expression),l.expression,R)),n.resolvedBaseTypes=rt}return n===y||HE(y,n)?(Ke(n.symbol.valueDeclaration,_.Type_0_recursively_references_itself_as_a_base_type,ke(n,void 0,2)),n.resolvedBaseTypes=rt):(n.resolvedBaseTypes===C7&&(n.members=void 0),n.resolvedBaseTypes=[y])}function eg(n){const a=n.outerTypeParameters;if(a){const l=a.length-1,u=ys(n);return a[l].symbol!==u[l].symbol}return!0}function ph(n){if(n.flags&262144){const a=Zu(n);if(a)return ph(a)}return!!(n.flags&67633153&&!$f(n)||n.flags&2097152&&Zn(n.types,ph))}function tg(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||rt,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===261&&mk(a))for(const l of mk(a)){const u=yp(pi(l));rs(u)||(ph(u)?n!==u&&!HE(u,n)?n.resolvedBaseTypes===rt?n.resolvedBaseTypes=[u]:n.resolvedBaseTypes.push(u):xo(a,n):Ke(l,_.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function BL(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===261){if(a.flags&128)return!1;const l=mk(a);if(l){for(const u of l)if(Xl(u.expression)){const p=Ml(u.expression,788968,!0);if(!p||!(p.flags&64)||Qu(p).thisType)return!1}}}return!0}function Qu(n){let a=zi(n);const l=a;if(!a.declaredType){const u=n.flags&32?1:2,p=Goe(n,n.valueDeclaration&&Yat(n.valueDeclaration));p&&(n=p,a=p.links);const y=l.declaredType=a.declaredType=Af(u,n),A=JU(n),R=fv(n);(A||R||u===1||!BL(n))&&(y.objectFlags|=4,y.typeParameters=ya(A,R),y.outerTypeParameters=A,y.localTypeParameters=R,y.instantiations=new Map,y.instantiations.set(m_(y.typeParameters),y),y.target=y,y.resolvedTypeArguments=y.typeParameters,y.thisType=Gd(n),y.thisType.isThisType=!0,y.thisType.constraint=y)}return a.declaredType}function Xb(n){var a;const l=zi(n);if(!l.declaredType){if(!Kf(n,2))return Ce;const u=D.checkDefined((a=n.declarations)==null?void 0:a.find(qN),"Type alias symbol with no valid declaration found"),p=S_(u)?u.typeExpression:u.type;let y=p?pi(p):Ce;if(__()){const A=fv(n);A&&(l.typeParameters=A,l.instantiations=new Map,l.instantiations.set(m_(A),y))}else y=Ce,u.kind===343?Ke(u.typeExpression.type,_.Type_alias_0_circularly_references_itself,x(n)):Ke(Su(u)&&u.name||u,_.Type_alias_0_circularly_references_itself,x(n));l.declaredType=y}return l.declaredType}function LD(n){return n.flags&1056&&n.symbol.flags&8?js(Sd(n.symbol)):n}function ULe(n){const a=zi(n);if(!a.declaredType){const l=[];if(n.declarations){for(const p of n.declarations)if(p.kind===263){for(const y of p.members)if(tA(y)){const A=Ir(y),R=Lj(y),F=dA(R!==void 0?Ptt(R,Eo(n),A):VLe(A));zi(A).declaredType=F,l.push(xd(F))}}}const u=l.length?Zr(l,1,n,void 0):VLe(n);u.flags&1048576&&(u.flags|=1024,u.symbol=n),a.declaredType=u}return a.declaredType}function VLe(n){const a=Em(32,n),l=Em(32,n);return a.regularType=a,a.freshType=l,l.regularType=a,l.freshType=l,a}function jLe(n){const a=zi(n);if(!a.declaredType){const l=ULe(Sd(n));a.declaredType||(a.declaredType=l)}return a.declaredType}function WE(n){const a=zi(n);return a.declaredType||(a.declaredType=Gd(n))}function yZe(n){const a=zi(n);return a.declaredType||(a.declaredType=js(oc(n)))}function js(n){return HLe(n)||Ce}function HLe(n){if(n.flags&96)return Qu(n);if(n.flags&524288)return Xb(n);if(n.flags&262144)return WE(n);if(n.flags&384)return ULe(n);if(n.flags&8)return jLe(n);if(n.flags&2097152)return yZe(n)}function PP(n){switch(n.kind){case 131:case 157:case 152:case 148:case 160:case 134:case 153:case 149:case 114:case 155:case 144:case 198:return!0;case 185:return PP(n.elementType);case 180:return!n.typeArguments||n.typeArguments.every(PP)}return!1}function vZe(n){const a=jA(n);return!a||PP(a)}function WLe(n){const a=iu(n);return a?PP(a):!Uv(n)}function bZe(n){const a=Cp(n),l=Mv(n);return(n.kind===173||!!a&&PP(a))&&n.parameters.every(WLe)&&l.every(vZe)}function EZe(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 169:case 168:return WLe(a);case 171:case 170:case 173:case 174:case 175:return bZe(a)}}return!1}function zLe(n,a,l){const u=co();for(const p of n)u.set(p.escapedName,l&&EZe(p)?p:fae(p,a));return u}function qLe(n,a){for(const l of a)!n.has(l.escapedName)&&!JLe(l)&&n.set(l.escapedName,l)}function JLe(n){return!!n.valueDeclaration&&ad(n.valueDeclaration)&&Ja(n.valueDeclaration)}function _ie(n){if(!n.declaredProperties){const a=n.symbol,l=_v(a);n.declaredProperties=iv(l),n.declaredCallSignatures=rt,n.declaredConstructSignatures=rt,n.declaredIndexInfos=rt,n.declaredCallSignatures=$b(l.get("__call")),n.declaredConstructSignatures=$b(l.get("__new")),n.declaredIndexInfos=hIe(a)}return n}function ng(n){return!!(n.flags&8576)}function pie(n){if(!Cs(n)&&!fl(n))return!1;const a=Cs(n)?n.expression:n.argumentExpression;return Xl(a)&&ng(Cs(n)?fy(n):nc(a))}function ID(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function MP(n){const a=Ia(n);return!!a&&pie(a)}function tA(n){return!Hv(n)||MP(n)}function TZe(n){return Z3(n)&&!pie(n)}function Sm(n){return n.flags&8192?n.escapedName:n.flags&384?ul(""+n.value):D.fail()}function SZe(n,a,l){D.assert(!!(Dl(n)&4096),"Expected a late-bound symbol."),n.flags|=l,zi(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],l&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function KLe(n,a,l,u){D.assert(!!u.symbol,"The member is expected to have a symbol.");const p=Jr(u);if(!p.resolvedSymbol){p.resolvedSymbol=u.symbol;const y=br(u)?u.left:u.name,A=fl(y)?nc(y.argumentExpression):fy(y);if(ng(A)){const R=Sm(A),F=u.symbol.flags;let J=l.get(R);J||l.set(R,J=ns(0,R,4096));const Q=a&&a.get(R);if(J.flags&Ac(F)||Q){const ge=Q?ya(Q.declarations,J.declarations):J.declarations,Ne=!(A.flags&8192)&&ra(R)||Rs(y);Je(ge,De=>Ke(Ia(De)||De,_.Property_0_was_also_declared_here,Ne)),Ke(y||u,_.Duplicate_property_0,Ne),J=ns(0,R,4096)}return J.links.nameType=A,SZe(J,u,F),J.parent?D.assert(J.parent===n,"Existing symbol parent should match new one"):J.parent=n,p.resolvedSymbol=J}}return p.resolvedSymbol}function mie(n,a){const l=zi(n);if(!l[a]){const u=a==="resolvedExports",p=u?n.flags&1536?z2(n).exports:n.exports:n.members;l[a]=p||ne;const y=co();for(const R of n.declarations||rt){const F=Cfe(R);if(F)for(const J of F)u===Sc(J)&&MP(J)&&KLe(n,p,y,J)}const A=n.assignmentDeclarationMembers;if(A){const R=No(A.values());for(const F of R){const J=wl(F),Q=J===3||br(F)&&VV(F,J)||J===9||J===6;u===!Q&&MP(F)&&KLe(n,p,y,F)}}l[a]=Hg(p,y)||ne}return l[a]}function _v(n){return n.flags&6256?mie(n,"resolvedMembers"):n.members||ne}function KU(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=zi(n);if(!a.lateSymbol&&kt(n.declarations,MP)){const l=as(n.parent);kt(n.declarations,Sc)?xf(l):_v(l)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Yf(n,a,l){if(ri(n)&4){const u=n.target,p=ys(n);if(Le(u.typeParameters)===Le(p)){const y=oy(u,ya(p,[a||u.thisType]));return l?ed(y):y}}else if(n.flags&2097152){const u=no(n.types,p=>Yf(p,a,l));return u!==n.types?Do(u):n}return l?ed(n):n}function XLe(n,a,l,u){let p,y,A,R,F;gH(l,u,0,l.length)?(y=a.symbol?_v(a.symbol):co(a.declaredProperties),A=a.declaredCallSignatures,R=a.declaredConstructSignatures,F=a.declaredIndexInfos):(p=Ad(l,u),y=zLe(a.declaredProperties,p,l.length===1),A=dV(a.declaredCallSignatures,p),R=dV(a.declaredConstructSignatures,p),F=hke(a.declaredIndexInfos,p));const J=Fo(a);if(J.length){a.symbol&&y===_v(a.symbol)&&(y=co(a.declaredProperties)),Jf(n,y,A,R,F);const Q=rl(u);for(const ge of J){const Ne=Q?Yf($i(ge,p),Q):ge;qLe(y,gs(Ne)),A=ya(A,za(Ne,0)),R=ya(R,za(Ne,1));const De=Ne!==we?Nu(Ne):[Cm(ue,we,!1)];F=ya(F,yn(De,_t=>!kie(F,_t.keyType)))}}Jf(n,y,A,R,F)}function xZe(n){XLe(n,_ie(n),rt,rt)}function AZe(n){const a=_ie(n.target),l=ya(a.typeParameters,[a.thisType]),u=ys(n),p=u.length===l.length?u:ya(u,[n]);XLe(n,a,l,p)}function mh(n,a,l,u,p,y,A,R){const F=new h(at,R);return F.declaration=n,F.typeParameters=a,F.parameters=u,F.thisParameter=l,F.resolvedReturnType=p,F.resolvedTypePredicate=y,F.minArgumentCount=A,F.resolvedMinArgumentCount=void 0,F.target=void 0,F.mapper=void 0,F.compositeSignatures=void 0,F.compositeKind=void 0,F}function kD(n){const a=mh(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&39);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function YLe(n,a){const l=kD(n);return l.compositeSignatures=a,l.compositeKind=1048576,l.target=void 0,l.mapper=void 0,l}function CZe(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const l=a===8?"inner":"outer";return n.optionalCallSignatureCache[l]||(n.optionalCallSignatureCache[l]=LZe(n,a))}function LZe(n,a){D.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const l=kD(n);return l.flags|=a,l}function $Le(n,a){if(Lu(n)){const u=n.parameters.length-1,p=or(n.parameters[u]);if(Bo(p))return[l(p,u)];if(!a&&p.flags&1048576&&Zn(p.types,Bo))return zt(p.types,y=>l(y,u))}return[n.parameters];function l(u,p){const y=ys(u),A=u.target.labeledElementDeclarations,R=zt(y,(F,J)=>{const ge=!!A&&aj(A[J])||iI(n,p+J,u),Ne=u.target.elementFlags[J],De=Ne&12?32768:Ne&2?16384:0,_t=ns(1,ge,De);return _t.links.type=Ne&4?Ou(F):F,_t});return ya(n.parameters.slice(0,p),R)}}function IZe(n){const a=oi(n),l=za(a,1),u=Lg(n.symbol),p=!!u&&$r(u,256);if(l.length===0)return[mh(void 0,n.localTypeParameters,void 0,rt,n,void 0,0,p?4:0)];const y=Rn(n),A=fr(y),R=WP(y),F=Le(R),J=[];for(const Q of l){const ge=Am(Q.typeParameters),Ne=Le(Q.typeParameters);if(A||F>=ge&&F<=Ne){const De=Ne?XU(Q,gv(R,Q.typeParameters,ge,A)):kD(Q);De.typeParameters=n.localTypeParameters,De.resolvedReturnType=n,De.flags=p?De.flags|4:De.flags&-5,J.push(De)}}return J}function hie(n,a,l,u,p){for(const y of n)if(i4(y,a,l,u,p,l?tnt:VD))return y}function kZe(n,a,l){if(a.typeParameters){if(l>0)return;for(let p=1;p<n.length;p++)if(!hie(n[p],a,!1,!1,!1))return;return[a]}let u;for(let p=0;p<n.length;p++){const y=p===l?a:hie(n[p],a,!0,!1,!0);if(!y)return;u=yy(u,y)}return u}function gie(n){let a,l;for(let u=0;u<n.length;u++){if(n[u].length===0)return rt;n[u].length>1&&(l=l===void 0?u:-1);for(const p of n[u])if(!a||!hie(a,p,!1,!1,!0)){const y=kZe(n,p,u);if(y){let A=p;if(y.length>1){let R=p.thisParameter;const F=Je(y,J=>J.thisParameter);if(F){const J=Do(pa(y,Q=>Q.thisParameter&&or(Q.thisParameter)));R=QE(F,J)}A=YLe(p,y),A.thisParameter=R}(a||(a=[])).push(A)}}}if(!Le(a)&&l!==-1){const u=n[l!==void 0?l:0];let p=u.slice();for(const y of n)if(y!==u){const A=y[0];if(D.assert(!!A,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),p=A.typeParameters&&kt(p,R=>!!R.typeParameters&&!QLe(A.typeParameters,R.typeParameters))?void 0:zt(p,R=>RZe(R,A)),!p)break}a=p}return a||rt}function QLe(n,a){if(Le(n)!==Le(a))return!1;if(!n||!a)return!0;const l=Ad(a,n);for(let u=0;u<n.length;u++){const p=n[u],y=a[u];if(p!==y&&!ig(VL(p)||he,$i(VL(y)||he,l)))return!1}return!0}function wZe(n,a,l){if(!n||!a)return n||a;const u=Do([or(n),$i(or(a),l)]);return QE(n,u)}function DZe(n,a,l){const u=lf(n),p=lf(a),y=u>=p?n:a,A=y===n?a:n,R=y===n?u:p,F=Dm(n)||Dm(a),J=F&&!Dm(y),Q=new Array(R+(J?1:0));for(let ge=0;ge<R;ge++){let Ne=aT(y,ge);y===a&&(Ne=$i(Ne,l));let De=aT(A,ge)||he;A===a&&(De=$i(De,l));const _t=Do([Ne,De]),Bt=F&&!J&&ge===R-1,Fn=ge>=wm(y)&&ge>=wm(A),An=ge>=u?void 0:iI(n,ge),Xn=ge>=p?void 0:iI(a,ge),hn=An===Xn?An:An?Xn?void 0:An:Xn,xn=ns(1|(Fn&&!Bt?16777216:0),hn||`arg${ge}`);xn.links.type=Bt?Ou(_t):_t,Q[ge]=xn}if(J){const ge=ns(1,"args");ge.links.type=Ou(bp(A,R)),A===a&&(ge.links.type=$i(ge.links.type,l)),Q[R]=ge}return Q}function RZe(n,a){const l=n.typeParameters||a.typeParameters;let u;n.typeParameters&&a.typeParameters&&(u=Ad(a.typeParameters,n.typeParameters));const p=n.declaration,y=DZe(n,a,u),A=wZe(n.thisParameter,a.thisParameter,u),R=Math.max(n.minArgumentCount,a.minArgumentCount),F=mh(p,l,A,y,void 0,void 0,R,(n.flags|a.flags)&39);return F.compositeKind=1048576,F.compositeSignatures=ya(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),u&&(F.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?U0(n.mapper,u):u),F}function ZLe(n){const a=Nu(n[0]);if(a){const l=[];for(const u of a){const p=u.keyType;Zn(n,y=>!!hh(y,p))&&l.push(Cm(p,Zr(zt(n,y=>ay(y,p))),kt(n,y=>hh(y,p).isReadonly)))}return l}return rt}function NZe(n){const a=gie(zt(n.types,p=>p===pl?[nn]:za(p,0))),l=gie(zt(n.types,p=>za(p,1))),u=ZLe(n.types);Jf(n,ne,a,l,u)}function FP(n,a){return n?a?Do([n,a]):n:a}function eIe(n){const a=Wc(n,u=>za(u,1).length>0),l=zt(n,OP);if(a>0&&a===Wc(l,u=>u)){const u=l.indexOf(!0);l[u]=!1}return l}function OZe(n,a,l,u){const p=[];for(let y=0;y<a.length;y++)y===u?p.push(n):l[y]&&p.push(vs(za(a[y],1)[0]));return Do(p)}function PZe(n){let a,l,u;const p=n.types,y=eIe(p),A=Wc(y,R=>R);for(let R=0;R<p.length;R++){const F=n.types[R];if(!y[R]){let J=za(F,1);J.length&&A>0&&(J=zt(J,Q=>{const ge=kD(Q);return ge.resolvedReturnType=OZe(vs(Q),p,y,R),ge})),l=tIe(l,J)}a=tIe(a,za(F,0)),u=Gu(Nu(F),(J,Q)=>nIe(J,Q,!1),u)}Jf(n,ne,a||rt,l||rt,u||rt)}function tIe(n,a){for(const l of a)(!n||Zn(n,u=>!i4(u,l,!1,!1,!1,VD)))&&(n=Bn(n,l));return n}function nIe(n,a,l){if(n)for(let u=0;u<n.length;u++){const p=n[u];if(p.keyType===a.keyType)return n[u]=Cm(p.keyType,l?Zr([p.type,a.type]):Do([p.type,a.type]),l?p.isReadonly||a.isReadonly:p.isReadonly&&a.isReadonly),n}return Bn(n,a)}function MZe(n){if(n.target){Jf(n,ne,rt,rt,rt);const A=zLe(mv(n.target),n.mapper,!1),R=dV(za(n.target,0),n.mapper),F=dV(za(n.target,1),n.mapper),J=hke(Nu(n.target),n.mapper);Jf(n,A,R,F,J);return}const a=as(n.symbol);if(a.flags&2048){Jf(n,ne,rt,rt,rt);const A=_v(a),R=$b(A.get("__call")),F=$b(A.get("__new")),J=hIe(a);Jf(n,A,R,F,J);return}let l=ne,u;if(a.exports&&(l=xf(a),a===st)){const A=new Map;l.forEach(R=>{var F;!(R.flags&418)&&!(R.flags&512&&((F=R.declarations)!=null&&F.length)&&Zn(R.declarations,ju))&&A.set(R.escapedName,R)}),l=A}let p;if(Jf(n,l,rt,rt,rt),a.flags&32){const A=Qu(a),R=oi(A);R.flags&11272192?(l=co(J2(l)),qLe(l,gs(R))):R===we&&(p=Cm(ue,we,!1))}const y=Bie(l);if(y?u=Gie(y):(p&&(u=Bn(u,p)),a.flags&384&&(js(a).flags&32||kt(n.properties,A=>!!(or(A).flags&296)))&&(u=Bn(u,$u))),Jf(n,l,rt,rt,u||rt),a.flags&8208&&(n.callSignatures=$b(a)),a.flags&32){const A=Qu(a);let R=a.members?$b(a.members.get("__constructor")):rt;a.flags&16&&(R=Ai(R.slice(),pa(n.callSignatures,F=>Kp(F.declaration)?mh(F.declaration,F.typeParameters,F.thisParameter,F.parameters,A,void 0,F.minArgumentCount,F.flags&39):void 0))),R.length||(R=IZe(A)),n.constructSignatures=R}}function FZe(n,a,l){return $i(n,Ad([a.indexType,a.objectType],[qp(0),zp([l])]))}function BZe(n){const a=hh(n.source,ue),l=xm(n.mappedType),u=!(l&1),p=l&4?0:16777216,y=a?[Cm(ue,DV(a.type,n.mappedType,n.constraintType),u&&a.isReadonly)]:rt,A=co();for(const R of gs(n.source)){const F=8192|(u&&Ep(R)?8:0),J=ns(4|R.flags&p,R.escapedName,F);if(J.declarations=R.declarations,J.links.nameType=zi(R).nameType,J.links.propertyType=or(R),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const Q=n.constraintType.type.objectType,ge=FZe(n.mappedType,n.constraintType.type,Q);J.links.mappedType=ge,J.links.constraintType=Lm(Q)}else J.links.mappedType=n.mappedType,J.links.constraintType=n.constraintType;A.set(R.escapedName,J)}Jf(n,A,rt,rt,y)}function BP(n){if(n.flags&4194304){const a=ed(n.type);return _A(a)?jIe(a):Lm(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,l=BP(a);if(l!==a)return hae(n,GS(n.root.checkType,l,n.mapper))}return n}if(n.flags&1048576)return Zs(n,BP,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===jl?n:Do(no(n.types,BP))}return n}function yie(n){return Dl(n)&4096}function vie(n,a,l,u){for(const p of gs(n))u(HL(p,a));if(n.flags&1)u(ue);else for(const p of Nu(n))(!l||p.keyType.flags&134217732)&&u(p.keyType)}function GZe(n){const a=co();let l;Jf(n,ne,rt,rt,rt);const u=hp(n),p=Hp(n),y=pv(n.target||n),A=y&&Ao(y,u),R=rg(n.target||n),F=ed(GL(n)),J=xm(n),Q=Ve?128:8576;wD(n)?vie(F,Q,Ve,ge):nT(BP(p),ge),Jf(n,a,rt,rt,l||rt);function ge(De){const _t=y?$i(y,UD(n.mapper,u,De)):De;nT(_t,Bt=>Ne(De,Bt))}function Ne(De,_t){if(ng(_t)){const Bt=Sm(_t),Fn=a.get(Bt);if(Fn)Fn.links.nameType=Zr([Fn.links.nameType,_t]),Fn.links.keyType=Zr([Fn.links.keyType,De]);else{const An=ng(De)?fo(F,Sm(De)):void 0,Xn=!!(J&4||!(J&8)&&An&&An.flags&16777216),hn=!!(J&1||!(J&2)&&An&&Ep(An)),xn=W&&!Xn&&An&&An.flags&16777216,yr=An?yie(An):0,sn=ns(4|(Xn?16777216:0),Bt,yr|262144|(hn?8:0)|(xn?524288:0));sn.links.mappedType=n,sn.links.nameType=_t,sn.links.keyType=De,An&&(sn.links.syntheticOrigin=An,sn.declarations=!y||A?An.declarations:void 0),a.set(Bt,sn)}}else if(YU(_t)||_t.flags&33){const Bt=_t.flags&5?ue:_t.flags&40?mt:_t,Fn=$i(R,UD(n.mapper,u,De)),An=Cm(Bt,Fn,!!(J&1));l=nIe(l,An,!0)}}}function UZe(n){if(!n.links.type){const a=n.links.mappedType;if(!Kf(n,0))return a.containsError=!0,Ce;const l=rg(a.target||a),u=UD(a.mapper,hp(a),n.links.keyType),p=$i(l,u);let y=W&&n.flags&16777216&&!gl(p,49152)?uy(p,!0):n.links.checkFlags&524288?Oae(p):p;__()||(Ke(G,_.Type_of_property_0_circularly_references_itself_in_mapped_type_1,x(n),ke(a)),y=Ce),n.links.type=y}return n.links.type}function hp(n){return n.typeParameter||(n.typeParameter=WE(Ir(n.declaration.typeParameter)))}function Hp(n){return n.constraintType||(n.constraintType=Ru(hp(n))||Ce)}function pv(n){return n.declaration.nameType?n.nameType||(n.nameType=$i(pi(n.declaration.nameType),n.mapper)):void 0}function rg(n){return n.templateType||(n.templateType=n.declaration.type?$i(ko(pi(n.declaration.type),!0,!!(xm(n)&4)),n.mapper):Ce)}function rIe(n){return jA(n.declaration.typeParameter)}function wD(n){const a=rIe(n);return a.kind===195&&a.operator===141}function GL(n){if(!n.modifiersType)if(wD(n))n.modifiersType=$i(pi(rIe(n).type),n.mapper);else{const a=aae(n.declaration),l=Hp(a),u=l&&l.flags&262144?Ru(l):l;n.modifiersType=u&&u.flags&4194304?$i(u.type,n.mapper):he}return n.modifiersType}function xm(n){const a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===40?2:1:0)|(a.questionToken?a.questionToken.kind===40?8:4:0)}function iIe(n){const a=xm(n);return a&8?-1:a&4?1:0}function bie(n){const a=iIe(n),l=GL(n);return a||($f(l)?iIe(l):0)}function VZe(n){return!!(ri(n)&32&&xm(n)&4)}function $f(n){if(ri(n)&32){const a=Hp(n);if(M0(a))return!0;const l=pv(n);if(l&&M0($i(l,i1(hp(n),a))))return!0}return!1}function gp(n){return n.members||(n.flags&524288?n.objectFlags&4?AZe(n):n.objectFlags&3?xZe(n):n.objectFlags&1024?BZe(n):n.objectFlags&16?MZe(n):n.objectFlags&32?GZe(n):D.fail("Unhandled object type "+D.formatObjectFlags(n.objectFlags)):n.flags&1048576?NZe(n):n.flags&2097152?PZe(n):D.fail("Unhandled type "+D.formatTypeFlags(n.flags))),n}function mv(n){return n.flags&524288?gp(n).properties:rt}function Yb(n,a){if(n.flags&524288){const u=gp(n).members.get(a);if(u&&$g(u))return u}}function GP(n){if(!n.resolvedProperties){const a=co();for(const l of n.types){for(const u of gs(l))if(!a.has(u.escapedName)){const p=Lie(n,u.escapedName);p&&a.set(u.escapedName,p)}if(n.flags&1048576&&Nu(l).length===0)break}n.resolvedProperties=iv(a)}return n.resolvedProperties}function gs(n){return n=UL(n),n.flags&3145728?GP(n):mv(n)}function jZe(n,a){n=UL(n),n.flags&3670016&&gp(n).members.forEach((l,u)=>{Qg(l,u)&&a(l,u)})}function HZe(n,a){return a.properties.some(u=>{const p=u.name&&sy(u.name),y=p&&ng(p)?Sm(p):void 0,A=y===void 0?void 0:vc(n,y);return!!A&&WD(A)&&!Ao(WS(u),A)})}function WZe(n){const a=Zr(n);if(!(a.flags&1048576))return Sse(a);const l=co();for(const u of n)for(const{escapedName:p}of Sse(u))if(!l.has(p)){const y=lIe(a,p);y&&l.set(p,y)}return No(l.values())}function zE(n){return n.flags&262144?Ru(n):n.flags&8388608?zZe(n):n.flags&16777216?JZe(n):Zu(n)}function Ru(n){return DD(n)?VL(n):void 0}function UP(n){var a;return!!(n.flags&262144&&kt((a=n.symbol)==null?void 0:a.declarations,l=>$r(l,2048))||_A(n)&&mi(ys(n),(l,u)=>!!(n.target.elementFlags[u]&8)&&UP(l))>=0||n.flags&8388608&&UP(n.objectType))}function zZe(n){return DD(n)?qZe(n):void 0}function Eie(n){const a=ly(n,!1);return a!==n?a:zE(n)}function qZe(n){if(Aie(n))return aV(n.objectType,n.indexType);const a=Eie(n.indexType);if(a&&a!==n.indexType){const u=vv(n.objectType,a,n.accessFlags);if(u)return u}const l=Eie(n.objectType);if(l&&l!==n.objectType)return vv(l,n.indexType,n.accessFlags)}function Tie(n){if(!n.resolvedDefaultConstraint){const a=ktt(n),l=B0(n);n.resolvedDefaultConstraint=xs(a)?l:xs(l)?a:Zr([a,l])}return n.resolvedDefaultConstraint}function aIe(n){if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=ly(n.checkType,!1),l=a===n.checkType?zE(a):a;if(l&&l!==n.checkType){const u=hae(n,GS(n.root.checkType,l,n.mapper));if(!(u.flags&131072))return u}}}function oIe(n){return aIe(n)||Tie(n)}function JZe(n){return DD(n)?oIe(n):void 0}function KZe(n,a){let l,u=!1;for(const p of n)if(p.flags&465829888){let y=zE(p);for(;y&&y.flags&21233664;)y=zE(y);y&&(l=Bn(l,y),a&&(l=Bn(l,p)))}else(p.flags&469892092||og(p))&&(u=!0);if(l&&(a||u)){if(u)for(const p of n)(p.flags&469892092||og(p))&&(l=Bn(l,p));return e4(Do(l),!1)}}function Zu(n){if(n.flags&464781312){const a=Sie(n);return a!==$o&&a!==Wl?a:void 0}return n.flags&4194304?Hi:void 0}function hv(n){return Zu(n)||n}function DD(n){return Sie(n)!==Wl}function Sie(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=Yf(l(n),n);function l(y){if(!y.immediateBaseConstraint){if(!Kf(y,4))return Wl;let A;const R=qL(y);if((a.length<10||a.length<50&&!Ur(a,R))&&(a.push(R),A=p(ly(y,!1)),a.pop()),!__()){if(y.flags&262144){const F=Uie(y);if(F){const J=Ke(F,_.Type_parameter_0_has_a_circular_constraint,ke(y));G&&!DT(F,G)&&!DT(G,F)&&Yo(J,Nr(G,_.Circularity_originates_in_type_at_this_location))}}A=Wl}y.immediateBaseConstraint=A||$o}return y.immediateBaseConstraint}function u(y){const A=l(y);return A!==$o&&A!==Wl?A:void 0}function p(y){if(y.flags&262144){const A=VL(y);return y.isThisType||!A?A:u(A)}if(y.flags&3145728){const A=y.types,R=[];let F=!1;for(const J of A){const Q=u(J);Q?(Q!==J&&(F=!0),R.push(Q)):F=!0}return F?y.flags&1048576&&R.length===A.length?Zr(R):y.flags&2097152&&R.length?Do(R):void 0:y}if(y.flags&4194304)return Hi;if(y.flags&134217728){const A=y.types,R=pa(A,u);return R.length===A.length?KE(y.texts,R):ue}if(y.flags&268435456){const A=u(y.type);return A&&A!==y.type?FS(y.symbol,A):ue}if(y.flags&8388608){if(Aie(y))return u(aV(y.objectType,y.indexType));const A=u(y.objectType),R=u(y.indexType),F=A&&R&&vv(A,R,y.accessFlags);return F&&u(F)}if(y.flags&16777216){const A=oIe(y);return A&&u(A)}return y.flags&33554432?u(Hie(y)):y}}function XZe(n){return n.resolvedApparentType||(n.resolvedApparentType=Yf(n,n,!0))}function xie(n){if(n.default)n.default===ou&&(n.default=Wl);else if(n.target){const a=xie(n.target);n.default=a?$i(a,n.mapper):$o}else{n.default=ou;const a=n.symbol&&Je(n.symbol.declarations,u=>Ul(u)&&u.default),l=a?pi(a):$o;n.default===ou&&(n.default=l)}return n.default}function qE(n){const a=xie(n);return a!==$o&&a!==Wl?a:void 0}function YZe(n){return xie(n)!==Wl}function sIe(n){return!!(n.symbol&&Je(n.symbol.declarations,a=>Ul(a)&&a.default))}function $Ze(n){return n.resolvedApparentType||(n.resolvedApparentType=QZe(n))}function QZe(n){const a=_ae(n);if(a&&!n.declaration.nameType){const l=Ru(a);if(l&&YE(l))return $i(n,GS(a,l,n.mapper))}return n}function Aie(n){let a;return!!(n.flags&8388608&&ri(a=n.objectType)&32&&!$f(a)&&M0(n.indexType)&&!(xm(a)&8)&&!a.declaration.nameType)}function ed(n){const a=n.flags&465829888?Zu(n)||he:n;return ri(a)&32?$Ze(a):a.flags&2097152?XZe(a):a.flags&402653316?ml:a.flags&296?Zd:a.flags&2112?Oet():a.flags&528?ql:a.flags&12288?NIe():a.flags&67108864?fa:a.flags&4194304?Hi:a.flags&2&&!W?fa:a}function UL(n){return yp(ed(yp(n)))}function lIe(n,a,l){var u,p,y;let A,R,F;const J=n.flags&1048576;let Q,ge=4,Ne=J?0:8,De=!1;for(const Un of n.types){const Jn=ed(Un);if(!(rs(Jn)||Jn.flags&131072)){const ei=fo(Jn,a,l),ai=ei?s_(ei):0;if(ei){if(ei.flags&106500&&(Q!=null||(Q=J?0:16777216),J?Q|=ei.flags&16777216:Q&=ei.flags),!A)A=ei;else if(ei!==A)if((EA(ei)||ei)===(EA(A)||A)&&Lae(A,ei,(Za,Lc)=>Za===Lc?-1:0)===-1)De=!!A.parent&&!!Le(fv(A.parent));else{R||(R=new Map,R.set(Eo(A),A));const Za=Eo(ei);R.has(Za)||R.set(Za,ei)}J&&Ep(ei)?Ne|=8:!J&&!Ep(ei)&&(Ne&=-9),Ne|=(ai&24?0:256)|(ai&16?512:0)|(ai&8?1024:0)|(ai&32?2048:0),Eoe(ei)||(ge=2)}else if(J){const _a=!ID(a)&&rA(Jn,a);_a?(Ne|=32|(_a.isReadonly?8:0),F=Bn(F,Bo(Jn)?a4(Jn)||He:_a.type)):H0(Jn)&&!(ri(Jn)&2097152)?(Ne|=32,F=Bn(F,He)):Ne|=16}}}if(!A||J&&(R||Ne&48)&&Ne&1536&&!(R&&ZZe(R.values())))return;if(!R&&!(Ne&16)&&!F)if(De){const Un=(u=si(A,Hm))==null?void 0:u.links,Jn=QE(A,Un==null?void 0:Un.type);return Jn.parent=(y=(p=A.valueDeclaration)==null?void 0:p.symbol)==null?void 0:y.parent,Jn.links.containingType=n,Jn.links.mapper=Un==null?void 0:Un.mapper,Jn}else return A;const _t=R?No(R.values()):[A];let Bt,Fn,An;const Xn=[];let hn,xn,yr=!1;for(const Un of _t){xn?Un.valueDeclaration&&Un.valueDeclaration!==xn&&(yr=!0):xn=Un.valueDeclaration,Bt=Ai(Bt,Un.declarations);const Jn=or(Un);Fn||(Fn=Jn,An=zi(Un).nameType);const ei=ML(Un);hn||ei!==Jn?hn=Bn(hn||Xn.slice(),ei):Jn!==Fn&&(Ne|=64),(WD(Jn)||cA(Jn)||Jn===Xr)&&(Ne|=128),Jn.flags&131072&&Jn!==Xr&&(Ne|=131072),Xn.push(Jn)}Ai(Xn,F);const sn=ns(4|(Q!=null?Q:0),a,ge|Ne);return sn.links.containingType=n,!yr&&xn&&(sn.valueDeclaration=xn,xn.symbol.parent&&(sn.parent=xn.symbol.parent)),sn.declarations=Bt,sn.links.nameType=An,Xn.length>2?(sn.links.checkFlags|=65536,sn.links.deferralParent=n,sn.links.deferralConstituents=Xn,sn.links.deferralWriteConstituents=hn):(sn.links.type=J?Zr(Xn):Do(Xn),hn&&(sn.links.writeType=J?Zr(hn):Do(hn))),sn}function Cie(n,a,l){var u,p;let y=(u=n.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&u.get(a)||!l?(p=n.propertyCache)==null?void 0:p.get(a):void 0;return y||(y=lIe(n,a,l),y&&(l?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=co()):n.propertyCache||(n.propertyCache=co())).set(a,y)),y}function ZZe(n){let a;for(const l of n){if(!l.declarations)return;if(!a){a=new Set(l.declarations);continue}if(a.forEach(u=>{Ur(l.declarations,u)||a.delete(u)}),a.size===0)return}return a}function Lie(n,a,l){const u=Cie(n,a,l);return u&&!(Dl(u)&16)?u:void 0}function yp(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=eet(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(kt(GP(n),tet)?33554432:0)),n.objectFlags&33554432?gt:n):n}function eet(n){const a=no(n.types,yp);if(a===n.types)return n;const l=Zr(a);return l.flags&1048576&&(l.resolvedReducedType=l),l}function tet(n){return cIe(n)||uIe(n)}function cIe(n){return!(n.flags&16777216)&&(Dl(n)&131264)===192&&!!(or(n).flags&131072)}function uIe(n){return!n.valueDeclaration&&!!(Dl(n)&1024)}function Iie(n,a){if(a.flags&2097152&&ri(a)&33554432){const l=In(GP(a),cIe);if(l)return Ra(n,_.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ke(a,void 0,536870912),x(l));const u=In(GP(a),uIe);if(u)return Ra(n,_.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ke(a,void 0,536870912),x(u))}return n}function fo(n,a,l,u){if(n=UL(n),n.flags&524288){const p=gp(n),y=p.members.get(a);if(y&&$g(y,u))return y;if(l)return;const A=p===Ca?pl:p.callSignatures.length?yc:p.constructSignatures.length?vd:void 0;if(A){const R=Yb(A,a);if(R)return R}return Yb($a,a)}if(n.flags&3145728)return Lie(n,a,l)}function VP(n,a){if(n.flags&3670016){const l=gp(n);return a===0?l.callSignatures:l.constructSignatures}return rt}function za(n,a){return VP(UL(n),a)}function kie(n,a){return In(n,l=>l.keyType===a)}function wie(n,a){let l,u,p;for(const y of n)y.keyType===ue?l=y:nA(a,y.keyType)&&(u?(p||(p=[u])).push(y):u=y);return p?Cm(he,Do(zt(p,y=>y.type)),Gu(p,(y,A)=>y&&A.isReadonly,!0)):u||(l&&nA(a,ue)?l:void 0)}function nA(n,a){return Ao(n,a)||a===ue&&Ao(n,mt)||a===mt&&(n===oo||!!(n.flags&128)&&Oh(n.value))}function Die(n){return n.flags&3670016?gp(n).indexInfos:rt}function Nu(n){return Die(UL(n))}function hh(n,a){return kie(Nu(n),a)}function ay(n,a){var l;return(l=hh(n,a))==null?void 0:l.type}function Rie(n,a){return Nu(n).filter(l=>nA(a,l.keyType))}function jP(n,a){return wie(Nu(n),a)}function rA(n,a){return jP(n,ID(a)?q:Qf(ra(a)))}function dIe(n){var a;let l;for(const u of Mv(n))l=yy(l,WE(u.symbol));return l!=null&&l.length?l:xc(n)?(a=ND(n))==null?void 0:a.typeParameters:void 0}function Nie(n){const a=[];return n.forEach((l,u)=>{RE(u)||a.push(l)}),a}function Oie(n,a){if(zc(n))return;const l=tf(We,'"'+n+'"',512);return l&&a?as(l):l}function RD(n){if(Ax(n)||wO(n)||DO(n))return!0;if(n.initializer){const l=Wp(n.parent),u=n.parent.parameters.indexOf(n);return D.assert(u>=0),u>=wm(l,3)}const a=LT(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=a.arguments.length:!1}function net(n){return ro(n)&&!Jm(n)&&n.questionToken}function HP(n,a,l,u){return{kind:n,parameterName:a,parameterIndex:l,type:u}}function Am(n){let a=0;if(n)for(let l=0;l<n.length;l++)sIe(n[l])||(a=l+1);return a}function gv(n,a,l,u){const p=Le(a);if(!p)return[];const y=Le(n);if(u||y>=l&&y<=p){const A=n?n.slice():[];for(let F=y;F<p;F++)A[F]=Ce;const R=Xae(u);for(let F=y;F<p;F++){let J=qE(a[F]);u&&J&&(ig(J,he)||ig(J,fa))&&(J=we),A[F]=J?$i(J,Ad(a,A)):R}return A.length=a.length,A}return n&&n.slice()}function Wp(n){const a=Jr(n);if(!a.resolvedSignature){const l=[];let u=0,p=0,y,A=!1;const R=LT(n),F=cC(n);!R&&fr(n)&&Xfe(n)&&!Ede(n)&&!Pv(n)&&(u|=32);for(let Ne=F?1:0;Ne<n.parameters.length;Ne++){const De=n.parameters[Ne];let _t=De.symbol;const Bt=_m(De)?De.typeExpression&&De.typeExpression.type:De.type;_t&&_t.flags&4&&!Ya(De.name)&&(_t=hl(De,_t.escapedName,111551,void 0,void 0,!1)),Ne===0&&_t.escapedName==="this"?(A=!0,y=De.symbol):l.push(_t),Bt&&Bt.kind===198&&(u|=2),wO(De)||De.initializer||De.questionToken||Lh(De)||R&&l.length>R.arguments.length&&!Bt||DO(De)||(p=l.length)}if((n.kind===174||n.kind===175)&&tA(n)&&(!A||!y)){const Ne=n.kind===174?175:174,De=Il(Ir(n),Ne);De&&(y=qe(De))}if(fr(n)){const Ne=r3(n);Ne&&Ne.typeExpression&&(y=QE(ns(1,"this"),pi(Ne.typeExpression)))}const Q=n.kind===173?Qu(as(n.parent.symbol)):void 0,ge=Q?Q.localTypeParameters:dIe(n);(kz(n)||fr(n)&&ret(n,l))&&(u|=1),(Qk(n)&&$r(n,256)||Yl(n)&&$r(n.parent,256))&&(u|=4),a.resolvedSignature=mh(n,ge,y,l,void 0,void 0,p,u)}return a.resolvedSignature}function ret(n,a){if(Z1(n)||!Pie(n))return!1;const l=rl(n.parameters),u=l?qI(l):k1(n).filter(_m),p=Jt(u,A=>A.typeExpression&&v5(A.typeExpression.type)?A.typeExpression.type:void 0),y=ns(3,"args",32768);return p?y.links.type=Ou(pi(p.type)):(y.links.checkFlags|=65536,y.links.deferralParent=gt,y.links.deferralConstituents=[Dt],y.links.deferralWriteConstituents=[Dt]),p&&a.pop(),a.push(y),!0}function ND(n){if(!(fr(n)&&el(n)))return;const a=I1(n);return(a==null?void 0:a.typeExpression)&&HS(pi(a.typeExpression))}function iet(n,a){const l=ND(n);if(!l)return;const u=n.parameters.indexOf(a);return a.dotDotDotToken?rR(l,u):bp(l,u)}function aet(n){const a=ND(n);return a&&vs(a)}function Pie(n){const a=Jr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=l(n.body)),a.containsArgumentsReference;function l(u){if(!u)return!1;switch(u.kind){case 79:return u.escapedText===Ct.escapedName&&H4(u)===Ct;case 169:case 171:case 174:case 175:return u.name.kind===164&&l(u.name);case 208:case 209:return l(u.expression);case 299:return l(u.initializer);default:return!Tq(u)&&!Ih(u)&&!!Pa(u,l)}}}function $b(n){if(!n||!n.declarations)return rt;const a=[];for(let l=0;l<n.declarations.length;l++){const u=n.declarations[l];if(Xa(u)){if(l>0&&u.body){const p=n.declarations[l-1];if(u.parent===p.parent&&u.kind===p.kind&&u.pos===p.end)continue}if(fr(u)&&u.jsDoc){let p=!1;for(const y of u.jsDoc)if(y.tags){for(const A of y.tags)if(cw(A)){const R=A.typeExpression;R.type===void 0&&!Yl(u)&&j0(R,we),a.push(Wp(R)),p=!0}}if(p)continue}a.push(!CC(u)&&!q_(u)&&ND(u)||Wp(u))}}return a}function fIe(n){const a=gu(n,n);if(a){const l=Td(a);if(l)return or(l)}return we}function Qb(n){if(n.thisParameter)return or(n.thisParameter)}function p_(n){if(!n.resolvedTypePredicate){if(n.target){const a=p_(n.target);n.resolvedTypePredicate=a?Wtt(a,n.mapper):nl}else if(n.compositeSignatures)n.resolvedTypePredicate=ntt(n.compositeSignatures,n.compositeKind)||nl;else{const a=n.declaration&&Cp(n.declaration);let l;if(!a){const u=ND(n.declaration);u&&n!==u&&(l=p_(u))}n.resolvedTypePredicate=a&&f5(a)?oet(a,n):l||nl}D.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===nl?void 0:n.resolvedTypePredicate}function oet(n,a){const l=n.parameterName,u=n.type&&pi(n.type);return l.kind===194?HP(n.assertsModifier?2:0,void 0,void 0,u):HP(n.assertsModifier?3:1,l.escapedText,mi(a.parameters,p=>p.escapedName===l.escapedText),u)}function _Ie(n,a,l){return a!==2097152?Zr(n,l):Do(n)}function vs(n){if(!n.resolvedReturnType){if(!Kf(n,3))return Ce;let a=n.target?$i(vs(n.target),n.mapper):n.compositeSignatures?$i(_Ie(zt(n.compositeSignatures,vs),n.compositeKind,2),n.mapper):iA(n.declaration)||(kl(n.declaration.body)?we:oj(n.declaration));if(n.flags&8?a=zke(a):n.flags&16&&(a=uy(a)),!__()){if(n.declaration){const l=Cp(n.declaration);if(l)Ke(l,_.Return_type_annotation_circularly_references_itself);else if(xe){const u=n.declaration,p=Ia(u);p?Ke(p,_._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Rs(p)):Ke(u,_.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=we}n.resolvedReturnType=a}return n.resolvedReturnType}function iA(n){if(n.kind===173)return Qu(as(n.parent.symbol));if(Z1(n)){const l=_k(n);if(l&&Yl(l.parent))return Qu(as(l.parent.parent.symbol))}if(cC(n))return pi(n.parameters[0].type);const a=Cp(n);if(a)return pi(a);if(n.kind===174&&tA(n)){const l=fr(n)&&Di(n);if(l)return l;const u=Il(Ir(n),175),p=se(u);if(p)return p}return aet(n)}function Mie(n){return!n.resolvedReturnType&&_h(n,3)>=0}function set(n){return pIe(n)||we}function pIe(n){if(Lu(n)){const a=or(n.parameters[n.parameters.length-1]),l=Bo(a)?a4(a):a;return l&&ay(l,mt)}}function OD(n,a,l,u){const p=Fie(n,gv(a,n.typeParameters,Am(n.typeParameters),l));if(u){const y=TDe(vs(p));if(y){const A=kD(y);A.typeParameters=u;const R=kD(p);return R.resolvedReturnType=JE(A),R}}return p}function Fie(n,a){const l=n.instantiations||(n.instantiations=new Map),u=m_(a);let p=l.get(u);return p||l.set(u,p=XU(n,a)),p}function XU(n,a){return fA(n,cet(n,a),!0)}function cet(n,a){return Ad(n.typeParameters,a)}function PD(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=uet(n)):n}function uet(n){return fA(n,gke(n.typeParameters),!0)}function det(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=fet(n)):n}function fet(n){return OD(n,zt(n.typeParameters,a=>a.target&&!Ru(a.target)?a.target:a),fr(n.declaration))}function _et(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const l=gke(a),u=Ad(a,zt(a,y=>Ru(y)||he));let p=zt(a,y=>$i(y,u)||he);for(let y=0;y<a.length-1;y++)p=cy(p,u);return p=cy(p,l),n.baseSignatureCache=fA(n,Ad(a,p),!0)}return n}function JE(n){var a;if(!n.isolatedSignatureType){const l=(a=n.declaration)==null?void 0:a.kind,u=l===void 0||l===173||l===177||l===182,p=Af(16);p.members=ne,p.properties=rt,p.callSignatures=u?rt:[n],p.constructSignatures=u?[n]:rt,p.indexInfos=rt,n.isolatedSignatureType=p}return n.isolatedSignatureType}function mIe(n){return n.members?Bie(n.members):void 0}function Bie(n){return n.get("__index")}function Cm(n,a,l,u){return{keyType:n,type:a,isReadonly:l,declaration:u}}function hIe(n){const a=mIe(n);return a?Gie(a):rt}function Gie(n){if(n.declarations){const a=[];for(const l of n.declarations)if(l.parameters.length===1){const u=l.parameters[0];u.type&&nT(pi(u.type),p=>{YU(p)&&!kie(a,p)&&a.push(Cm(p,l.type?pi(l.type):we,zd(l,64),l))})}return a}return rt}function YU(n){return!!(n.flags&4108)||cA(n)||!!(n.flags&2097152)&&!WL(n)&&kt(n.types,YU)}function Uie(n){return pa(yn(n.symbol&&n.symbol.declarations,Ul),jA)[0]}function gIe(n,a){var l;let u;if((l=n.symbol)!=null&&l.declarations){for(const p of n.symbol.declarations)if(p.parent.kind===192){const[y=p.parent,A]=$fe(p.parent.parent);if(A.kind===180&&!a){const R=A,F=rse(R);if(F){const J=R.typeArguments.indexOf(y);if(J<F.length){const Q=Ru(F[J]);if(Q){const ge=dae(F,F.map((De,_t)=>()=>Tst(R,F,_t))),Ne=$i(Q,ge);Ne!==n&&(u=Bn(u,Ne))}}}}else if(A.kind===166&&A.dotDotDotToken||A.kind===188||A.kind===199&&A.dotDotDotToken)u=Bn(u,Ou(he));else if(A.kind===201)u=Bn(u,ue);else if(A.kind===165&&A.parent.kind===197)u=Bn(u,Hi);else if(A.kind===197&&A.type&&Ws(A.type)===p.parent&&A.parent.kind===191&&A.parent.extendsType===A&&A.parent.checkType.kind===197&&A.parent.checkType.type){const R=A.parent.checkType,F=pi(R.type);u=Bn(u,$i(F,i1(WE(Ir(R.typeParameter)),R.typeParameter.constraint?pi(R.typeParameter.constraint):Hi)))}}}return u&&Do(u)}function VL(n){if(!n.constraint)if(n.target){const a=Ru(n.target);n.constraint=a?$i(a,n.mapper):$o}else{const a=Uie(n);if(!a)n.constraint=gIe(n)||$o;else{let l=pi(a);l.flags&1&&!rs(l)&&(l=a.parent.parent.kind===197?Hi:he),n.constraint=l}}return n.constraint===$o?void 0:n.constraint}function yIe(n){const a=Il(n.symbol,165),l=kp(a.parent)?X3(a.parent):a.parent;return l&&nf(l)}function m_(n){let a="";if(n){const l=n.length;let u=0;for(;u<l;){const p=n[u].id;let y=1;for(;u+y<l&&n[u+y].id===p+y;)y++;a.length&&(a+=","),a+=p,y>1&&(a+=":"+y),u+=y}}return a}function aA(n,a){return n?`@${Eo(n)}`+(a?`:${m_(a)}`:""):""}function $U(n,a){let l=0;for(const u of n)(a===void 0||!(u.flags&a))&&(l|=ri(u));return l&458752}function oA(n,a){return kt(a)&&n===Lo?he:oy(n,a)}function oy(n,a){const l=m_(a);let u=n.instantiations.get(l);return u||(u=Af(4,n.symbol),n.instantiations.set(l,u),u.objectFlags|=a?$U(a):0,u.target=n,u.resolvedTypeArguments=a),u}function vIe(n){const a=Em(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function Vie(n,a,l,u,p){if(!u){u=BS(a);const A=uA(u);p=l?cy(A,l):A}const y=Af(4,n.symbol);return y.target=n,y.node=a,y.mapper=l,y.aliasSymbol=u,y.aliasTypeArguments=p,y}function ys(n){var a,l;if(!n.resolvedTypeArguments){if(!Kf(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>Ce))||rt;const u=n.node,p=u?u.kind===180?ya(n.target.outerTypeParameters,cj(u,n.target.localTypeParameters)):u.kind===185?[pi(u.elementType)]:zt(u.elements,pi):rt;__()?n.resolvedTypeArguments=n.mapper?cy(p,n.mapper):p:(n.resolvedTypeArguments=((l=n.target.localTypeParameters)==null?void 0:l.map(()=>Ce))||rt,Ke(n.node||G,n.target.symbol?_.Type_arguments_for_0_circularly_reference_themselves:_.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&x(n.target.symbol)))}return n.resolvedTypeArguments}function P0(n){return Le(n.target.typeParameters)}function bIe(n,a){const l=js(as(a)),u=l.localTypeParameters;if(u){const p=Le(n.typeArguments),y=Am(u),A=fr(n);if(!(!xe&&A)&&(p<y||p>u.length)){const J=A&&Py(n)&&!zC(n.parent),Q=y===u.length?J?_.Expected_0_type_arguments_provide_these_with_an_extends_tag:_.Generic_type_0_requires_1_type_argument_s:J?_.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:_.Generic_type_0_requires_between_1_and_2_type_arguments,ge=ke(l,void 0,2);if(Ke(n,Q,ge,y,u.length),!A)return Ce}if(n.kind===180&&GIe(n,Le(n.typeArguments)!==u.length))return Vie(l,n,void 0);const F=ya(l.outerTypeParameters,gv(WP(n),u,y,A));return oy(l,F)}return Zb(n,a)?l:Ce}function sA(n,a,l,u){const p=js(n);if(p===ie&&j8.has(n.escapedName)&&a&&a.length===1)return FS(n,a[0]);const y=zi(n),A=y.typeParameters,R=m_(a)+aA(l,u);let F=y.instantiations.get(R);return F||y.instantiations.set(R,F=bke(p,Ad(A,gv(a,A,Am(A),fr(n.valueDeclaration))),l,u)),F}function pet(n,a){if(Dl(a)&1048576){const p=WP(n),y=aA(a,p);let A=Hr.get(y);return A||(A=tc(1,"error"),A.aliasSymbol=a,A.aliasTypeArguments=p,Hr.set(y,A)),A}const l=js(a),u=zi(a).typeParameters;if(u){const p=Le(n.typeArguments),y=Am(u);if(p<y||p>u.length)return Ke(n,y===u.length?_.Generic_type_0_requires_1_type_argument_s:_.Generic_type_0_requires_between_1_and_2_type_arguments,x(a),y,u.length),Ce;const A=BS(n);let R=A&&(EIe(a)||!EIe(A))?A:void 0,F;if(R)F=uA(R);else if(h3(n)){const J=lA(n,2097152,!0);if(J&&J!==rn){const Q=oc(J);Q&&Q.flags&524288&&(R=Q,F=WP(n)||(u?[]:void 0))}}return sA(a,WP(n),R,F)}return Zb(n,a)?l:Ce}function EIe(n){var a;const l=(a=n.declarations)==null?void 0:a.find(qN);return!!(l&&Mf(l))}function met(n){switch(n.kind){case 180:return n.typeName;case 230:const a=n.expression;if(Xl(a))return a}}function TIe(n){return n.parent?`${TIe(n.parent)}.${n.escapedName}`:n.escapedName}function QU(n){const l=(n.kind===163?n.right:n.kind===208?n.name:n).escapedText;if(l){const u=n.kind===163?QU(n.left):n.kind===208?QU(n.expression):void 0,p=u?`${TIe(u)}.${l}`:l;let y=Ar.get(p);return y||(Ar.set(p,y=ns(524288,l,1048576)),y.parent=u,y.links.declaredType=pt),y}return rn}function lA(n,a,l){const u=met(n);if(!u)return rn;const p=Ml(u,a,l);return p&&p!==rn?p:l?rn:QU(u)}function ZU(n,a){if(a===rn)return Ce;if(a=E0(a)||a,a.flags&96)return bIe(n,a);if(a.flags&524288)return pet(n,a);const l=HLe(a);if(l)return Zb(n,a)?xd(l):Ce;if(a.flags&111551&&eV(n)){const u=het(n,a);return u||(lA(n,788968),or(a))}return Ce}function het(n,a){const l=Jr(n);if(!l.resolvedJSDocType){const u=or(a);let p=u;if(a.valueDeclaration){const y=n.kind===202&&n.qualifier;u.symbol&&u.symbol!==a&&y&&(p=ZU(n,u.symbol))}l.resolvedJSDocType=p}return l.resolvedJSDocType}function jie(n,a){if(a.flags&3||a===n||n.flags&1)return n;const l=`${Pu(n)}>${Pu(a)}`,u=Ht.get(l);if(u)return u;const p=Qh(33554432);return p.baseType=n,p.constraint=a,Ht.set(l,p),p}function Hie(n){return Do([n.constraint,n.baseType])}function SIe(n){return n.kind===186&&n.elements.length===1}function xIe(n,a,l){return SIe(a)&&SIe(l)?xIe(n,a.elements[0],l.elements[0]):bv(pi(a))===bv(n)?pi(l):void 0}function get(n,a){let l,u=!0;for(;a&&!ka(a)&&a.kind!==323;){const p=a.parent;if(p.kind===166&&(u=!u),(u||n.flags&8650752)&&p.kind===191&&a===p.trueType){const y=xIe(n,p.checkType,p.extendsType);y&&(l=Bn(l,y))}else if(n.flags&262144&&p.kind===197&&a===p.type){const y=pi(p);if(hp(y)===bv(n)){const A=_ae(y);if(A){const R=Ru(A);R&&gh(R,YE)&&(l=Bn(l,Zr([mt,oo])))}}}a=p}return l?jie(n,Do(l)):n}function eV(n){return!!(n.flags&8388608)&&(n.kind===180||n.kind===202)}function Zb(n,a){return n.typeArguments?(Ke(n,_.Type_0_is_not_generic,a?x(a):n.typeName?Rs(n.typeName):V8),!1):!0}function AIe(n){if(je(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return Zb(n),ue;case"Number":return Zb(n),mt;case"Boolean":return Zb(n),Re;case"Void":return Zb(n),Rt;case"Undefined":return Zb(n),He;case"Null":return Zb(n),Sn;case"Function":case"function":return Zb(n),pl;case"array":return(!a||!a.length)&&!xe?Dt:void 0;case"promise":return(!a||!a.length)&&!xe?L4(we):void 0;case"Object":if(a&&a.length===2){if(H3(n)){const l=pi(a[0]),u=pi(a[1]),p=l===ue||l===mt?[Cm(l,u,!1)]:rt;return Ps(void 0,ne,rt,rt,p)}return we}return Zb(n),xe?void 0:we}}}function yet(n){const a=pi(n.type);return W?AV(a,65536):a}function Wie(n){const a=Jr(n);if(!a.resolvedType){if(vg(n)&&bT(n.parent))return a.resolvedSymbol=rn,a.resolvedType=nc(n.parent.expression);let l,u;const p=788968;eV(n)&&(u=AIe(n),u||(l=lA(n,p,!0),l===rn?l=lA(n,p|111551):lA(n,p),u=ZU(n,l))),u||(l=lA(n,p),u=ZU(n,l)),a.resolvedSymbol=l,a.resolvedType=u}return a.resolvedType}function WP(n){return zt(n.typeArguments,pi)}function CIe(n){const a=Jr(n);if(!a.resolvedType){const l=jDe(n);a.resolvedType=xd(sf(l))}return a.resolvedType}function LIe(n,a){function l(p){const y=p.declarations;if(y)for(const A of y)switch(A.kind){case 260:case 261:case 263:return A}}if(!n)return a?Lo:fa;const u=js(n);return u.flags&524288?Le(u.typeParameters)!==a?(Ke(l(n),_.Global_type_0_must_have_1_type_parameter_s,Gl(n),a),a?Lo:fa):u:(Ke(l(n),_.Global_type_0_must_be_a_class_or_interface_type,Gl(n)),a?Lo:fa)}function zie(n,a){return MD(n,111551,a?_.Cannot_find_global_value_0:void 0)}function IIe(n,a){return MD(n,788968,a?_.Cannot_find_global_type_0:void 0)}function tV(n,a,l){const u=MD(n,788968,l?_.Cannot_find_global_type_0:void 0);if(u&&(js(u),Le(zi(u).typeParameters)!==a)){const p=u.declarations&&In(u.declarations,um);Ke(p,_.Global_type_0_must_have_1_type_parameter_s,Gl(u),a);return}return u}function MD(n,a,l){return hl(void 0,n,a,l,n,!1,!1,!1)}function _c(n,a,l){const u=IIe(n,l);return u||l?LIe(u,a):void 0}function vet(){return Pt||(Pt=_c("TypedPropertyDescriptor",1,!0)||Lo)}function bet(){return Tf||(Tf=_c("TemplateStringsArray",0,!0)||fa)}function kIe(){return D_||(D_=_c("ImportMeta",0,!0)||fa)}function wIe(){if(!Qo){const n=ns(0,"ImportMetaExpression"),a=kIe(),l=ns(4,"meta",8);l.parent=n,l.links.type=a;const u=co([l]);n.members=u,Qo=Ps(n,u,rt,rt,rt)}return Qo}function DIe(n){return R_||(R_=_c("ImportCallOptions",0,n))||fa}function RIe(n){return oe||(oe=zie("Symbol",n))}function Eet(n){return ut||(ut=IIe("SymbolConstructor",n))}function NIe(){return Mt||(Mt=_c("Symbol",0,!1))||fa}function zP(n){return cn||(cn=_c("Promise",1,n))||Lo}function OIe(n){return jn||(jn=_c("PromiseLike",1,n))||Lo}function qie(n){return Dr||(Dr=zie("Promise",n))}function Tet(n){return ii||(ii=_c("PromiseConstructorLike",0,n))||fa}function nV(n){return Ef||(Ef=_c("AsyncIterable",1,n))||Lo}function xet(n){return ac||(ac=_c("AsyncIterator",3,n))||Lo}function Aet(n){return ef||(ef=_c("AsyncIterableIterator",1,n))||Lo}function Cet(n){return Du||(Du=_c("AsyncGenerator",3,n))||Lo}function Jie(n){return Fi||(Fi=_c("Iterable",1,n))||Lo}function Let(n){return ja||(ja=_c("Iterator",3,n))||Lo}function Iet(n){return zo||(zo=_c("IterableIterator",1,n))||Lo}function ket(n){return Ss||(Ss=_c("Generator",3,n))||Lo}function wet(n){return $s||($s=_c("IteratorYieldResult",1,n))||Lo}function Det(n){return bd||(bd=_c("IteratorReturnResult",1,n))||Lo}function PIe(n,a=0){const l=MD(n,788968,void 0);return l&&LIe(l,a)}function Ret(){return Sf||(Sf=tV("Extract",2,!0)||rn),Sf===rn?void 0:Sf}function Net(){return op||(op=tV("Omit",2,!0)||rn),op===rn?void 0:op}function Kie(n){return Mp||(Mp=tV("Awaited",1,n)||(n?rn:void 0)),Mp===rn?void 0:Mp}function Oet(){return U||(U=_c("BigInt",0,!1))||fa}function Pet(n){var a;return(a=Yn!=null?Yn:Yn=_c("ClassDecoratorContext",1,n))!=null?a:Lo}function Met(n){var a;return(a=wa!=null?wa:wa=_c("ClassMethodDecoratorContext",2,n))!=null?a:Lo}function Fet(n){var a;return(a=La!=null?La:La=_c("ClassGetterDecoratorContext",2,n))!=null?a:Lo}function Bet(n){var a;return(a=Ie!=null?Ie:Ie=_c("ClassSetterDecoratorContext",2,n))!=null?a:Lo}function Get(n){var a;return(a=Ue!=null?Ue:Ue=_c("ClassAccessorDecoratorContext",2,n))!=null?a:Lo}function Uet(n){var a;return(a=Lt!=null?Lt:Lt=_c("ClassAccessorDecoratorTarget",2,n))!=null?a:Lo}function Vet(n){var a;return(a=Ot!=null?Ot:Ot=_c("ClassAccessorDecoratorResult",2,n))!=null?a:Lo}function jet(n){var a;return(a=mn!=null?mn:mn=_c("ClassFieldDecoratorContext",2,n))!=null?a:Lo}function Het(){return et||(et=zie("NaN",!1))}function Wet(){return qt||(qt=tV("Record",2,!0)||rn),qt===rn?void 0:qt}function FD(n,a){return n!==Lo?oy(n,a):fa}function MIe(n){return FD(vet(),[n])}function FIe(n){return FD(Jie(!0),[n])}function Ou(n,a){return FD(a?fs:Ts,[n])}function Xie(n){switch(n.kind){case 187:return 2;case 188:return BIe(n);case 199:return n.questionToken?2:n.dotDotDotToken?BIe(n):1;default:return 1}}function BIe(n){return XP(n.type)?4:8}function zet(n){const a=Jet(n.parent);if(XP(n))return a?fs:Ts;const u=zt(n.elements,Xie),p=kt(n.elements,y=>y.kind!==199);return Yie(u,a,p?void 0:n.elements)}function GIe(n,a){return!!BS(n)||UIe(n)&&(n.kind===185?yv(n.elementType):n.kind===186?kt(n.elements,yv):a||kt(n.typeArguments,yv))}function UIe(n){const a=n.parent;switch(a.kind){case 193:case 199:case 180:case 189:case 190:case 196:case 191:case 195:case 185:case 186:return UIe(a);case 262:return!0}return!1}function yv(n){switch(n.kind){case 180:return eV(n)||!!(lA(n,788968).flags&524288);case 183:return!0;case 195:return n.operator!==156&&yv(n.type);case 193:case 187:case 199:case 319:case 317:case 318:case 312:return yv(n.type);case 188:return n.type.kind!==185||yv(n.type.elementType);case 189:case 190:return kt(n.types,yv);case 196:return yv(n.objectType)||yv(n.indexType);case 191:return yv(n.checkType)||yv(n.extendsType)||yv(n.trueType)||yv(n.falseType)}return!1}function qet(n){const a=Jr(n);if(!a.resolvedType){const l=zet(n);if(l===Lo)a.resolvedType=fa;else if(!(n.kind===186&&kt(n.elements,u=>!!(Xie(u)&8)))&&GIe(n))a.resolvedType=n.kind===186&&n.elements.length===0?l:Vie(l,n,void 0);else{const u=n.kind===185?[pi(n.elementType)]:zt(n.elements,pi);a.resolvedType=$ie(l,u)}}return a.resolvedType}function Jet(n){return Jx(n)&&n.operator===146}function zp(n,a,l=!1,u){const p=Yie(a||zt(n,y=>1),l,u);return p===Lo?fa:n.length?$ie(p,n):p}function Yie(n,a,l){if(n.length===1&&n[0]&4)return a?fs:Ts;const u=zt(n,y=>y&1?"#":y&2?"?":y&4?".":"*").join()+(a?"R":"")+(l&&l.length?","+zt(l,hs).join(","):"");let p=Hn.get(u);return p||Hn.set(u,p=Ket(n,a,l)),p}function Ket(n,a,l){const u=n.length,p=Wc(n,ge=>!!(ge&9));let y;const A=[];let R=0;if(u){y=new Array(u);for(let ge=0;ge<u;ge++){const Ne=y[ge]=Gd(),De=n[ge];if(R|=De,!(R&12)){const _t=ns(4|(De&2?16777216:0),""+ge,a?8:0);_t.links.tupleLabelDeclaration=l==null?void 0:l[ge],_t.links.type=Ne,A.push(_t)}}}const F=A.length,J=ns(4,"length",a?8:0);if(R&12)J.links.type=mt;else{const ge=[];for(let Ne=p;Ne<=u;Ne++)ge.push(qp(Ne));J.links.type=Zr(ge)}A.push(J);const Q=Af(12);return Q.typeParameters=y,Q.outerTypeParameters=void 0,Q.localTypeParameters=y,Q.instantiations=new Map,Q.instantiations.set(m_(Q.typeParameters),Q),Q.target=Q,Q.resolvedTypeArguments=Q.typeParameters,Q.thisType=Gd(),Q.thisType.isThisType=!0,Q.thisType.constraint=Q,Q.declaredProperties=A,Q.declaredCallSignatures=rt,Q.declaredConstructSignatures=rt,Q.declaredIndexInfos=rt,Q.elementFlags=n,Q.minLength=p,Q.fixedLength=F,Q.hasRestElement=!!(R&12),Q.combinedFlags=R,Q.readonly=a,Q.labeledElementDeclarations=l,Q}function $ie(n,a){return n.objectFlags&8?VIe(n,a):oy(n,a)}function VIe(n,a){var l,u,p;if(!(n.combinedFlags&14))return oy(n,a);if(n.combinedFlags&8){const De=mi(a,(_t,Bt)=>!!(n.elementFlags[Bt]&8&&_t.flags&1179648));if(De>=0)return JP(zt(a,(_t,Bt)=>n.elementFlags[Bt]&8?_t:he))?Zs(a[De],_t=>VIe(n,vH(a,De,_t))):Ce}const y=[],A=[];let R=[],F=-1,J=-1,Q=-1;for(let De=0;De<a.length;De++){const _t=a[De],Bt=n.elementFlags[De];if(Bt&8)if(_t.flags&58982400||$f(_t))Ne(_t,8,(l=n.labeledElementDeclarations)==null?void 0:l[De]);else if(Bo(_t)){const Fn=ys(_t);if(Fn.length+y.length>=1e4)return Ke(G,Ih(G)?_.Type_produces_a_tuple_type_that_is_too_large_to_represent:_.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Ce;Je(Fn,(An,Xn)=>{var hn;return Ne(An,_t.target.elementFlags[Xn],(hn=_t.target.labeledElementDeclarations)==null?void 0:hn[Xn])})}else Ne(V0(_t)&&ay(_t,mt)||Ce,4,(u=n.labeledElementDeclarations)==null?void 0:u[De]);else Ne(_t,Bt,(p=n.labeledElementDeclarations)==null?void 0:p[De])}for(let De=0;De<F;De++)A[De]&2&&(A[De]=1);J>=0&&J<Q&&(y[J]=Zr(no(y.slice(J,Q+1),(De,_t)=>A[J+_t]&8?jd(De,mt):De)),y.splice(J+1,Q-J),A.splice(J+1,Q-J),R==null||R.splice(J+1,Q-J));const ge=Yie(A,n.readonly,R);return ge===Lo?fa:A.length?oy(ge,y):ge;function Ne(De,_t,Bt){_t&1&&(F=A.length),_t&4&&J<0&&(J=A.length),_t&6&&(Q=A.length),y.push(_t&2?ko(De,!0):De),A.push(_t),R&&Bt?R.push(Bt):R=void 0}}function jL(n,a,l=0){const u=n.target,p=P0(n)-l;return a>u.fixedLength?Pnt(n)||zp(rt):zp(ys(n).slice(a,p),u.elementFlags.slice(a,p),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,p))}function jIe(n){return Zr(Bn(Wce(n.target.fixedLength,a=>Qf(""+a)),Lm(n.target.readonly?fs:Ts)))}function Xet(n,a){const l=mi(n.elementFlags,u=>!(u&a));return l>=0?l:n.elementFlags.length}function qP(n,a){return n.elementFlags.length-ji(n.elementFlags,l=>!(l&a))-1}function Yet(n){return ko(pi(n.type),!0)}function Pu(n){return n.id}function e1(n,a){return kv(n,a,Pu,qs)>=0}function Qie(n,a){const l=kv(n,a,Pu,qs);return l<0?(n.splice(~l,0,a),!0):!1}function $et(n,a,l){const u=l.flags;if(u&1048576)return HIe(n,a|(ttt(l)?1048576:0),l.types);if(!(u&131072))if(a|=u&205258751,u&465829888&&(a|=33554432),l===Nt&&(a|=8388608),!W&&u&98304)ri(l)&65536||(a|=4194304);else{const p=n.length,y=p&&l.id>n[p-1].id?~p:kv(n,l,Pu,qs);y<0&&n.splice(~y,0,l)}return a}function HIe(n,a,l){for(const u of l)a=$et(n,a,u);return a}function Qet(n,a){var l;if(n.length<2)return n;const u=m_(n),p=un.get(u);if(p)return p;const y=a&&kt(n,J=>!!(J.flags&524288)&&!$f(J)&&bae(gp(J))),A=n.length;let R=A,F=0;for(;R>0;){R--;const J=n[R];if(y||J.flags&469499904){const Q=J.flags&61603840?In(gs(J),Ne=>vp(or(Ne))):void 0,ge=Q&&xd(or(Q));for(const Ne of n)if(J!==Ne){if(F===1e5&&F/(A-R)*A>1e6){(l=Si)==null||l.instant(Si.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(_t=>_t.id)}),Ke(G,_.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(F++,Q&&Ne.flags&61603840){const De=vc(Ne,Q.escapedName);if(De&&vp(De)&&xd(De)!==ge)continue}if(Im(J,Ne,cp)&&(!(ri(eA(J))&1)||!(ri(eA(Ne))&1)||a1(J,Ne))){T1(n,R);break}}}}return un.set(u,n),n}function Zet(n,a,l){let u=n.length;for(;u>0;){u--;const p=n[u],y=p.flags;(y&402653312&&a&4||y&256&&a&8||y&2048&&a&64||y&8192&&a&4096||l&&y&32768&&a&16384||r1(p)&&e1(n,p.regularType))&&T1(n,u)}}function ett(n){const a=yn(n,l=>!!(l.flags&134217728)&&cA(l));if(a.length){let l=n.length;for(;l>0;){l--;const u=n[l];u.flags&128&&kt(a,p=>qae(u,p))&&T1(n,l)}}}function ttt(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function WIe(n,a){for(const l of a)if(l.flags&1048576){const u=l.origin;l.aliasSymbol||u&&!(u.flags&1048576)?v_(n,l):u&&u.flags&1048576&&WIe(n,u.types)}}function Zie(n,a){const l=OS(n);return l.types=a,l}function Zr(n,a=1,l,u,p){if(n.length===0)return gt;if(n.length===1)return n[0];let y=[];const A=HIe(y,0,n);if(a!==0){if(A&3)return A&1?A&8388608?Nt:we:A&65536||e1(y,he)?he:j;if(A&32768&&y.length>=2&&y[0]===He&&y[1]===Xe&&T1(y,1),(A&402664352||A&16384&&A&32768)&&Zet(y,A,!!(a&2)),A&128&&A&134217728&&ett(y),a===2&&(y=Qet(y,!!(A&524288)),!y))return Ce;if(y.length===0)return A&65536?A&4194304?Sn:Er:A&32768?A&4194304?He:Ze:gt}if(!p&&A&1048576){const F=[];WIe(F,n);const J=[];for(const ge of y)kt(F,Ne=>e1(Ne.types,ge))||J.push(ge);if(!l&&F.length===1&&J.length===0)return F[0];if(Gu(F,(ge,Ne)=>ge+Ne.types.length,0)+J.length===y.length){for(const ge of F)Qie(J,ge);p=Zie(1048576,J)}}const R=(A&36323363?0:32768)|(A&2097152?16777216:0);return tae(y,R,l,u,p)}function ntt(n,a){let l;const u=[];for(const y of n){const A=p_(y);if(!A||A.kind===2||A.kind===3){if(a!==2097152)continue;return}if(l){if(!eae(l,A))return}else l=A;u.push(A.type)}if(!l)return;const p=_Ie(u,a);return HP(l.kind,l.parameterName,l.parameterIndex,p)}function eae(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function tae(n,a,l,u,p){if(n.length===0)return gt;if(n.length===1)return n[0];const A=(p?p.flags&1048576?`|${m_(p.types)}`:p.flags&2097152?`&${m_(p.types)}`:`#${p.type.id}|${m_(n)}`:m_(n))+aA(l,u);let R=kn.get(A);return R||(R=Qh(1048576),R.objectFlags=a|$U(n,98304),R.types=n,R.origin=p,R.aliasSymbol=l,R.aliasTypeArguments=u,n.length===2&&n[0].flags&512&&n[1].flags&512&&(R.flags|=16,R.intrinsicName="boolean"),kn.set(A,R)),R}function rtt(n){const a=Jr(n);if(!a.resolvedType){const l=BS(n);a.resolvedType=Zr(zt(n.types,pi),1,l,uA(l))}return a.resolvedType}function itt(n,a,l){const u=l.flags;return u&2097152?zIe(n,a,l.types):(og(l)?a&16777216||(a|=16777216,n.set(l.id.toString(),l)):(u&3?l===Nt&&(a|=8388608):(W||!(u&98304))&&(l===Xe&&(a|=262144,l=He),n.has(l.id.toString())||(l.flags&109472&&a&109472&&(a|=67108864),n.set(l.id.toString(),l))),a|=u&205258751),a)}function zIe(n,a,l){for(const u of l)a=itt(n,a,xd(u));return a}function att(n,a){let l=n.length;for(;l>0;){l--;const u=n[l];(u.flags&4&&a&402653312||u.flags&8&&a&256||u.flags&64&&a&2048||u.flags&4096&&a&8192||u.flags&16384&&a&32768||og(u)&&a&470302716)&&T1(n,l)}}function ott(n,a){for(const l of n)if(!e1(l.types,a)){const u=a.flags&128?ue:a.flags&256?mt:a.flags&2048?Wt:a.flags&8192?q:void 0;if(!u||!e1(l.types,u))return!1}return!0}function stt(n){let a=n.length;const l=yn(n,u=>!!(u.flags&128));for(;a>0;){a--;const u=n[a];if(u.flags&134217728){for(const p of l)if(Ev(p,u)){T1(n,a);break}else if(cA(u))return!0}}return!1}function qIe(n,a){return Zn(n,l=>!!(l.flags&1048576)&&kt(l.types,u=>!!(u.flags&a)))}function JIe(n,a){for(let l=0;l<n.length;l++)n[l]=bc(n[l],u=>!(u.flags&a))}function ltt(n){let a;const l=mi(n,A=>!!(ri(A)&32768));if(l<0)return!1;let u=l+1;for(;u<n.length;){const A=n[u];ri(A)&32768?((a||(a=[n[l]])).push(A),T1(n,u)):u++}if(!a)return!1;const p=[],y=[];for(const A of a)for(const R of A.types)Qie(p,R)&&ott(a,R)&&Qie(y,R);return n[l]=tae(y,32768),!0}function ctt(n,a,l){const u=Qh(2097152);return u.objectFlags=$U(n,98304),u.types=n,u.aliasSymbol=a,u.aliasTypeArguments=l,u}function Do(n,a,l,u){const p=new Map,y=zIe(p,0,n),A=No(p.values());if(y&131072)return Ur(A,ft)?ft:gt;if(W&&y&98304&&y&84410368||y&67108864&&y&402783228||y&402653316&&y&67238776||y&296&&y&469891796||y&2112&&y&469889980||y&12288&&y&469879804||y&49152&&y&469842940||y&134217728&&y&128&&stt(A))return gt;if(y&1)return y&8388608?Nt:we;if(!W&&y&98304)return y&16777216?gt:y&32768?He:Sn;if((y&4&&y&402653312||y&8&&y&256||y&64&&y&2048||y&4096&&y&8192||y&16384&&y&32768||y&16777216&&y&470302716)&&(u||att(A,y)),y&262144&&(A[A.indexOf(He)]=Xe),A.length===0)return he;if(A.length===1)return A[0];const R=m_(A)+aA(a,l);let F=Zt.get(R);if(!F){if(y&1048576)if(ltt(A))F=Do(A,a,l);else if(qIe(A,32768)){const J=kt(A,qD)?Xe:He;JIe(A,32768),F=Zr([Do(A),J],1,a,l)}else if(qIe(A,65536))JIe(A,65536),F=Zr([Do(A),Sn],1,a,l);else{if(!JP(A))return Ce;const J=utt(A),Q=kt(J,ge=>!!(ge.flags&2097152))&&nae(J)>nae(A)?Zie(2097152,A):void 0;F=Zr(J,1,a,l,Q)}else F=ctt(A,a,l);Zt.set(R,F)}return F}function KIe(n){return Gu(n,(a,l)=>l.flags&1048576?a*l.types.length:l.flags&131072?0:a,1)}function JP(n){var a;const l=KIe(n);return l>=1e5?((a=Si)==null||a.instant(Si.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(u=>u.id),size:l}),Ke(G,_.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function utt(n){const a=KIe(n),l=[];for(let u=0;u<a;u++){const p=n.slice();let y=u;for(let R=n.length-1;R>=0;R--)if(n[R].flags&1048576){const F=n[R].types,J=F.length;p[R]=F[y%J],y=Math.floor(y/J)}const A=Do(p);A.flags&131072||l.push(A)}return l}function XIe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?XIe(n.origin):nae(n.types)}function nae(n){return Gu(n,(a,l)=>a+XIe(l),0)}function dtt(n){const a=Jr(n);if(!a.resolvedType){const l=BS(n),u=zt(n.types,pi),p=u.length===2&&!!(u[0].flags&76)&&u[1]===jl;a.resolvedType=Do(u,l,uA(l),p)}return a.resolvedType}function YIe(n,a){const l=Qh(4194304);return l.type=n,l.stringsOnly=a,l}function ftt(n){const a=OS(4194304);return a.type=n,a}function $Ie(n,a){return a?n.resolvedStringIndexType||(n.resolvedStringIndexType=YIe(n,!0)):n.resolvedIndexType||(n.resolvedIndexType=YIe(n,!1))}function _tt(n,a,l){const u=hp(n),p=Hp(n),y=pv(n.target||n);if(!y&&!l)return p;const A=[];if(wD(n)){if(M0(p))return $Ie(n,a);{const J=ed(GL(n));vie(J,8576,a,F)}}else nT(BP(p),F);M0(p)&&nT(p,F);const R=l?bc(Zr(A),J=>!(J.flags&5)):Zr(A);if(R.flags&1048576&&p.flags&1048576&&m_(R.types)===m_(p.types))return p;return R;function F(J){const Q=y?$i(y,UD(n.mapper,u,J)):J;A.push(Q===ue?Ii:Q)}}function ptt(n){const a=hp(n);return l(pv(n)||a);function l(u){return u.flags&202375167?!0:u.flags&16777216?u.root.isDistributive&&u.checkType===a:u.flags&137363456?Zn(u.types,l):u.flags&8388608?l(u.objectType)&&l(u.indexType):u.flags&33554432?l(u.baseType)&&l(u.constraint):u.flags&268435456?l(u.type):!1}}function sy(n){return Oi(n)?gt:je(n)?Qf(ra(n.escapedText)):xd(Cs(n)?fy(n):ha(n))}function HL(n,a,l){if(l||!(s_(n)&24)){let u=zi(KU(n)).nameType;if(!u){const p=Ia(n.valueDeclaration);u=n.escapedName==="default"?Qf("default"):p&&sy(p)||(nO(n)?void 0:Qf(Gl(n)))}if(u&&u.flags&a)return u}return gt}function QIe(n,a){return!!(n.flags&a||n.flags&2097152&&kt(n.types,l=>QIe(l,a)))}function mtt(n,a,l){const u=l&&(ri(n)&7||n.aliasSymbol)?ftt(n):void 0,p=zt(gs(n),A=>HL(A,a)),y=zt(Nu(n),A=>A!==$u&&QIe(A.keyType,a)?A.keyType===ue&&a&8?Ii:A.keyType:gt);return Zr(ya(p,y),1,void 0,void 0,u)}function htt(n){const a=Qtt(n);return yp(a)!==a}function ZIe(n){return!!(n.flags&58982400||_A(n)||$f(n)&&!ptt(n)||n.flags&1048576&&kt(n.types,htt)||n.flags&2097152&&gl(n,465829888)&&kt(n.types,og))}function Lm(n,a=Ve,l){return n=yp(n),ZIe(n)?$Ie(n,a):n.flags&1048576?Do(zt(n.types,u=>Lm(u,a,l))):n.flags&2097152?Zr(zt(n.types,u=>Lm(u,a,l))):ri(n)&32?_tt(n,a,l):n===Nt?Nt:n.flags&2?gt:n.flags&131073?Hi:mtt(n,(l?128:402653316)|(a?0:12584),a===Ve&&!l)}function eke(n){if(Ve)return n;const a=Ret();return a?sA(a,[n,ue]):ue}function gtt(n){const a=eke(Lm(n));return a.flags&131072?ue:a}function ytt(n){const a=Jr(n);if(!a.resolvedType)switch(n.operator){case 141:a.resolvedType=Lm(pi(n.type));break;case 156:a.resolvedType=n.type.kind===153?uae(YN(n.parent)):Ce;break;case 146:a.resolvedType=pi(n.type);break;default:throw D.assertNever(n.operator)}return a.resolvedType}function vtt(n){const a=Jr(n);return a.resolvedType||(a.resolvedType=KE([n.head.text,...zt(n.templateSpans,l=>l.literal.text)],zt(n.templateSpans,l=>pi(l.type)))),a.resolvedType}function KE(n,a){const l=mi(a,J=>!!(J.flags&1179648));if(l>=0)return JP(a)?Zs(a[l],J=>KE(n,vH(a,l,J))):Ce;if(Ur(a,Nt))return Nt;const u=[],p=[];let y=n[0];if(!F(n,a))return ue;if(u.length===0)return Qf(y);if(p.push(y),Zn(p,J=>J==="")){if(Zn(u,J=>!!(J.flags&4)))return ue;if(u.length===1&&cA(u[0]))return u[0]}const A=`${m_(u)}|${zt(p,J=>J.length).join(",")}|${p.join("")}`;let R=At.get(A);return R||At.set(A,R=Ett(p,u)),R;function F(J,Q){const ge=Va(J);for(let Ne=0;Ne<Q.length;Ne++){const De=Q[Ne],_t=ge?J[Ne+1]:J;if(De.flags&101248){if(y+=btt(De)||"",y+=_t,!ge)return!0}else if(De.flags&134217728){if(y+=De.texts[0],!F(De.texts,De.types))return!1;if(y+=_t,!ge)return!0}else if(M0(De)||iV(De))u.push(De),p.push(y),y=_t;else if(De.flags&2097152){if(!F(J[Ne+1],De.types))return!1}else if(ge)return!1}return!0}}function btt(n){return n.flags&128?n.value:n.flags&256?""+n.value:n.flags&2048?q1(n.value):n.flags&98816?n.intrinsicName:void 0}function Ett(n,a){const l=Qh(134217728);return l.texts=n,l.types=a,l}function FS(n,a){return a.flags&1179648?Zs(a,l=>FS(n,l)):a.flags&128?Qf(tke(n,a.value)):a.flags&134217728?KE(...Ttt(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||M0(a)?nke(n,a):iV(a)?nke(n,KE(["",""],[a])):a}function tke(n,a){switch(j8.get(n.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function Ttt(n,a,l){switch(j8.get(n.escapedName)){case 0:return[a.map(u=>u.toUpperCase()),l.map(u=>FS(n,u))];case 1:return[a.map(u=>u.toLowerCase()),l.map(u=>FS(n,u))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[FS(n,l[0]),...l.slice(1)]:l];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[FS(n,l[0]),...l.slice(1)]:l]}return[a,l]}function nke(n,a){const l=`${Eo(n)},${Pu(a)}`;let u=vn.get(l);return u||vn.set(l,u=Stt(n,a)),u}function Stt(n,a){const l=Em(268435456,n);return l.type=a,l}function xtt(n,a,l,u,p){const y=Qh(8388608);return y.objectType=n,y.indexType=a,y.accessFlags=l,y.aliasSymbol=u,y.aliasTypeArguments=p,y}function BD(n){if(xe)return!1;if(ri(n)&4096)return!0;if(n.flags&1048576)return Zn(n.types,BD);if(n.flags&2097152)return kt(n.types,BD);if(n.flags&465829888){const a=Sie(n);return a!==n&&BD(a)}return!1}function rV(n,a){return ng(n)?Sm(n):a&&El(a)?U1(a):void 0}function rae(n,a){if(a.flags&8208){const l=rr(n.parent,u=>!dl(u))||n.parent;return yx(l)?bg(l)&&je(n)&&uwe(l,n):Zn(a.declarations,u=>!Xa(u)||!!(xp(u)&268435456))}return!0}function rke(n,a,l,u,p,y){var A;const R=p&&p.kind===209?p:void 0,F=p&&Oi(p)?void 0:rV(l,p);if(F!==void 0){if(y&256)return iT(a,F)||we;const Q=fo(a,F);if(Q){if(y&64&&p&&Q.declarations&&g0(Q)&&rae(p,Q)){const Ne=(A=R==null?void 0:R.argumentExpression)!=null?A:Kx(p)?p.indexType:p;jg(Ne,Q.declarations,F)}if(R){if(E4(Q,R,gDe(R.expression,a.symbol)),rRe(R,Q,wT(R))){Ke(R.argumentExpression,_.Cannot_assign_to_0_because_it_is_a_read_only_property,x(Q));return}if(y&8&&(Jr(p).resolvedSymbol=Q),uDe(R,Q))return yt}const ge=or(Q);return R&&wT(R)!==1?W0(R,ge):p&&Kx(p)&&qD(ge)?Zr([ge,He]):ge}if(gh(a,Bo)&&Oh(F)){const ge=+F;if(p&&gh(a,Ne=>!Ne.target.hasRestElement)&&!(y&16)){const Ne=iae(p);if(Bo(a)){if(ge<0)return Ke(Ne,_.A_tuple_type_cannot_be_indexed_with_a_negative_value),He;Ke(Ne,_.Tuple_type_0_of_length_1_has_no_element_at_index_2,ke(a),P0(a),ra(F))}else Ke(Ne,_.Property_0_does_not_exist_on_type_1,ra(F),ke(a))}if(ge>=0)return J(hh(a,mt)),Zs(a,Ne=>{const De=a4(Ne)||He;return y&1?Zr([De,Xe]):De})}}if(!(l.flags&98304)&&Vc(l,402665900)){if(a.flags&131073)return a;const Q=jP(a,l)||hh(a,ue);if(Q){if(y&2&&Q.keyType!==mt){R&&Ke(R,_.Type_0_cannot_be_used_to_index_type_1,ke(l),ke(n));return}if(p&&Q.keyType===ue&&!Vc(l,12)){const ge=iae(p);return Ke(ge,_.Type_0_cannot_be_used_as_an_index_type,ke(l)),y&1?Zr([Q.type,Xe]):Q.type}return J(Q),y&1&&!(a.symbol&&a.symbol.flags&384&&l.symbol&&l.flags&1024&&Sd(l.symbol)===a.symbol)?Zr([Q.type,Xe]):Q.type}if(l.flags&131072)return gt;if(BD(a))return we;if(R&&!Xoe(a)){if(H0(a)){if(xe&&l.flags&384)return Zo.add(Nr(R,_.Property_0_does_not_exist_on_type_1,l.value,ke(a))),He;if(l.flags&12){const ge=zt(a.properties,Ne=>or(Ne));return Zr(Bn(ge,He))}}if(a.symbol===st&&F!==void 0&&st.exports.has(F)&&st.exports.get(F).flags&418)Ke(R,_.Property_0_does_not_exist_on_type_1,ra(F),ke(a));else if(xe&&!$.suppressImplicitAnyIndexErrors&&!(y&128))if(F!==void 0&&pDe(F,a)){const ge=ke(a);Ke(R,_.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,F,ge,ge+"["+kc(R.argumentExpression)+"]")}else if(ay(a,mt))Ke(R.argumentExpression,_.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let ge;if(F!==void 0&&(ge=Ioe(F,a)))ge!==void 0&&Ke(R.argumentExpression,_.Property_0_does_not_exist_on_type_1_Did_you_mean_2,F,ke(a),ge);else{const Ne=gat(a,R,l);if(Ne!==void 0)Ke(R,_.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ke(a),Ne);else{let De;if(l.flags&1024)De=Ra(void 0,_.Property_0_does_not_exist_on_type_1,"["+ke(l)+"]",ke(a));else if(l.flags&8192){const _t=Jh(l.symbol,R);De=Ra(void 0,_.Property_0_does_not_exist_on_type_1,"["+_t+"]",ke(a))}else l.flags&128||l.flags&256?De=Ra(void 0,_.Property_0_does_not_exist_on_type_1,l.value,ke(a)):l.flags&12&&(De=Ra(void 0,_.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ke(l),ke(a)));De=Ra(De,_.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ke(u),ke(a)),Zo.add(Eg(er(R),R,De))}}}return}}if(BD(a))return we;if(p){const Q=iae(p);l.flags&384?Ke(Q,_.Property_0_does_not_exist_on_type_1,""+l.value,ke(a)):l.flags&12?Ke(Q,_.Type_0_has_no_matching_index_signature_for_type_1,ke(a),ke(l)):Ke(Q,_.Type_0_cannot_be_used_as_an_index_type,ke(l))}if(xs(l))return l;return;function J(Q){Q&&Q.isReadonly&&R&&(wh(R)||gq(R))&&Ke(R,_.Index_signature_in_type_0_only_permits_reading,ke(a))}}function iae(n){return n.kind===209?n.argumentExpression:n.kind===196?n.indexType:n.kind===164?n.expression:n}function iV(n){return!!(n.flags&77)||cA(n)}function cA(n){return!!(n.flags&134217728)&&Zn(n.types,iV)||!!(n.flags&268435456)&&iV(n.type)}function WL(n){return!!GD(n)}function t1(n){return!!(GD(n)&4194304)}function M0(n){return!!(GD(n)&8388608)}function GD(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|Gu(n.types,(a,l)=>a|GD(l),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|GD(n.baseType)|GD(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||$f(n)||_A(n)?4194304:0)|(n.flags&465829888&&!cA(n)?8388608:0)}function ly(n,a){return n.flags&8388608?Ctt(n,a):n.flags&16777216?Ltt(n,a):n}function ike(n,a,l){if(n.flags&1048576||n.flags&2097152&&!ZIe(n)){const u=zt(n.types,p=>ly(jd(p,a),l));return n.flags&2097152||l?Do(u):Zr(u)}}function Att(n,a,l){if(a.flags&1048576){const u=zt(a.types,p=>ly(jd(n,p),l));return l?Do(u):Zr(u)}}function Ctt(n,a){const l=a?"simplifiedForWriting":"simplifiedForReading";if(n[l])return n[l]===Wl?n:n[l];n[l]=Wl;const u=ly(n.objectType,a),p=ly(n.indexType,a),y=Att(u,p,a);if(y)return n[l]=y;if(!(p.flags&465829888)){const A=ike(u,p,a);if(A)return n[l]=A}if(_A(u)&&p.flags&296){const A=XL(u,p.flags&8?0:u.target.fixedLength,0,a);if(A)return n[l]=A}if($f(u)){const A=pv(u);if(!A||Ao(A,hp(u)))return n[l]=Zs(aV(u,n.indexType),R=>ly(R,a))}return n[l]=n}function Ltt(n,a){const l=n.checkType,u=n.extendsType,p=F0(n),y=B0(n);if(y.flags&131072&&bv(p)===bv(l)){if(l.flags&1||Ao(XE(l),XE(u)))return ly(p,a);if(ake(l,u))return gt}else if(p.flags&131072&&bv(y)===bv(l)){if(!(l.flags&1)&&Ao(XE(l),XE(u)))return gt;if(l.flags&1||ake(l,u))return ly(y,a)}return n}function ake(n,a){return!!(Zr([FP(n,a),gt]).flags&131072)}function aV(n,a){const l=Ad([hp(n)],[a]),u=U0(n.mapper,l);return $i(rg(n.target||n),u)}function jd(n,a,l=0,u,p,y){return vv(n,a,l,u,p,y)||(u?Ce:he)}function oke(n,a){return gh(n,l=>{if(l.flags&384){const u=Sm(l);if(Oh(u)){const p=+u;return p>=0&&p<a}}return!1})}function vv(n,a,l=0,u,p,y){if(n===Nt||a===Nt)return Nt;if(wke(n)&&!(a.flags&98304)&&Vc(a,12)&&(a=ue),$.noUncheckedIndexedAccess&&l&32&&(l|=1),M0(a)||(u&&u.kind!==196?_A(n)&&!oke(a,n.target.fixedLength):t1(n)&&!(Bo(n)&&oke(a,n.target.fixedLength)))){if(n.flags&3)return n;const R=l&1,F=n.id+","+a.id+","+R+aA(p,y);let J=Or.get(F);return J||Or.set(F,J=xtt(n,a,R,p,y)),J}const A=UL(n);if(a.flags&1048576&&!(a.flags&16)){const R=[];let F=!1;for(const J of a.types){const Q=rke(n,A,J,a,u,l|(F?128:0));if(Q)R.push(Q);else if(u)F=!0;else return}return F?void 0:l&4?Do(R,p,y):Zr(R,1,p,y)}return rke(n,A,a,a,u,l|8|64)}function ske(n){const a=Jr(n);if(!a.resolvedType){const l=pi(n.objectType),u=pi(n.indexType),p=BS(n);a.resolvedType=jd(l,u,0,n,p,uA(p))}return a.resolvedType}function aae(n){const a=Jr(n);if(!a.resolvedType){const l=Af(32,n.symbol);l.declaration=n,l.aliasSymbol=BS(n),l.aliasTypeArguments=uA(l.aliasSymbol),a.resolvedType=l,Hp(l)}return a.resolvedType}function bv(n){return n.flags&33554432?bv(n.baseType):n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?jd(bv(n.objectType),bv(n.indexType)):n}function Itt(n){const a=Ru(n);return a&&(t1(a)||M0(a))?_V(n):n}function lke(n){return PC(n)&&Le(n.elements)>0&&!kt(n.elements,a=>dK(a)||fK(a)||ew(a)&&!!(a.questionToken||a.dotDotDotToken))}function cke(n,a){return WL(n)||a&&Bo(n)&&kt(ys(n),WL)}function oae(n,a,l,u){let p,y,A=0;for(;;){if(A===1e3){Ke(G,_.Type_instantiation_is_excessively_deep_and_possibly_infinite),p=Ce;break}const F=lke(n.node.checkType)&&lke(n.node.extendsType)&&Le(n.node.checkType.elements)===Le(n.node.extendsType.elements),J=$i(bv(n.checkType),a),Q=cke(J,F),ge=$i(n.extendsType,a);if(J===Nt||ge===Nt)return Nt;let Ne;if(n.inferTypeParameters){const _t=no(n.inferTypeParameters,Itt),Bt=_t!==n.inferTypeParameters?Ad(n.inferTypeParameters,_t):void 0,Fn=JD(_t,void 0,0);if(Bt){const Xn=U0(a,Bt);for(const hn of _t)n.inferTypeParameters.indexOf(hn)===-1&&(hn.mapper=Xn)}Q||sg(Fn.inferences,J,$i(ge,Bt),1536);const An=U0(Bt,Fn.mapper);Ne=a?U0(An,a):An}const De=Ne?$i(n.extendsType,Ne):ge;if(!Q&&!cke(De,F)){if(!(De.flags&3)&&(J.flags&1||!Ao(pV(J),pV(De)))){J.flags&1&&(y||(y=[])).push($i(pi(n.node.trueType),Ne||a));const _t=pi(n.node.falseType);if(_t.flags&16777216){const Bt=_t.root;if(Bt.node.parent===n.node&&(!Bt.isDistributive||Bt.checkType===n.checkType)){n=Bt;continue}if(R(_t,a))continue}p=$i(_t,a);break}if(De.flags&3||Ao(XE(J),XE(De))){const _t=pi(n.node.trueType),Bt=Ne||a;if(R(_t,Bt))continue;p=$i(_t,Bt);break}}p=Qh(16777216),p.root=n,p.checkType=$i(n.checkType,a),p.extendsType=$i(n.extendsType,a),p.mapper=a,p.combinedMapper=Ne,p.aliasSymbol=l||n.aliasSymbol,p.aliasTypeArguments=l?u:cy(n.aliasTypeArguments,a);break}return y?Zr(Bn(y,p)):p;function R(F,J){if(F.flags&16777216&&J){const Q=F.root;if(Q.outerTypeParameters){const ge=U0(F.mapper,J),Ne=zt(Q.outerTypeParameters,Bt=>G0(Bt,ge)),De=Ad(Q.outerTypeParameters,Ne),_t=Q.isDistributive?G0(Q.checkType,De):void 0;if(!_t||_t===Q.checkType||!(_t.flags&1179648))return n=Q,a=De,l=void 0,u=void 0,Q.aliasSymbol&&A++,!0}}return!1}}function F0(n){return n.resolvedTrueType||(n.resolvedTrueType=$i(pi(n.root.node.trueType),n.mapper))}function B0(n){return n.resolvedFalseType||(n.resolvedFalseType=$i(pi(n.root.node.falseType),n.mapper))}function ktt(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?$i(pi(n.root.node.trueType),n.combinedMapper):F0(n))}function uke(n){let a;return n.locals&&n.locals.forEach(l=>{l.flags&262144&&(a=Bn(a,js(l)))}),a}function wtt(n){return n.isDistributive&&($P(n.checkType,n.node.trueType)||$P(n.checkType,n.node.falseType))}function Dtt(n){const a=Jr(n);if(!a.resolvedType){const l=pi(n.checkType),u=BS(n),p=uA(u),y=FL(n,!0),A=p?y:yn(y,F=>$P(F,n)),R={node:n,checkType:l,extendsType:pi(n.extendsType),isDistributive:!!(l.flags&262144),inferTypeParameters:uke(n),outerTypeParameters:A,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:p};a.resolvedType=oae(R,void 0),A&&(R.instantiations=new Map,R.instantiations.set(m_(A),a.resolvedType))}return a.resolvedType}function Rtt(n){const a=Jr(n);return a.resolvedType||(a.resolvedType=WE(Ir(n.typeParameter))),a.resolvedType}function dke(n){return je(n)?[n]:Bn(dke(n.left),n.right)}function Ntt(n){var a;const l=Jr(n);if(!l.resolvedType){if(!ob(n))return Ke(n.argument,_.String_literal_expected),l.resolvedSymbol=rn,l.resolvedType=Ce;const u=n.isTypeOf?111551:n.flags&8388608?900095:788968,p=gu(n,n.argument.literal);if(!p)return l.resolvedSymbol=rn,l.resolvedType=Ce;const y=!!((a=p.exports)!=null&&a.get("export=")),A=Td(p,!1);if(kl(n.qualifier))if(A.flags&u)l.resolvedType=fke(n,l,A,u);else{const R=u===111551?_.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:_.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Ke(n,R,n.argument.literal.text),l.resolvedSymbol=rn,l.resolvedType=Ce}else{const R=dke(n.qualifier);let F=A,J;for(;J=R.shift();){const Q=R.length?1920:u,ge=as(ec(F)),Ne=n.isTypeOf||fr(n)&&y?fo(or(ge),J.escapedText,!1,!0):void 0,De=n.isTypeOf?void 0:tf(xf(ge),J.escapedText,Q),_t=De!=null?De:Ne;if(!_t)return Ke(J,_.Namespace_0_has_no_exported_member_1,Jh(F),Rs(J)),l.resolvedType=Ce;Jr(J).resolvedSymbol=_t,Jr(J.parent).resolvedSymbol=_t,F=_t}l.resolvedType=fke(n,l,F,u)}}return l.resolvedType}function fke(n,a,l,u){const p=ec(l);return a.resolvedSymbol=p,u===111551?HDe(or(l),n):ZU(n,p)}function _ke(n){const a=Jr(n);if(!a.resolvedType){const l=BS(n);if(_v(n.symbol).size===0&&!l)a.resolvedType=jl;else{let u=Af(16,n.symbol);u.aliasSymbol=l,u.aliasTypeArguments=uA(l),lw(n)&&n.isArrayType&&(u=Ou(u)),a.resolvedType=u}}return a.resolvedType}function BS(n){let a=n.parent;for(;qx(a)||qT(a)||Jx(a)&&a.operator===146;)a=a.parent;return qN(a)?Ir(a):void 0}function uA(n){return n?fv(n):void 0}function oV(n){return!!(n.flags&524288)&&!$f(n)}function sae(n){return ag(n)||!!(n.flags&474058748)}function lae(n,a){if(!(n.flags&1048576))return n;if(Zn(n.types,sae))return In(n.types,ag)||fa;const l=In(n.types,y=>!sae(y));if(!l||In(n.types,y=>y!==l&&!sae(y)))return n;return p(l);function p(y){const A=co();for(const F of gs(y))if(!(s_(F)&24)){if(sV(F)){const J=F.flags&65536&&!(F.flags&32768),ge=ns(16777220,F.escapedName,yie(F)|(a?8:0));ge.links.type=J?He:ko(or(F),!0),ge.declarations=F.declarations,ge.links.nameType=zi(F).nameType,ge.links.syntheticOrigin=F,A.set(F.escapedName,ge)}}const R=Ps(y.symbol,A,rt,rt,Nu(y));return R.objectFlags|=131200,R}}function n1(n,a,l,u,p){if(n.flags&1||a.flags&1)return we;if(n.flags&2||a.flags&2)return he;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=lae(n,p),n.flags&1048576)return JP([n,a])?Zs(n,J=>n1(J,a,l,u,p)):Ce;if(a=lae(a,p),a.flags&1048576)return JP([n,a])?Zs(a,J=>n1(n,J,l,u,p)):Ce;if(a.flags&473960444)return n;if(t1(n)||t1(a)){if(ag(n))return a;if(n.flags&2097152){const J=n.types,Q=J[J.length-1];if(oV(Q)&&oV(a))return Do(ya(J.slice(0,J.length-1),[n1(Q,a,l,u,p)]))}return Do([n,a])}const y=co(),A=new Set,R=n===fa?Nu(a):ZLe([n,a]);for(const J of gs(a))s_(J)&24?A.add(J.escapedName):sV(J)&&y.set(J.escapedName,cae(J,p));for(const J of gs(n))if(!(A.has(J.escapedName)||!sV(J)))if(y.has(J.escapedName)){const Q=y.get(J.escapedName),ge=or(Q);if(Q.flags&16777216){const Ne=ya(J.declarations,Q.declarations),De=4|J.flags&16777216,_t=ns(De,J.escapedName);_t.links.type=Zr([or(J),Oae(ge)],2),_t.links.leftSpread=J,_t.links.rightSpread=Q,_t.declarations=Ne,_t.links.nameType=zi(J).nameType,y.set(J.escapedName,_t)}}else y.set(J.escapedName,cae(J,p));const F=Ps(l,y,rt,rt,no(R,J=>Ott(J,p)));return F.objectFlags|=2228352|u,F}function sV(n){var a;return!kt(n.declarations,ad)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(l=>_i(l.parent))))}function cae(n,a){const l=n.flags&65536&&!(n.flags&32768);if(!l&&a===Ep(n))return n;const u=4|n.flags&16777216,p=ns(u,n.escapedName,yie(n)|(a?8:0));return p.links.type=l?He:or(n),p.declarations=n.declarations,p.links.nameType=zi(n).nameType,p.links.syntheticOrigin=n,p}function Ott(n,a){return n.isReadonly!==a?Cm(n.keyType,n.type,a,n.declaration):n}function KP(n,a,l,u){const p=Em(n,l);return p.value=a,p.regularType=u||p,p}function dA(n){if(n.flags&2976){if(!n.freshType){const a=KP(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function xd(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=Zs(n,xd)):n}function r1(n){return!!(n.flags&2976)&&n.freshType===n}function Qf(n){let a;return _r.get(n)||(_r.set(n,a=KP(128,n)),a)}function qp(n){let a;return wi.get(n)||(wi.set(n,a=KP(256,n)),a)}function lV(n){let a;const l=q1(n);return Qi.get(l)||(Qi.set(l,a=KP(2048,n)),a)}function Ptt(n,a,l){let u;const p=`${a}${typeof n=="string"?"@":"#"}${n}`,y=1024|(typeof n=="string"?128:256);return Zi.get(p)||(Zi.set(p,u=KP(y,n,l)),u)}function Mtt(n){if(n.literal.kind===104)return Sn;const a=Jr(n);return a.resolvedType||(a.resolvedType=xd(ha(n.literal))),a.resolvedType}function Ftt(n){const a=Em(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Eo(a.symbol)}`,a}function uae(n){if(kfe(n)){const a=R3(n)?nf(n.left):nf(n);if(a){const l=zi(a);return l.uniqueESSymbolType||(l.uniqueESSymbolType=Ftt(a))}}return q}function Btt(n){const a=kd(n,!1,!1),l=a&&a.parent;if(l&&(_i(l)||l.kind===261)&&!Ja(a)&&(!Yl(a)||DT(n,a.body)))return Qu(Ir(l)).thisType;if(l&&Is(l)&&br(l.parent)&&wl(l.parent)===6)return Qu(nf(l.parent.left).parent).thisType;const u=n.flags&8388608?cb(n):void 0;return u&&Us(u)&&br(u.parent)&&wl(u.parent)===3?Qu(nf(u.parent.left).parent).thisType:Kp(a)&&DT(n,a.body)?Qu(Ir(a)).thisType:(Ke(n,_.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ce)}function cV(n){const a=Jr(n);return a.resolvedType||(a.resolvedType=Btt(n)),a.resolvedType}function pke(n){return pi(XP(n.type)||n.type)}function XP(n){switch(n.kind){case 193:return XP(n.type);case 186:if(n.elements.length===1&&(n=n.elements[0],n.kind===188||n.kind===199&&n.dotDotDotToken))return XP(n.type);break;case 185:return n.elementType}}function Gtt(n){const a=Jr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?pke(n):ko(pi(n.type),!0,!!n.questionToken))}function pi(n){return get(mke(n),n)}function mke(n){switch(n.kind){case 131:case 315:case 316:return we;case 157:return he;case 152:return ue;case 148:return mt;case 160:return Wt;case 134:return Re;case 153:return q;case 114:return Rt;case 155:return He;case 104:return Sn;case 144:return gt;case 149:return n.flags&262144&&!xe?we:li;case 139:return ie;case 194:case 108:return cV(n);case 198:return Mtt(n);case 180:return Wie(n);case 179:return n.assertsModifier?Rt:Re;case 230:return Wie(n);case 183:return CIe(n);case 185:case 186:return qet(n);case 187:return Yet(n);case 189:return rtt(n);case 190:return dtt(n);case 317:return yet(n);case 319:return ko(pi(n.type));case 199:return Gtt(n);case 193:case 318:case 312:return pi(n.type);case 188:return pke(n);case 321:return Oct(n);case 181:case 182:case 184:case 325:case 320:case 326:return _ke(n);case 195:return ytt(n);case 196:return ske(n);case 197:return aae(n);case 191:return Dtt(n);case 192:return Rtt(n);case 200:return vtt(n);case 202:return Ntt(n);case 79:case 163:case 208:const a=G_(n);return a?js(a):Ce;default:return Ce}}function uV(n,a,l){if(n&&n.length)for(let u=0;u<n.length;u++){const p=n[u],y=l(p,a);if(p!==y){const A=u===0?[]:n.slice(0,u);for(A.push(y),u++;u<n.length;u++)A.push(l(n[u],a));return A}}return n}function cy(n,a){return uV(n,a,$i)}function dV(n,a){return uV(n,a,fA)}function hke(n,a){return uV(n,a,Ztt)}function Ad(n,a){return n.length===1?i1(n[0],a?a[0]:we):Utt(n,a)}function G0(n,a){switch(a.kind){case 0:return n===a.source?a.target:n;case 1:{const u=a.sources,p=a.targets;for(let y=0;y<u.length;y++)if(n===u[y])return p?p[y]:we;return n}case 2:{const u=a.sources,p=a.targets;for(let y=0;y<u.length;y++)if(n===u[y])return p[y]();return n}case 3:return a.func(n);case 4:case 5:const l=G0(n,a.mapper1);return l!==n&&a.kind===4?$i(l,a.mapper2):G0(l,a.mapper2)}}function i1(n,a){return D.attachDebugPrototypeIfDebug({kind:0,source:n,target:a})}function Utt(n,a){return D.attachDebugPrototypeIfDebug({kind:1,sources:n,targets:a})}function YP(n,a){return D.attachDebugPrototypeIfDebug({kind:3,func:n,debugInfo:D.isDebugging?a:void 0})}function dae(n,a){return D.attachDebugPrototypeIfDebug({kind:2,sources:n,targets:a})}function fV(n,a,l){return D.attachDebugPrototypeIfDebug({kind:n,mapper1:a,mapper2:l})}function gke(n){return Ad(n,void 0)}function Vtt(n,a){const l=n.inferences.slice(a);return Ad(zt(l,u=>u.typeParameter),zt(l,()=>he))}function U0(n,a){return n?fV(4,n,a):a}function jtt(n,a){return n?fV(5,n,a):a}function GS(n,a,l){return l?fV(5,i1(n,a),l):i1(n,a)}function UD(n,a,l){return n?fV(5,n,i1(a,l)):i1(a,l)}function Htt(n){return!n.constraint&&!Uie(n)||n.constraint===$o?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Gd(n.symbol),n.restrictiveInstantiation.constraint=$o,n.restrictiveInstantiation)}function _V(n){const a=Gd(n.symbol);return a.target=n,a}function Wtt(n,a){return HP(n.kind,n.parameterName,n.parameterIndex,$i(n.type,a))}function fA(n,a,l){let u;if(n.typeParameters&&!l){u=zt(n.typeParameters,_V),a=U0(Ad(n.typeParameters,u),a);for(const y of u)y.mapper=a}const p=mh(n.declaration,u,n.thisParameter&&fae(n.thisParameter,a),uV(n.parameters,a,fae),void 0,void 0,n.minArgumentCount,n.flags&39);return p.target=n,p.mapper=a,p}function fae(n,a){const l=zi(n);if(l.type&&!ZE(l.type))return n;Dl(n)&1&&(n=l.target,a=U0(l.mapper,a));const u=ns(n.flags,n.escapedName,1|Dl(n)&53256);return u.declarations=n.declarations,u.parent=n.parent,u.links.target=n,u.links.mapper=a,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),l.nameType&&(u.links.nameType=l.nameType),u}function ztt(n,a,l,u){const p=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],y=Jr(p),A=n.objectFlags&4?y.resolvedType:n.objectFlags&64?n.target:n;let R=y.outerTypeParameters;if(!R){let F=FL(p,!0);if(Kp(p)){const Q=dIe(p);F=Ai(F,Q)}R=F||rt;const J=n.objectFlags&8388612?[p]:n.symbol.declarations;R=(A.objectFlags&8388612||A.symbol.flags&8192||A.symbol.flags&2048)&&!A.aliasTypeArguments?yn(R,Q=>kt(J,ge=>$P(Q,ge))):R,y.outerTypeParameters=R}if(R.length){const F=U0(n.mapper,a),J=zt(R,_t=>G0(_t,F)),Q=l||n.aliasSymbol,ge=l?u:cy(n.aliasTypeArguments,a),Ne=m_(J)+aA(Q,ge);A.instantiations||(A.instantiations=new Map,A.instantiations.set(m_(R)+aA(A.aliasSymbol,A.aliasTypeArguments),A));let De=A.instantiations.get(Ne);if(!De){const _t=Ad(R,J);De=A.objectFlags&4?Vie(n.target,n.node,_t,Q,ge):A.objectFlags&32?yke(A,_t,Q,ge):mae(A,_t,Q,ge),A.instantiations.set(Ne,De)}return De}return n}function qtt(n){return!(n.parent.kind===180&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===202&&n.parent.typeArguments&&n===n.parent.qualifier)}function $P(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const u=n.symbol.declarations[0].parent;for(let p=a;p!==u;p=p.parent)if(!p||p.kind===238||p.kind===191&&Pa(p.extendsType,l))return!0;return l(a)}return!0;function l(u){switch(u.kind){case 194:return!!n.isThisType;case 79:return!n.isThisType&&Ih(u)&&qtt(u)&&mke(u)===n;case 183:const p=u.exprName,y=Ff(p),A=B_(y),R=n.symbol.declarations[0];let F;if(R.kind===165)F=R.parent;else if(n.isThisType)F=R;else return!0;return A.declarations?kt(A.declarations,J=>DT(J,F))||kt(u.typeArguments,l):!0;case 171:case 170:return!u.type&&!!u.body||kt(u.typeParameters,l)||kt(u.parameters,l)||!!u.type&&l(u.type)}return!!Pa(u,l)}}function _ae(n){const a=Hp(n);if(a.flags&4194304){const l=bv(a.type);if(l.flags&262144)return l}}function yke(n,a,l,u){const p=_ae(n);if(p){const y=$i(p,a);if(p!==y)return bwe(yp(y),A=>{if(A.flags&61603843&&A!==Nt&&!rs(A)){if(!n.declaration.nameType){let R;if(Zf(A)||A.flags&1&&_h(p,4)<0&&(R=Ru(p))&&gh(R,YE))return Ktt(A,n,GS(p,A,a));if(_A(A))return Jtt(A,n,p,a);if(Bo(A))return Xtt(A,n,GS(p,A,a))}return mae(n,GS(p,A,a))}return A},l,u)}return $i(Hp(n),a)===Nt?Nt:mae(n,a,l,u)}function pae(n,a){return a&1?!0:a&2?!1:n}function Jtt(n,a,l,u){const p=n.target.elementFlags,y=zt(ys(n),(R,F)=>{const J=p[F]&8?R:p[F]&4?Ou(R):zp([R],[p[F]]);return yke(a,GS(l,J,u))}),A=pae(n.target.readonly,xm(a));return zp(y,zt(y,R=>8),A)}function Ktt(n,a,l){const u=vke(a,mt,!0,l);return rs(u)?Ce:Ou(u,pae(JL(n),xm(a)))}function Xtt(n,a,l){const u=n.target.elementFlags,p=zt(ys(n),(F,J)=>vke(a,Qf(""+J),!!(u[J]&2),l)),y=xm(a),A=y&4?zt(u,F=>F&1?2:F):y&8?zt(u,F=>F&2?1:F):u,R=pae(n.target.readonly,y);return Ur(p,Ce)?Ce:zp(p,A,R,n.target.labeledElementDeclarations)}function vke(n,a,l,u){const p=UD(u,hp(n),a),y=$i(rg(n.target||n),p),A=xm(n);return W&&A&4&&!gl(y,49152)?uy(y,!0):W&&A&8&&l?g_(y,524288):y}function mae(n,a,l,u){const p=Af(n.objectFlags|64,n.symbol);if(n.objectFlags&32){p.declaration=n.declaration;const y=hp(n),A=_V(y);p.typeParameter=A,a=U0(i1(y,A),a),A.mapper=a}return n.objectFlags&8388608&&(p.node=n.node),p.target=n,p.mapper=a,p.aliasSymbol=l||n.aliasSymbol,p.aliasTypeArguments=l?u:cy(n.aliasTypeArguments,a),p.objectFlags|=p.aliasTypeArguments?$U(p.aliasTypeArguments):0,p}function hae(n,a,l,u){const p=n.root;if(p.outerTypeParameters){const y=zt(p.outerTypeParameters,F=>G0(F,a)),A=m_(y)+aA(l,u);let R=p.instantiations.get(A);if(!R){const F=Ad(p.outerTypeParameters,y),J=p.checkType,Q=p.isDistributive?G0(J,F):void 0;R=Q&&J!==Q&&Q.flags&1179648?bwe(yp(Q),ge=>oae(p,GS(J,ge,F)),l,u):oae(p,F,l,u),p.instantiations.set(A,R)}return R}return n}function $i(n,a){return n&&a?bke(n,a,void 0,void 0):n}function bke(n,a,l,u){var p;if(!ZE(n))return n;if(O===100||I>=5e6)return(p=Si)==null||p.instant(Si.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:O,instantiationCount:I}),Ke(G,_.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ce;L++,I++,O++;const y=Ytt(n,a,l,u);return O--,y}function Ytt(n,a,l,u){const p=n.flags;if(p&262144)return G0(n,a);if(p&524288){const y=n.objectFlags;if(y&52){if(y&4&&!n.node){const A=n.resolvedTypeArguments,R=cy(A,a);return R!==A?$ie(n.target,R):n}return y&1024?$tt(n,a):ztt(n,a,l,u)}return n}if(p&3145728){const y=n.flags&1048576?n.origin:void 0,A=y&&y.flags&3145728?y.types:n.types,R=cy(A,a);if(R===A&&l===n.aliasSymbol)return n;const F=l||n.aliasSymbol,J=l?u:cy(n.aliasTypeArguments,a);return p&2097152||y&&y.flags&2097152?Do(R,F,J):Zr(R,1,F,J)}if(p&4194304)return Lm($i(n.type,a));if(p&134217728)return KE(n.texts,cy(n.types,a));if(p&268435456)return FS(n.symbol,$i(n.type,a));if(p&8388608){const y=l||n.aliasSymbol,A=l?u:cy(n.aliasTypeArguments,a);return jd($i(n.objectType,a),$i(n.indexType,a),n.accessFlags,void 0,y,A)}if(p&16777216)return hae(n,U0(n.mapper,a),l,u);if(p&33554432){const y=$i(n.baseType,a),A=$i(n.constraint,a);return y.flags&8650752&&WL(A)?jie(y,A):A.flags&3||Ao(XE(y),XE(A))?y:y.flags&8650752?jie(y,A):Do([A,y])}return n}function $tt(n,a){const l=$i(n.mappedType,a);if(!(ri(l)&32))return n;const u=$i(n.constraintType,a);if(!(u.flags&4194304))return n;const p=$ke($i(n.source,a),l,u);return p||n}function Qtt(n){return n.flags&134479871?n:n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=$i(n,ss))}function pV(n){return n.flags&134479871?n:n.permissiveInstantiation||(n.permissiveInstantiation=$i(n,Wi))}function XE(n){return n.flags&134479871?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=$i(n,ca),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function Ztt(n,a){return Cm(n.keyType,$i(n.type,a),n.isReadonly,n.declaration)}function F_(n){switch(D.assert(n.kind!==171||q_(n)),n.kind){case 215:case 216:case 171:case 259:return Eke(n);case 207:return kt(n.properties,F_);case 206:return kt(n.elements,F_);case 224:return F_(n.whenTrue)||F_(n.whenFalse);case 223:return(n.operatorToken.kind===56||n.operatorToken.kind===60)&&(F_(n.left)||F_(n.right));case 299:return F_(n.initializer);case 214:return F_(n.expression);case 289:return kt(n.properties,F_)||Gh(n.parent)&&kt(n.parent.parent.children,F_);case 288:{const{initializer:a}=n;return!!a&&F_(a)}case 291:{const{expression:a}=n;return!!a&&F_(a)}}return!1}function Eke(n){return S7(n)||ent(n)}function ent(n){return!n.typeParameters&&!Cp(n)&&!!n.body&&n.body.kind!==238&&F_(n.body)}function mV(n){return(CC(n)||q_(n))&&Eke(n)}function Tke(n){if(n.flags&524288){const a=gp(n);if(a.constructSignatures.length||a.callSignatures.length){const l=Af(16,n.symbol);return l.members=a.members,l.properties=a.properties,l.callSignatures=rt,l.constructSignatures=rt,l.indexInfos=rt,l}}else if(n.flags&2097152)return Do(zt(n.types,Tke));return n}function ig(n,a){return Im(n,a,Fd)}function VD(n,a){return Im(n,a,Fd)?-1:0}function gae(n,a){return Im(n,a,Pd)?-1:0}function tnt(n,a){return Im(n,a,oh)?-1:0}function Ev(n,a){return Im(n,a,oh)}function Ske(n,a){return Im(n,a,cp)}function Ao(n,a){return Im(n,a,Pd)}function a1(n,a){return n.flags&1048576?Zn(n.types,l=>a1(l,a)):a.flags&1048576?kt(a.types,l=>a1(n,l)):n.flags&2097152?kt(n.types,l=>a1(l,a)):n.flags&58982400?a1(Zu(n)||he,a):og(a)?!!(n.flags&67633152):a===$a?!!(n.flags&67633152)&&!og(n):a===pl?!!(n.flags&524288)&&Qae(n):HE(n,eA(a))||Zf(a)&&!JL(a)&&a1(n,fs)}function hV(n,a){return Im(n,a,Md)}function QP(n,a){return hV(n,a)||hV(a,n)}function fd(n,a,l,u,p,y){return h_(n,a,Pd,l,u,p,y)}function Tv(n,a,l,u,p,y){return yae(n,a,Pd,l,u,p,y,void 0)}function yae(n,a,l,u,p,y,A,R){return Im(n,a,l)?!0:!u||!jD(p,n,a,l,y,A,R)?h_(n,a,l,u,y,A,R):!1}function xke(n){return!!(n.flags&16777216||n.flags&2097152&&kt(n.types,xke))}function jD(n,a,l,u,p,y,A){if(!n||xke(l))return!1;if(!h_(a,l,u,void 0)&&nnt(n,a,l,u,p,y,A))return!0;switch(n.kind){case 291:case 214:return jD(n.expression,a,l,u,p,y,A);case 223:switch(n.operatorToken.kind){case 63:case 27:return jD(n.right,a,l,u,p,y,A)}break;case 207:return unt(n,a,l,u,y,A);case 206:return lnt(n,a,l,u,y,A);case 289:return snt(n,a,l,u,y,A);case 216:return rnt(n,a,l,u,y,A)}return!1}function nnt(n,a,l,u,p,y,A){const R=za(a,0),F=za(a,1);for(const J of[F,R])if(kt(J,Q=>{const ge=vs(Q);return!(ge.flags&131073)&&h_(ge,l,u,void 0)})){const Q=A||{};fd(a,l,n,p,y,Q);const ge=Q.errors[Q.errors.length-1];return Yo(ge,Nr(n,J===F?_.Did_you_mean_to_use_new_with_this_expression:_.Did_you_mean_to_call_this_expression)),!0}return!1}function rnt(n,a,l,u,p,y){if(uo(n.body)||kt(n.parameters,m3))return!1;const A=HS(a);if(!A)return!1;const R=za(l,0);if(!Le(R))return!1;const F=n.body,J=vs(A),Q=Zr(zt(R,vs));if(!h_(J,Q,u,void 0)){const ge=F&&jD(F,J,Q,u,void 0,p,y);if(ge)return ge;const Ne=y||{};if(h_(J,Q,u,F,void 0,p,Ne),Ne.errors)return l.symbol&&Le(l.symbol.declarations)&&Yo(Ne.errors[Ne.errors.length-1],Nr(l.symbol.declarations[0],_.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Jc(n)&2)&&!vc(J,"then")&&h_(L4(J),Q,u,void 0)&&Yo(Ne.errors[Ne.errors.length-1],Nr(n,_.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function Ake(n,a,l){const u=vv(a,l);if(u)return u;if(a.flags&1048576){const p=Nke(n,a);if(p)return vv(p,l)}}function Cke(n,a){h4(n,a,!1);const l=oI(n,1);return ZD(),l}function ZP(n,a,l,u,p,y){let A=!1;for(const R of n){const{errorNode:F,innerExpression:J,nameType:Q,errorMessage:ge}=R;let Ne=Ake(a,l,Q);if(!Ne||Ne.flags&8388608)continue;let De=vv(a,Q);if(!De)continue;const _t=rV(Q,void 0);if(!h_(De,Ne,u,void 0)){const Bt=J&&jD(J,De,Ne,u,void 0,p,y);if(A=!0,!Bt){const Fn=y||{},An=J?Cke(J,De):De;if(ze&&yV(An,Ne)){const Xn=Nr(F,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ke(An),ke(Ne));Zo.add(Xn),Fn.errors=[Xn]}else{const Xn=!!(_t&&(fo(l,_t)||rn).flags&16777216),hn=!!(_t&&(fo(a,_t)||rn).flags&16777216);Ne=$E(Ne,Xn),De=$E(De,Xn&&hn),h_(An,Ne,u,F,ge,p,Fn)&&An!==De&&h_(De,Ne,u,F,ge,p,Fn)}if(Fn.errors){const Xn=Fn.errors[Fn.errors.length-1],hn=ng(Q)?Sm(Q):void 0,xn=hn!==void 0?fo(l,hn):void 0;let yr=!1;if(!xn){const sn=jP(l,Q);sn&&sn.declaration&&!er(sn.declaration).hasNoDefaultLib&&(yr=!0,Yo(Xn,Nr(sn.declaration,_.The_expected_type_comes_from_this_index_signature)))}if(!yr&&(xn&&Le(xn.declarations)||l.symbol&&Le(l.symbol.declarations))){const sn=xn&&Le(xn.declarations)?xn.declarations[0]:l.symbol.declarations[0];er(sn).hasNoDefaultLib||Yo(Xn,Nr(sn,_.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,hn&&!(Q.flags&8192)?ra(hn):ke(Q),ke(l)))}}}}}return A}function int(n,a,l,u,p,y){const A=bc(l,xV),R=bc(l,Q=>!xV(Q)),F=R!==gt?fse(13,0,R,void 0):void 0;let J=!1;for(let Q=n.next();!Q.done;Q=n.next()){const{errorNode:ge,innerExpression:Ne,nameType:De,errorMessage:_t}=Q.value;let Bt=F;const Fn=A!==gt?Ake(a,A,De):void 0;if(Fn&&!(Fn.flags&8388608)&&(Bt=F?Zr([F,Fn]):Fn),!Bt)continue;let An=vv(a,De);if(!An)continue;const Xn=rV(De,void 0);if(!h_(An,Bt,u,void 0)){const hn=Ne&&jD(Ne,An,Bt,u,void 0,p,y);if(J=!0,!hn){const xn=y||{},yr=Ne?Cke(Ne,An):An;if(ze&&yV(yr,Bt)){const sn=Nr(ge,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ke(yr),ke(Bt));Zo.add(sn),xn.errors=[sn]}else{const sn=!!(Xn&&(fo(A,Xn)||rn).flags&16777216),Un=!!(Xn&&(fo(a,Xn)||rn).flags&16777216);Bt=$E(Bt,sn),An=$E(An,sn&&Un),h_(yr,Bt,u,ge,_t,p,xn)&&yr!==An&&h_(An,Bt,u,ge,_t,p,xn)}}}}return J}function*ant(n){if(Le(n.properties))for(const a of n.properties)WT(a)||hoe(Mr(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Qf(Mr(a.name))})}function*ont(n,a){if(!Le(n.children))return;let l=0;for(let u=0;u<n.children.length;u++){const p=n.children[u],y=qp(u-l),A=Lke(p,y,a);A?yield A:l++}}function Lke(n,a,l){switch(n.kind){case 291:return{errorNode:n,innerExpression:n.expression,nameType:a};case 11:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:a,errorMessage:l()};case 281:case 282:case 285:return{errorNode:n,innerExpression:n,nameType:a};default:return D.assertNever(n,"Found invalid jsx child")}}function snt(n,a,l,u,p,y){let A=ZP(ant(n),a,l,u,p,y),R;if(Gh(n.parent)&&Fy(n.parent.parent)){const J=n.parent.parent,Q=qV(hA(n)),ge=Q===void 0?"children":ra(Q),Ne=Qf(ge),De=jd(l,Ne),_t=aO(J.children);if(!Le(_t))return A;const Bt=Le(_t)>1;let Fn,An;if(Jie(!1)!==Lo){const hn=FIe(we);Fn=bc(De,xn=>Ao(xn,hn)),An=bc(De,xn=>!Ao(xn,hn))}else Fn=bc(De,xV),An=bc(De,hn=>!xV(hn));if(Bt){if(Fn!==gt){const hn=zp(zV(J,0)),xn=ont(J,F);A=int(xn,hn,Fn,u,p,y)||A}else if(!Im(jd(a,Ne),De,u)){A=!0;const hn=Ke(J.openingElement.tagName,_.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,ge,ke(De));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(hn)}}else if(An!==gt){const hn=_t[0],xn=Lke(hn,Ne,F);xn&&(A=ZP(function*(){yield xn}(),a,l,u,p,y)||A)}else if(!Im(jd(a,Ne),De,u)){A=!0;const hn=Ke(J.openingElement.tagName,_.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,ge,ke(De));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(hn)}}return A;function F(){if(!R){const J=kc(n.parent.tagName),Q=qV(hA(n)),ge=Q===void 0?"children":ra(Q),Ne=jd(l,Qf(ge)),De=_._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;R=Ka(Ti({},De),{key:"!!ALREADY FORMATTED!!",message:tJ(void 0,De,J,ge,ke(Ne))})}return R}}function*Ike(n,a){const l=Le(n.elements);if(l)for(let u=0;u<l;u++){if(KL(a)&&!fo(a,""+u))continue;const p=n.elements[u];if(Fc(p))continue;const y=qp(u);yield{errorNode:p,innerExpression:p,nameType:y}}}function lnt(n,a,l,u,p,y){if(l.flags&134479868)return!1;if(KL(a))return ZP(Ike(n,l),a,l,u,p,y);h4(n,l,!1);const A=qwe(n,1,!0);return ZD(),KL(A)?ZP(Ike(n,l),A,l,u,p,y):!1}function*cnt(n){if(Le(n.properties))for(const a of n.properties){if(n2(a))continue;const l=HL(Ir(a),8576);if(!(!l||l.flags&131072))switch(a.kind){case 175:case 174:case 171:case 300:yield{errorNode:a.name,innerExpression:void 0,nameType:l};break;case 299:yield{errorNode:a.name,innerExpression:a.initializer,nameType:l,errorMessage:CN(a.name)?_.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:D.assertNever(a)}}}function unt(n,a,l,u,p,y){return l.flags&134479868?!1:ZP(cnt(n),a,l,u,p,y)}function kke(n,a,l,u,p){return h_(n,a,Md,l,u,p)}function dnt(n,a,l){return vae(n,a,l?4:0,!1,void 0,void 0,gae,void 0)!==0}function gV(n){if(!n.typeParameters&&(!n.thisParameter||xs(A4(n.thisParameter)))&&n.parameters.length===1&&Lu(n)){const a=A4(n.parameters[0]);return!!((Zf(a)?ys(a)[0]:a).flags&131073&&vs(n).flags&3)}return!1}function vae(n,a,l,u,p,y,A,R){if(n===a||!(l&16&&gV(n))&&gV(a))return-1;if(l&16&&gV(n)&&!gV(a))return 0;const F=lf(a);if(!Dm(a)&&(l&8?Dm(n)||lf(n)>F:wm(n)>F))return 0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=det(a),n=SDe(n,a,void 0,A));const Q=lf(n),ge=aR(n),Ne=aR(a);(ge||Ne)&&$i(ge||Ne,R);const De=a.declaration?a.declaration.kind:0,_t=!(l&3)&&ce&&De!==171&&De!==170&&De!==173;let Bt=-1;const Fn=Qb(n);if(Fn&&Fn!==Rt){const hn=Qb(a);if(hn){const xn=!_t&&A(Fn,hn,!1)||A(hn,Fn,u);if(!xn)return u&&p(_.The_this_types_of_each_signature_are_incompatible),0;Bt&=xn}}const An=ge||Ne?Math.min(Q,F):Math.max(Q,F),Xn=ge||Ne?An-1:-1;for(let hn=0;hn<An;hn++){const xn=hn===Xn?rR(n,hn):aT(n,hn),yr=hn===Xn?rR(a,hn):aT(a,hn);if(xn&&yr){const sn=l&3?void 0:HS(dy(xn)),Un=l&3?void 0:HS(dy(yr));let ei=sn&&Un&&!p_(sn)&&!p_(Un)&&(Mu(xn)&50331648)===(Mu(yr)&50331648)?vae(Un,sn,l&8|(_t?2:1),u,p,y,A,R):!(l&3)&&!_t&&A(xn,yr,!1)||A(yr,xn,u);if(ei&&l&8&&hn>=wm(n)&&hn<wm(a)&&A(xn,yr,!1)&&(ei=0),!ei)return u&&p(_.Types_of_parameters_0_and_1_are_incompatible,ra(iI(n,hn)),ra(iI(a,hn))),0;Bt&=ei}}if(!(l&4)){const hn=Mie(a)?we:a.declaration&&Kp(a.declaration)?Qu(as(a.declaration.symbol)):vs(a);if(hn===Rt||hn===we)return Bt;const xn=Mie(n)?we:n.declaration&&Kp(n.declaration)?Qu(as(n.declaration.symbol)):vs(n),yr=p_(a);if(yr){const sn=p_(n);if(sn)Bt&=fnt(sn,yr,u,p,A);else if(Dfe(yr))return u&&p(_.Signature_0_must_be_a_type_predicate,le(n)),0}else Bt&=l&1&&A(hn,xn,!1)||A(xn,hn,u),!Bt&&u&&y&&y(xn,hn)}return Bt}function fnt(n,a,l,u,p){if(n.kind!==a.kind)return l&&(u(_.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),u(_.Type_predicate_0_is_not_assignable_to_1,su(n),su(a))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==a.parameterIndex)return l&&(u(_.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,a.parameterName),u(_.Type_predicate_0_is_not_assignable_to_1,su(n),su(a))),0;const y=n.type===a.type?-1:n.type&&a.type?p(n.type,a.type,l):0;return y===0&&l&&u(_.Type_predicate_0_is_not_assignable_to_1,su(n),su(a)),y}function _nt(n,a){const l=PD(n),u=PD(a),p=vs(l),y=vs(u);return y===Rt||Im(y,p,Pd)||Im(p,y,Pd)?dnt(l,u,!0):!1}function bae(n){return n!==Ca&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function ag(n){return n.flags&524288?!$f(n)&&bae(gp(n)):n.flags&67108864?!0:n.flags&1048576?kt(n.types,ag):n.flags&2097152?Zn(n.types,ag):!1}function og(n){return!!(ri(n)&16&&(n.members&&bae(n)||n.symbol&&n.symbol.flags&2048&&_v(n.symbol).size===0))}function pnt(n){if(W&&n.flags&1048576){if(!(n.objectFlags&33554432)){const a=n.types;n.objectFlags|=33554432|(a.length>=3&&a[0].flags&32768&&a[1].flags&65536&&kt(a,og)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function zL(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function wke(n){return n.flags&524288&&!$f(n)&&gs(n).length===0&&Nu(n).length===1&&!!hh(n,ue)||n.flags&3145728&&Zn(n.types,wke)||!1}function Eae(n,a,l){const u=n.flags&8?Sd(n):n,p=a.flags&8?Sd(a):a;if(u===p)return!0;if(u.escapedName!==p.escapedName||!(u.flags&256)||!(p.flags&256))return!1;const y=Eo(u)+","+Eo(p),A=Db.get(y);if(A!==void 0&&!(!(A&4)&&A&2&&l))return!!(A&1);const R=or(p);for(const F of gs(or(u)))if(F.flags&8){const J=fo(R,F.escapedName);if(!J||!(J.flags&8))return l?(l(_.Property_0_is_missing_in_type_1,Gl(F),ke(js(p),void 0,64)),Db.set(y,6)):Db.set(y,2),!1}return Db.set(y,1),!0}function HD(n,a,l,u){const p=n.flags,y=a.flags;return y&1||p&131072||n===Nt||y&2&&!(l===cp&&p&1)?!0:y&131072?!1:!!(p&402653316&&y&4||p&128&&p&1024&&y&128&&!(y&1024)&&n.value===a.value||p&296&&y&8||p&256&&p&1024&&y&256&&!(y&1024)&&n.value===a.value||p&2112&&y&64||p&528&&y&16||p&12288&&y&4096||p&32&&y&32&&n.symbol.escapedName===a.symbol.escapedName&&Eae(n.symbol,a.symbol,u)||p&1024&&y&1024&&(p&1048576&&y&1048576&&Eae(n.symbol,a.symbol,u)||p&2944&&y&2944&&n.value===a.value&&Eae(n.symbol,a.symbol,u))||p&32768&&(!W&&!(y&3145728)||y&49152)||p&65536&&(!W&&!(y&3145728)||y&65536)||p&524288&&y&67108864&&!(l===cp&&og(n)&&!(ri(n)&8192))||(l===Pd||l===Md)&&(p&1||p&8&&(y&32||y&256&&y&1024)||p&256&&!(p&1024)&&(y&32||y&256&&y&1024&&n.value===a.value)||pnt(a)))}function Im(n,a,l){if(r1(n)&&(n=n.regularType),r1(a)&&(a=a.regularType),n===a)return!0;if(l!==Fd){if(l===Md&&!(a.flags&131072)&&HD(a,n,l)||HD(n,a,l))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){const u=l.get(Cae(n,a,0,l,!1));if(u!==void 0)return!!(u&1)}return n.flags&469499904||a.flags&469499904?h_(n,a,l,void 0):!1}function Dke(n,a){return ri(n)&2048&&hoe(a.escapedName)}function e4(n,a){for(;;){const l=r1(n)?n.regularType:ri(n)&4?n.node?oy(n.target,ys(n)):kae(n)||n:n.flags&3145728?mnt(n,a):n.flags&33554432?a?n.baseType:Hie(n):n.flags&25165824?ly(n,a):n;if(l===n)return l;n=l}}function mnt(n,a){const l=yp(n);if(l!==n)return l;if(n.flags&2097152&&kt(n.types,og)){const u=no(n.types,p=>e4(p,a));if(u!==n.types)return Do(u)}return n}function h_(n,a,l,u,p,y,A){var R;let F,J,Q,ge,Ne,De=0,_t=0,Bt=0,Fn=0,An=!1,Xn=0,hn,xn;D.assert(l!==Fd||!u,"no error reporting in identity checking");const yr=sa(n,a,3,!!u,p);if(xn&&ei(),An){(R=Si)==null||R.instant(Si.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:_t,targetDepth:Bt});const nt=Ke(u||G,_.Excessive_stack_depth_comparing_types_0_and_1,ke(n),ke(a));A&&(A.errors||(A.errors=[])).push(nt)}else if(F){if(y){const tn=y();tn&&(q_e(tn,F),F=tn)}let nt;if(p&&u&&!yr&&n.symbol){const tn=zi(n.symbol);if(tn.originatingImport&&!hf(tn.originatingImport)&&h_(or(tn.target),a,l,void 0)){const mr=Nr(tn.originatingImport,_.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);nt=Bn(nt,mr)}}const St=Eg(er(u),u,F,nt);J&&Yo(St,...J),A&&(A.errors||(A.errors=[])).push(St),(!A||!A.skipLogging)&&Zo.add(St)}return u&&A&&A.skipLogging&&yr===0&&D.assert(!!A.errors,"missed opportunity to interact with error."),yr!==0;function sn(nt){F=nt.errorInfo,hn=nt.lastSkippedInfo,xn=nt.incompatibleStack,Xn=nt.overrideNextErrorInfo,J=nt.relatedInfo}function Un(){return{errorInfo:F,lastSkippedInfo:hn,incompatibleStack:xn==null?void 0:xn.slice(),overrideNextErrorInfo:Xn,relatedInfo:J==null?void 0:J.slice()}}function Jn(nt,St,tn,zn,mr){Xn++,hn=void 0,(xn||(xn=[])).push([nt,St,tn,zn,mr])}function ei(){const nt=xn||[];xn=void 0;const St=hn;if(hn=void 0,nt.length===1){ai(...nt[0]),St&&Za(void 0,...St);return}let tn="";const zn=[];for(;nt.length;){const[mr,...Ln]=nt.pop();switch(mr.code){case _.Types_of_property_0_are_incompatible.code:{tn.indexOf("new ")===0&&(tn=`(${tn})`);const Sr=""+Ln[0];tn.length===0?tn=`${Sr}`:H_(Sr,ts($))?tn=`${tn}.${Sr}`:Sr[0]==="["&&Sr[Sr.length-1]==="]"?tn=`${tn}${Sr}`:tn=`${tn}[${Sr}]`;break}case _.Call_signature_return_types_0_and_1_are_incompatible.code:case _.Construct_signature_return_types_0_and_1_are_incompatible.code:case _.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case _.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(tn.length===0){let Sr=mr;mr.code===_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Sr=_.Call_signature_return_types_0_and_1_are_incompatible:mr.code===_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Sr=_.Construct_signature_return_types_0_and_1_are_incompatible),zn.unshift([Sr,Ln[0],Ln[1]])}else{const Sr=mr.code===_.Construct_signature_return_types_0_and_1_are_incompatible.code||mr.code===_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",jr=mr.code===_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||mr.code===_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";tn=`${Sr}${tn}(${jr})`}break}case _.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{zn.unshift([_.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Ln[0],Ln[1]]);break}case _.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{zn.unshift([_.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Ln[0],Ln[1],Ln[2]]);break}default:return D.fail(`Unhandled Diagnostic: ${mr.code}`)}}tn?ai(tn[tn.length-1]===")"?_.The_types_returned_by_0_are_incompatible_between_these_types:_.The_types_of_0_are_incompatible_between_these_types,tn):zn.shift();for(const[mr,...Ln]of zn){const Sr=mr.elidedInCompatabilityPyramid;mr.elidedInCompatabilityPyramid=!1,ai(mr,...Ln),mr.elidedInCompatabilityPyramid=Sr}St&&Za(void 0,...St)}function ai(nt,St,tn,zn,mr){D.assert(!!u),xn&&ei(),!nt.elidedInCompatabilityPyramid&&(F=Ra(F,nt,St,tn,zn,mr))}function _a(nt){D.assert(!!F),J?J.push(nt):J=[nt]}function Za(nt,St,tn){xn&&ei();const[zn,mr]=an(St,tn);let Ln=St,Sr=zn;if(WD(St)&&!Tae(tn)&&(Ln=Sv(St),D.assert(!Ao(Ln,tn),"generalized source shouldn't be assignable"),Sr=Cr(Ln)),(tn.flags&8388608&&!(St.flags&8388608)?tn.objectType.flags:tn.flags)&262144&&tn!==Ns&&tn!==vl){const Ui=Zu(tn);let xa;Ui&&(Ao(Ln,Ui)||(xa=Ao(St,Ui)))?ai(_._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,xa?zn:Sr,mr,ke(Ui)):(F=void 0,ai(_._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,mr,Sr))}if(nt)nt===_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&ze&&Rke(St,tn).length&&(nt=_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(l===Md)nt=_.Type_0_is_not_comparable_to_type_1;else if(zn===mr)nt=_.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(ze&&Rke(St,tn).length)nt=_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(St.flags&128&&tn.flags&1048576){const Ui=yat(St,tn);if(Ui){ai(_.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,Sr,mr,ke(Ui));return}}nt=_.Type_0_is_not_assignable_to_type_1}ai(nt,Sr,mr)}function Lc(nt,St){const tn=Ci(nt.symbol)?ke(nt,nt.symbol.valueDeclaration):ke(nt),zn=Ci(St.symbol)?ke(St,St.symbol.valueDeclaration):ke(St);(ml===nt&&ue===St||Zd===nt&&mt===St||ql===nt&&Re===St||NIe()===nt&&q===St)&&ai(_._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,zn,tn)}function e_(nt,St,tn){return Bo(nt)?nt.target.readonly&&TV(St)?(tn&&ai(_.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ke(nt),ke(St)),!1):YE(St):JL(nt)&&TV(St)?(tn&&ai(_.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ke(nt),ke(St)),!1):Bo(St)?Zf(nt):!0}function kf(nt,St,tn){return sa(nt,St,3,tn)}function sa(nt,St,tn=3,zn=!1,mr,Ln=0){if(nt.flags&524288&&St.flags&134348796)return l===Md&&!(St.flags&131072)&&HD(St,nt,l)||HD(nt,St,l,zn?ai:void 0)?-1:(zn&&Vn(nt,St,nt,St,mr),0);const Sr=e4(nt,!1);let jr=e4(St,!0);if(Sr===jr)return-1;if(l===Fd)return Sr.flags!==jr.flags?0:Sr.flags&67358815?-1:(lr(Sr,jr),Qn(Sr,jr,!1,0,tn));if(Sr.flags&262144&&zE(Sr)===jr)return-1;if(Sr.flags&470302716&&jr.flags&1048576){const Ui=jr.types,xa=Ui.length===2&&Ui[0].flags&98304?Ui[1]:Ui.length===3&&Ui[0].flags&98304&&Ui[1].flags&98304?Ui[2]:void 0;if(xa&&!(xa.flags&98304)&&(jr=e4(xa,!0),Sr===jr))return-1}if(l===Md&&!(jr.flags&131072)&&HD(jr,Sr,l)||HD(Sr,jr,l,zn?ai:void 0))return-1;if(Sr.flags&469499904||jr.flags&469499904){if(!(Ln&2)&&H0(Sr)&&ri(Sr)&8192&&Ba(Sr,jr,zn))return zn&&Za(mr,Sr,St.aliasSymbol?St:jr),0;const xa=(l!==Md||vp(Sr))&&!(Ln&2)&&Sr.flags&136970236&&Sr!==$a&&jr.flags&2621440&&Oke(jr)&&(gs(Sr).length>0||xj(Sr)),qa=!!(ri(Sr)&2048);if(xa&&!gnt(Sr,jr,qa)){if(zn){const to=ke(nt.aliasSymbol?nt:Sr),Go=ke(St.aliasSymbol?St:jr),Ro=za(Sr,0),ws=za(Sr,1);Ro.length>0&&sa(vs(Ro[0]),jr,1,!1)||ws.length>0&&sa(vs(ws[0]),jr,1,!1)?ai(_.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,to,Go):ai(_.Type_0_has_no_properties_in_common_with_type_1,to,Go)}return 0}lr(Sr,jr);const gi=Sr.flags&1048576&&Sr.types.length<4&&!(jr.flags&1048576)||jr.flags&1048576&&jr.types.length<4&&!(Sr.flags&469499904)?es(Sr,jr,zn,Ln):Qn(Sr,jr,zn,Ln,tn);if(gi)return gi}return zn&&Vn(nt,St,Sr,jr,mr),0}function Vn(nt,St,tn,zn,mr){var Ln,Sr;const jr=!!kae(nt),Ui=!!kae(St);tn=nt.aliasSymbol||jr?nt:tn,zn=St.aliasSymbol||Ui?St:zn;let xa=Xn>0;if(xa&&Xn--,tn.flags&524288&&zn.flags&524288){const qa=F;e_(tn,zn,!0),F!==qa&&(xa=!!F)}if(tn.flags&524288&&zn.flags&134348796)Lc(tn,zn);else if(tn.symbol&&tn.flags&524288&&$a===tn)ai(_.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(ri(tn)&2048&&zn.flags&2097152){const qa=zn.types,eo=c1(Gf.IntrinsicAttributes,u),gi=c1(Gf.IntrinsicClassAttributes,u);if(!rs(eo)&&!rs(gi)&&(Ur(qa,eo)||Ur(qa,gi)))return}else F=Iie(F,St);if(!mr&&xa){hn=[tn,zn];return}if(Za(mr,tn,zn),tn.flags&262144&&((Sr=(Ln=tn.symbol)==null?void 0:Ln.declarations)!=null&&Sr[0])&&!zE(tn)){const qa=_V(tn);if(qa.constraint=$i(zn,i1(tn,qa)),DD(qa)){const eo=ke(zn,tn.symbol.declarations[0]);_a(Nr(tn.symbol.declarations[0],_.This_type_parameter_might_need_an_extends_0_constraint,eo))}}}function lr(nt,St){if(Si&&nt.flags&3145728&&St.flags&3145728){const tn=nt,zn=St;if(tn.objectFlags&zn.objectFlags&32768)return;const mr=tn.types.length,Ln=zn.types.length;mr*Ln>1e6&&Si.instant(Si.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:nt.id,sourceSize:mr,targetId:St.id,targetSize:Ln,pos:u==null?void 0:u.pos,end:u==null?void 0:u.end})}}function ea(nt,St){return Zr(Gu(nt,(zn,mr)=>{var Ln;mr=ed(mr);const Sr=mr.flags&3145728?Lie(mr,St):Yb(mr,St),jr=Sr&&or(Sr)||((Ln=rA(mr,St))==null?void 0:Ln.type)||He;return Bn(zn,jr)},void 0)||rt)}function Ba(nt,St,tn){var zn;if(!v4(St)||!xe&&ri(St)&4096)return!1;const mr=!!(ri(nt)&2048);if((l===Pd||l===Md)&&($D($a,St)||!mr&&ag(St)))return!1;let Ln=St,Sr;St.flags&1048576&&(Ln=WNe(nt,St,sa)||vdt(St),Sr=Ln.flags&1048576?Ln.types:[Ln]);for(const jr of gs(nt))if(ia(jr,nt.symbol)&&!Dke(nt,jr)){if(!boe(Ln,jr.escapedName,mr)){if(tn){const Ui=bc(Ln,v4);if(!u)return D.fail();if($1(u)||od(u)||od(u.parent)){jr.valueDeclaration&&fm(jr.valueDeclaration)&&er(u)===er(jr.valueDeclaration.name)&&(u=jr.valueDeclaration.name);const xa=x(jr),qa=hDe(xa,Ui),eo=qa?x(qa):void 0;eo?ai(_.Property_0_does_not_exist_on_type_1_Did_you_mean_2,xa,ke(Ui),eo):ai(_.Property_0_does_not_exist_on_type_1,xa,ke(Ui))}else{const xa=((zn=nt.symbol)==null?void 0:zn.declarations)&&tu(nt.symbol.declarations);let qa;if(jr.valueDeclaration&&rr(jr.valueDeclaration,eo=>eo===xa)&&er(xa)===er(u)){const eo=jr.valueDeclaration;D.assertNode(eo,Ly),u=eo;const gi=eo.name;je(gi)&&(qa=Ioe(gi,Ui))}qa!==void 0?ai(_.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,x(jr),ke(Ui),qa):ai(_.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,x(jr),ke(Ui))}}return!0}if(Sr&&!sa(or(jr),ea(Sr,jr.escapedName),3,tn))return tn&&Jn(_.Types_of_property_0_are_incompatible,x(jr)),!0}return!1}function ia(nt,St){return nt.valueDeclaration&&St.valueDeclaration&&nt.valueDeclaration.parent===St.valueDeclaration}function es(nt,St,tn,zn){if(nt.flags&1048576)return l===Md?td(nt,St,tn&&!(nt.flags&134348796),zn):Se(nt,St,tn&&!(nt.flags&134348796),zn);if(St.flags&1048576)return bl(o4(nt),St,tn&&!(nt.flags&134348796)&&!(St.flags&134348796));if(St.flags&2097152)return Co(nt,St,tn,2);if(l===Md&&St.flags&134348796){const mr=no(nt.types,Ln=>Ln.flags&465829888?Zu(Ln)||he:Ln);if(mr!==nt.types){if(nt=Do(mr),nt.flags&131072)return 0;if(!(nt.flags&2097152))return sa(nt,St,1,!1)||sa(St,nt,1,!1)}}return td(nt,St,!1,1)}function Ms(nt,St){let tn=-1;const zn=nt.types;for(const mr of zn){const Ln=bl(mr,St,!1);if(!Ln)return 0;tn&=Ln}return tn}function bl(nt,St,tn){const zn=St.types;if(St.flags&1048576){if(e1(zn,nt))return-1;const mr=lwe(St,nt);if(mr){const Ln=sa(nt,mr,2,!1);if(Ln)return Ln}}for(const mr of zn){const Ln=sa(nt,mr,2,!1);if(Ln)return Ln}if(tn){const mr=Nke(nt,St,sa);mr&&sa(nt,mr,2,!0)}return 0}function Co(nt,St,tn,zn){let mr=-1;const Ln=St.types;for(const Sr of Ln){const jr=sa(nt,Sr,2,tn,void 0,zn);if(!jr)return 0;mr&=jr}return mr}function td(nt,St,tn,zn){const mr=nt.types;if(nt.flags&1048576&&e1(mr,St))return-1;const Ln=mr.length;for(let Sr=0;Sr<Ln;Sr++){const jr=sa(mr[Sr],St,1,tn&&Sr===Ln-1,void 0,zn);if(jr)return jr}return 0}function dt(nt,St){return nt.flags&1048576&&St.flags&1048576&&!(nt.types[0].flags&32768)&&St.types[0].flags&32768?$L(St,-32769):St}function Se(nt,St,tn,zn){let mr=-1;const Ln=nt.types,Sr=dt(nt,St);for(let jr=0;jr<Ln.length;jr++){const Ui=Ln[jr];if(Sr.flags&1048576&&Ln.length>=Sr.types.length&&Ln.length%Sr.types.length===0){const qa=sa(Ui,Sr.types[jr%Sr.types.length],3,!1,void 0,zn);if(qa){mr&=qa;continue}}const xa=sa(Ui,St,1,tn,void 0,zn);if(!xa)return 0;mr&=xa}return mr}function tr(nt=rt,St=rt,tn=rt,zn,mr){if(nt.length!==St.length&&l===Fd)return 0;const Ln=nt.length<=St.length?nt.length:St.length;let Sr=-1;for(let jr=0;jr<Ln;jr++){const Ui=jr<tn.length?tn[jr]:1,xa=Ui&7;if(xa!==4){const qa=nt[jr],eo=St[jr];let gi=-1;if(Ui&8?gi=l===Fd?sa(qa,eo,3,!1):VD(qa,eo):xa===1?gi=sa(qa,eo,3,zn,void 0,mr):xa===2?gi=sa(eo,qa,3,zn,void 0,mr):xa===3?(gi=sa(eo,qa,3,!1),gi||(gi=sa(qa,eo,3,zn,void 0,mr))):(gi=sa(qa,eo,3,zn,void 0,mr),gi&&(gi&=sa(eo,qa,3,zn,void 0,mr))),!gi)return 0;Sr&=gi}}return Sr}function Qn(nt,St,tn,zn,mr){var Ln,Sr,jr;if(An)return 0;const Ui=Cae(nt,St,zn,l,!1),xa=l.get(Ui);if(xa!==void 0&&!(tn&&xa&2&&!(xa&4))){if(hi){const Ro=xa&24;Ro&8&&$i(nt,Dn),Ro&16&&$i(nt,ua)}return xa&1?-1:0}if(!Q)Q=[],ge=[],Ne=[];else{const Ro=Ui.startsWith("*")?Cae(nt,St,zn,l,!0):void 0;for(let ws=0;ws<De;ws++)if(Ui===Q[ws]||Ro&&Ro===Q[ws])return 3;if(_t===100||Bt===100)return An=!0,0}const qa=De;Q[De]=Ui,De++;const eo=Fn;mr&1&&(ge[_t]=nt,_t++,!(Fn&1)&&r4(nt,ge,_t)&&(Fn|=1)),mr&2&&(Ne[Bt]=St,Bt++,!(Fn&2)&&r4(St,Ne,Bt)&&(Fn|=2));let gi,to=0;hi&&(gi=hi,hi=Ro=>(to|=Ro?16:8,gi(Ro)));let Go;if(Fn===3?((Ln=Si)==null||Ln.instant(Si.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:nt.id,sourceIdStack:ge.map(Ro=>Ro.id),targetId:St.id,targetIdStack:Ne.map(Ro=>Ro.id),depth:_t,targetDepth:Bt}),Go=3):((Sr=Si)==null||Sr.push(Si.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:nt.id,targetId:St.id}),Go=Tr(nt,St,tn,zn),(jr=Si)==null||jr.pop()),hi&&(hi=gi),mr&1&&_t--,mr&2&&Bt--,Fn=eo,Go){if(Go===-1||_t===0&&Bt===0){if(Go===-1||Go===3)for(let Ro=qa;Ro<De;Ro++)l.set(Q[Ro],1|to);De=qa}}else l.set(Ui,(tn?4:0)|2|to),De=qa;return Go}function Tr(nt,St,tn,zn){const mr=Un();let Ln=kr(nt,St,tn,zn,mr);if(l!==Fd){if(!Ln&&(nt.flags&2097152||nt.flags&262144&&St.flags&1048576)){const Sr=KZe(nt.flags&2097152?nt.types:[nt],!!(St.flags&1048576));Sr&&gh(Sr,jr=>jr!==nt)&&(Ln=sa(Sr,St,1,!1,void 0,zn))}Ln&&!(zn&2)&&St.flags&2097152&&!t1(St)&&nt.flags&2621440?(Ln&=$t(nt,St,tn,void 0,!1,0),Ln&&H0(nt)&&ri(nt)&8192&&(Ln&=cs(nt,St,!1,tn,0))):Ln&&oV(St)&&!YE(St)&&nt.flags&2097152&&ed(nt).flags&3670016&&!kt(nt.types,Sr=>Sr===St||!!(ri(Sr)&262144))&&(Ln&=$t(nt,St,tn,void 0,!0,zn))}return Ln&&sn(mr),Ln}function kr(nt,St,tn,zn,mr){let Ln,Sr,jr=!1,Ui=nt.flags;const xa=St.flags;if(l===Fd){if(Ui&3145728){let gi=Ms(nt,St);return gi&&(gi&=Ms(St,nt)),gi}if(Ui&4194304)return sa(nt.type,St.type,3,!1);if(Ui&8388608&&(Ln=sa(nt.objectType,St.objectType,3,!1))&&(Ln&=sa(nt.indexType,St.indexType,3,!1))||Ui&16777216&&nt.root.isDistributive===St.root.isDistributive&&(Ln=sa(nt.checkType,St.checkType,3,!1))&&(Ln&=sa(nt.extendsType,St.extendsType,3,!1))&&(Ln&=sa(F0(nt),F0(St),3,!1))&&(Ln&=sa(B0(nt),B0(St),3,!1))||Ui&33554432&&(Ln=sa(nt.baseType,St.baseType,3,!1))&&(Ln&=sa(nt.constraint,St.constraint,3,!1)))return Ln;if(!(Ui&524288))return 0}else if(Ui&3145728||xa&3145728){if(Ln=es(nt,St,tn,zn))return Ln;if(!(Ui&465829888||Ui&524288&&xa&1048576||Ui&2097152&&xa&467402752))return 0}if(Ui&17301504&&nt.aliasSymbol&&nt.aliasTypeArguments&&nt.aliasSymbol===St.aliasSymbol&&!(vV(nt)||vV(St))){const gi=Pke(nt.aliasSymbol);if(gi===rt)return 1;const to=zi(nt.aliasSymbol).typeParameters,Go=Am(to),Ro=gv(nt.aliasTypeArguments,to,Go,fr(nt.aliasSymbol.valueDeclaration)),ws=gv(St.aliasTypeArguments,to,Go,fr(nt.aliasSymbol.valueDeclaration)),yu=eo(Ro,ws,gi,zn);if(yu!==void 0)return yu}if(jke(nt)&&!nt.target.readonly&&(Ln=sa(ys(nt)[0],St,1))||jke(St)&&(St.target.readonly||TV(Zu(nt)||nt))&&(Ln=sa(nt,ys(St)[0],2)))return Ln;if(xa&262144){if(ri(nt)&32&&!nt.declaration.nameType&&sa(Lm(St),Hp(nt),3)&&!(xm(nt)&4)){const gi=rg(nt),to=jd(St,hp(nt));if(Ln=sa(gi,to,3,tn))return Ln}if(l===Md&&Ui&262144){let gi=Ru(nt);if(gi&&DD(nt))for(;gi&&lg(gi,to=>!!(to.flags&262144));){if(Ln=sa(gi,St,1,!1))return Ln;gi=Ru(gi)}return 0}}else if(xa&4194304){const gi=St.type;if(Ui&4194304&&(Ln=sa(gi,nt.type,3,!1)))return Ln;if(Bo(gi)){if(Ln=sa(nt,jIe(gi),2,tn))return Ln}else{const to=Eie(gi);if(to){if(sa(nt,Lm(to,St.stringsOnly),2,tn)===-1)return-1}else if($f(gi)){const Go=pv(gi),Ro=Hp(gi);let ws;if(Go&&wD(gi)){const yu=ed(GL(gi)),Tp=[];vie(yu,8576,!1,bh=>void Tp.push($i(Go,UD(gi.mapper,hp(gi),bh)))),ws=Zr([...Tp,Go])}else ws=Go||Ro;if(sa(nt,ws,2,tn)===-1)return-1}}}else if(xa&8388608){if(Ui&8388608){if((Ln=sa(nt.objectType,St.objectType,3,tn))&&(Ln&=sa(nt.indexType,St.indexType,3,tn)),Ln)return Ln;tn&&(Sr=F)}if(l===Pd||l===Md){const gi=St.objectType,to=St.indexType,Go=Zu(gi)||gi,Ro=Zu(to)||to;if(!t1(Go)&&!M0(Ro)){const ws=4|(Go!==gi?2:0),yu=vv(Go,Ro,ws);if(yu){if(tn&&Sr&&sn(mr),Ln=sa(nt,yu,2,tn,void 0,zn))return Ln;tn&&Sr&&F&&(F=qa([Sr])<=qa([F])?Sr:F)}}}tn&&(Sr=void 0)}else if($f(St)&&l!==Fd){const gi=!!St.declaration.nameType,to=rg(St),Go=xm(St);if(!(Go&8)){if(!gi&&to.flags&8388608&&to.objectType===nt&&to.indexType===hp(St))return-1;if(!$f(nt)){const Ro=gi?pv(St):Hp(St),ws=Lm(nt,void 0,!0),yu=Go&4,Tp=yu?FP(Ro,ws):void 0;if(yu?!(Tp.flags&131072):sa(Ro,ws,3)){const bh=rg(St),z0=hp(St),qS=$L(bh,-98305);if(!gi&&qS.flags&8388608&&qS.indexType===z0){if(Ln=sa(nt,qS.objectType,2,tn))return Ln}else{const pI=gi?Tp||Ro:Tp?Do([Tp,z0]):z0,Rm=jd(nt,pI);if(Ln=sa(Rm,bh,3,tn))return Ln}}Sr=F,sn(mr)}}}else if(xa&16777216){if(r4(St,Ne,Bt,10))return 3;const gi=St;if(!gi.root.inferTypeParameters&&!wtt(gi.root)){const to=!Ao(pV(gi.checkType),pV(gi.extendsType)),Go=!to&&Ao(XE(gi.checkType),XE(gi.extendsType));if((Ln=to?-1:sa(nt,F0(gi),2,!1,void 0,zn))&&(Ln&=Go?-1:sa(nt,B0(gi),2,!1,void 0,zn),Ln))return Ln}}else if(xa&134217728){if(Ui&134217728){if(l===Md)return rrt(nt,St)?0:-1;$i(nt,ua)}if(qae(nt,St))return-1}else if(St.flags&268435456&&!(nt.flags&268435456)&&zae(nt,St))return-1;if(Ui&8650752){if(!(Ui&8388608&&xa&8388608)){const gi=zE(nt)||he;if(Ln=sa(gi,St,1,!1,void 0,zn))return Ln;if(Ln=sa(Yf(gi,nt),St,1,tn&&gi!==he&&!(xa&Ui&262144),void 0,zn))return Ln;if(Aie(nt)){const to=zE(nt.indexType);if(to&&(Ln=sa(jd(nt.objectType,to),St,1,tn)))return Ln}}}else if(Ui&4194304){if(Ln=sa(Hi,St,1,tn))return Ln}else if(Ui&134217728&&!(xa&524288)){if(!(xa&134217728)){const gi=Zu(nt);if(gi&&gi!==nt&&(Ln=sa(gi,St,1,tn)))return Ln}}else if(Ui&268435456)if(xa&268435456){if(nt.symbol!==St.symbol)return 0;if(Ln=sa(nt.type,St.type,3,tn))return Ln}else{const gi=Zu(nt);if(gi&&(Ln=sa(gi,St,1,tn)))return Ln}else if(Ui&16777216){if(r4(nt,ge,_t,10))return 3;if(xa&16777216){const to=nt.root.inferTypeParameters;let Go=nt.extendsType,Ro;if(to){const ws=JD(to,void 0,0,kf);sg(ws.inferences,St.extendsType,Go,1536),Go=$i(Go,ws.mapper),Ro=ws.mapper}if(ig(Go,St.extendsType)&&(sa(nt.checkType,St.checkType,3)||sa(St.checkType,nt.checkType,3))&&((Ln=sa($i(F0(nt),Ro),F0(St),3,tn))&&(Ln&=sa(B0(nt),B0(St),3,tn)),Ln))return Ln}else{const to=DD(nt)?aIe(nt):void 0;if(to&&(Ln=sa(to,St,1,tn)))return Ln}const gi=Tie(nt);if(gi&&(Ln=sa(gi,St,1,tn)))return Ln}else{if(l!==oh&&l!==cp&&VZe(St)&&ag(nt))return-1;if($f(St))return $f(nt)&&(Ln=Da(nt,St,tn))?Ln:0;const gi=!!(Ui&134348796);if(l!==Fd)nt=ed(nt),Ui=nt.flags;else if($f(nt))return 0;if(ri(nt)&4&&ri(St)&4&&nt.target===St.target&&!Bo(nt)&&!(vV(nt)||vV(St))){if(SV(nt))return-1;const to=xae(nt.target);if(to===rt)return 1;const Go=eo(ys(nt),ys(St),to,zn);if(Go!==void 0)return Go}else{if(JL(St)?YE(nt):Zf(St)&&Bo(nt)&&!nt.target.readonly)return l!==Fd?sa(ay(nt,mt)||we,ay(St,mt)||we,3,tn):0;if((l===oh||l===cp)&&ag(St)&&ri(St)&8192&&!ag(nt))return 0}if(Ui&2621440&&xa&524288){const to=tn&&F===mr.errorInfo&&!gi;if(Ln=$t(nt,St,to,void 0,!1,zn),Ln&&(Ln&=qn(nt,St,0,to,zn),Ln&&(Ln&=qn(nt,St,1,to,zn),Ln&&(Ln&=cs(nt,St,gi,to,zn)))),jr&&Ln)F=Sr||F||mr.errorInfo;else if(Ln)return Ln}if(Ui&2621440&&xa&1048576){const to=$L(St,36175872);if(to.flags&1048576){const Go=Ni(nt,to);if(Go)return Go}}}return 0;function qa(gi){return gi?Gu(gi,(to,Go)=>to+1+qa(Go.next),0):0}function eo(gi,to,Go,Ro){if(Ln=tr(gi,to,Go,tn,Ro))return Ln;if(kt(Go,yu=>!!(yu&24))){Sr=void 0,sn(mr);return}const ws=to&&ynt(to,Go);if(jr=!ws,Go!==rt&&!ws){if(jr&&!(tn&&kt(Go,yu=>(yu&7)===0)))return 0;Sr=F,sn(mr)}}}function Da(nt,St,tn){if(l===Md||(l===Fd?xm(nt)===xm(St):bie(nt)<=bie(St))){let mr;const Ln=Hp(St),Sr=$i(Hp(nt),bie(nt)<0?Dn:ua);if(mr=sa(Ln,Sr,3,tn)){const jr=Ad([hp(nt)],[hp(St)]);if($i(pv(nt),jr)===$i(pv(St),jr))return mr&sa($i(rg(nt),jr),rg(St),3,tn)}}return 0}function Ni(nt,St){var tn;const zn=gs(nt),mr=swe(zn,St);if(!mr)return 0;let Ln=1;for(const eo of mr)if(Ln*=Drt(R0(eo)),Ln>25)return(tn=Si)==null||tn.instant(Si.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:nt.id,targetId:St.id,numCombinations:Ln}),0;const Sr=new Array(mr.length),jr=new Set;for(let eo=0;eo<mr.length;eo++){const gi=mr[eo],to=R0(gi);Sr[eo]=to.flags&1048576?to.types:[to],jr.add(gi.escapedName)}const Ui=sue(Sr),xa=[];for(const eo of Ui){let gi=!1;e:for(const to of St.types){for(let Go=0;Go<mr.length;Go++){const Ro=mr[Go],ws=fo(to,Ro.escapedName);if(!ws)continue e;if(Ro===ws)continue;if(!Ft(nt,St,Ro,ws,Tp=>eo[Go],!1,0,W||l===Md))continue e}v_(xa,to,tb),gi=!0}if(!gi)return 0}let qa=-1;for(const eo of xa)if(qa&=$t(nt,eo,!1,jr,!1,0),qa&&(qa&=qn(nt,eo,0,!1,0),qa&&(qa&=qn(nt,eo,1,!1,0),qa&&!(Bo(nt)&&Bo(eo))&&(qa&=cs(nt,eo,!1,!1,0)))),!qa)return qa;return qa}function Lr(nt,St){if(!St||nt.length===0)return nt;let tn;for(let zn=0;zn<nt.length;zn++)St.has(nt[zn].escapedName)?tn||(tn=nt.slice(0,zn)):tn&&tn.push(nt[zn]);return tn||nt}function bt(nt,St,tn,zn,mr){const Ln=W&&!!(Dl(St)&48),Sr=ko(R0(St),!1,Ln),jr=tn(nt);return sa(jr,Sr,3,zn,void 0,mr)}function Ft(nt,St,tn,zn,mr,Ln,Sr,jr){const Ui=s_(tn),xa=s_(zn);if(Ui&8||xa&8){if(tn.valueDeclaration!==zn.valueDeclaration)return Ln&&(Ui&8&&xa&8?ai(_.Types_have_separate_declarations_of_a_private_property_0,x(zn)):ai(_.Property_0_is_private_in_type_1_but_not_in_type_2,x(zn),ke(Ui&8?nt:St),ke(Ui&8?St:nt))),0}else if(xa&16){if(!Snt(tn,zn))return Ln&&ai(_.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,x(zn),ke(US(tn)||nt),ke(US(zn)||St)),0}else if(Ui&16)return Ln&&ai(_.Property_0_is_protected_in_type_1_but_public_in_type_2,x(zn),ke(nt),ke(St)),0;if(l===cp&&Ep(tn)&&!Ep(zn))return 0;const qa=bt(tn,zn,mr,Ln,Sr);return qa?!jr&&tn.flags&16777216&&zn.flags&106500&&!(zn.flags&16777216)?(Ln&&ai(_.Property_0_is_optional_in_type_1_but_required_in_type_2,x(zn),ke(nt),ke(St)),0):qa:(Ln&&Jn(_.Types_of_property_0_are_incompatible,x(zn)),0)}function en(nt,St,tn,zn){let mr=!1;if(tn.valueDeclaration&&Su(tn.valueDeclaration)&&Oi(tn.valueDeclaration.name)&&nt.symbol&&nt.symbol.flags&32){const Sr=tn.valueDeclaration.name.escapedText,jr=tO(nt.symbol,Sr);if(jr&&fo(nt,jr)){const Ui=N.getDeclarationName(nt.symbol.valueDeclaration),xa=N.getDeclarationName(St.symbol.valueDeclaration);ai(_.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,f_(Sr),f_(Ui.escapedText===""?V8:Ui),f_(xa.escapedText===""?V8:xa));return}}const Ln=No(jae(nt,St,zn,!1));if((!p||p.code!==_.Class_0_incorrectly_implements_interface_1.code&&p.code!==_.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(mr=!0),Ln.length===1){const Sr=x(tn,void 0,0,20);ai(_.Property_0_is_missing_in_type_1_but_required_in_type_2,Sr,...an(nt,St)),Le(tn.declarations)&&_a(Nr(tn.declarations[0],_._0_is_declared_here,Sr)),mr&&F&&Xn++}else e_(nt,St,!1)&&(Ln.length>5?ai(_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ke(nt),ke(St),zt(Ln.slice(0,4),Sr=>x(Sr)).join(", "),Ln.length-4):ai(_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ke(nt),ke(St),zt(Ln,Sr=>x(Sr)).join(", ")),mr&&F&&Xn++)}function $t(nt,St,tn,zn,mr,Ln){if(l===Fd)return wn(nt,St,zn);let Sr=-1;if(Bo(St)){if(YE(nt)){if(!St.target.readonly&&(JL(nt)||Bo(nt)&&nt.target.readonly))return 0;const eo=P0(nt),gi=P0(St),to=Bo(nt)?nt.target.combinedFlags&4:4,Go=St.target.combinedFlags&4,Ro=Bo(nt)?nt.target.minLength:0,ws=St.target.minLength;if(!to&&eo<ws)return tn&&ai(_.Source_has_0_element_s_but_target_requires_1,eo,ws),0;if(!Go&&gi<Ro)return tn&&ai(_.Source_has_0_element_s_but_target_allows_only_1,Ro,gi),0;if(!Go&&(to||gi<eo))return tn&&(Ro<ws?ai(_.Target_requires_0_element_s_but_source_may_have_fewer,ws):ai(_.Target_allows_only_0_element_s_but_source_may_have_more,gi)),0;const yu=ys(nt),Tp=ys(St),bh=Xet(St.target,11),z0=qP(St.target,11),qS=St.target.hasRestElement;let pI=!!zn;for(let Rm=0;Rm<eo;Rm++){const SA=Bo(nt)?nt.target.elementFlags[Rm]:4,xA=eo-1-Rm,lT=qS&&Rm>=bh?gi-1-Math.min(xA,z0):Rm,Hd=St.target.elementFlags[lT];if(Hd&8&&!(SA&8))return tn&&ai(_.Source_provides_no_match_for_variadic_element_at_position_0_in_target,lT),0;if(SA&8&&!(Hd&12))return tn&&ai(_.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Rm,lT),0;if(Hd&1&&!(SA&1))return tn&&ai(_.Source_provides_no_match_for_required_element_at_position_0_in_target,lT),0;if(pI&&((SA&12||Hd&12)&&(pI=!1),pI&&(zn!=null&&zn.has(""+Rm))))continue;const wt=$E(yu[Rm],!!(SA&Hd&2)),xr=Tp[lT],xi=SA&8&&Hd&4?Ou(xr):$E(xr,!!(Hd&2)),ci=sa(wt,xi,3,tn,void 0,Ln);if(!ci)return tn&&(gi>1||eo>1)&&(qS&&Rm>=bh&&xA>=z0&&bh!==eo-z0-1?Jn(_.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,bh,eo-z0-1,lT):Jn(_.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Rm,lT)),0;Sr&=ci}return Sr}if(St.target.combinedFlags&12)return 0}const jr=(l===oh||l===cp)&&!H0(nt)&&!SV(nt)&&!Bo(nt),Ui=Hae(nt,St,jr,!1);if(Ui)return tn&&la(nt,St)&&en(nt,St,Ui,jr),0;if(H0(St)){for(const eo of Lr(gs(nt),zn))if(!Yb(St,eo.escapedName)&&!(or(eo).flags&32768))return tn&&ai(_.Property_0_does_not_exist_on_type_1,x(eo),ke(St)),0}const xa=gs(St),qa=Bo(nt)&&Bo(St);for(const eo of Lr(xa,zn)){const gi=eo.escapedName;if(!(eo.flags&4194304)&&(!qa||Oh(gi)||gi==="length")&&(!mr||eo.flags&16777216)){const to=fo(nt,gi);if(to&&to!==eo){const Go=Ft(nt,St,to,eo,R0,tn,Ln,l===Md);if(!Go)return 0;Sr&=Go}}}return Sr}function wn(nt,St,tn){if(!(nt.flags&524288&&St.flags&524288))return 0;const zn=Lr(mv(nt),tn),mr=Lr(mv(St),tn);if(zn.length!==mr.length)return 0;let Ln=-1;for(const Sr of zn){const jr=Yb(St,Sr.escapedName);if(!jr)return 0;const Ui=Lae(Sr,jr,sa);if(!Ui)return 0;Ln&=Ui}return Ln}function qn(nt,St,tn,zn,mr){var Ln,Sr;if(l===Fd)return ti(nt,St,tn);if(St===Ca||nt===Ca)return-1;const jr=nt.symbol&&Kp(nt.symbol.valueDeclaration),Ui=St.symbol&&Kp(St.symbol.valueDeclaration),xa=za(nt,jr&&tn===1?0:tn),qa=za(St,Ui&&tn===1?0:tn);if(tn===1&&xa.length&&qa.length){const Ro=!!(xa[0].flags&4),ws=!!(qa[0].flags&4);if(Ro&&!ws)return zn&&ai(_.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Cd(xa[0],qa[0],zn))return 0}let eo=-1;const gi=tn===1?gn:Ei,to=ri(nt),Go=ri(St);if(to&64&&Go&64&&nt.symbol===St.symbol||to&4&&Go&4&&nt.target===St.target)for(let Ro=0;Ro<qa.length;Ro++){const ws=ur(xa[Ro],qa[Ro],!0,zn,mr,gi(xa[Ro],qa[Ro]));if(!ws)return 0;eo&=ws}else if(xa.length===1&&qa.length===1){const Ro=l===Md||!!$.noStrictGenericChecks,ws=ds(xa),yu=ds(qa);if(eo=ur(ws,yu,Ro,zn,mr,gi(ws,yu)),!eo&&zn&&tn===1&&to&Go&&(((Ln=yu.declaration)==null?void 0:Ln.kind)===173||((Sr=ws.declaration)==null?void 0:Sr.kind)===173)){const Tp=bh=>le(bh,void 0,262144,tn);return ai(_.Type_0_is_not_assignable_to_type_1,Tp(ws),Tp(yu)),ai(_.Types_of_construct_signatures_are_incompatible),eo}}else e:for(const Ro of qa){const ws=Un();let yu=zn;for(const Tp of xa){const bh=ur(Tp,Ro,!0,yu,mr,gi(Tp,Ro));if(bh){eo&=bh,sn(ws);continue e}yu=!1}return yu&&ai(_.Type_0_provides_no_match_for_the_signature_1,ke(nt),le(Ro,void 0,void 0,tn)),0}return eo}function la(nt,St){const tn=VP(nt,0),zn=VP(nt,1),mr=mv(nt);return(tn.length||zn.length)&&!mr.length?!!(za(St,0).length&&tn.length||za(St,1).length&&zn.length):!0}function Ei(nt,St){return nt.parameters.length===0&&St.parameters.length===0?(tn,zn)=>Jn(_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ke(tn),ke(zn)):(tn,zn)=>Jn(_.Call_signature_return_types_0_and_1_are_incompatible,ke(tn),ke(zn))}function gn(nt,St){return nt.parameters.length===0&&St.parameters.length===0?(tn,zn)=>Jn(_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ke(tn),ke(zn)):(tn,zn)=>Jn(_.Construct_signature_return_types_0_and_1_are_incompatible,ke(tn),ke(zn))}function ur(nt,St,tn,zn,mr,Ln){const Sr=l===oh?16:l===cp?24:0;return vae(tn?PD(nt):nt,tn?PD(St):St,Sr,zn,ai,Ln,jr,ua);function jr(Ui,xa,qa){return sa(Ui,xa,3,qa,void 0,mr)}}function ti(nt,St,tn){const zn=za(nt,tn),mr=za(St,tn);if(zn.length!==mr.length)return 0;let Ln=-1;for(let Sr=0;Sr<zn.length;Sr++){const jr=i4(zn[Sr],mr[Sr],!1,!1,!1,sa);if(!jr)return 0;Ln&=jr}return Ln}function vr(nt,St,tn,zn){let mr=-1;const Ln=St.keyType,Sr=nt.flags&2097152?GP(nt):mv(nt);for(const jr of Sr)if(!Dke(nt,jr)&&nA(HL(jr,8576),Ln)){const Ui=R0(jr),xa=ze||Ui.flags&32768||Ln===mt||!(jr.flags&16777216)?Ui:g_(Ui,524288),qa=sa(xa,St.type,3,tn,void 0,zn);if(!qa)return tn&&ai(_.Property_0_is_incompatible_with_index_signature,x(jr)),0;mr&=qa}for(const jr of Nu(nt))if(nA(jr.keyType,Ln)){const Ui=Ea(jr,St,tn,zn);if(!Ui)return 0;mr&=Ui}return mr}function Ea(nt,St,tn,zn){const mr=sa(nt.type,St.type,3,tn,void 0,zn);return!mr&&tn&&(nt.keyType===St.keyType?ai(_._0_index_signatures_are_incompatible,ke(nt.keyType)):ai(_._0_and_1_index_signatures_are_incompatible,ke(nt.keyType),ke(St.keyType))),mr}function cs(nt,St,tn,zn,mr){if(l===Fd)return Hs(nt,St);const Ln=Nu(St),Sr=kt(Ln,Ui=>Ui.keyType===ue);let jr=-1;for(const Ui of Ln){const xa=!tn&&Sr&&Ui.type.flags&1?-1:$f(nt)&&Sr?sa(rg(nt),Ui.type,3,zn):Vs(nt,Ui,zn,mr);if(!xa)return 0;jr&=xa}return jr}function Vs(nt,St,tn,zn){const mr=jP(nt,St.keyType);return mr?Ea(mr,St,tn,zn):!(zn&1)&&(l!==cp||ri(nt)&8192)&&LV(nt)?vr(nt,St,tn,zn):(tn&&ai(_.Index_signature_for_type_0_is_missing_in_type_1,ke(St.keyType),ke(nt)),0)}function Hs(nt,St){const tn=Nu(nt),zn=Nu(St);if(tn.length!==zn.length)return 0;for(const mr of zn){const Ln=hh(nt,mr.keyType);if(!(Ln&&sa(Ln.type,mr.type,3)&&Ln.isReadonly===mr.isReadonly))return 0}return-1}function Cd(nt,St,tn){if(!nt.declaration||!St.declaration)return!0;const zn=Dx(nt.declaration,24),mr=Dx(St.declaration,24);return mr===8||mr===16&&zn!==8||mr!==16&&!zn?!0:(tn&&ai(_.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Cf(zn),Cf(mr)),!1)}}function Tae(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Je(n.types,Tae);if(n.flags&465829888){const a=zE(n);if(a&&a!==n)return Tae(a)}return vp(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function Rke(n,a){return Bo(n)&&Bo(a)?rt:gs(a).filter(l=>yV(vc(n,l.escapedName),or(l)))}function yV(n,a){return!!n&&!!a&&gl(n,32768)&&!!qD(a)}function hnt(n){return gs(n).filter(a=>qD(or(a)))}function Nke(n,a,l=gae){return WNe(n,a,l,!0)||mdt(n,a)||hdt(n,a)||gdt(n,a)||ydt(n,a)}function Sae(n,a,l,u,p){const y=n.types.map(F=>{});for(const[F,J]of a){const Q=Cie(n,J);if(p&&Q&&Dl(Q)&16)continue;let ge=0;for(const Ne of n.types){const De=vc(Ne,J);De&&l(F(),De)?y[ge]=y[ge]===void 0?!0:y[ge]:y[ge]=!1,ge++}}const A=y.indexOf(!0);if(A===-1)return u;let R=y.indexOf(!0,A+1);for(;R!==-1;){if(!ig(n.types[A],n.types[R]))return u;R=y.indexOf(!0,R+1)}return n.types[A]}function Oke(n){if(n.flags&524288){const a=gp(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Zn(a.properties,l=>!!(l.flags&16777216))}return n.flags&2097152?Zn(n.types,Oke):!1}function gnt(n,a,l){for(const u of gs(n))if(boe(a,u.escapedName,l))return!0;return!1}function xae(n){return n===Ts||n===fs||n.objectFlags&8?Y:Mke(n.symbol,n.typeParameters)}function Pke(n){return Mke(n,zi(n).typeParameters)}function Mke(n,a=rt){var l,u;const p=zi(n);if(!p.variances){(l=Si)==null||l.push(Si.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:Pu(js(n))}),p.variances=rt;const y=[];for(const A of a){const R=Aae(A);let F=R&65536?R&32768?0:1:R&32768?2:void 0;if(F===void 0){let J=!1,Q=!1;const ge=hi;hi=_t=>_t?Q=!0:J=!0;const Ne=t4(n,A,Qd),De=t4(n,A,dc);F=(Ao(De,Ne)?1:0)|(Ao(Ne,De)?2:0),F===3&&Ao(t4(n,A,Zc),Ne)&&(F=4),hi=ge,(J||Q)&&(J&&(F|=8),Q&&(F|=16))}y.push(F)}p.variances=y,(u=Si)==null||u.pop({variances:y.map(D.formatVariance)})}return p.variances}function t4(n,a,l){const u=i1(a,l),p=js(n);if(rs(p))return p;const y=n.flags&524288?sA(n,cy(zi(n).typeParameters,u)):oy(p,cy(p.typeParameters,u));return Nn.add(Pu(y)),y}function vV(n){return Nn.has(Pu(n))}function Aae(n){var a;return Gu((a=n.symbol)==null?void 0:a.declarations,(l,u)=>l|Hu(u),0)&100352}function ynt(n,a){for(let l=0;l<a.length;l++)if((a[l]&7)===1&&n[l].flags&16384)return!0;return!1}function vnt(n){return n.flags&262144&&!Ru(n)}function bnt(n){return!!(ri(n)&4)&&!n.node}function bV(n){return bnt(n)&&kt(ys(n),a=>!!(a.flags&262144)||bV(a))}function Ent(n,a,l,u){const p=[];let y="";const A=F(n,0),R=F(a,0);return`${y}${A},${R}${l}`;function F(J,Q=0){let ge=""+J.target.id;for(const Ne of ys(J)){if(Ne.flags&262144){if(u||vnt(Ne)){let De=p.indexOf(Ne);De<0&&(De=p.length,p.push(Ne)),ge+="="+De;continue}y="*"}else if(Q<4&&bV(Ne)){ge+="<"+F(Ne,Q+1)+">";continue}ge+="-"+Ne.id}return ge}}function Cae(n,a,l,u,p){if(u===Fd&&n.id>a.id){const A=n;n=a,a=A}const y=l?":"+l:"";return bV(n)&&bV(a)?Ent(n,a,y,p):`${n.id},${a.id}${y}`}function n4(n,a){if(Dl(n)&6){for(const l of n.links.containingType.types){const u=fo(l,n.escapedName),p=u&&n4(u,a);if(p)return p}return}return a(n)}function US(n){return n.parent&&n.parent.flags&32?js(Sd(n)):void 0}function EV(n){const a=US(n),l=a&&Fo(a)[0];return l&&vc(l,n.escapedName)}function Tnt(n,a){return n4(n,l=>{const u=US(l);return u?HE(u,a):!1})}function Snt(n,a){return!n4(a,l=>s_(l)&16?!Tnt(n,US(l)):!1)}function Fke(n,a,l){return n4(a,u=>s_(u,l)&16?!HE(n,US(u)):!1)?void 0:n}function r4(n,a,l,u=3){if(l>=u){if(n.flags&2097152)return kt(n.types,R=>r4(R,a,l,u));const p=qL(n);let y=0,A=0;for(let R=0;R<l;R++){const F=a[R];if(F.flags&2097152?kt(F.types,J=>qL(J)===p):qL(F)===p){if(F.id>=A&&(y++,y>=u))return!0;A=F.id}}}return!1}function qL(n){if(n.flags&524288&&!Jae(n)){if(ri(n)&&n.node)return n.node;if(n.symbol&&!(ri(n)&16&&n.symbol.flags&32))return n.symbol;if(Bo(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function xnt(n,a){return Lae(n,a,VD)!==0}function Lae(n,a,l){if(n===a)return-1;const u=s_(n)&24,p=s_(a)&24;if(u!==p)return 0;if(u){if(EA(n)!==EA(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return Ep(n)!==Ep(a)?0:l(or(n),or(a))}function Ant(n,a,l){const u=lf(n),p=lf(a),y=wm(n),A=wm(a),R=Dm(n),F=Dm(a);return!!(u===p&&y===A&&R===F||l&&y<=A)}function i4(n,a,l,u,p,y){if(n===a)return-1;if(!Ant(n,a,l)||Le(n.typeParameters)!==Le(a.typeParameters))return 0;if(a.typeParameters){const F=Ad(n.typeParameters,a.typeParameters);for(let J=0;J<a.typeParameters.length;J++){const Q=n.typeParameters[J],ge=a.typeParameters[J];if(!(Q===ge||y($i(VL(Q),F)||he,VL(ge)||he)&&y($i(qE(Q),F)||he,qE(ge)||he)))return 0}n=fA(n,F,!0)}let A=-1;if(!u){const F=Qb(n);if(F){const J=Qb(a);if(J){const Q=y(F,J);if(!Q)return 0;A&=Q}}}const R=lf(a);for(let F=0;F<R;F++){const J=bp(n,F),Q=bp(a,F),ge=y(Q,J);if(!ge)return 0;A&=ge}if(!p){const F=p_(n),J=p_(a);A&=F||J?Cnt(F,J,y):y(vs(n),vs(a))}return A}function Cnt(n,a,l){return n&&a&&eae(n,a)?n.type===a.type?-1:n.type&&a.type?l(n.type,a.type):0:0}function Lnt(n){let a;for(const l of n)if(!(l.flags&131072)){const u=Sv(l);if(a!=null||(a=u),u===l||u!==a)return!1}return!0}function Bke(n){return Gu(n,(a,l)=>a|(l.flags&1048576?Bke(l.types):l.flags),0)}function Int(n){if(n.length===1)return n[0];const a=W?no(n,u=>bc(u,p=>!(p.flags&98304))):n,l=Lnt(a)?Zr(a):Gu(a,(u,p)=>Ev(u,p)?p:u);return a===n?l:AV(l,Bke(n)&98304)}function knt(n){return Gu(n,(a,l)=>Ev(l,a)?l:a)}function Zf(n){return!!(ri(n)&4)&&(n.target===Ts||n.target===fs)}function JL(n){return!!(ri(n)&4)&&n.target===fs}function YE(n){return Zf(n)||Bo(n)}function TV(n){return Zf(n)&&!JL(n)||Bo(n)&&!n.target.readonly}function Iae(n){return Zf(n)?ys(n)[0]:void 0}function V0(n){return Zf(n)||!(n.flags&98304)&&Ao(n,Yi)}function kae(n){if(!(ri(n)&4)||!(ri(n.target)&3))return;if(ri(n)&33554432)return ri(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const a=n.target;if(ri(a)&1){const p=Rn(a);if(p&&p.expression.kind!==79&&p.expression.kind!==208)return}const l=Fo(a);if(l.length!==1||_v(n.symbol).size)return;let u=Le(a.typeParameters)?$i(l[0],Ad(a.typeParameters,ys(n).slice(0,a.typeParameters.length))):l[0];return Le(ys(n))>Le(a.typeParameters)&&(u=Yf(u,Jo(ys(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=u}function Gke(n){return W?n===fn:n===Ze}function SV(n){const a=Iae(n);return!!a&&Gke(a)}function KL(n){return Bo(n)||!!fo(n,"0")}function xV(n){return V0(n)||KL(n)}function wnt(n,a){const l=vc(n,""+a);if(l)return l;if(gh(n,Bo))return Zs(n,u=>{const p=u,y=a4(p);return y?$.noUncheckedIndexedAccess&&a>=p.target.fixedLength+qP(p.target,3)?Zr([y,He]):y:He})}function Dnt(n){return!(n.flags&240544)}function vp(n){return!!(n.flags&109472)}function Uke(n){const a=hv(n);return a.flags&2097152?kt(a.types,vp):vp(a)}function Rnt(n){return n.flags&2097152&&In(n.types,vp)||n}function WD(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Zn(n.types,vp):vp(n)}function Sv(n){return n.flags&1056?LD(n):n.flags&402653312?ue:n.flags&256?mt:n.flags&2048?Wt:n.flags&512?Re:n.flags&1048576?Nnt(n):n}function Nnt(n){var a;const l=`B${Pu(n)}`;return(a=Nb(l))!=null?a:Vg(l,Zs(n,Sv))}function wae(n){return n.flags&402653312?ue:n.flags&288?mt:n.flags&2048?Wt:n.flags&512?Re:n.flags&1048576?Zs(n,wae):n}function o1(n){return n.flags&1056&&r1(n)?LD(n):n.flags&128&&r1(n)?ue:n.flags&256&&r1(n)?mt:n.flags&2048&&r1(n)?Wt:n.flags&512&&r1(n)?Re:n.flags&1048576?Zs(n,o1):n}function Vke(n){return n.flags&8192?q:n.flags&1048576?Zs(n,Vke):n}function Dae(n,a){return lj(n,a)||(n=Vke(o1(n))),xd(n)}function Ont(n,a,l){if(n&&vp(n)){const u=a?l?dR(a):a:void 0;n=Dae(n,u)}return n}function Rae(n,a,l,u){if(n&&vp(n)){const p=a?u1(l,a,u):void 0;n=Dae(n,p)}return n}function Bo(n){return!!(ri(n)&4&&n.target.objectFlags&8)}function _A(n){return Bo(n)&&!!(n.target.combinedFlags&8)}function jke(n){return _A(n)&&n.target.elementFlags.length===1}function a4(n){return XL(n,n.target.fixedLength)}function Pnt(n){const a=a4(n);return a&&Ou(a)}function XL(n,a,l=0,u=!1,p=!1){const y=P0(n)-l;if(a<y){const A=ys(n),R=[];for(let F=a;F<y;F++){const J=A[F];R.push(n.target.elementFlags[F]&8?jd(J,mt):J)}return u?Do(R):Zr(R,p?0:1)}}function Mnt(n,a){return P0(n)===P0(a)&&Zn(n.target.elementFlags,(l,u)=>(l&12)===(a.target.elementFlags[u]&12))}function Hke({value:n}){return n.base10Value==="0"}function Wke(n){return bc(n,a=>!!(Mu(a)&4194304))}function Fnt(n){return Zs(n,Bnt)}function Bnt(n){return n.flags&4?R2:n.flags&8?vS:n.flags&64?N2:n===K||n===it||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&Hke(n)?n:gt}function AV(n,a){const l=a&~n.flags&98304;return l===0?n:Zr(l===32768?[n,He]:l===65536?[n,Sn]:[n,He,Sn])}function uy(n,a=!1){D.assert(W);const l=a?Ut:He;return n===l||n.flags&1048576&&n.types[0]===l?n:Zr([n,l])}function Gnt(n){return Io||(Io=MD("NonNullable",524288,void 0)||rn),Io!==rn?sA(Io,[n]):Do([n,fa])}function dy(n){return W?tT(n,2097152):n}function zke(n){return W?Zr([n,ln]):n}function Nae(n){return W?OV(n,ln):n}function CV(n,a,l){return l?XI(a)?uy(n):zke(n):n}function zD(n,a){return o3(a)?dy(n):xu(a)?Nae(n):n}function $E(n,a){return ze&&a?OV(n,Xe):n}function qD(n){return n===Xe||!!(n.flags&1048576)&&n.types[0]===Xe}function Oae(n){return ze?OV(n,Xe):g_(n,524288)}function Unt(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function LV(n){const a=ri(n);return n.flags&2097152?Zn(n.types,LV):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!xj(n))||!!(a&4194304)||!!(a&1024&&LV(n.source))}function QE(n,a){const l=ns(n.flags,n.escapedName,Dl(n)&8);l.declarations=n.declarations,l.parent=n.parent,l.links.type=a,l.links.target=n,n.valueDeclaration&&(l.valueDeclaration=n.valueDeclaration);const u=zi(n).nameType;return u&&(l.links.nameType=u),l}function Vnt(n,a){const l=co();for(const u of mv(n)){const p=or(u),y=a(p);l.set(u.escapedName,y===p?u:QE(u,y))}return l}function o4(n){if(!(H0(n)&&ri(n)&8192))return n;const a=n.regularType;if(a)return a;const l=n,u=Vnt(n,o4),p=Ps(l.symbol,u,l.callSignatures,l.constructSignatures,l.indexInfos);return p.flags=l.flags,p.objectFlags|=l.objectFlags&-8193,n.regularType=p,p}function qke(n,a,l){return{parent:n,propertyName:a,siblings:l,resolvedProperties:void 0}}function Jke(n){if(!n.siblings){const a=[];for(const l of Jke(n.parent))if(H0(l)){const u=Yb(l,n.propertyName);u&&nT(or(u),p=>{a.push(p)})}n.siblings=a}return n.siblings}function jnt(n){if(!n.resolvedProperties){const a=new Map;for(const l of Jke(n))if(H0(l)&&!(ri(l)&2097152))for(const u of gs(l))a.set(u.escapedName,u);n.resolvedProperties=No(a.values())}return n.resolvedProperties}function Hnt(n,a){if(!(n.flags&4))return n;const l=or(n),u=a&&qke(a,n.escapedName,void 0),p=Pae(l,u);return p===l?n:QE(n,p)}function Wnt(n){const a=vi.get(n.escapedName);if(a)return a;const l=QE(n,Ut);return l.flags|=16777216,vi.set(n.escapedName,l),l}function znt(n,a){const l=co();for(const p of mv(n))l.set(p.escapedName,Hnt(p,a));if(a)for(const p of jnt(a))l.has(p.escapedName)||l.set(p.escapedName,Wnt(p));const u=Ps(n.symbol,l,rt,rt,no(Nu(n),p=>Cm(p.keyType,sf(p.type),p.isReadonly)));return u.objectFlags|=ri(n)&266240,u}function sf(n){return Pae(n,void 0)}function Pae(n,a){if(ri(n)&196608){if(a===void 0&&n.widened)return n.widened;let l;if(n.flags&98305)l=we;else if(H0(n))l=znt(n,a);else if(n.flags&1048576){const u=a||qke(void 0,void 0,n.types),p=no(n.types,y=>y.flags&98304?y:Pae(y,u));l=Zr(p,kt(p,ag)?2:1)}else n.flags&2097152?l=Do(no(n.types,sf)):YE(n)&&(l=oy(n.target,no(ys(n),sf)));return l&&a===void 0&&(n.widened=l),l||n}return n}function IV(n){let a=!1;if(ri(n)&65536){if(n.flags&1048576)if(kt(n.types,ag))a=!0;else for(const l of n.types)IV(l)&&(a=!0);if(YE(n))for(const l of ys(n))IV(l)&&(a=!0);if(H0(n))for(const l of mv(n)){const u=or(l);ri(u)&65536&&(IV(u)||Ke(l.valueDeclaration,_.Object_literal_s_property_0_implicitly_has_an_1_type,x(l),ke(sf(u))),a=!0)}}return a}function j0(n,a,l){const u=ke(sf(a));if(fr(n)&&!IO(er(n),$))return;let p;switch(n.kind){case 223:case 169:case 168:p=xe?_.Member_0_implicitly_has_an_1_type:_.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 166:const y=n;if(je(y.name)){const A=ib(y.name);if((OC(y.parent)||Ph(y.parent)||Mh(y.parent))&&y.parent.parameters.indexOf(y)>-1&&(hl(y,y.name.escapedText,788968,void 0,y.name.escapedText,!0)||A&&Qq(A))){const R="arg"+y.parent.parameters.indexOf(y),F=Rs(y.name)+(y.dotDotDotToken?"[]":"");hm(xe,n,_.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,R,F);return}}p=n.dotDotDotToken?xe?_.Rest_parameter_0_implicitly_has_an_any_type:_.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:xe?_.Parameter_0_implicitly_has_an_1_type:_.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 205:if(p=_.Binding_element_0_implicitly_has_an_1_type,!xe)return;break;case 320:Ke(n,_.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return;case 326:xe&&cw(n.parent)&&Ke(n.parent.tagName,_.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,u);return;case 259:case 171:case 170:case 174:case 175:case 215:case 216:if(xe&&!n.name){l===3?Ke(n,_.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,u):Ke(n,_.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return}p=xe?l===3?_._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:_._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:_._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 197:xe&&Ke(n,_.Mapped_object_type_implicitly_has_an_any_template_type);return;default:p=xe?_.Variable_0_implicitly_has_an_1_type:_.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}hm(xe,n,p,Rs(Ia(n)),u)}function kV(n,a,l){i(()=>{xe&&ri(a)&65536&&(!l||!_oe(n))&&(IV(a)||j0(n,a,l))})}function Mae(n,a,l){const u=lf(n),p=lf(a),y=iR(n),A=iR(a),R=A?p-1:p,F=y?R:Math.min(u,R),J=Qb(n);if(J){const Q=Qb(a);Q&&l(J,Q)}for(let Q=0;Q<F;Q++)l(bp(n,Q),bp(a,Q));A&&l(rR(n,F),A)}function Fae(n,a,l){const u=p_(n),p=p_(a);u&&p&&eae(u,p)&&u.type&&p.type?l(u.type,p.type):l(vs(n),vs(a))}function JD(n,a,l,u){return Bae(n.map(Gae),a,l,u||gae)}function qnt(n,a=0){return n&&Bae(zt(n.inferences,Xke),n.signature,n.flags|a,n.compareTypes)}function Bae(n,a,l,u){const p={inferences:n,signature:a,flags:l,compareTypes:u,mapper:Dn,nonFixingMapper:Dn};return p.mapper=Jnt(p),p.nonFixingMapper=Knt(p),p}function Jnt(n){return dae(zt(n.inferences,a=>a.typeParameter),zt(n.inferences,(a,l)=>()=>(a.isFixed||(Xnt(n),wV(n.inferences),a.isFixed=!0),Kae(n,l))))}function Knt(n){return dae(zt(n.inferences,a=>a.typeParameter),zt(n.inferences,(a,l)=>()=>Kae(n,l)))}function wV(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function Kke(n,a,l){var u;((u=n.intraExpressionInferenceSites)!=null?u:n.intraExpressionInferenceSites=[]).push({node:a,type:l})}function Xnt(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:l}of n.intraExpressionInferenceSites){const u=a.kind===171?Uwe(a,2):_d(a,2);u&&sg(n.inferences,l,u)}n.intraExpressionInferenceSites=void 0}}function Gae(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Xke(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function Ynt(n){const a=yn(n.inferences,vA);return a.length?Bae(zt(a,Xke),n.signature,n.flags,n.compareTypes):void 0}function Uae(n){return n&&n.mapper}function ZE(n){const a=ri(n);if(a&524288)return!!(a&1048576);const l=!!(n.flags&465829888||n.flags&524288&&!Yke(n)&&(a&4&&(n.node||Je(ys(n),ZE))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!Yke(n)&&kt(n.types,ZE));return n.flags&3899393&&(n.objectFlags|=524288|(l?1048576:0)),l}function Yke(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=Il(n.aliasSymbol,262);return!!(a&&rr(a.parent,l=>l.kind===308?!0:l.kind===264?!1:"quit"))}return!1}function KD(n,a,l=0){return!!(n===a||n.flags&3145728&&kt(n.types,u=>KD(u,a,l))||l<3&&n.flags&16777216&&(KD(F0(n),a,l+1)||KD(B0(n),a,l+1)))}function $nt(n,a){const l=p_(n);return l?!!l.type&&KD(l.type,a):KD(vs(n),a)}function Qnt(n){const a=co();nT(n,u=>{if(!(u.flags&128))return;const p=ul(u.value),y=ns(4,p);y.links.type=we,u.symbol&&(y.declarations=u.symbol.declarations,y.valueDeclaration=u.symbol.valueDeclaration),a.set(p,y)});const l=n.flags&4?[Cm(ue,fa,!1)]:rt;return Ps(void 0,a,rt,rt,l)}function $ke(n,a,l){if(ba)return;const u=n.id+","+a.id+","+l.id;if(Pr.has(u))return Pr.get(u);ba=!0;const p=Znt(n,a,l);return ba=!1,Pr.set(u,p),p}function Vae(n){return!(ri(n)&262144)||H0(n)&&kt(gs(n),a=>Vae(or(a)))||Bo(n)&&kt(ys(n),Vae)}function Znt(n,a,l){if(!(hh(n,ue)||gs(n).length!==0&&Vae(n)))return;if(Zf(n))return Ou(DV(ys(n)[0],a,l),JL(n));if(Bo(n)){const p=zt(ys(n),A=>DV(A,a,l)),y=xm(a)&4?no(n.target.elementFlags,A=>A&2?1:A):n.target.elementFlags;return zp(p,y,n.target.readonly,n.target.labeledElementDeclarations)}const u=Af(1040,void 0);return u.source=n,u.mappedType=a,u.constraintType=l,u}function ert(n){const a=zi(n);return a.type||(a.type=DV(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function DV(n,a,l){const u=jd(l.type,hp(a)),p=rg(a),y=Gae(u);return sg([y],n,p),Qke(y)||he}function*jae(n,a,l,u){const p=gs(a);for(const y of p)if(!JLe(y)&&(l||!(y.flags&16777216||Dl(y)&48))){const A=fo(n,y.escapedName);if(!A)yield y;else if(u){const R=or(y);if(R.flags&109472){const F=or(A);F.flags&1||xd(F)===xd(R)||(yield y)}}}}function Hae(n,a,l,u){return _M(jae(n,a,l,u))}function trt(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLength<n.target.fixedLength)}function nrt(n,a){return Bo(n)&&Bo(a)?trt(n,a):!!Hae(n,a,!1,!0)&&!!Hae(a,n,!1,!1)}function Qke(n){return n.candidates?Zr(n.candidates,2):n.contraCandidates?Do(n.contraCandidates):void 0}function Wae(n){return!!Jr(n).skipDirectInference}function Zke(n){return!!(n.symbol&&kt(n.symbol.declarations,Wae))}function rrt(n,a){const l=n.texts[0],u=a.texts[0],p=n.texts[n.texts.length-1],y=a.texts[a.texts.length-1],A=Math.min(l.length,u.length),R=Math.min(p.length,y.length);return l.slice(0,A)!==u.slice(0,A)||p.slice(p.length-R)!==y.slice(y.length-R)}function ewe(n,a){if(n==="")return!1;const l=+n;return isFinite(l)&&(!a||""+l===n)}function irt(n){return lV(yJ(n))}function zae(n,a){if(a.flags&1)return!0;if(a.flags&134217732)return Ao(n,a);if(a.flags&268435456){const l=[];for(;a.flags&268435456;)l.unshift(a.symbol),a=a.type;return Gu(l,(p,y)=>FS(y,p),n)===n&&zae(n,a)}return!1}function art(n,a){if(n===a||a.flags&5)return!0;if(n.flags&128){const l=n.value;return!!(a.flags&8&&ewe(l,!1)||a.flags&64&&T7(l,!1)||a.flags&98816&&l===a.intrinsicName||a.flags&268435456&&zae(Qf(l),a))}if(n.flags&134217728){const l=n.texts;return l.length===2&&l[0]===""&&l[1]===""&&Ao(n.types[0],a)}return Ao(n,a)}function twe(n,a){return n.flags&128?nwe([n.value],rt,a):n.flags&134217728?Oo(n.texts,a.texts)?zt(n.types,ort):nwe(n.texts,n.types,a):void 0}function qae(n,a){const l=twe(n,a);return!!l&&Zn(l,(u,p)=>art(u,a.types[p]))}function ort(n){return n.flags&402653317?n:KE(["",""],[n])}function nwe(n,a,l){const u=n.length-1,p=n[0],y=n[u],A=l.texts,R=A.length-1,F=A[0],J=A[R];if(u===0&&p.length<F.length+J.length||!p.startsWith(F)||!y.endsWith(J))return;const Q=y.slice(0,y.length-J.length),ge=[];let Ne=0,De=F.length;for(let Fn=1;Fn<R;Fn++){const An=A[Fn];if(An.length>0){let Xn=Ne,hn=De;for(;hn=_t(Xn).indexOf(An,hn),!(hn>=0);){if(Xn++,Xn===n.length)return;hn=0}Bt(Xn,hn),De+=An.length}else if(De<_t(Ne).length)Bt(Ne,De+1);else if(Ne<u)Bt(Ne+1,0);else return}return Bt(u,_t(u).length),ge;function _t(Fn){return Fn<u?n[Fn]:Q}function Bt(Fn,An){const Xn=Fn===Ne?Qf(_t(Fn).slice(De,An)):KE([n[Ne].slice(De),...n.slice(Ne+1,Fn),_t(Fn).slice(0,An)],a.slice(Ne,Fn));ge.push(Xn),Ne=Fn,De=An}}function sg(n,a,l,u=0,p=!1){let y=!1,A,R=2048,F=!0,J,Q,ge,Ne=0;De(a,l);function De(Vn,lr){if(ZE(lr)){if(Vn===Nt){const ea=A;A=Vn,De(lr,lr),A=ea;return}if(Vn.aliasSymbol&&Vn.aliasSymbol===lr.aliasSymbol){if(Vn.aliasTypeArguments){const ea=zi(Vn.aliasSymbol).typeParameters,Ba=Am(ea),ia=gv(Vn.aliasTypeArguments,ea,Ba,fr(Vn.aliasSymbol.valueDeclaration)),es=gv(lr.aliasTypeArguments,ea,Ba,fr(Vn.aliasSymbol.valueDeclaration));hn(ia,es,Pke(Vn.aliasSymbol))}return}if(Vn===lr&&Vn.flags&3145728){for(const ea of Vn.types)De(ea,ea);return}if(lr.flags&1048576){const[ea,Ba]=Xn(Vn.flags&1048576?Vn.types:[Vn],lr.types,srt),[ia,es]=Xn(ea,Ba,lrt);if(es.length===0)return;if(lr=Zr(es),ia.length===0){_t(Vn,lr,1);return}Vn=Zr(ia)}else if(lr.flags&2097152&&!Zn(lr.types,oV)){if(!(Vn.flags&1048576)){const[ea,Ba]=Xn(Vn.flags&2097152?Vn.types:[Vn],lr.types,ig);if(ea.length===0||Ba.length===0)return;Vn=Do(ea),lr=Do(Ba)}}else lr.flags&41943040&&(lr=bv(lr));if(lr.flags&8650752){if(Zke(Vn))return;const ea=sn(lr);if(ea){if(ri(Vn)&262144||Vn===pe)return;if(!ea.isFixed){if((ea.priority===void 0||u<ea.priority)&&(ea.candidates=void 0,ea.contraCandidates=void 0,ea.topLevel=!0,ea.priority=u),u===ea.priority){const ia=A||Vn;p&&!y?Ur(ea.contraCandidates,ia)||(ea.contraCandidates=Bn(ea.contraCandidates,ia),wV(n)):Ur(ea.candidates,ia)||(ea.candidates=Bn(ea.candidates,ia),wV(n))}!(u&128)&&lr.flags&262144&&ea.topLevel&&!KD(l,lr)&&(ea.topLevel=!1,wV(n))}R=Math.min(R,u);return}const Ba=ly(lr,!1);if(Ba!==lr)De(Vn,Ba);else if(lr.flags&8388608){const ia=ly(lr.indexType,!1);if(ia.flags&465829888){const es=ike(ly(lr.objectType,!1),ia,!1);es&&es!==lr&&De(Vn,es)}}}if(ri(Vn)&4&&ri(lr)&4&&(Vn.target===lr.target||Zf(Vn)&&Zf(lr))&&!(Vn.node&&lr.node))hn(ys(Vn),ys(lr),xae(Vn.target));else if(Vn.flags&4194304&&lr.flags&4194304)xn(Vn.type,lr.type);else if((WD(Vn)||Vn.flags&4)&&lr.flags&4194304){const ea=Qnt(Vn);Bt(ea,lr.type,256)}else if(Vn.flags&8388608&&lr.flags&8388608)De(Vn.objectType,lr.objectType),De(Vn.indexType,lr.indexType);else if(Vn.flags&268435456&&lr.flags&268435456)Vn.symbol===lr.symbol&&De(Vn.type,lr.type);else if(Vn.flags&33554432)De(Vn.baseType,lr),_t(Hie(Vn),lr,4);else if(lr.flags&16777216)An(Vn,lr,ai);else if(lr.flags&3145728)Jn(Vn,lr.types,lr.flags);else if(Vn.flags&1048576){const ea=Vn.types;for(const Ba of ea)De(Ba,lr)}else if(lr.flags&134217728)_a(Vn,lr);else{if(Vn=yp(Vn),!(u&512&&Vn.flags&467927040)){const ea=ed(Vn);if(ea!==Vn&&F&&!(ea.flags&2621440))return F=!1,De(ea,lr);Vn=ea}Vn.flags&2621440&&An(Vn,lr,Za)}}}function _t(Vn,lr,ea){const Ba=u;u|=ea,De(Vn,lr),u=Ba}function Bt(Vn,lr,ea){const Ba=u;u|=ea,xn(Vn,lr),u=Ba}function Fn(Vn,lr,ea,Ba){const ia=u;u|=Ba,Jn(Vn,lr,ea),u=ia}function An(Vn,lr,ea){const Ba=Vn.id+","+lr.id,ia=J&&J.get(Ba);if(ia!==void 0){R=Math.min(R,ia);return}(J||(J=new Map)).set(Ba,-1);const es=R;R=2048;const Ms=Ne,bl=qL(Vn),Co=qL(lr);Ur(Q,bl)&&(Ne|=1),Ur(ge,Co)&&(Ne|=2),Ne!==3?((Q||(Q=[])).push(bl),(ge||(ge=[])).push(Co),ea(Vn,lr),ge.pop(),Q.pop()):R=-1,Ne=Ms,J.set(Ba,R),R=Math.min(R,es)}function Xn(Vn,lr,ea){let Ba,ia;for(const es of lr)for(const Ms of Vn)ea(Ms,es)&&(De(Ms,es),Ba=yy(Ba,Ms),ia=yy(ia,es));return[Ba?yn(Vn,es=>!Ur(Ba,es)):Vn,ia?yn(lr,es=>!Ur(ia,es)):lr]}function hn(Vn,lr,ea){const Ba=Vn.length<lr.length?Vn.length:lr.length;for(let ia=0;ia<Ba;ia++)ia<ea.length&&(ea[ia]&7)===2?xn(Vn[ia],lr[ia]):De(Vn[ia],lr[ia])}function xn(Vn,lr){p=!p,De(Vn,lr),p=!p}function yr(Vn,lr){ce||u&1024?xn(Vn,lr):De(Vn,lr)}function sn(Vn){if(Vn.flags&8650752){for(const lr of n)if(Vn===lr.typeParameter)return lr}}function Un(Vn){let lr;for(const ea of Vn){const Ba=ea.flags&2097152&&In(ea.types,ia=>!!sn(ia));if(!Ba||lr&&Ba!==lr)return;lr=Ba}return lr}function Jn(Vn,lr,ea){let Ba=0;if(ea&1048576){let ia;const es=Vn.flags&1048576?Vn.types:[Vn],Ms=new Array(es.length);let bl=!1;for(const Co of lr)if(sn(Co))ia=Co,Ba++;else for(let td=0;td<es.length;td++){const dt=R;R=2048,De(es[td],Co),R===u&&(Ms[td]=!0),bl=bl||R===-1,R=Math.min(R,dt)}if(Ba===0){const Co=Un(lr);Co&&_t(Vn,Co,1);return}if(Ba===1&&!bl){const Co=Ga(es,(td,dt)=>Ms[dt]?void 0:td);if(Co.length){De(Zr(Co),ia);return}}}else for(const ia of lr)sn(ia)?Ba++:De(Vn,ia);if(ea&2097152?Ba===1:Ba>0)for(const ia of lr)sn(ia)&&_t(Vn,ia,1)}function ei(Vn,lr,ea){if(ea.flags&1048576){let Ba=!1;for(const ia of ea.types)Ba=ei(Vn,lr,ia)||Ba;return Ba}if(ea.flags&4194304){const Ba=sn(ea.type);if(Ba&&!Ba.isFixed&&!Zke(Vn)){const ia=$ke(Vn,lr,ea);ia&&_t(ia,Ba.typeParameter,ri(Vn)&262144?16:8)}return!0}if(ea.flags&262144){_t(Lm(Vn),ea,32);const Ba=zE(ea);if(Ba&&ei(Vn,lr,Ba))return!0;const ia=zt(gs(Vn),or),es=zt(Nu(Vn),Ms=>Ms!==$u?Ms.type:gt);return De(Zr(ya(ia,es)),rg(lr)),!0}return!1}function ai(Vn,lr){if(Vn.flags&16777216)De(Vn.checkType,lr.checkType),De(Vn.extendsType,lr.extendsType),De(F0(Vn),F0(lr)),De(B0(Vn),B0(lr));else{const ea=[F0(lr),B0(lr)];Fn(Vn,ea,lr.flags,p?64:0)}}function _a(Vn,lr){const ea=twe(Vn,lr),Ba=lr.types;if(ea||Zn(lr.texts,ia=>ia.length===0))for(let ia=0;ia<Ba.length;ia++){const es=ea?ea[ia]:gt,Ms=Ba[ia];if(es.flags&128&&Ms.flags&8650752){const bl=sn(Ms),Co=bl?Zu(bl.typeParameter):void 0;if(Co&&!xs(Co)){const td=Co.flags&1048576?Co.types:[Co];let dt=Gu(td,(Se,tr)=>Se|tr.flags,0);if(!(dt&4)){const Se=es.value;dt&296&&!ewe(Se,!0)&&(dt&=-297),dt&2112&&!T7(Se,!0)&&(dt&=-2113);const tr=Gu(td,(Qn,Tr)=>Tr.flags&dt?Qn.flags&4?Qn:Tr.flags&4?es:Qn.flags&134217728?Qn:Tr.flags&134217728&&qae(es,Tr)?es:Qn.flags&268435456?Qn:Tr.flags&268435456&&Se===tke(Tr.symbol,Se)?es:Qn.flags&128?Qn:Tr.flags&128&&Tr.value===Se?Tr:Qn.flags&8?Qn:Tr.flags&8?qp(+Se):Qn.flags&32?Qn:Tr.flags&32?qp(+Se):Qn.flags&256?Qn:Tr.flags&256&&Tr.value===+Se?Tr:Qn.flags&64?Qn:Tr.flags&64?irt(Se):Qn.flags&2048?Qn:Tr.flags&2048&&q1(Tr.value)===Se?Tr:Qn.flags&16?Qn:Tr.flags&16?Se==="true"?Pe:Se==="false"?it:Re:Qn.flags&512?Qn:Tr.flags&512&&Tr.intrinsicName===Se?Tr:Qn.flags&32768?Qn:Tr.flags&32768&&Tr.intrinsicName===Se?Tr:Qn.flags&65536?Qn:Tr.flags&65536&&Tr.intrinsicName===Se?Tr:Qn:Qn,gt);if(!(tr.flags&131072)){De(tr,Ms);continue}}}}De(es,Ms)}}function Za(Vn,lr){var ea,Ba;if(ri(Vn)&4&&ri(lr)&4&&(Vn.target===lr.target||Zf(Vn)&&Zf(lr))){hn(ys(Vn),ys(lr),xae(Vn.target));return}if($f(Vn)&&$f(lr)){De(Hp(Vn),Hp(lr)),De(rg(Vn),rg(lr));const ia=pv(Vn),es=pv(lr);ia&&es&&De(ia,es)}if(ri(lr)&32&&!lr.declaration.nameType){const ia=Hp(lr);if(ei(Vn,lr,ia))return}if(!nrt(Vn,lr)){if(YE(Vn)){if(Bo(lr)){const ia=P0(Vn),es=P0(lr),Ms=ys(lr),bl=lr.target.elementFlags;if(Bo(Vn)&&Mnt(Vn,lr)){for(let dt=0;dt<es;dt++)De(ys(Vn)[dt],Ms[dt]);return}const Co=Bo(Vn)?Math.min(Vn.target.fixedLength,lr.target.fixedLength):0,td=Math.min(Bo(Vn)?qP(Vn.target,3):0,lr.target.hasRestElement?qP(lr.target,3):0);for(let dt=0;dt<Co;dt++)De(ys(Vn)[dt],Ms[dt]);if(!Bo(Vn)||ia-Co-td===1&&Vn.target.elementFlags[Co]&4){const dt=ys(Vn)[Co];for(let Se=Co;Se<es-td;Se++)De(bl[Se]&8?Ou(dt):dt,Ms[Se])}else{const dt=es-Co-td;if(dt===2){if(bl[Co]&bl[Co+1]&8){const Se=sn(Ms[Co]);Se&&Se.impliedArity!==void 0&&(De(jL(Vn,Co,td+ia-Se.impliedArity),Ms[Co]),De(jL(Vn,Co+Se.impliedArity,td),Ms[Co+1]))}else if(bl[Co]&8&&bl[Co+1]&4){const Se=(ea=sn(Ms[Co]))==null?void 0:ea.typeParameter,tr=Se&&Zu(Se);if(tr&&Bo(tr)&&!tr.target.hasRestElement){const Qn=tr.target.fixedLength;De(jL(Vn,Co,ia-(Co+Qn)),Ms[Co]),De(XL(Vn,Co+Qn,td),Ms[Co+1])}}else if(bl[Co]&4&&bl[Co+1]&8){const Se=(Ba=sn(Ms[Co+1]))==null?void 0:Ba.typeParameter,tr=Se&&Zu(Se);if(tr&&Bo(tr)&&!tr.target.hasRestElement){const Qn=tr.target.fixedLength,Tr=ia-qP(lr.target,3),kr=Tr-Qn,Da=zp(ys(Vn).slice(kr,Tr),Vn.target.elementFlags.slice(kr,Tr),!1,Vn.target.labeledElementDeclarations&&Vn.target.labeledElementDeclarations.slice(kr,Tr));De(XL(Vn,Co,td+Qn),Ms[Co]),De(Da,Ms[Co+1])}}}else if(dt===1&&bl[Co]&8){const Se=lr.target.elementFlags[es-1]&2,tr=jL(Vn,Co,td);_t(tr,Ms[Co],Se?2:0)}else if(dt===1&&bl[Co]&4){const Se=XL(Vn,Co,td);Se&&De(Se,Ms[Co])}}for(let dt=0;dt<td;dt++)De(ys(Vn)[ia-dt-1],Ms[es-dt-1]);return}if(Zf(lr)){sa(Vn,lr);return}}Lc(Vn,lr),e_(Vn,lr,0),e_(Vn,lr,1),sa(Vn,lr)}}function Lc(Vn,lr){const ea=mv(lr);for(const Ba of ea){const ia=fo(Vn,Ba.escapedName);ia&&!kt(ia.declarations,Wae)&&De(or(ia),or(Ba))}}function e_(Vn,lr,ea){const Ba=za(Vn,ea),ia=za(lr,ea),es=Ba.length,Ms=ia.length,bl=es<Ms?es:Ms;for(let Co=0;Co<bl;Co++)kf(_et(Ba[es-bl+Co]),PD(ia[Ms-bl+Co]))}function kf(Vn,lr){const ea=y,Ba=lr.declaration?lr.declaration.kind:0;y=y||Ba===171||Ba===170||Ba===173,Mae(Vn,lr,yr),y=ea,Fae(Vn,lr,De)}function sa(Vn,lr){const ea=ri(Vn)&ri(lr)&32?8:0,Ba=Nu(lr);if(LV(Vn))for(const ia of Ba){const es=[];for(const Ms of gs(Vn))if(nA(HL(Ms,8576),ia.keyType)){const bl=or(Ms);es.push(Ms.flags&16777216?Oae(bl):bl)}for(const Ms of Nu(Vn))nA(Ms.keyType,ia.keyType)&&es.push(Ms.type);es.length&&_t(Zr(es),ia.type,ea)}for(const ia of Ba){const es=jP(Vn,ia.keyType);es&&_t(es.type,ia.type,ea)}}}function srt(n,a){return a===Xe?n===a:ig(n,a)||!!(a.flags&4&&n.flags&128||a.flags&8&&n.flags&256)}function lrt(n,a){return!!(n.flags&524288&&a.flags&524288&&n.symbol&&n.symbol===a.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===a.aliasSymbol)}function crt(n){const a=Ru(n);return!!a&&gl(a.flags&16777216?Tie(a):a,406978556)}function H0(n){return!!(ri(n)&128)}function Jae(n){return!!(ri(n)&16512)}function urt(n){if(n.length>1){const a=yn(n,Jae);if(a.length){const l=Zr(a,2);return ya(yn(n,u=>!Jae(u)),[l])}}return n}function drt(n){return n.priority&416?Do(n.contraCandidates):knt(n.contraCandidates)}function frt(n,a){const l=urt(n.candidates),u=crt(n.typeParameter)||UP(n.typeParameter),p=!u&&n.topLevel&&(n.isFixed||!$nt(a,n.typeParameter)),y=u?no(l,xd):p?no(l,o1):l,A=n.priority&416?Zr(y,2):Int(y);return sf(A)}function Kae(n,a){const l=n.inferences[a];if(!l.inferredType){let u;const p=n.signature;if(p){const A=l.candidates?frt(l,p):void 0;if(l.contraCandidates)u=A&&!(A.flags&131072)&&kt(l.contraCandidates,F=>Ev(A,F))&&Zn(n.inferences,F=>F!==l&&Ru(F.typeParameter)!==l.typeParameter||Zn(F.candidates,J=>Ev(J,A)))?A:drt(l);else if(A)u=A;else if(n.flags&1)u=ft;else{const R=qE(l.typeParameter);R&&(u=$i(R,jtt(Vtt(n,a),n.nonFixingMapper)))}}else u=Qke(l);l.inferredType=u||Xae(!!(n.flags&2));const y=Ru(l.typeParameter);if(y){const A=$i(y,n.nonFixingMapper);(!u||!n.compareTypes(u,Yf(A,u)))&&(l.inferredType=u=A)}}return l.inferredType}function Xae(n){return n?we:he}function Yae(n){const a=[];for(let l=0;l<n.inferences.length;l++)a.push(Kae(n,l));return a}function rwe(n){switch(n.escapedText){case"document":case"console":return _.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return $.types?_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return $.types?_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return $.types?_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return _.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(io(n.parent))return _.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return n.parent.kind===300?_.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:_.Cannot_find_name_0}}function B_(n){const a=Jr(n);return a.resolvedSymbol||(a.resolvedSymbol=!kl(n)&&hl(n,n.escapedText,1160127,rwe(n),n,!Xq(n),!1)||rn),a.resolvedSymbol}function YL(n){return!!rr(n,a=>a.kind===183?!0:a.kind===79||a.kind===163?!1:"quit")}function iwe(n){return!!(n.flags&16777216||rr(n,a=>ud(a)||yf(a)))}function RV(n,a,l,u){switch(n.kind){case 79:if(!wx(n)){const A=B_(n);return A!==rn?`${u?hs(u):"-1"}|${Pu(a)}|${Pu(l)}|${Eo(A)}`:void 0}case 108:return`0|${u?hs(u):"-1"}|${Pu(a)}|${Pu(l)}`;case 232:case 214:return RV(n.expression,a,l,u);case 163:const p=RV(n.left,a,l,u);return p&&p+"."+n.right.escapedText;case 208:case 209:const y=eT(n);if(y!==void 0){const A=RV(n.expression,a,l,u);return A&&A+"."+y}break;case 203:case 204:case 259:case 215:case 216:case 171:return`${hs(n)}#${Pu(a)}`}}function eu(n,a){switch(a.kind){case 214:case 232:return eu(n,a.expression);case 223:return ld(a)&&eu(n,a.left)||br(a)&&a.operatorToken.kind===27&&eu(n,a.right)}switch(n.kind){case 233:return a.kind===233&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 79:case 80:return wx(n)?a.kind===108:a.kind===79&&B_(n)===B_(a)||(Xi(a)||ms(a))&&Vp(B_(n))===Ir(a);case 108:return a.kind===108;case 106:return a.kind===106;case 232:case 214:return eu(n.expression,a);case 208:case 209:const l=eT(n),u=dl(a)?eT(a):void 0;return l!==void 0&&u!==void 0&&u===l&&eu(n.expression,a.expression);case 163:return dl(a)&&n.right.escapedText===eT(a)&&eu(n.left,a.expression);case 223:return br(n)&&n.operatorToken.kind===27&&eu(n.right,a)}return!1}function eT(n){if(Fr(n))return n.name.escapedText;if(fl(n))return _rt(n);if(ms(n)){const a=Cn(n);return a?ul(a):void 0}if(Fa(n))return""+n.parent.parameters.indexOf(n)}function awe(n){return n.flags&8192?n.escapedName:n.flags&384?ul(""+n.value):void 0}function _rt(n){if(i_(n.argumentExpression))return ul(n.argumentExpression.text);if(Xl(n.argumentExpression)){const a=Ml(n.argumentExpression,111551,!0);if(!a||!(QL(a)||a.flags&8))return;const l=a.valueDeclaration;if(l===void 0)return;const u=Vd(l);if(u){const p=awe(u);if(p!==void 0)return p}if(ET(l)&&Wg(l,n.argumentExpression)){const p=PN(l);if(p)return awe(Fu(p));if(Q1(l))return QA(l.name)}}}function owe(n,a){for(;dl(n);)if(n=n.expression,eu(n,a))return!0;return!1}function VS(n,a){for(;xu(n);)if(n=n.expression,eu(n,a))return!0;return!1}function XD(n,a){if(n&&n.flags&1048576){const l=Cie(n,a);if(l&&Dl(l)&2)return l.links.isDiscriminantProperty===void 0&&(l.links.isDiscriminantProperty=(l.links.checkFlags&192)===192&&!WL(or(l))),!!l.links.isDiscriminantProperty}return!1}function swe(n,a){let l;for(const u of n)if(XD(a,u.escapedName)){if(l){l.push(u);continue}l=[u]}return l}function prt(n,a){const l=new Map;let u=0;for(const p of n)if(p.flags&61603840){const y=vc(p,a);if(y){if(!WD(y))return;let A=!1;nT(y,R=>{const F=Pu(xd(R)),J=l.get(F);J?J!==he&&(l.set(F,he),A=!0):l.set(F,p)}),A||u++}}return u>=10&&u*2>=n.length?l:void 0}function s4(n){const a=n.types;if(!(a.length<10||ri(n)&32768||Wc(a,l=>!!(l.flags&59506688))<10)){if(n.keyPropertyName===void 0){const l=Je(a,p=>p.flags&59506688?Je(gs(p),y=>vp(or(y))?y.escapedName:void 0):void 0),u=l&&prt(a,l);n.keyPropertyName=u?l:"",n.constituentMap=u}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function l4(n,a){var l;const u=(l=n.constituentMap)==null?void 0:l.get(Pu(xd(a)));return u!==he?u:void 0}function lwe(n,a){const l=s4(n),u=l&&vc(a,l);return u&&l4(n,u)}function mrt(n,a){const l=s4(n),u=l&&In(a.properties,y=>y.symbol&&y.kind===299&&y.symbol.escapedName===l&&m4(y.initializer)),p=u&&R4(u.initializer);return p&&l4(n,p)}function cwe(n,a){return eu(n,a)||owe(n,a)}function uwe(n,a){if(n.arguments){for(const l of n.arguments)if(cwe(a,l))return!0}return!!(n.expression.kind===208&&cwe(a,n.expression.expression))}function $ae(n){return(!n.id||n.id<0)&&(n.id=YX,YX++),n.id}function hrt(n,a){if(!(n.flags&1048576))return Ao(n,a);for(const l of n.types)if(Ao(l,a))return!0;return!1}function grt(n,a){var l;if(n===a)return n;if(a.flags&131072)return a;const u=`A${Pu(n)},${Pu(a)}`;return(l=Nb(u))!=null?l:Vg(u,yrt(n,a))}function yrt(n,a){const l=bc(n,p=>hrt(a,p)),u=a.flags&512&&r1(a)?Zs(l,dA):l;return Ao(a,u)?u:n}function Qae(n){const a=gp(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Ev(n,pl))}function Mu(n){n.flags&467927040&&(n=Zu(n)||he);const a=n.flags;if(a&268435460)return W?16317953:16776705;if(a&134217856){const l=a&128&&n.value==="";return W?l?12123649:7929345:l?12582401:16776705}if(a&40)return W?16317698:16776450;if(a&256){const l=n.value===0;return W?l?12123394:7929090:l?12582146:16776450}if(a&64)return W?16317188:16775940;if(a&2048){const l=Hke(n);return W?l?12122884:7928580:l?12581636:16775940}return a&16?W?16316168:16774920:a&528?W?n===it||n===K?12121864:7927560:n===it||n===K?12580616:16774920:a&524288?ri(n)&16&&ag(n)?W?83427327:83886079:Qae(n)?W?7880640:16728e3:W?7888800:16736160:a&16384?9830144:a&32768?26607360:a&65536?42917664:a&12288?W?7925520:16772880:a&67108864?W?7888800:16736160:a&131072?0:a&1048576?Gu(n.types,(l,u)=>l|Mu(u),0):a&2097152?vrt(n):83886079}function vrt(n){const a=gl(n,134348796);let l=0,u=134217727;for(const p of n.types)if(!(a&&p.flags&524288)){const y=Mu(p);l|=y,u&=y}return l&8256|u&134209471}function g_(n,a){return bc(n,l=>(Mu(l)&a)!==0)}function tT(n,a){const l=dwe(g_(W&&n.flags&2?Hl:n,a));if(W)switch(a){case 524288:return Zs(l,u=>Mu(u)&65536?Do([u,Mu(u)&131072&&!gl(l,65536)?Zr([fa,Sn]):fa]):u);case 1048576:return Zs(l,u=>Mu(u)&131072?Do([u,Mu(u)&65536&&!gl(l,32768)?Zr([fa,He]):fa]):u);case 2097152:case 4194304:return Zs(l,u=>Mu(u)&262144?Gnt(u):u)}return l}function dwe(n){return n===Hl?he:n}function Zae(n,a){return a?Zr([Te(n),Fu(a)]):n}function fwe(n,a){var l;const u=sy(a);if(!ng(u))return Ce;const p=Sm(u);return vc(n,p)||YD((l=rA(n,p))==null?void 0:l.type)||Ce}function _we(n,a){return gh(n,KL)&&wnt(n,a)||YD(Av(65,n,He,void 0))||Ce}function YD(n){return n&&($.noUncheckedIndexedAccess?Zr([n,Xe]):n)}function pwe(n){return Ou(Av(65,n,He,void 0)||Ce)}function brt(n){return n.parent.kind===206&&eoe(n.parent)||n.parent.kind===299&&eoe(n.parent.parent)?Zae(c4(n),n.right):Fu(n.right)}function eoe(n){return n.parent.kind===223&&n.parent.left===n||n.parent.kind===247&&n.parent.initializer===n}function Ert(n,a){return _we(c4(n),n.elements.indexOf(a))}function Trt(n){return pwe(c4(n.parent))}function mwe(n){return fwe(c4(n.parent),n.name)}function Srt(n){return Zae(mwe(n),n.objectAssignmentInitializer)}function c4(n){const{parent:a}=n;switch(a.kind){case 246:return ue;case 247:return G4(a)||Ce;case 223:return brt(a);case 217:return He;case 206:return Ert(a,n);case 227:return Trt(a);case 299:return mwe(a);case 300:return Srt(a)}return Ce}function xrt(n){const a=n.parent,l=gwe(a.parent),u=a.kind===203?fwe(l,n.propertyName||n.name):n.dotDotDotToken?pwe(l):_we(l,a.elements.indexOf(n));return Zae(u,n.initializer)}function hwe(n){return Jr(n).resolvedType||Fu(n)}function Art(n){return n.initializer?hwe(n.initializer):n.parent.parent.kind===246?ue:n.parent.parent.kind===247&&G4(n.parent.parent)||Ce}function gwe(n){return n.kind===257?Art(n):xrt(n)}function Crt(n){return n.kind===257&&n.initializer&&ks(n.initializer)||n.kind!==205&&n.parent.kind===223&&ks(n.parent.right)}function s1(n){switch(n.kind){case 214:return s1(n.expression);case 223:switch(n.operatorToken.kind){case 63:case 75:case 76:case 77:return s1(n.left);case 27:return s1(n.right)}}return n}function ywe(n){const{parent:a}=n;return a.kind===214||a.kind===223&&a.operatorToken.kind===63&&a.left===n||a.kind===223&&a.operatorToken.kind===27&&a.right===n?ywe(a):n}function Lrt(n){return n.kind===292?xd(Fu(n.expression)):gt}function NV(n){const a=Jr(n);if(!a.switchTypes){a.switchTypes=[];for(const l of n.caseBlock.clauses)a.switchTypes.push(Lrt(l))}return a.switchTypes}function vwe(n){if(kt(n.caseBlock.clauses,l=>l.kind===292&&!As(l.expression)))return;const a=[];for(const l of n.caseBlock.clauses){const u=l.kind===292?l.expression.text:void 0;a.push(u&&!Ur(a,u)?u:void 0)}return a}function Irt(n,a){return n.flags&1048576?!Je(n.types,l=>!Ur(a,l)):Ur(a,n)}function $D(n,a){return n===a||a.flags&1048576&&krt(n,a)}function krt(n,a){if(n.flags&1048576){for(const l of n.types)if(!e1(a.types,l))return!1;return!0}return n.flags&1056&&LD(n)===a?!0:e1(a.types,n)}function nT(n,a){return n.flags&1048576?Je(n.types,a):a(n)}function lg(n,a){return n.flags&1048576?kt(n.types,a):a(n)}function gh(n,a){return n.flags&1048576?Zn(n.types,a):a(n)}function wrt(n,a){return n.flags&3145728?Zn(n.types,a):a(n)}function bc(n,a){if(n.flags&1048576){const l=n.types,u=yn(l,a);if(u===l)return n;const p=n.origin;let y;if(p&&p.flags&1048576){const A=p.types,R=yn(A,F=>!!(F.flags&1048576)||a(F));if(A.length-R.length===l.length-u.length){if(R.length===1)return R[0];y=Zie(1048576,R)}}return tae(u,n.objectFlags&16809984,void 0,void 0,y)}return n.flags&131072||a(n)?n:gt}function OV(n,a){return bc(n,l=>l!==a)}function Drt(n){return n.flags&1048576?n.types.length:1}function Zs(n,a,l){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const u=n.origin,p=u&&u.flags&1048576?u.types:n.types;let y,A=!1;for(const R of p){const F=R.flags&1048576?Zs(R,a,l):a(R);A||(A=R!==F),F&&(y?y.push(F):y=[F])}return A?y&&Zr(y,l?0:1):n}function bwe(n,a,l,u){return n.flags&1048576&&l?Zr(zt(n.types,a),1,l,u):Zs(n,a)}function $L(n,a){return bc(n,l=>(l.flags&a)!==0)}function Ewe(n,a){return gl(n,134217804)&&gl(a,402655616)?Zs(n,l=>l.flags&4?$L(a,402653316):cA(l)&&!gl(a,402653188)?$L(a,128):l.flags&8?$L(a,264):l.flags&64?$L(a,2112):l):n}function pA(n){return n.flags===0}function rT(n){return n.flags===0?n.type:n}function mA(n,a){return a?{flags:0,type:n.flags&131072?ft:n}:n}function Rrt(n){const a=Af(256);return a.elementType=n,a}function toe(n){return Mi[n.id]||(Mi[n.id]=Rrt(n))}function Twe(n,a){const l=o4(Sv(R4(a)));return $D(l,n.elementType)?n:toe(Zr([n.elementType,l]))}function Nrt(n){return n.flags&131072?On:Ou(n.flags&1048576?Zr(n.types,2):n)}function Ort(n){return n.finalArrayType||(n.finalArrayType=Nrt(n.elementType))}function u4(n){return ri(n)&256?Ort(n):n}function Prt(n){return ri(n)&256?n.elementType:gt}function Mrt(n){let a=!1;for(const l of n)if(!(l.flags&131072)){if(!(ri(l)&256))return!1;a=!0}return a}function Swe(n){const a=ywe(n),l=a.parent,u=Fr(l)&&(l.name.escapedText==="length"||l.parent.kind===210&&je(l.name)&&Eq(l.name)),p=l.kind===209&&l.expression===a&&l.parent.kind===223&&l.parent.operatorToken.kind===63&&l.parent.left===l&&!wh(l.parent)&&Vc(Fu(l.argumentExpression),296);return u||p}function Frt(n){return(Xi(n)||ro(n)||Bf(n)||Fa(n))&&!!(iu(n)||fr(n)&&Uv(n)&&n.initializer&&CC(n.initializer)&&Cp(n.initializer))}function PV(n,a){if(n=ec(n),n.flags&8752)return or(n);if(n.flags&7){if(Dl(n)&262144){const u=n.links.syntheticOrigin;if(u&&PV(u))return or(n)}const l=n.valueDeclaration;if(l){if(Frt(l))return or(n);if(Xi(l)&&l.parent.parent.kind===247){const u=l.parent.parent,p=d4(u.expression,void 0);if(p){const y=u.awaitModifier?15:13;return Av(y,p,He,void 0)}}a&&Yo(a,Nr(l,_._0_needs_an_explicit_type_annotation,x(n)))}}}function d4(n,a){if(!(n.flags&33554432))switch(n.kind){case 79:const l=Vp(B_(n));return PV(l,a);case 108:return nit(n);case 106:return ooe(n);case 208:{const u=d4(n.expression,a);if(u){const p=n.name;let y;if(Oi(p)){if(!u.symbol)return;y=fo(u,tO(u.symbol,p.escapedText))}else y=fo(u,p.escapedText);return y&&PV(y,a)}return}case 214:return d4(n.expression,a)}}function MV(n){const a=Jr(n);let l=a.effectsSignature;if(l===void 0){let u;n.parent.kind===241?u=d4(n.expression,void 0):n.expression.kind!==106&&(xu(n)?u=Jp(zD(ha(n.expression),n.expression),n.expression):u=tI(n.expression));const p=za(u&&ed(u)||he,0),y=p.length===1&&!p[0].typeParameters?p[0]:kt(p,xwe)?rI(n):void 0;l=a.effectsSignature=y&&xwe(y)?y:nn}return l===nn?void 0:l}function xwe(n){return!!(p_(n)||n.declaration&&(iA(n.declaration)||he).flags&131072)}function Brt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const l=Ws(a.expression);return dl(l)?Ws(l.expression):void 0}function Grt(n){const a=rr(n,yz),l=er(n),u=ky(l,a.statements.pos);Zo.add(Mc(l,u.start,u.length,_.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function f4(n){const a=FV(n,!1);return _n=n,dr=a,a}function _4(n){const a=Ws(n,!0);return a.kind===95||a.kind===223&&(a.operatorToken.kind===55&&(_4(a.left)||_4(a.right))||a.operatorToken.kind===56&&_4(a.left)&&_4(a.right))}function FV(n,a){for(;;){if(n===_n)return dr;const l=n.flags;if(l&4096){if(!a){const u=$ae(n),p=O2[u];return p!==void 0?p:O2[u]=FV(n,!0)}a=!1}if(l&368)n=n.antecedent;else if(l&512){const u=MV(n.node);if(u){const p=p_(u);if(p&&p.kind===3&&!p.type){const y=n.node.arguments[p.parameterIndex];if(y&&_4(y))return!1}if(vs(u).flags&131072)return!1}n=n.antecedent}else{if(l&4)return kt(n.antecedents,u=>FV(u,!1));if(l&8){const u=n.antecedents;if(u===void 0||u.length===0)return!1;n=u[0]}else if(l&128){if(n.clauseStart===n.clauseEnd&&ZDe(n.switchStatement))return!1;n=n.antecedent}else if(l&1024){_n=void 0;const u=n.target,p=u.antecedents;u.antecedents=n.antecedents;const y=FV(n.antecedent,!1);return u.antecedents=p,y}else return!(l&1)}}}function BV(n,a){for(;;){const l=n.flags;if(l&4096){if(!a){const u=$ae(n),p=gE[u];return p!==void 0?p:gE[u]=BV(n,!0)}a=!1}if(l&496)n=n.antecedent;else if(l&512){if(n.node.expression.kind===106)return!0;n=n.antecedent}else{if(l&4)return Zn(n.antecedents,u=>BV(u,!1));if(l&8)n=n.antecedents[0];else if(l&1024){const u=n.target,p=u.antecedents;u.antecedents=n.antecedents;const y=BV(n.antecedent,!1);return u.antecedents=p,y}else return!!(l&1)}}}function Awe(n){switch(n.kind){case 79:if(!wx(n)){const a=B_(n);return QL(a)||bJ(a)&&!GV(a)}break;case 208:case 209:return Awe(n.expression)&&Ep(Jr(n).resolvedSymbol||rn)}return!1}function W0(n,a,l=a,u,p=(y=>(y=si(n,JN))==null?void 0:y.flowNode)()){let y,A=!1,R=0;if(Ki)return Ce;if(!p)return a;nr++;const F=qr,J=rT(Ne(p));qr=F;const Q=ri(J)&256&&Swe(n)?On:u4(J);if(Q===$n||n.parent&&n.parent.kind===232&&!(Q.flags&131072)&&g_(Q,2097152).flags&131072)return a;return Q===j?he:Q;function ge(){return A?y:(A=!0,y=RV(n,a,l,u))}function Ne(bt){var Ft;if(R===2e3)return(Ft=Si)==null||Ft.instant(Si.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:bt.id}),Ki=!0,Grt(n),Ce;R++;let en;for(;;){const $t=bt.flags;if($t&4096){for(let qn=F;qn<qr;qn++)if(hE[qn]===bt)return R--,f0[qn];en=bt}let wn;if($t&16){if(wn=_t(bt),!wn){bt=bt.antecedent;continue}}else if($t&512){if(wn=Fn(bt),!wn){bt=bt.antecedent;continue}}else if($t&96)wn=Xn(bt);else if($t&128)wn=hn(bt);else if($t&12){if(bt.antecedents.length===1){bt=bt.antecedents[0];continue}wn=$t&4?xn(bt):yr(bt)}else if($t&256){if(wn=An(bt),!wn){bt=bt.antecedent;continue}}else if($t&1024){const qn=bt.target,la=qn.antecedents;qn.antecedents=bt.antecedents,wn=Ne(bt.antecedent),qn.antecedents=la}else if($t&2){const qn=bt.node;if(qn&&qn!==u&&n.kind!==208&&n.kind!==209&&n.kind!==108){bt=qn.flowNode;continue}wn=l}else wn=mR(a);return en&&(hE[qr]=en,f0[qr]=wn,qr++),R--,wn}}function De(bt){const Ft=bt.node;return noe(Ft.kind===257||Ft.kind===205?gwe(Ft):c4(Ft),n)}function _t(bt){const Ft=bt.node;if(eu(n,Ft)){if(!f4(bt))return $n;if(wT(Ft)===2){const en=Ne(bt.antecedent);return mA(Sv(rT(en)),pA(en))}if(a===yt||a===On){if(Crt(Ft))return toe(gt);const en=o1(De(bt));return Ao(en,a)?en:Dt}return a.flags&1048576?grt(a,De(bt)):a}if(owe(n,Ft)){if(!f4(bt))return $n;if(Xi(Ft)&&(fr(Ft)||Tg(Ft))){const en=MN(Ft);if(en&&(en.kind===215||en.kind===216))return Ne(bt.antecedent)}return a}if(Xi(Ft)&&Ft.parent.parent.kind===246&&(eu(n,Ft.parent.parent.expression)||VS(Ft.parent.parent.expression,n)))return Soe(u4(rT(Ne(bt.antecedent))))}function Bt(bt,Ft){const en=Ws(Ft,!0);if(en.kind===95)return $n;if(en.kind===223){if(en.operatorToken.kind===55)return Bt(Bt(bt,en.left),en.right);if(en.operatorToken.kind===56)return Zr([Bt(bt,en.left),Bt(bt,en.right)])}return Ni(bt,en,!0)}function Fn(bt){const Ft=MV(bt.node);if(Ft){const en=p_(Ft);if(en&&(en.kind===2||en.kind===3)){const $t=Ne(bt.antecedent),wn=u4(rT($t)),qn=en.type?Da(wn,en,bt.node,!0):en.kind===3&&en.parameterIndex>=0&&en.parameterIndex<bt.node.arguments.length?Bt(wn,bt.node.arguments[en.parameterIndex]):wn;return qn===wn?$t:mA(qn,pA($t))}if(vs(Ft).flags&131072)return $n}}function An(bt){if(a===yt||a===On){const Ft=bt.node,en=Ft.kind===210?Ft.expression.expression:Ft.left.expression;if(eu(n,s1(en))){const $t=Ne(bt.antecedent),wn=rT($t);if(ri(wn)&256){let qn=wn;if(Ft.kind===210)for(const la of Ft.arguments)qn=Twe(qn,la);else{const la=R4(Ft.left.argumentExpression);Vc(la,296)&&(qn=Twe(qn,Ft.right))}return qn===wn?$t:mA(qn,pA($t))}return $t}}}function Xn(bt){const Ft=Ne(bt.antecedent),en=rT(Ft);if(en.flags&131072)return Ft;const $t=(bt.flags&32)!==0,wn=u4(en),qn=Ni(wn,bt.node,$t);return qn===wn?Ft:mA(qn,pA(Ft))}function hn(bt){const Ft=bt.switchStatement.expression,en=Ne(bt.antecedent);let $t=rT(en);if(eu(n,Ft))$t=es($t,bt.switchStatement,bt.clauseStart,bt.clauseEnd);else if(Ft.kind===218&&eu(n,Ft.expression))$t=Co($t,bt.switchStatement,bt.clauseStart,bt.clauseEnd);else{W&&(VS(Ft,n)?$t=ia($t,bt.switchStatement,bt.clauseStart,bt.clauseEnd,qn=>!(qn.flags&163840)):Ft.kind===218&&VS(Ft.expression,n)&&($t=ia($t,bt.switchStatement,bt.clauseStart,bt.clauseEnd,qn=>!(qn.flags&131072||qn.flags&128&&qn.value==="undefined"))));const wn=Jn(Ft,$t);wn&&($t=_a($t,wn,bt.switchStatement,bt.clauseStart,bt.clauseEnd))}return mA($t,pA(en))}function xn(bt){const Ft=[];let en=!1,$t=!1,wn;for(const qn of bt.antecedents){if(!wn&&qn.flags&128&&qn.clauseStart===qn.clauseEnd){wn=qn;continue}const la=Ne(qn),Ei=rT(la);if(Ei===a&&a===l)return Ei;v_(Ft,Ei),$D(Ei,a)||(en=!0),pA(la)&&($t=!0)}if(wn){const qn=Ne(wn),la=rT(qn);if(!(la.flags&131072)&&!Ur(Ft,la)&&!ZDe(wn.switchStatement)){if(la===a&&a===l)return la;Ft.push(la),$D(la,a)||(en=!0),pA(qn)&&($t=!0)}}return mA(sn(Ft,en?2:1),$t)}function yr(bt){const Ft=$ae(bt),en=Bg[Ft]||(Bg[Ft]=new Map),$t=ge();if(!$t)return a;const wn=en.get($t);if(wn)return wn;for(let ur=Tn;ur<Wn;ur++)if(bS[ur]===bt&&pE[ur]===$t&&mE[ur].length)return mA(sn(mE[ur],1),!0);const qn=[];let la=!1,Ei;for(const ur of bt.antecedents){let ti;if(!Ei)ti=Ei=Ne(ur);else{bS[Wn]=bt,pE[Wn]=$t,mE[Wn]=qn,Wn++;const Ea=Sa;Sa=void 0,ti=Ne(ur),Sa=Ea,Wn--;const cs=en.get($t);if(cs)return cs}const vr=rT(ti);if(v_(qn,vr),$D(vr,a)||(la=!0),vr===a)break}const gn=sn(qn,la?2:1);return pA(Ei)?mA(gn,!0):(en.set($t,gn),gn)}function sn(bt,Ft){if(Mrt(bt))return toe(Zr(zt(bt,Prt)));const en=dwe(Zr(no(bt,u4),Ft));return en!==a&&en.flags&a.flags&1048576&&Oo(en.types,a.types)?a:en}function Un(bt){if(Ya(n)||CC(n)||q_(n)){if(je(bt)){const en=B_(bt).valueDeclaration;if(en&&(ms(en)||Fa(en))&&n===en.parent&&!en.initializer&&!en.dotDotDotToken)return en}}else if(dl(bt)){if(eu(n,bt.expression))return bt}else if(je(bt)){const Ft=B_(bt);if(QL(Ft)){const en=Ft.valueDeclaration;if(Xi(en)&&!en.type&&en.initializer&&dl(en.initializer)&&eu(n,en.initializer.expression))return en.initializer;if(ms(en)&&!en.initializer){const $t=en.parent.parent;if(Xi($t)&&!$t.type&&$t.initializer&&(je($t.initializer)||dl($t.initializer))&&eu(n,$t.initializer))return en}}}}function Jn(bt,Ft){const en=a.flags&1048576?a:Ft;if(en.flags&1048576){const $t=Un(bt);if($t){const wn=eT($t);if(wn&&XD(en,wn))return $t}}}function ei(bt,Ft,en){const $t=eT(Ft);if($t===void 0)return bt;const wn=xu(Ft),qn=W&&(wn||ype(Ft))&&gl(bt,98304);let la=vc(qn?g_(bt,2097152):bt,$t);if(!la)return bt;la=qn&&wn?uy(la):la;const Ei=en(la);return bc(bt,gn=>{const ur=RP(gn,$t);return!(ur.flags&131072)&&!(Ei.flags&131072)&&QP(Ei,ur)})}function ai(bt,Ft,en,$t,wn){if((en===36||en===37)&&bt.flags&1048576){const qn=s4(bt);if(qn&&qn===eT(Ft)){const la=l4(bt,Fu($t));if(la)return en===(wn?36:37)?la:vp(vc(la,qn)||he)?OV(bt,la):bt}}return ei(bt,Ft,qn=>lr(qn,en,$t,wn))}function _a(bt,Ft,en,$t,wn){if($t<wn&&bt.flags&1048576&&s4(bt)===eT(Ft)){const qn=NV(en).slice($t,wn),la=Zr(zt(qn,Ei=>l4(bt,Ei)||he));if(la!==he)return la}return ei(bt,Ft,qn=>es(qn,en,$t,wn))}function Za(bt,Ft,en){if(eu(n,Ft))return tT(bt,en?4194304:8388608);W&&en&&VS(Ft,n)&&(bt=tT(bt,2097152));const $t=Jn(Ft,bt);return $t?ei(bt,$t,wn=>g_(wn,en?4194304:8388608)):bt}function Lc(bt,Ft,en){const $t=fo(bt,Ft);return $t?!!($t.flags&16777216)||en:!!rA(bt,Ft)||!en}function e_(bt,Ft,en){const $t=Sm(Ft);if(lg(bt,qn=>Lc(qn,$t,!0)))return bc(bt,qn=>Lc(qn,$t,en));if(en){const qn=Wet();if(qn)return Do([bt,sA(qn,[Ft,he])])}return bt}function kf(bt,Ft,en){switch(Ft.operatorToken.kind){case 63:case 75:case 76:case 77:return Za(Ni(bt,Ft.right,en),Ft.left,en);case 34:case 35:case 36:case 37:const $t=Ft.operatorToken.kind,wn=s1(Ft.left),qn=s1(Ft.right);if(wn.kind===218&&As(qn))return ea(bt,wn,$t,qn,en);if(qn.kind===218&&As(wn))return ea(bt,qn,$t,wn,en);if(eu(n,wn))return lr(bt,$t,qn,en);if(eu(n,qn))return lr(bt,$t,wn,en);W&&(VS(wn,n)?bt=Vn(bt,$t,qn,en):VS(qn,n)&&(bt=Vn(bt,$t,wn,en)));const la=Jn(wn,bt);if(la)return ai(bt,la,$t,qn,en);const Ei=Jn(qn,bt);if(Ei)return ai(bt,Ei,$t,wn,en);if(td(wn))return dt(bt,$t,qn,en);if(td(qn))return dt(bt,$t,wn,en);break;case 102:return Se(bt,Ft,en);case 101:if(Oi(Ft.left))return sa(bt,Ft,en);const gn=s1(Ft.right),ur=Fu(Ft.left);if(ur.flags&8576){if(qD(bt)&&dl(n)&&eu(n.expression,gn)&&eT(n)===Sm(ur))return g_(bt,en?524288:65536);if(eu(n,gn))return e_(bt,ur,en)}break;case 27:return Ni(bt,Ft.right,en);case 55:return en?Ni(Ni(bt,Ft.left,!0),Ft.right,!0):Zr([Ni(bt,Ft.left,!1),Ni(bt,Ft.right,!1)]);case 56:return en?Zr([Ni(bt,Ft.left,!0),Ni(bt,Ft.right,!0)]):Ni(Ni(bt,Ft.left,!1),Ft.right,!1)}return bt}function sa(bt,Ft,en){const $t=s1(Ft.right);if(!eu(n,$t))return bt;D.assertNode(Ft.left,Oi);const wn=YV(Ft.left);if(wn===void 0)return bt;const qn=wn.parent,la=Sc(D.checkDefined(wn.valueDeclaration,"should always have a declaration"))?or(qn):js(qn);return Qn(bt,la,en,!0)}function Vn(bt,Ft,en,$t){const wn=Ft===34||Ft===36,qn=Ft===34||Ft===35?98304:32768,la=Fu(en);return wn!==$t&&gh(la,gn=>!!(gn.flags&qn))||wn===$t&&gh(la,gn=>!(gn.flags&(3|qn)))?tT(bt,2097152):bt}function lr(bt,Ft,en,$t){if(bt.flags&1)return bt;(Ft===35||Ft===37)&&($t=!$t);const wn=Fu(en),qn=Ft===34||Ft===35;if(wn.flags&98304){if(!W)return bt;const la=qn?$t?262144:2097152:wn.flags&65536?$t?131072:1048576:$t?65536:524288;return tT(bt,la)}if($t){if(!qn&&(bt.flags&2||lg(bt,og))){if(wn.flags&201457660||og(wn))return wn;if(wn.flags&524288)return li}const la=bc(bt,Ei=>QP(Ei,wn)||qn&&Unt(Ei,wn));return Ewe(la,wn)}return vp(wn)?bc(bt,la=>!(Uke(la)&&QP(la,wn))):bt}function ea(bt,Ft,en,$t,wn){(en===35||en===37)&&(wn=!wn);const qn=s1(Ft.expression);if(!eu(n,qn)){W&&VS(qn,n)&&wn===($t.text!=="undefined")&&(bt=tT(bt,2097152));const la=Jn(qn,bt);return la?ei(bt,la,Ei=>Ba(Ei,$t,wn)):bt}return Ba(bt,$t,wn)}function Ba(bt,Ft,en){return en?Ms(bt,Ft.text):tT(bt,mF.get(Ft.text)||32768)}function ia(bt,Ft,en,$t,wn){return en!==$t&&Zn(NV(Ft).slice(en,$t),wn)?g_(bt,2097152):bt}function es(bt,Ft,en,$t){const wn=NV(Ft);if(!wn.length)return bt;const qn=wn.slice(en,$t),la=en===$t||Ur(qn,gt);if(bt.flags&2&&!la){let ti;for(let vr=0;vr<qn.length;vr+=1){const Ea=qn[vr];if(Ea.flags&201457660)ti!==void 0&&ti.push(Ea);else if(Ea.flags&524288)ti===void 0&&(ti=qn.slice(0,vr)),ti.push(li);else return bt}return Zr(ti===void 0?qn:ti)}const Ei=Zr(qn),gn=Ei.flags&131072?gt:Ewe(bc(bt,ti=>QP(Ei,ti)),Ei);if(!la)return gn;const ur=bc(bt,ti=>!(Uke(ti)&&Ur(wn,xd(Rnt(ti)))));return gn.flags&131072?ur:Zr([gn,ur])}function Ms(bt,Ft){switch(Ft){case"string":return bl(bt,ue,1);case"number":return bl(bt,mt,2);case"bigint":return bl(bt,Wt,4);case"boolean":return bl(bt,Re,8);case"symbol":return bl(bt,q,16);case"object":return bt.flags&1?bt:Zr([bl(bt,li,32),bl(bt,Sn,131072)]);case"function":return bt.flags&1?bt:bl(bt,pl,64);case"undefined":return bl(bt,He,65536)}return bl(bt,li,128)}function bl(bt,Ft,en){return Zs(bt,$t=>Im($t,Ft,cp)?Mu($t)&en?$t:gt:Ev(Ft,$t)?Ft:Mu($t)&en?Do([$t,Ft]):gt)}function Co(bt,Ft,en,$t){const wn=vwe(Ft);if(!wn)return bt;const qn=mi(Ft.caseBlock.clauses,gn=>gn.kind===293);if(en===$t||qn>=en&&qn<$t){const gn=QDe(en,$t,wn);return bc(bt,ur=>(Mu(ur)&gn)===gn)}const Ei=wn.slice(en,$t);return Zr(zt(Ei,gn=>gn?Ms(bt,gn):gt))}function td(bt){return(Fr(bt)&&Mr(bt.name)==="constructor"||fl(bt)&&As(bt.argumentExpression)&&bt.argumentExpression.text==="constructor")&&eu(n,bt.expression)}function dt(bt,Ft,en,$t){if($t?Ft!==34&&Ft!==36:Ft!==35&&Ft!==37)return bt;const wn=Fu(en);if(!Ase(wn)&&!O0(wn))return bt;const qn=fo(wn,"prototype");if(!qn)return bt;const la=or(qn),Ei=xs(la)?void 0:la;if(!Ei||Ei===$a||Ei===pl)return bt;if(xs(bt))return Ei;return bc(bt,ur=>gn(ur,Ei));function gn(ur,ti){return ur.flags&524288&&ri(ur)&1||ti.flags&524288&&ri(ti)&1?ur.symbol===ti.symbol:Ev(ur,ti)}}function Se(bt,Ft,en){const $t=s1(Ft.left);if(!eu(n,$t))return en&&W&&VS($t,n)?tT(bt,2097152):bt;const wn=Fu(Ft.right);if(!a1(wn,pl))return bt;const qn=Zs(wn,tr);return xs(bt)&&(qn===$a||qn===pl)||!en&&!(qn.flags&524288&&!og(qn))?bt:Qn(bt,qn,en,!0)}function tr(bt){const Ft=vc(bt,"prototype");if(Ft&&!xs(Ft))return Ft;const en=za(bt,1);return en.length?Zr(zt(en,$t=>vs(PD($t)))):fa}function Qn(bt,Ft,en,$t){var wn;const qn=bt.flags&1048576?`N${Pu(bt)},${Pu(Ft)},${(en?1:0)|($t?2:0)}`:void 0;return(wn=Nb(qn))!=null?wn:Vg(qn,Tr(bt,Ft,en,$t))}function Tr(bt,Ft,en,$t){if(!en){if($t)return bc(bt,gn=>!a1(gn,Ft));const Ei=Qn(bt,Ft,!0,!1);return bc(bt,gn=>!$D(gn,Ei))}if(bt.flags&3)return Ft;const wn=$t?a1:Ev,qn=bt.flags&1048576?s4(bt):void 0,la=Zs(Ft,Ei=>{const gn=qn&&vc(Ei,qn),ur=gn&&l4(bt,gn),ti=Zs(ur||bt,$t?vr=>a1(vr,Ei)?vr:a1(Ei,vr)?Ei:gt:vr=>Ske(vr,Ei)?vr:Ske(Ei,vr)?Ei:Ev(vr,Ei)?vr:Ev(Ei,vr)?Ei:gt);return ti.flags&131072?Zs(bt,vr=>gl(vr,465829888)&&wn(Ei,Zu(vr)||he)?Do([vr,Ei]):gt):ti});return la.flags&131072?Ev(Ft,bt)?Ft:Ao(bt,Ft)?bt:Ao(Ft,bt)?Ft:Do([bt,Ft]):la}function kr(bt,Ft,en){if(uwe(Ft,n)){const $t=en||!gT(Ft)?MV(Ft):void 0,wn=$t&&p_($t);if(wn&&(wn.kind===0||wn.kind===1))return Da(bt,wn,Ft,en)}if(qD(bt)&&dl(n)&&Fr(Ft.expression)){const $t=Ft.expression;if(eu(n.expression,s1($t.expression))&&je($t.name)&&$t.name.escapedText==="hasOwnProperty"&&Ft.arguments.length===1){const wn=Ft.arguments[0];if(As(wn)&&eT(n)===ul(wn.text))return g_(bt,en?524288:65536)}}return bt}function Da(bt,Ft,en,$t){if(Ft.type&&!(xs(bt)&&(Ft.type===$a||Ft.type===pl))){const wn=Brt(Ft,en);if(wn){if(eu(n,wn))return Qn(bt,Ft.type,$t,!1);W&&$t&&VS(wn,n)&&!(Mu(Ft.type)&65536)&&(bt=tT(bt,2097152));const qn=Jn(wn,bt);if(qn)return ei(bt,qn,la=>Qn(la,Ft.type,$t,!1))}}return bt}function Ni(bt,Ft,en){if(o3(Ft)||br(Ft.parent)&&(Ft.parent.operatorToken.kind===60||Ft.parent.operatorToken.kind===77)&&Ft.parent.left===Ft)return Lr(bt,Ft,en);switch(Ft.kind){case 79:if(!eu(n,Ft)&&k<5){const $t=B_(Ft);if(QL($t)){const wn=$t.valueDeclaration;if(wn&&Xi(wn)&&!wn.type&&wn.initializer&&Awe(n)){k++;const qn=Ni(bt,wn.initializer,en);return k--,qn}}}case 108:case 106:case 208:case 209:return Za(bt,Ft,en);case 210:return kr(bt,Ft,en);case 214:case 232:return Ni(bt,Ft.expression,en);case 223:return kf(bt,Ft,en);case 221:if(Ft.operator===53)return Ni(bt,Ft.operand,!en);break}return bt}function Lr(bt,Ft,en){if(eu(n,Ft))return tT(bt,en?2097152:262144);const $t=Jn(Ft,bt);return $t?ei(bt,$t,wn=>g_(wn,en?2097152:262144)):bt}}function Urt(n,a){if(n=Vp(n),(a.kind===79||a.kind===80)&&(Ak(a)&&(a=a.parent),Sg(a)&&(!wh(a)||wk(a)))){const l=Fu(a);if(Vp(Jr(a).resolvedSymbol)===n)return l}return Ag(a)&&Iy(a.parent)&&B(a.parent)?na(a.parent.symbol):R0(n)}function QD(n){return rr(n.parent,a=>Xa(a)&&!LT(a)||a.kind===265||a.kind===308||a.kind===169)}function GV(n){if(!n.valueDeclaration)return!1;const a=qm(n.valueDeclaration).parent,l=Jr(a);return l.flags&524288||(l.flags|=524288,Vrt(a)||Cwe(a)),n.isAssigned||!1}function Vrt(n){return!!rr(n.parent,a=>(Xa(a)||jC(a))&&!!(Jr(a).flags&524288))}function Cwe(n){if(n.kind===79){if(wh(n)){const a=B_(n);bJ(a)&&(a.isAssigned=!0)}}else Pa(n,Cwe)}function QL(n){return n.flags&3&&(JV(n)&2)!==0}function jrt(n){const a=Jr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Kf(n,9))return PL(n.symbol),!0;const l=!!(Mu(sR(n,0))&16777216);if(!__())return PL(n.symbol),!0;a.parameterInitializerContainsUndefined=l}return a.parameterInitializerContainsUndefined}function Hrt(n,a){return W&&a.kind===166&&a.initializer&&Mu(n)&16777216&&!jrt(a)?g_(n,524288):n}function Wrt(n,a){const l=a.parent;return l.kind===208||l.kind===163||l.kind===210&&l.expression===a||l.kind===209&&l.expression===a&&!(lg(n,Iwe)&&M0(Fu(l.argumentExpression)))}function Lwe(n){return n.flags&2097152?kt(n.types,Lwe):!!(n.flags&465829888&&hv(n).flags&1146880)}function Iwe(n){return n.flags&2097152?kt(n.types,Iwe):!!(n.flags&465829888&&!gl(hv(n),98304))}function zrt(n,a){const l=(je(n)||Fr(n)||fl(n))&&!((Gh(n.parent)||Qx(n.parent))&&n.parent.tagName===n)&&(a&&a&64?_d(n,8):_d(n,void 0));return l&&!WL(l)}function noe(n,a,l){return!(l&&l&2)&&lg(n,Lwe)&&(Wrt(n,a)||zrt(a,l))?Zs(n,hv):n}function kwe(n){return!!rr(n,a=>{const l=a.parent;return l===void 0?"quit":Vl(l)?l.expression===a&&Xl(a):gd(l)?l.name===a||l.propertyName===a:!1})}function UV(n,a){if(!$.verbatimModuleSyntax&&Zy(n,111551)&&!YL(a)&&!Bd(n,111551)){const l=oc(n);hu(l)&1160127&&(Y_($)||W1($)&&kwe(a)||!hR(Vp(l))?zb(n):qb(n))}}function qrt(n,a){var l;const u=or(n),p=n.valueDeclaration;if(p){if(ms(p)&&!p.initializer&&!p.dotDotDotToken&&p.parent.elements.length>=2){const y=p.parent.parent;if(y.kind===257&&xp(p)&2||y.kind===166){const A=Jr(y);if(!(A.flags&16777216)){A.flags|=16777216;const R=Y2(y,0),F=R&&Zs(R,hv);if(A.flags&=-16777217,F&&F.flags&1048576&&!(y.kind===166&&GV(n))){const J=p.parent,Q=W0(J,F,F,void 0,a.flowNode);return Q.flags&131072?gt:Li(p,Q)}}}}if(Fa(p)&&!p.type&&!p.initializer&&!p.dotDotDotToken){const y=p.parent;if(y.parameters.length>=2&&mV(y)){const A=eR(y);if(A&&A.parameters.length===1&&Lu(A)){const R=UL($i(or(A.parameters[0]),(l=jS(y))==null?void 0:l.nonFixingMapper));if(R.flags&1048576&&gh(R,Bo)&&!GV(n)){const F=W0(y,R,R,void 0,a.flowNode),J=y.parameters.indexOf(p)-(V1(y)?1:0);return jd(F,qp(J))}}}}}return u}function Jrt(n,a){if(wx(n))return p4(n);const l=B_(n);if(l===rn)return Ce;if(l===Ct){if(fDe(n))return Ke(n,_.arguments_cannot_be_referenced_in_property_initializers),Ce;const Xn=Mf(n);return M<2&&(Xn.kind===216?Ke(n,_.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):$r(Xn,512)&&Ke(n,_.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Jr(Xn).flags|=512,or(l)}Xrt(n)&&UV(l,n);const u=Vp(l),p=dNe(u,n);g0(p)&&rae(n,p)&&p.declarations&&jg(n,p.declarations,n.escapedText);let y=u.valueDeclaration;if(y&&u.flags&32){if(y.kind===260&&iC(re,y)){let Xn=wc(n);for(;Xn!==void 0;){if(Xn===y&&Xn.name!==n){Jr(y).flags|=1048576,Jr(n).flags|=2097152;break}Xn=wc(Xn)}}else if(y.kind===228){let Xn=kd(n,!1,!1);for(;Xn.kind!==308;){if(Xn.parent===y){(ro(Xn)&&Ja(Xn)||Rl(Xn))&&(Jr(y).flags|=1048576,Jr(n).flags|=2097152);break}Xn=kd(Xn,!1,!1)}}}Qrt(n,l);let A=qrt(u,n);const R=wT(n);if(R){if(!(u.flags&3)&&!(fr(n)&&u.flags&512)){const Xn=u.flags&384?_.Cannot_assign_to_0_because_it_is_an_enum:u.flags&32?_.Cannot_assign_to_0_because_it_is_a_class:u.flags&1536?_.Cannot_assign_to_0_because_it_is_a_namespace:u.flags&16?_.Cannot_assign_to_0_because_it_is_a_function:u.flags&2097152?_.Cannot_assign_to_0_because_it_is_an_import:_.Cannot_assign_to_0_because_it_is_not_a_variable;return Ke(n,Xn,x(l)),Ce}if(Ep(u))return u.flags&3?Ke(n,_.Cannot_assign_to_0_because_it_is_a_constant,x(l)):Ke(n,_.Cannot_assign_to_0_because_it_is_a_read_only_property,x(l)),Ce}const F=u.flags&2097152;if(u.flags&3){if(R===1)return A}else if(F)y=Ed(l);else return A;if(!y)return A;A=noe(A,n,a);const J=qm(y).kind===166,Q=QD(y);let ge=QD(n);const Ne=ge!==Q,De=n.parent&&n.parent.parent&&n2(n.parent)&&eoe(n.parent.parent),_t=l.flags&134217728;for(;ge!==Q&&(ge.kind===215||ge.kind===216||N3(ge))&&(QL(u)&&A!==On||J&&!GV(u));)ge=QD(ge);const Bt=J||F||Ne||De||_t||Krt(n,y)||A!==yt&&A!==On&&(!W||(A.flags&16387)!==0||YL(n)||iwe(n)||n.parent.kind===278)||n.parent.kind===232||y.kind===257&&y.exclamationToken||y.flags&16777216,Fn=Bt?J?Hrt(A,y):A:A===yt||A===On?He:uy(A),An=W0(n,A,Fn,ge);if(!Swe(n)&&(A===yt||A===On)){if(An===yt||An===On)return xe&&(Ke(Ia(y),_.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,x(l),ke(An)),Ke(n,_.Variable_0_implicitly_has_an_1_type,x(l),ke(An))),mR(An)}else if(!Bt&&!zL(A)&&zL(An))return Ke(n,_.Variable_0_is_used_before_being_assigned,x(l)),A;return R?Sv(An):An}function Krt(n,a){if(ms(a)){const l=rr(n,ms);return l&&qm(l)===qm(a)}}function Xrt(n){var a;const l=n.parent;if(l){if(Fr(l)&&l.expression===n||gd(l)&&l.isTypeOnly)return!1;const u=(a=l.parent)==null?void 0:a.parent;if(u&&au(u)&&u.isTypeOnly)return!1}return!0}function Yrt(n,a){return!!rr(n,l=>l===a?"quit":Xa(l)||l.parent&&ro(l.parent)&&!Sc(l.parent)&&l.parent.initializer===l)}function $rt(n,a){return rr(n,l=>l===a?"quit":l===a.initializer||l===a.condition||l===a.incrementor||l===a.statement)}function roe(n){return rr(n,a=>!a||Tq(a)?"quit":Bv(a,!1))}function Qrt(n,a){if(M>=2||!(a.flags&34)||!a.valueDeclaration||Ji(a.valueDeclaration)||a.valueDeclaration.parent.kind===295)return;const l=zm(a.valueDeclaration),u=Yrt(n,l),p=roe(l);if(p){if(u){let y=!0;if(HT(l)){const A=ub(a.valueDeclaration,258);if(A&&A.parent===l){const R=$rt(n.parent,l);if(R){const F=Jr(R);F.flags|=8192;const J=F.capturedBlockScopeBindings||(F.capturedBlockScopeBindings=[]);v_(J,a),R===l.initializer&&(y=!1)}}}y&&(Jr(p).flags|=4096)}if(HT(l)){const y=ub(a.valueDeclaration,258);y&&y.parent===l&&eit(n,l)&&(Jr(a.valueDeclaration).flags|=262144)}Jr(a.valueDeclaration).flags|=32768}u&&(Jr(a.valueDeclaration).flags|=16384)}function Zrt(n,a){const l=Jr(n);return!!l&&Ur(l.capturedBlockScopeBindings,Ir(a))}function eit(n,a){let l=n;for(;l.parent.kind===214;)l=l.parent;let u=!1;if(wh(l))u=!0;else if(l.parent.kind===221||l.parent.kind===222){const p=l.parent;u=p.operator===45||p.operator===46}return u?!!rr(l,p=>p===a?"quit":p===a.statement):!1}function ioe(n,a){if(Jr(n).flags|=2,a.kind===169||a.kind===173){const l=a.parent;Jr(l).flags|=4}else Jr(a).flags|=4}function wwe(n){return eC(n)?n:Xa(n)?void 0:Pa(n,wwe)}function Dwe(n){const a=Ir(n),l=js(a);return oi(l)===Er}function Rwe(n,a,l){const u=a.parent;G1(u)&&!Dwe(u)&&JN(n)&&n.flowNode&&!BV(n.flowNode,!1)&&Ke(n,l)}function tit(n,a){ro(a)&&Sc(a)&&re&&a.initializer&&ZM(a.initializer,n.pos)&&o_(a.parent)&&Ke(n,_.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function p4(n){const a=YL(n);let l=kd(n,!0,!0),u=!1,p=!1;for(l.kind===173&&Rwe(n,l,_.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(l.kind===216&&(l=kd(l,!1,!p),u=!0),l.kind===164){l=kd(l,!u,!1),p=!0;continue}break}if(tit(n,l),p)Ke(n,_.this_cannot_be_referenced_in_a_computed_property_name);else switch(l.kind){case 264:Ke(n,_.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 263:Ke(n,_.this_cannot_be_referenced_in_current_location);break;case 173:Nwe(n,l)&&Ke(n,_.this_cannot_be_referenced_in_constructor_arguments);break}!a&&u&&M<2&&ioe(n,l);const y=aoe(n,!0,l);if(te){const A=or(st);if(y===A&&u)Ke(n,_.The_containing_arrow_function_captures_the_global_value_of_this);else if(!y){const R=Ke(n,_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Ji(l)){const F=aoe(l);F&&F!==A&&Yo(R,Nr(l,_.An_outer_value_of_this_is_shadowed_by_this_container))}}}return y||we}function aoe(n,a=!0,l=kd(n,!1,!1)){const u=fr(n);if(Xa(l)&&(!loe(n)||V1(l))){let p=Kt(l)||u&&iit(l);if(!p){const y=rit(l);if(u&&y){const A=ha(y).symbol;A&&A.members&&A.flags&16&&(p=js(A).thisType)}else Kp(l)&&(p=js(as(l.symbol)).thisType);p||(p=Pwe(l))}if(p)return W0(n,p)}if(_i(l.parent)){const p=Ir(l.parent),y=Ja(l)?or(p):js(p).thisType;return W0(n,y)}if(Ji(l))if(l.commonJsModuleIndicator){const p=Ir(l);return p&&or(p)}else{if(l.externalModuleIndicator)return He;if(a)return or(st)}}function nit(n){const a=kd(n,!1,!1);if(Xa(a)){const l=Wp(a);if(l.thisParameter)return PV(l.thisParameter)}if(_i(a.parent)){const l=Ir(a.parent);return Ja(a)?or(l):js(l).thisType}}function rit(n){if(n.kind===215&&br(n.parent)&&wl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===171&&n.parent.kind===207&&br(n.parent.parent)&&wl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===215&&n.parent.kind===299&&n.parent.parent.kind===207&&br(n.parent.parent.parent)&&wl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===215&&$c(n.parent)&&je(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Is(n.parent.parent)&&io(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&wl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(uc(n)&&je(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Is(n.parent)&&io(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&wl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function iit(n){const a=Pv(n);if(a&&a.kind===320){const u=a;if(u.parameters.length>0&&u.parameters[0].name&&u.parameters[0].name.escapedText==="this")return pi(u.parameters[0].type)}const l=r3(n);if(l&&l.typeExpression)return pi(l.typeExpression)}function Nwe(n,a){return!!rr(n,l=>el(l)?"quit":l.kind===166&&l.parent===a)}function ooe(n){const a=n.parent.kind===210&&n.parent.expression===n,l=kN(n,!0);let u=l,p=!1,y=!1;if(!a){for(;u&&u.kind===216;)$r(u,512)&&(y=!0),u=kN(u,!0),p=M<2;u&&$r(u,512)&&(y=!0)}let A=0;if(!u||!Q(u)){const ge=rr(n,Ne=>Ne===u?"quit":Ne.kind===164);return ge&&ge.kind===164?Ke(n,_.super_cannot_be_referenced_in_a_computed_property_name):a?Ke(n,_.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!u||!u.parent||!(_i(u.parent)||u.parent.kind===207)?Ke(n,_.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Ke(n,_.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Ce}if(!a&&l.kind===173&&Rwe(n,u,_.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Ja(u)||a?(A=32,!a&&M>=2&&M<=8&&(ro(u)||Rl(u))&&Efe(n.parent,ge=>{(!Ji(ge)||mf(ge))&&(Jr(ge).flags|=8388608)})):A=16,Jr(n).flags|=A,u.kind===171&&y&&(hd(n.parent)&&wh(n.parent)?Jr(u).flags|=256:Jr(u).flags|=128),p&&ioe(n.parent,u),u.parent.kind===207)return M<2?(Ke(n,_.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ce):we;const R=u.parent;if(!G1(R))return Ke(n,_.super_can_only_be_referenced_in_a_derived_class),Ce;const F=js(Ir(R)),J=F&&Fo(F)[0];if(!J)return Ce;if(u.kind===173&&Nwe(n,u))return Ke(n,_.super_cannot_be_referenced_in_constructor_arguments),Ce;return A===32?oi(F):Yf(J,F.thisType);function Q(ge){return a?ge.kind===173:_i(ge.parent)||ge.parent.kind===207?Ja(ge)?ge.kind===171||ge.kind===170||ge.kind===174||ge.kind===175||ge.kind===169||ge.kind===172:ge.kind===171||ge.kind===170||ge.kind===174||ge.kind===175||ge.kind===169||ge.kind===168||ge.kind===173:!1}}function ait(n){return(n.kind===171||n.kind===174||n.kind===175)&&n.parent.kind===207?n.parent:n.kind===215&&n.parent.kind===299?n.parent.parent:void 0}function Owe(n){return ri(n)&4&&n.target===Ae?ys(n)[0]:void 0}function oit(n){return Zs(n,a=>a.flags&2097152?Je(a.types,Owe):Owe(a))}function Pwe(n){if(n.kind===216)return;if(mV(n)){const l=eR(n);if(l){const u=l.thisParameter;if(u)return or(u)}}const a=fr(n);if(te||a){const l=ait(n);if(l){const p=l1(l,void 0);let y=l,A=p;for(;A;){const R=oit(A);if(R)return $i(R,Uae(jS(l)));if(y.parent.kind!==299)break;y=y.parent.parent,A=l1(y,void 0)}return sf(p?dy(p):nc(l))}const u=jv(n.parent);if(u.kind===223&&u.operatorToken.kind===63){const p=u.left;if(dl(p)){const{expression:y}=p;if(a&&je(y)){const A=er(u);if(A.commonJsModuleIndicator&&B_(y)===A.symbol)return}return sf(nc(y))}}}}function Mwe(n){const a=n.parent;if(!mV(a))return;const l=LT(a);if(l&&l.arguments){const p=Moe(l),y=a.parameters.indexOf(n);if(n.dotDotDotToken)return Ooe(p,y,p.length,we,void 0,0);const A=Jr(l),R=A.resolvedSignature;A.resolvedSignature=Ys;const F=y<p.length?o1(ha(p[y])):n.initializer?void 0:Ze;return A.resolvedSignature=R,F}const u=eR(a);if(u){const p=a.parameters.indexOf(n)-(V1(a)?1:0);return n.dotDotDotToken&&rl(a.parameters)===n?rR(u,p):aT(u,p)}}function soe(n,a){const l=iu(n)||(fr(n)?A7(n):void 0);if(l)return pi(l);switch(n.kind){case 166:return Mwe(n);case 205:return sit(n,a);case 169:if(Ja(n))return lit(n,a)}}function sit(n,a){const l=n.parent.parent,u=n.propertyName||n.name,p=soe(l,a)||l.kind!==205&&l.initializer&&sR(l,n.dotDotDotToken?64:0);if(!p||Ya(u)||CN(u))return;if(l.name.kind===204){const A=$A(n.parent.elements,n);return A<0?void 0:Vwe(p,A)}const y=sy(u);if(ng(y)){const A=Sm(y);return vc(p,A)}}function lit(n,a){const l=vt(n.parent)&&_d(n.parent,a);if(l)return iT(l,Ir(n).escapedName)}function cit(n,a){const l=n.parent;if(Uv(l)&&n===l.initializer){const u=soe(l,a);if(u)return u;if(!(a&8)&&Ya(l.name)&&l.name.elements.length>0)return wo(l.name,!0,!1)}}function uit(n,a){const l=Mf(n);if(l){let u=coe(l,a);if(u){const p=Jc(l);if(p&1){const y=(p&2)!==0;u.flags&1048576&&(u=bc(u,R=>!!u1(1,R,y)));const A=u1(1,u,(p&2)!==0);if(!A)return;u=A}if(p&2){const y=Zs(u,_y);return y&&Zr([y,XDe(y)])}return u}}}function dit(n,a){const l=_d(n,a);if(l){const u=_y(l);return u&&Zr([u,XDe(u)])}}function fit(n,a){const l=Mf(n);if(l){const u=Jc(l);let p=coe(l,a);if(p){const y=(u&2)!==0;return!n.asteriskToken&&p.flags&1048576&&(p=bc(p,A=>!!u1(1,A,y))),n.asteriskToken?p:u1(0,p,y)}}}function loe(n){let a=!1;for(;n.parent&&!Xa(n.parent);){if(Fa(n.parent)&&(a||n.parent.initializer===n))return!0;ms(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function Fwe(n,a){const l=!!(Jc(a)&2),u=coe(a,void 0);if(u)return u1(n,u,l)||void 0}function coe(n,a){const l=iA(n);if(l)return l;const u=_oe(n);if(u&&!Mie(u))return vs(u);const p=LT(n);if(p)return _d(p,a)}function Bwe(n,a){const u=Moe(n).indexOf(a);return u===-1?void 0:uoe(n,u)}function uoe(n,a){if(hf(n))return a===0?ue:a===1?DIe(!1):we;const l=Jr(n).resolvedSignature===zl?zl:rI(n);if(od(n)&&a===0)return WV(l,n);const u=l.parameters.length-1;return Lu(l)&&a>=u?jd(or(l.parameters[u]),qp(a-u),256):bp(l,a)}function _it(n){const a=qoe(n);return a?JE(a):void 0}function pit(n,a){if(n.parent.kind===212)return Bwe(n.parent,a)}function mit(n,a){const l=n.parent,{left:u,operatorToken:p,right:y}=l;switch(p.kind){case 63:case 76:case 75:case 77:return n===y?git(l):void 0;case 56:case 60:const A=_d(l,a);return n===y&&(A&&A.pattern||!A&&!Ufe(l))?Fu(u):A;case 55:case 27:return n===y?_d(l,a):void 0;default:return}}function hit(n){if(Vm(n)&&n.symbol)return n.symbol;if(je(n))return B_(n);if(Fr(n)){const l=Fu(n.expression);return Oi(n.name)?a(l,n.name):fo(l,n.name.escapedText)}if(fl(n)){const l=nc(n.argumentExpression);if(!ng(l))return;const u=Fu(n.expression);return fo(u,Sm(l))}return;function a(l,u){const p=XV(u.escapedText,u);return p&&xoe(l,p)}}function git(n){var a,l;const u=wl(n);switch(u){case 0:case 4:const p=hit(n.left),y=p&&p.valueDeclaration;if(y&&(ro(y)||Bf(y))){const F=iu(y);return F&&$i(pi(F),zi(p).mapper)||(ro(y)?y.initializer&&Fu(n.left):void 0)}return u===0?Fu(n.left):Gwe(n);case 5:if(VV(n,u))return Gwe(n);if(!Vm(n.left)||!n.left.symbol)return Fu(n.left);{const F=n.left.symbol.valueDeclaration;if(!F)return;const J=so(n.left,dl),Q=iu(F);if(Q)return pi(Q);if(je(J.expression)){const ge=J.expression,Ne=hl(ge,ge.escapedText,111551,void 0,ge.escapedText,!0);if(Ne){const De=Ne.valueDeclaration&&iu(Ne.valueDeclaration);if(De){const _t=xg(J);if(_t!==void 0)return iT(pi(De),_t)}return}}return fr(F)?void 0:Fu(n.left)}case 1:case 6:case 3:case 2:let A;u!==2&&(A=Vm(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),A||(A=(l=n.symbol)==null?void 0:l.valueDeclaration);const R=A&&iu(A);return R?pi(R):void 0;case 7:case 8:case 9:return D.fail("Does not apply");default:return D.assertNever(u)}}function VV(n,a=wl(n)){if(a===4)return!0;if(!fr(n)||a!==5||!je(n.left.expression))return!1;const l=n.left.expression.escapedText,u=hl(n.left,l,111551,void 0,void 0,!0,!0);return F3(u==null?void 0:u.valueDeclaration)}function Gwe(n){if(!n.symbol)return Fu(n.left);if(n.symbol.valueDeclaration){const p=iu(n.symbol.valueDeclaration);if(p){const y=pi(p);if(y)return y}}const a=so(n.left,dl);if(!q_(kd(a.expression,!1,!1)))return;const l=p4(a.expression),u=xg(a);return u!==void 0&&iT(l,u)||void 0}function yit(n){return!!(Dl(n)&262144&&!n.links.type&&_h(n,0)>=0)}function iT(n,a,l){return Zs(n,u=>{var p;if($f(u)&&!u.declaration.nameType){const y=Hp(u),A=Zu(y)||y,R=l||Qf(ra(a));if(Ao(R,A))return aV(u,R)}else if(u.flags&3670016){const y=fo(u,a);if(y)return yit(y)?void 0:or(y);if(Bo(u)&&Oh(a)&&+a>=0){const A=XL(u,u.target.fixedLength,0,!1,!0);if(A)return A}return(p=wie(Die(u),l||Qf(ra(a))))==null?void 0:p.type}},!0)}function Uwe(n,a){if(D.assert(q_(n)),!(n.flags&33554432))return doe(n,a)}function doe(n,a){const l=n.parent,u=$c(n)&&soe(n,a);if(u)return u;const p=l1(l,a);if(p){if(tA(n)){const y=Ir(n);return iT(p,y.escapedName,zi(y).nameType)}if(n.name){const y=sy(n.name);return Zs(p,A=>{var R;return(R=wie(Die(A),y))==null?void 0:R.type},!0)}}}function Vwe(n,a){return n&&(a>=0&&iT(n,""+a)||Zs(n,l=>Bo(l)?XL(l,0,0,!1,!0):dse(1,l,He,void 0,!1),!0))}function vit(n,a){const l=n.parent;return n===l.whenTrue||n===l.whenFalse?_d(l,a):void 0}function bit(n,a,l){const u=l1(n.openingElement.tagName,l),p=qV(hA(n));if(!(u&&!xs(u)&&p&&p!==""))return;const y=aO(n.children),A=y.indexOf(a),R=iT(u,p);return R&&(y.length===1?R:Zs(R,F=>V0(F)?jd(F,qp(A)):F,!0))}function Eit(n,a){const l=n.parent;return p3(l)?_d(n,a):Fy(l)?bit(l,n,a):void 0}function jwe(n,a){if(fm(n)){const l=l1(n.parent,a);return!l||xs(l)?void 0:iT(l,n.name.escapedText)}else return _d(n.parent,a)}function m4(n){switch(n.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 155:return!0;case 208:case 214:return m4(n.expression);case 291:return!n.expression||m4(n.expression)}return!1}function Tit(n,a){return mrt(a,n)||Sae(a,ya(zt(yn(n.properties,l=>!!l.symbol&&l.kind===299&&m4(l.initializer)&&XD(a,l.symbol.escapedName)),l=>[()=>R4(l.initializer),l.symbol.escapedName]),zt(yn(gs(a),l=>{var u;return!!(l.flags&16777216)&&!!((u=n==null?void 0:n.symbol)!=null&&u.members)&&!n.symbol.members.has(l.escapedName)&&XD(a,l.escapedName)}),l=>[()=>He,l.escapedName])),Ao,a)}function Sit(n,a){return Sae(a,ya(zt(yn(n.properties,l=>!!l.symbol&&l.kind===288&&XD(a,l.symbol.escapedName)&&(!l.initializer||m4(l.initializer))),l=>[l.initializer?()=>R4(l.initializer):()=>Pe,l.symbol.escapedName]),zt(yn(gs(a),l=>{var u;return!!(l.flags&16777216)&&!!((u=n==null?void 0:n.symbol)!=null&&u.members)&&!n.symbol.members.has(l.escapedName)&&XD(a,l.escapedName)}),l=>[()=>He,l.escapedName])),Ao,a)}function l1(n,a){const l=q_(n)?Uwe(n,a):_d(n,a),u=jV(l,n,a);if(u&&!(a&&a&2&&u.flags&8650752)){const p=Zs(u,ed,!0);return p.flags&1048576&&Is(n)?Tit(n,p):p.flags&1048576&&$1(n)?Sit(n,p):p}}function jV(n,a,l){if(n&&gl(n,465829888)){const u=jS(a);if(u&&l&1&&kt(u.inferences,nst))return HV(n,u.nonFixingMapper);if(u!=null&&u.returnMapper){const p=HV(n,u.returnMapper);return p.flags&1048576&&e1(p.types,K)&&e1(p.types,ee)?bc(p,y=>y!==K&&y!==ee):p}}return n}function HV(n,a){return n.flags&465829888?$i(n,a):n.flags&1048576?Zr(zt(n.types,l=>HV(l,a)),0):n.flags&2097152?Do(zt(n.types,l=>HV(l,a))):n}function _d(n,a){var l,u;if(n.flags&33554432)return;const p=Wwe(n,!a);if(p>=0)return fc[p];const{parent:y}=n;switch(y.kind){case 257:case 166:case 169:case 168:case 205:return cit(n,a);case 216:case 250:return uit(n,a);case 226:return fit(y,a);case 220:return dit(y,a);case 210:case 211:return Bwe(y,n);case 167:return _it(y);case 213:case 231:return vg(y.type)?_d(y,a):pi(y.type);case 223:return mit(n,a);case 299:case 300:return doe(y,a);case 301:return _d(y.parent,a);case 206:{const A=y,R=l1(A,a),F=(u=(l=Jr(A)).firstSpreadIndex)!=null?u:l.firstSpreadIndex=mi(A.elements,Fh),J=$A(A.elements,n);return Vwe(R,F<0||J<F?J:-1)}case 224:return vit(n,a);case 236:return D.assert(y.parent.kind===225),pit(y.parent,n);case 214:{if(fr(y)){if(xJ(y))return pi(AJ(y));const A=I1(y);if(A&&!vg(A.typeExpression.type))return pi(A.typeExpression.type)}return _d(y,a)}case 232:return _d(y,a);case 235:return pi(y.type);case 274:return Vd(y);case 291:return Eit(y,a);case 288:case 290:return jwe(y,a);case 283:case 282:return Cit(y,a)}}function Hwe(n){h4(n,_d(n,void 0),!0)}function h4(n,a,l){Qs[Mg]=n,fc[Mg]=a,ah[Mg]=l,Mg++}function ZD(){Mg--}function Wwe(n,a){for(let l=Mg-1;l>=0;l--)if(n===Qs[l]&&(a||!ah[l]))return l;return-1}function xit(n,a){sp[c0]=n,Ib[c0]=a,c0++}function Ait(){c0--}function jS(n){for(let a=c0-1;a>=0;a--)if(DT(n,sp[a]))return Ib[a]}function Cit(n,a){if(Gh(n)&&a!==4){const l=Wwe(n.parent,!a);if(l>=0)return fc[l]}return uoe(n,0)}function WV(n,a){return CDe(a)!==0?Lit(n,a):wit(n,a)}function Lit(n,a){let l=Woe(n,he);l=zwe(a,hA(a),l);const u=c1(Gf.IntrinsicAttributes,a);return rs(u)||(l=FP(u,l)),l}function Iit(n,a){if(n.compositeSignatures){const u=[];for(const p of n.compositeSignatures){const y=vs(p);if(xs(y))return y;const A=vc(y,a);if(!A)return;u.push(A)}return Do(u)}const l=vs(n);return xs(l)?l:vc(l,a)}function kit(n){if(eI(n.tagName)){const l=eDe(n),u=nj(n,l);return JE(u)}const a=nc(n.tagName);if(a.flags&128){const l=Zwe(a,n);if(!l)return Ce;const u=nj(n,l);return JE(u)}return a}function zwe(n,a,l){const u=Xit(a);if(u){const p=js(u),y=kit(n);if(u.flags&524288){const A=zi(u).typeParameters;if(Le(A)>=2){const R=gv([y,l],A,2,fr(n));return sA(u,R)}}if(Le(p.typeParameters)>=2){const A=gv([y,l],p.typeParameters,2,fr(n));return oy(p,A)}}return l}function wit(n,a){const l=hA(a),u=Yit(l);let p=u===void 0?Woe(n,he):u===""?vs(n):Iit(n,u);if(!p)return u&&Le(a.attributes.properties)&&Ke(a,_.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,ra(u)),he;if(p=zwe(a,l,p),xs(p))return p;{let y=p;const A=c1(Gf.IntrinsicClassAttributes,a);if(!rs(A)){const F=fv(A.symbol),J=vs(n);let Q;if(F){const ge=gv([J],F,Am(F),fr(a));Q=$i(A,Ad(F,ge))}else Q=A;y=FP(Q,y)}const R=c1(Gf.IntrinsicAttributes,a);return rs(R)||(y=FP(R,y)),y}}function Dit(n){return C_($,"noImplicitAny")?Gu(n,(a,l)=>a===l||!a?a:QLe(a.typeParameters,l.typeParameters)?Oit(a,l):void 0):void 0}function Rit(n,a,l){if(!n||!a)return n||a;const u=Zr([or(n),$i(or(a),l)]);return QE(n,u)}function Nit(n,a,l){const u=lf(n),p=lf(a),y=u>=p?n:a,A=y===n?a:n,R=y===n?u:p,F=Dm(n)||Dm(a),J=F&&!Dm(y),Q=new Array(R+(J?1:0));for(let ge=0;ge<R;ge++){let Ne=aT(y,ge);y===a&&(Ne=$i(Ne,l));let De=aT(A,ge)||he;A===a&&(De=$i(De,l));const _t=Zr([Ne,De]),Bt=F&&!J&&ge===R-1,Fn=ge>=wm(y)&&ge>=wm(A),An=ge>=u?void 0:iI(n,ge),Xn=ge>=p?void 0:iI(a,ge),hn=An===Xn?An:An?Xn?void 0:An:Xn,xn=ns(1|(Fn&&!Bt?16777216:0),hn||`arg${ge}`);xn.links.type=Bt?Ou(_t):_t,Q[ge]=xn}if(J){const ge=ns(1,"args");ge.links.type=Ou(bp(A,R)),A===a&&(ge.links.type=$i(ge.links.type,l)),Q[R]=ge}return Q}function Oit(n,a){const l=n.typeParameters||a.typeParameters;let u;n.typeParameters&&a.typeParameters&&(u=Ad(a.typeParameters,n.typeParameters));const p=n.declaration,y=Nit(n,a,u),A=Rit(n.thisParameter,a.thisParameter,u),R=Math.max(n.minArgumentCount,a.minArgumentCount),F=mh(p,l,A,y,void 0,void 0,R,(n.flags|a.flags)&39);return F.compositeKind=2097152,F.compositeSignatures=ya(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),u&&(F.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?U0(n.mapper,u):u),F}function foe(n,a){const l=za(n,0),u=yn(l,p=>!Pit(p,a));return u.length===1?u[0]:Dit(u)}function Pit(n,a){let l=0;for(;l<a.parameters.length;l++){const u=a.parameters[l];if(u.initializer||u.questionToken||u.dotDotDotToken||DO(u))break}return a.parameters.length&&j1(a.parameters[0])&&l--,!Dm(n)&&lf(n)<l}function _oe(n){return CC(n)||q_(n)?eR(n):void 0}function eR(n){D.assert(n.kind!==171||q_(n));const a=ND(n);if(a)return a;const l=l1(n,1);if(!l)return;if(!(l.flags&1048576))return foe(l,n);let u;const p=l.types;for(const y of p){const A=foe(y,n);if(A)if(!u)u=[A];else if(i4(u[0],A,!1,!0,!0,VD))u.push(A);else return}if(u)return u.length===1?u[0]:YLe(u[0],u)}function Mit(n,a){M<2&&Ec(n,$.downlevelIteration?1536:1024);const l=ha(n.expression,a);return Av(33,l,He,n.expression)}function Fit(n){return n.isSpread?jd(n.type,mt):n.type}function ZL(n){return n.kind===205&&!!n.initializer||n.kind===223&&n.operatorToken.kind===63}function qwe(n,a,l){const u=n.elements,p=u.length,y=[],A=[];Hwe(n);const R=wh(n),F=aI(n),J=l1(n,void 0),Q=!!J&&lg(J,KL);let ge=!1;for(let Ne=0;Ne<p;Ne++){const De=u[Ne];if(De.kind===227){M<2&&Ec(De,$.downlevelIteration?1536:1024);const _t=ha(De.expression,a,l);if(V0(_t))y.push(_t),A.push(8);else if(R){const Bt=ay(_t,mt)||dse(65,_t,He,void 0,!1)||he;y.push(Bt),A.push(4)}else y.push(Av(33,_t,He,De.expression)),A.push(4)}else if(ze&&De.kind===229)ge=!0,y.push(Ut),A.push(2);else{const _t=oI(De,a,l);if(y.push(ko(_t,!0,ge)),A.push(ge?2:1),Q&&a&&a&2&&!(a&4)&&F_(De)){const Bt=jS(n);D.assert(Bt),Kke(Bt,De,_t)}}}return ZD(),R?zp(y,A):Jwe(l||F||Q?zp(y,A,F):Ou(y.length?Zr(no(y,(Ne,De)=>A[De]&8?vv(Ne,mt)||we:Ne),2):W?fn:Ze,F))}function Jwe(n){if(!(ri(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=vIe(n),a.objectFlags|=147456),a}function Bit(n){switch(n.kind){case 164:return Git(n);case 79:return Oh(n.escapedText);case 8:case 10:return Oh(n.text);default:return!1}}function Git(n){return Vc(fy(n),296)}function fy(n){const a=Jr(n.expression);if(!a.resolvedType){if((yf(n.parent.parent)||_i(n.parent.parent)||ud(n.parent.parent))&&br(n.expression)&&n.expression.operatorToken.kind===101&&n.parent.kind!==174&&n.parent.kind!==175)return a.resolvedType=Ce;if(a.resolvedType=ha(n.expression),ro(n.parent)&&!Sc(n.parent)&&qu(n.parent.parent)){const l=zm(n.parent.parent),u=roe(l);u&&(Jr(u).flags|=4096,Jr(n).flags|=32768,Jr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Vc(a.resolvedType,402665900)&&!Ao(a.resolvedType,ki))&&Ke(n,_.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function Uit(n){var a;const l=(a=n.declarations)==null?void 0:a[0];return Oh(n.escapedName)||l&&Su(l)&&Bit(l.name)}function Kwe(n){var a;const l=(a=n.declarations)==null?void 0:a[0];return nO(n)||l&&Su(l)&&Cs(l.name)&&Vc(fy(l.name),4096)}function poe(n,a,l,u){const p=[];for(let A=a;A<l.length;A++){const R=l[A];(u===ue&&!Kwe(R)||u===mt&&Uit(R)||u===q&&Kwe(R))&&p.push(or(l[A]))}const y=p.length?Zr(p,2):He;return Cm(u,y,aI(n))}function moe(n){D.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=zi(n);if(!a.immediateTarget){const l=Ed(n);if(!l)return D.fail();a.immediateTarget=_p(l,!0)}return a.immediateTarget}function Vit(n,a){var l;const u=wh(n);jut(n,u);const p=W?co():void 0;let y=co(),A=[],R=fa;Hwe(n);const F=l1(n,void 0),J=F&&F.pattern&&(F.pattern.kind===203||F.pattern.kind===207),Q=aI(n),ge=Q?8:0,Ne=fr(n)&&!j3(n),De=oz(n),_t=!F&&Ne&&!De;let Bt=Ge,Fn=!1,An=!1,Xn=!1,hn=!1;for(const sn of n.properties)sn.name&&Cs(sn.name)&&fy(sn.name);let xn=0;for(const sn of n.properties){let Un=Ir(sn);const Jn=sn.name&&sn.name.kind===164?fy(sn.name):void 0;if(sn.kind===299||sn.kind===300||q_(sn)){let ei=sn.kind===299?cRe(sn,a):sn.kind===300?oI(!u&&sn.objectAssignmentInitializer?sn.objectAssignmentInitializer:sn.name,a):uRe(sn,a);if(Ne){const Za=Di(sn);Za?(fd(ei,Za,sn),ei=Za):De&&De.typeExpression&&fd(ei,pi(De.typeExpression),sn)}Bt|=ri(ei)&458752;const ai=Jn&&ng(Jn)?Jn:void 0,_a=ai?ns(4|Un.flags,Sm(ai),ge|4096):ns(4|Un.flags,Un.escapedName,ge);if(ai&&(_a.links.nameType=ai),u)(sn.kind===299&&ZL(sn.initializer)||sn.kind===300&&sn.objectAssignmentInitializer)&&(_a.flags|=16777216);else if(J&&!(ri(F)&512)){const Za=fo(F,Un.escapedName);Za?_a.flags|=Za.flags&16777216:!$.suppressExcessPropertyErrors&&!hh(F,ue)&&Ke(sn.name,_.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,x(Un),ke(F))}if(_a.declarations=Un.declarations,_a.parent=Un.parent,Un.valueDeclaration&&(_a.valueDeclaration=Un.valueDeclaration),_a.links.type=ei,_a.links.target=Un,Un=_a,p==null||p.set(_a.escapedName,_a),F&&a&&a&2&&!(a&4)&&(sn.kind===299||sn.kind===171)&&F_(sn)){const Za=jS(n);D.assert(Za);const Lc=sn.kind===299?sn.initializer:sn;Kke(Za,Lc,ei)}}else if(sn.kind===301){M<2&&Ec(sn,2),A.length>0&&(R=n1(R,yr(),n.symbol,Bt,Q),A=[],y=co(),An=!1,Xn=!1,hn=!1);const ei=yp(ha(sn.expression));if(g4(ei)){const ai=lae(ei,Q);if(p&&Ywe(ai,p,sn),xn=A.length,rs(R))continue;R=n1(R,ai,n.symbol,Bt,Q)}else Ke(sn,_.Spread_types_may_only_be_created_from_object_types),R=Ce;continue}else D.assert(sn.kind===174||sn.kind===175),fI(sn);Jn&&!(Jn.flags&8576)?Ao(Jn,ki)&&(Ao(Jn,mt)?Xn=!0:Ao(Jn,q)?hn=!0:An=!0,u&&(Fn=!0)):y.set(Un.escapedName,Un),A.push(Un)}if(ZD(),J){const sn=rr(F.pattern.parent,Jn=>Jn.kind===257||Jn.kind===223||Jn.kind===166);if(rr(n,Jn=>Jn===sn||Jn.kind===301).kind!==301)for(const Jn of gs(F))!y.get(Jn.escapedName)&&!fo(R,Jn.escapedName)&&(Jn.flags&16777216||Ke(Jn.valueDeclaration||((l=si(Jn,Hm))==null?void 0:l.links.bindingElement),_.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),y.set(Jn.escapedName,Jn),A.push(Jn))}if(rs(R))return Ce;if(R!==fa)return A.length>0&&(R=n1(R,yr(),n.symbol,Bt,Q),A=[],y=co(),An=!1,Xn=!1),Zs(R,sn=>sn===fa?yr():sn);return yr();function yr(){const sn=[];An&&sn.push(poe(n,xn,A,ue)),Xn&&sn.push(poe(n,xn,A,mt)),hn&&sn.push(poe(n,xn,A,q));const Un=Ps(n.symbol,y,rt,rt,sn);return Un.objectFlags|=Bt|128|131072,_t&&(Un.objectFlags|=4096),Fn&&(Un.objectFlags|=512),u&&(Un.pattern=n),Un}}function g4(n){const a=Wke(Zs(n,hv));return!!(a.flags&126615553||a.flags&3145728&&Zn(a.types,g4))}function jit(n){voe(n)}function Hit(n,a){return fI(n),y4(n)||we}function Wit(n){voe(n.openingElement),eI(n.closingElement.tagName)?goe(n.closingElement):ha(n.closingElement.tagName),zV(n)}function zit(n,a){return fI(n),y4(n)||we}function qit(n){voe(n.openingFragment);const a=er(n);return iJ($)&&($.jsxFactory||a.pragmas.has("jsx"))&&!$.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Ke(n,$.jsxFactory?_.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:_.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),zV(n),y4(n)||we}function hoe(n){return bu(n,"-")}function eI(n){return n.kind===79&&yk(n.escapedText)}function Xwe(n,a){return n.initializer?oI(n.initializer,a):Pe}function Jit(n,a){const l=n.attributes,u=_d(l,0),p=W?co():void 0;let y=co(),A=ic,R=!1,F,J=!1,Q=2048;const ge=qV(hA(n));for(const _t of l.properties){const Bt=_t.symbol;if(fm(_t)){const Fn=Xwe(_t,a);Q|=ri(Fn)&458752;const An=ns(4|Bt.flags,Bt.escapedName);if(An.declarations=Bt.declarations,An.parent=Bt.parent,Bt.valueDeclaration&&(An.valueDeclaration=Bt.valueDeclaration),An.links.type=Fn,An.links.target=Bt,y.set(An.escapedName,An),p==null||p.set(An.escapedName,An),_t.name.escapedText===ge&&(J=!0),u){const Xn=fo(u,Bt.escapedName);Xn&&Xn.declarations&&g0(Xn)&&jg(_t.name,Xn.declarations,_t.name.escapedText)}}else{D.assert(_t.kind===290),y.size>0&&(A=n1(A,De(),l.symbol,Q,!1),y=co());const Fn=yp(nc(_t.expression,a));xs(Fn)&&(R=!0),g4(Fn)?(A=n1(A,Fn,l.symbol,Q,!1),p&&Ywe(Fn,p,_t)):(Ke(_t.expression,_.Spread_types_may_only_be_created_from_object_types),F=F?Do([F,Fn]):Fn)}}R||y.size>0&&(A=n1(A,De(),l.symbol,Q,!1));const Ne=n.parent.kind===281?n.parent:void 0;if(Ne&&Ne.openingElement===n&&Ne.children.length>0){const _t=zV(Ne,a);if(!R&&ge&&ge!==""){J&&Ke(l,_._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,ra(ge));const Bt=l1(n.attributes,void 0),Fn=Bt&&iT(Bt,ge),An=ns(4,ge);An.links.type=_t.length===1?_t[0]:Fn&&lg(Fn,KL)?zp(_t):Ou(Zr(_t)),An.valueDeclaration=N.createPropertySignature(void 0,ra(ge),void 0,void 0),jo(An.valueDeclaration,l),An.valueDeclaration.symbol=An;const Xn=co();Xn.set(ge,An),A=n1(A,Ps(l.symbol,Xn,rt,rt,rt),l.symbol,Q,!1)}}if(R)return we;if(F&&A!==ic)return Do([F,A]);return F||(A===ic?De():A);function De(){Q|=Ge;const _t=Ps(l.symbol,y,rt,rt,rt);return _t.objectFlags|=Q|128|131072,_t}}function zV(n,a){const l=[];for(const u of n.children)if(u.kind===11)u.containsOnlyTriviaWhiteSpaces||l.push(ue);else{if(u.kind===291&&!u.expression)continue;l.push(oI(u,a))}return l}function Ywe(n,a,l){for(const u of gs(n))if(!(u.flags&16777216)){const p=a.get(u.escapedName);if(p){const y=Ke(p.valueDeclaration,_._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,ra(p.escapedName));Yo(y,Nr(l,_.This_spread_always_overwrites_this_property))}}}function Kit(n,a){return Jit(n.parent,a)}function c1(n,a){const l=hA(a),u=l&&xf(l),p=u&&tf(u,n,788968);return p?js(p):Ce}function goe(n){const a=Jr(n);if(!a.resolvedSymbol){const l=c1(Gf.IntrinsicElements,n);if(rs(l))return xe&&Ke(n,_.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,ra(Gf.IntrinsicElements)),a.resolvedSymbol=rn;{if(!je(n.tagName))return D.fail();const u=fo(l,n.tagName.escapedText);return u?(a.jsxFlags|=1,a.resolvedSymbol=u):ay(l,ue)?(a.jsxFlags|=2,a.resolvedSymbol=l.symbol):(Ke(n,_.Property_0_does_not_exist_on_type_1,Mr(n.tagName),"JSX."+Gf.IntrinsicElements),a.resolvedSymbol=rn)}}return a.resolvedSymbol}function yoe(n){const a=n&&er(n),l=a&&Jr(a);if(l&&l.jsxImplicitImportContainer===!1)return;if(l&&l.jsxImplicitImportContainer)return l.jsxImplicitImportContainer;const u=g7(h7($,a),$);if(!u)return;const y=Tl($)===1?_.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_.Cannot_find_module_0_or_its_corresponding_type_declarations,A=Cc(n,u,y,n),R=A&&A!==rn?as(ec(A)):void 0;return l&&(l.jsxImplicitImportContainer=R||!1),R}function hA(n){const a=n&&Jr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let u=yoe(n);if(!u||u===rn){const p=Ob(n);u=hl(n,p,1920,void 0,p,!1)}if(u){const p=ec(tf(xf(ec(u)),Gf.JSX,1920));if(p&&p!==rn)return a&&(a.jsxNamespace=p),p}a&&(a.jsxNamespace=!1)}const l=ec(MD(Gf.JSX,1920,void 0));if(l!==rn)return l}function $we(n,a){const l=a&&tf(a.exports,n,788968),u=l&&js(l),p=u&&gs(u);if(p){if(p.length===0)return"";if(p.length===1)return p[0].escapedName;p.length>1&&l.declarations&&Ke(l.declarations[0],_.The_global_type_JSX_0_may_not_have_more_than_one_property,ra(n))}}function Xit(n){return n&&tf(n.exports,Gf.LibraryManagedAttributes,788968)}function Yit(n){return $we(Gf.ElementAttributesPropertyNameContainer,n)}function qV(n){return $we(Gf.ElementChildrenAttributeNameContainer,n)}function Qwe(n,a){if(n.flags&4)return[Ys];if(n.flags&128){const p=Zwe(n,a);return p?[nj(a,p)]:(Ke(a,_.Property_0_does_not_exist_on_type_1,n.value,"JSX."+Gf.IntrinsicElements),rt)}const l=ed(n);let u=za(l,1);return u.length===0&&(u=za(l,0)),u.length===0&&l.flags&1048576&&(u=gie(zt(l.types,p=>Qwe(p,a)))),u}function Zwe(n,a){const l=c1(Gf.IntrinsicElements,a);if(!rs(l)){const u=n.value,p=fo(l,ul(u));if(p)return or(p);const y=ay(l,ue);return y||void 0}return we}function $it(n,a,l){if(n===1){const p=nDe(l);p&&h_(a,p,Pd,l.tagName,_.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(n===0){const p=tDe(l);p&&h_(a,p,Pd,l.tagName,_.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{const p=nDe(l),y=tDe(l);if(!p||!y)return;const A=Zr([p,y]);h_(a,A,Pd,l.tagName,_.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){const p=kc(l.tagName);return Ra(void 0,_._0_cannot_be_used_as_a_JSX_component,p)}}function eDe(n){D.assert(eI(n.tagName));const a=Jr(n);if(!a.resolvedJsxElementAttributesType){const l=goe(n);return a.jsxFlags&1?a.resolvedJsxElementAttributesType=or(l)||Ce:a.jsxFlags&2?a.resolvedJsxElementAttributesType=ay(c1(Gf.IntrinsicElements,n),ue)||Ce:a.resolvedJsxElementAttributesType=Ce}return a.resolvedJsxElementAttributesType}function tDe(n){const a=c1(Gf.ElementClass,n);if(!rs(a))return a}function y4(n){return c1(Gf.Element,n)}function nDe(n){const a=y4(n);if(a)return Zr([a,Sn])}function Qit(n){const a=c1(Gf.IntrinsicElements,n);return a?gs(a):rt}function Zit(n){($.jsx||0)===0&&Ke(n,_.Cannot_use_JSX_unless_the_jsx_flag_is_provided),y4(n)===void 0&&xe&&Ke(n,_.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function voe(n){const a=od(n);if(a&&Hut(n),Zit(n),!yoe(n)){const l=Zo&&$.jsx===2?_.Cannot_find_name_0:void 0,u=Ob(n),p=a?n.tagName:n;let y;if(t2(n)&&u==="null"||(y=hl(p,u,111551,l,u,!0)),y&&(y.isReferenced=67108863,!$.verbatimModuleSyntax&&y.flags&2097152&&!Bd(y)&&zb(y)),t2(n)){const A=er(n),R=TS(A);R&&hl(p,R,111551,l,R,!0)}}if(a){const l=n,u=rI(l);ij(u,n),$it(CDe(l),vs(u),l)}}function boe(n,a,l){if(n.flags&524288){if(Yb(n,a)||rA(n,a)||ID(a)&&hh(n,ue)||l&&hoe(a))return!0}else if(n.flags&3145728&&v4(n)){for(const u of n.types)if(boe(u,a,l))return!0}return!1}function v4(n){return!!(n.flags&524288&&!(ri(n)&512)||n.flags&67108864||n.flags&1048576&&kt(n.types,v4)||n.flags&2097152&&Zn(n.types,v4))}function eat(n,a){if(zut(n),n.expression){const l=ha(n.expression,a);return n.dotDotDotToken&&l!==we&&!Zf(l)&&Ke(n,_.JSX_spread_child_must_be_an_array_type),l}else return Ce}function JV(n){return n.valueDeclaration?xp(n.valueDeclaration):0}function Eoe(n){if(n.flags&8192||Dl(n)&4)return!0;if(fr(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&br(a)&&wl(a)===3}}function Toe(n,a,l,u,p,y=!0){const A=y?n.kind===163?n.right:n.kind===202?n:n.kind===205&&n.propertyName?n.propertyName:n.name:void 0;return rDe(n,a,l,u,p,A)}function rDe(n,a,l,u,p,y){const A=s_(p,l);if(a){if(M<2&&iDe(p))return y&&Ke(y,_.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(A&256)return y&&Ke(y,_.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,x(p),ke(US(p))),!1}if(A&256&&iDe(p)&&(wN(n)||Mfe(n)||Qm(n.parent)&&F3(n.parent.parent))){const F=Lg(Sd(p));if(F&&Wct(n))return y&&Ke(y,_.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,x(p),K_(F.name)),!1}if(!(A&24))return!0;if(A&8){const F=Lg(Sd(p));return Tse(n,F)?!0:(y&&Ke(y,_.Property_0_is_private_and_only_accessible_within_class_1,x(p),ke(US(p))),!1)}if(a)return!0;let R=bNe(n,F=>{const J=js(Ir(F));return Fke(J,p,l)});return!R&&(R=tat(n),R=R&&Fke(R,p,l),A&32||!R)?(y&&Ke(y,_.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,x(p),ke(US(p)||u)),!1):A&32?!0:(u.flags&262144&&(u=u.isThisType?Ru(u):Zu(u)),!u||!HE(u,R)?(y&&Ke(y,_.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,x(p),ke(R),ke(u)),!1):!0)}function tat(n){const a=nat(n);let l=(a==null?void 0:a.type)&&pi(a.type);if(l&&l.flags&262144&&(l=Ru(l)),l&&ri(l)&7)return eA(l)}function nat(n){const a=kd(n,!1,!1);return a&&Xa(a)?V1(a):void 0}function iDe(n){return!!n4(n,a=>!(a.flags&8192))}function tI(n){return Jp(ha(n),n)}function KV(n){return!!(Mu(n)&50331648)}function Soe(n){return KV(n)?dy(n):n}function rat(n,a){const l=Xl(n)?Pf(n):void 0;if(n.kind===104){Ke(n,_.The_value_0_cannot_be_used_here,"null");return}if(l!==void 0&&l.length<100){if(je(n)&&l==="undefined"){Ke(n,_.The_value_0_cannot_be_used_here,"undefined");return}Ke(n,a&16777216?a&33554432?_._0_is_possibly_null_or_undefined:_._0_is_possibly_undefined:_._0_is_possibly_null,l)}else Ke(n,a&16777216?a&33554432?_.Object_is_possibly_null_or_undefined:_.Object_is_possibly_undefined:_.Object_is_possibly_null)}function iat(n,a){Ke(n,a&16777216?a&33554432?_.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:_.Cannot_invoke_an_object_which_is_possibly_undefined:_.Cannot_invoke_an_object_which_is_possibly_null)}function aDe(n,a,l){if(W&&n.flags&2){if(Xl(a)){const p=Pf(a);if(p.length<100)return Ke(a,_._0_is_of_type_unknown,p),Ce}return Ke(a,_.Object_is_of_type_unknown),Ce}const u=Mu(n);if(u&50331648){l(a,u);const p=dy(n);return p.flags&229376?Ce:p}return n}function Jp(n,a){return aDe(n,a,rat)}function oDe(n,a){const l=Jp(n,a);if(l.flags&16384){if(Xl(a)){const u=Pf(a);if(je(a)&&u==="undefined")return Ke(a,_.The_value_0_cannot_be_used_here,u),l;if(u.length<100)return Ke(a,_._0_is_possibly_undefined,u),l}Ke(a,_.Object_is_possibly_undefined)}return l}function sDe(n,a){return n.flags&32?aat(n,a):Aoe(n,n.expression,tI(n.expression),n.name,a)}function aat(n,a){const l=ha(n.expression),u=zD(l,n.expression);return CV(Aoe(n,n.expression,Jp(u,n.expression),n.name,a),n,u!==l)}function lDe(n,a){const l=V3(n)&&OT(n.left)?Jp(p4(n.left),n.left):tI(n.left);return Aoe(n,n.left,l,n.right,a)}function cDe(n){for(;n.parent.kind===214;)n=n.parent;return bg(n.parent)&&n.parent.expression===n}function XV(n,a){for(let l=wc(a);l;l=wc(l)){const{symbol:u}=l,p=tO(u,n),y=u.members&&u.members.get(p)||u.exports&&u.exports.get(p);if(y)return y}}function oat(n){if(!wc(n))return En(n,_.Private_identifiers_are_not_allowed_outside_class_bodies);if(!mK(n.parent)){if(!Sg(n))return En(n,_.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const a=br(n.parent)&&n.parent.operatorToken.kind===101;if(!YV(n)&&!a)return En(n,_.Cannot_find_name_0,Mr(n))}return!1}function sat(n){oat(n);const a=YV(n);return a&&E4(a,void 0,!1),we}function YV(n){if(!Sg(n))return;const a=Jr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=XV(n.escapedText,n)),a.resolvedSymbol}function xoe(n,a){return fo(n,a.escapedName)}function lat(n,a,l){let u;const p=gs(n);p&&Je(p,A=>{const R=A.valueDeclaration;if(R&&Su(R)&&Oi(R.name)&&R.name.escapedText===a.escapedText)return u=A,!0});const y=f_(a);if(u){const A=D.checkDefined(u.valueDeclaration),R=D.checkDefined(wc(A));if(l!=null&&l.valueDeclaration){const F=l.valueDeclaration,J=wc(F);if(D.assert(!!J),rr(J,Q=>R===Q)){const Q=Ke(a,_.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,y,ke(n));return Yo(Q,Nr(F,_.The_shadowing_declaration_of_0_is_defined_here,y),Nr(A,_.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,y)),!0}}return Ke(a,_.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,y,f_(R.name||V8)),!0}return!1}function uDe(n,a){return(Ud(a)||wN(n)&&jp(a))&&kd(n,!0,!1)===Tm(a)}function Aoe(n,a,l,u,p){const y=Jr(a).resolvedSymbol,A=wT(n),R=ed(A!==0||cDe(n)?sf(l):l),F=xs(R)||R===ft;let J;if(Oi(u)){M<99&&(A!==0&&Ec(n,1048576),A!==1&&Ec(n,524288));const ge=XV(u.escapedText,u);if(A&&ge&&ge.valueDeclaration&&uc(ge.valueDeclaration)&&En(u,_.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Mr(u)),F){if(ge)return rs(R)?Ce:R;if(!wc(u))return En(u,_.Private_identifiers_are_not_allowed_outside_class_bodies),we}if(J=ge?xoe(l,ge):void 0,!J&&lat(l,u,ge))return Ce;J&&J.flags&65536&&!(J.flags&32768)&&A!==1&&Ke(n,_.Private_accessor_was_defined_without_a_getter)}else{if(F)return je(a)&&y&&UV(y,n),rs(R)?Ce:R;J=fo(R,u.escapedText,!1,n.kind===163)}je(a)&&y&&(Y_($)||!(J&&(hR(J)||J.flags&8&&n.parent.kind===302))||W1($)&&kwe(n))&&UV(y,n);let Q;if(J){g0(J)&&rae(n,J)&&J.declarations&&jg(u,J.declarations,u.escapedText),cat(J,n,u),E4(J,n,gDe(a,y)),Jr(n).resolvedSymbol=J;const ge=wk(n);if(Toe(n,a.kind===106,ge,R,J),rRe(n,J,A))return Ke(u,_.Cannot_assign_to_0_because_it_is_a_read_only_property,Mr(u)),Ce;Q=uDe(n,J)?yt:ge?ML(J):or(J)}else{const ge=!Oi(u)&&(A===0||!t1(l)||Hk(l))?rA(R,u.escapedText):void 0;if(!(ge&&ge.type)){const Ne=Coe(n,l.symbol,!0);return!Ne&&BD(l)?we:l.symbol===st?(st.exports.has(u.escapedText)&&st.exports.get(u.escapedText).flags&418?Ke(u,_.Property_0_does_not_exist_on_type_1,ra(u.escapedText),ke(l)):xe&&Ke(u,_.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,ke(l)),we):(u.escapedText&&!y0(n)&&_De(u,Hk(l)?R:l,Ne),Ce)}ge.isReadonly&&(wh(n)||gq(n))&&Ke(n,_.Index_signature_in_type_0_only_permits_reading,ke(R)),Q=$.noUncheckedIndexedAccess&&!wh(n)?Zr([ge.type,Xe]):ge.type,$.noPropertyAccessFromIndexSignature&&Fr(n)&&Ke(u,_.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,ra(u.escapedText)),ge.declaration&&xp(ge.declaration)&268435456&&jg(u,[ge.declaration],u.escapedText)}return dDe(n,J,Q,u,p)}function Coe(n,a,l){const u=er(n);if(u&&$.checkJs===void 0&&u.checkJsDirective===void 0&&(u.scriptKind===1||u.scriptKind===2)){const p=Je(a==null?void 0:a.declarations,er);return!(u!==p&&p&&sh(p))&&!(l&&a&&a.flags&32)&&!(n&&l&&Fr(n)&&n.expression.kind===108)}return!1}function dDe(n,a,l,u,p){const y=wT(n);if(y===1)return $E(l,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&l.flags&1048576)&&!Ej(a.declarations))return l;if(l===yt)return Q2(n,a);l=noe(l,n,p);let A=!1;if(W&&Ee&&dl(n)&&n.expression.kind===108){const F=a&&a.valueDeclaration;if(F&&oNe(F)&&!Ja(F)){const J=QD(n);J.kind===173&&J.parent===F.parent&&!(F.flags&16777216)&&(A=!0)}}else W&&a&&a.valueDeclaration&&Fr(a.valueDeclaration)&&UN(a.valueDeclaration)&&QD(n)===QD(a.valueDeclaration)&&(A=!0);const R=W0(n,l,A?uy(l):l);return A&&!zL(l)&&zL(R)?(Ke(u,_.Property_0_is_used_before_being_assigned,x(a)),l):y?Sv(R):R}function cat(n,a,l){const{valueDeclaration:u}=n;if(!u||er(a).isDeclarationFile)return;let p;const y=Mr(l);fDe(a)&&!net(u)&&!(dl(a)&&dl(a.expression))&&!Wg(u,l)&&!(uc(u)&&Ay(u)&32)&&($.useDefineForClassFields||!uat(n))?p=Ke(l,_.Property_0_is_used_before_its_initialization,y):u.kind===260&&a.parent.kind!==180&&!(u.flags&16777216)&&!Wg(u,l)&&(p=Ke(l,_.Class_0_used_before_its_declaration,y)),p&&Yo(p,Nr(u,_._0_is_declared_here,y))}function fDe(n){return!!rr(n,a=>{switch(a.kind){case 169:return!0;case 299:case 171:case 174:case 175:case 301:case 164:case 236:case 291:case 288:case 289:case 290:case 283:case 230:case 294:return!1;case 216:case 241:return uo(a.parent)&&Rl(a.parent.parent)?!0:"quit";default:return Sg(a)?!1:"quit"}})}function uat(n){if(!(n.parent.flags&32))return!1;let a=or(n.parent);for(;;){if(a=a.symbol&&dat(a),!a)return!1;const l=fo(a,n.escapedName);if(l&&l.valueDeclaration)return!0}}function dat(n){const a=Fo(n);if(a.length!==0)return Do(a)}function _De(n,a,l){let u,p;if(!Oi(n)&&a.flags&1048576&&!(a.flags&134348796)){for(const A of a.types)if(!fo(A,n.escapedText)&&!rA(A,n.escapedText)){u=Ra(u,_.Property_0_does_not_exist_on_type_1,Rs(n),ke(A));break}}if(pDe(n.escapedText,a)){const A=Rs(n),R=ke(a);u=Ra(u,_.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,A,R,R+"."+A)}else{const A=dR(a);if(A&&fo(A,n.escapedText))u=Ra(u,_.Property_0_does_not_exist_on_type_1,Rs(n),ke(a)),p=Nr(n,_.Did_you_forget_to_use_await);else{const R=Rs(n),F=ke(a),J=pat(R,a);if(J!==void 0)u=Ra(u,_.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,R,F,J);else{const Q=Loe(n,a);if(Q!==void 0){const ge=Gl(Q),Ne=l?_.Property_0_may_not_exist_on_type_1_Did_you_mean_2:_.Property_0_does_not_exist_on_type_1_Did_you_mean_2;u=Ra(u,Ne,R,F,ge),p=Q.valueDeclaration&&Nr(Q.valueDeclaration,_._0_is_declared_here,ge)}else{const ge=fat(a)?_.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:_.Property_0_does_not_exist_on_type_1;u=Ra(Iie(u,a),ge,R,F)}}}}const y=Eg(er(n),n,u);p&&Yo(y,p),Ky(!l||u.code!==_.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,y)}function fat(n){return $.lib&&!$.lib.includes("dom")&&wrt(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(ra(a.symbol.escapedName)))&&ag(n)}function pDe(n,a){const l=a.symbol&&fo(or(a.symbol),n);return l!==void 0&&!!l.valueDeclaration&&Ja(l.valueDeclaration)}function _at(n){const a=f_(n),u=Gz().get(a);return u&&Hce(u.keys())}function pat(n,a){const l=ed(a).symbol;if(!l)return;const u=Gl(l),y=Gz().get(u);if(y){for(const[A,R]of y)if(Ur(R,n))return A}}function mDe(n,a){return b4(n,gs(a),106500)}function Loe(n,a){let l=gs(a);if(typeof n!="string"){const u=n.parent;Fr(u)&&(l=yn(l,p=>yDe(u,a,p))),n=Mr(n)}return b4(n,l,111551)}function hDe(n,a){const l=Ha(n)?n:Mr(n),u=gs(a),p=l==="for"?In(u,y=>Gl(y)==="htmlFor"):l==="class"?In(u,y=>Gl(y)==="className"):void 0;return p!=null?p:b4(l,u,111551)}function Ioe(n,a){const l=Loe(n,a);return l&&Gl(l)}function koe(n,a,l){return D.assert(a!==void 0,"outername should always be defined"),Gb(n,a,l,void 0,a,!1,!1,!0,(p,y,A)=>{D.assertEqual(a,y,"name should equal outerName");const R=tf(p,y,A);if(R)return R;let F;return p===We?F=pa(["string","number","boolean","object","bigint","symbol"],Q=>p.has(Q.charAt(0).toUpperCase()+Q.slice(1))?ns(524288,Q):void 0).concat(No(p.values())):F=No(p.values()),b4(ra(y),F,A)})}function mat(n,a,l){const u=koe(n,a,l);return u&&Gl(u)}function $V(n,a){return a.exports&&b4(Mr(n),tv(a),2623475)}function hat(n,a){const l=$V(n,a);return l&&Gl(l)}function gat(n,a,l){function u(A){const R=Yb(n,A);if(R){const F=HS(or(R));return!!F&&wm(F)>=1&&Ao(l,bp(F,0))}return!1}const p=wh(a)?"set":"get";if(!u(p))return;let y=pO(a.expression);return y===void 0?y=p:y+="."+p,y}function yat(n,a){const l=a.types.filter(u=>!!(u.flags&128));return DI(n.value,l,u=>u.value)}function b4(n,a,l){return DI(n,a,u);function u(p){const y=Gl(p);if(!Ta(y,'"')){if(p.flags&l)return y;if(p.flags&2097152){const A=Kg(p);if(A&&A.flags&l)return y}}}}function E4(n,a,l){const u=n&&n.flags&106500&&n.valueDeclaration;if(!u)return;const p=zd(u,8),y=n.valueDeclaration&&Su(n.valueDeclaration)&&Oi(n.valueDeclaration.name);if(!(!p&&!y)&&!(a&&Xq(a)&&!(n.flags&65536))){if(l){const A=rr(a,el);if(A&&A.symbol===n)return}(Dl(n)&1?zi(n).target:n).isReferenced=67108863}}function gDe(n,a){return n.kind===108||!!a&&Xl(n)&&a===B_(Ff(n))}function vat(n,a){switch(n.kind){case 208:return woe(n,n.expression.kind===106,a,sf(ha(n.expression)));case 163:return woe(n,!1,a,sf(ha(n.left)));case 202:return woe(n,!1,a,pi(n))}}function yDe(n,a,l){return Doe(n,n.kind===208&&n.expression.kind===106,!1,a,l)}function woe(n,a,l,u){if(xs(u))return!0;const p=fo(u,l);return!!p&&Doe(n,a,!1,u,p)}function Doe(n,a,l,u,p){if(xs(u))return!0;if(p.valueDeclaration&&ad(p.valueDeclaration)){const y=wc(p.valueDeclaration);return!xu(n)&&!!rr(n,A=>A===y)}return rDe(n,a,l,u,p)}function bat(n){const a=n.initializer;if(a.kind===258){const l=a.declarations[0];if(l&&!Ya(l.name))return Ir(l)}else if(a.kind===79)return B_(a)}function Eat(n){return Nu(n).length===1&&!!hh(n,mt)}function Tat(n){const a=Ws(n);if(a.kind===79){const l=B_(a);if(l.flags&3){let u=n,p=n.parent;for(;p;){if(p.kind===246&&u===p.statement&&bat(p)===l&&Eat(Fu(p.expression)))return!0;u=p,p=p.parent}}}return!1}function Sat(n,a){return n.flags&32?xat(n,a):vDe(n,tI(n.expression),a)}function xat(n,a){const l=ha(n.expression),u=zD(l,n.expression);return CV(vDe(n,Jp(u,n.expression),a),n,u!==l)}function vDe(n,a,l){const u=wT(n)!==0||cDe(n)?sf(a):a,p=n.argumentExpression,y=ha(p);if(rs(u)||u===ft)return u;if(Xoe(u)&&!As(p))return Ke(p,_.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ce;const A=Tat(p)?mt:y,R=wh(n)?4|(t1(u)&&!Hk(u)?2:0):32,F=vv(u,A,R,n)||Ce;return SRe(dDe(n,Jr(n).resolvedSymbol,F,p,l),n)}function bDe(n){return bg(n)||VT(n)||od(n)}function gA(n){return bDe(n)&&Je(n.typeArguments,yo),n.kind===212?ha(n.template):od(n)?ha(n.attributes):n.kind!==167&&Je(n.arguments,a=>{ha(a)}),Ys}function km(n){return gA(n),nn}function Aat(n,a,l){let u,p,y=0,A,R=-1,F;D.assert(!a.length);for(const J of n){const Q=J.declaration&&Ir(J.declaration),ge=J.declaration&&J.declaration.parent;!p||Q===p?u&&ge===u?A=A+1:(u=ge,A=y):(A=y=a.length,u=ge),p=Q,qX(J)?(R++,F=R,y++):F=A,a.splice(F,0,l?CZe(J,l):J)}}function QV(n){return!!n&&(n.kind===227||n.kind===234&&n.isSpread)}function ZV(n){return mi(n,QV)}function EDe(n){return!!(n.flags&16384)}function Cat(n){return!!(n.flags&49155)}function ej(n,a,l,u=!1){let p,y=!1,A=lf(l),R=wm(l);if(n.kind===212)if(p=a.length,n.template.kind===225){const F=Jo(n.template.templateSpans);y=kl(F.literal)||!!F.literal.isUnterminated}else{const F=n.template;D.assert(F.kind===14),y=!!F.isUnterminated}else if(n.kind===167)p=IDe(n,l);else if(od(n)){if(y=n.attributes.end===n.end,y)return!0;p=R===0?a.length:1,A=a.length===0?A:1,R=Math.min(R,1)}else if(n.arguments){p=u?a.length+1:a.length,y=n.arguments.end===n.end;const F=ZV(a);if(F>=0)return F>=wm(l)&&(Dm(l)||F<lf(l))}else return D.assert(n.kind===211),wm(l)===0;if(!Dm(l)&&p>A)return!1;if(y||p>=R)return!0;for(let F=p;F<R;F++){const J=bp(l,F);if(bc(J,fr(n)&&!W?Cat:EDe).flags&131072)return!1}return!0}function Roe(n,a){const l=Le(n.typeParameters),u=Am(n.typeParameters);return!kt(a)||a.length>=u&&a.length<=l}function HS(n){return tR(n,0,!1)}function TDe(n){return tR(n,0,!1)||tR(n,1,!1)}function tR(n,a,l){if(n.flags&524288){const u=gp(n);if(l||u.properties.length===0&&u.indexInfos.length===0){if(a===0&&u.callSignatures.length===1&&u.constructSignatures.length===0)return u.callSignatures[0];if(a===1&&u.constructSignatures.length===1&&u.callSignatures.length===0)return u.constructSignatures[0]}}}function SDe(n,a,l,u){const p=JD(n.typeParameters,n,0,u),y=iR(a),A=l&&(y&&y.flags&262144?l.nonFixingMapper:l.mapper),R=A?fA(a,A):a;return Mae(R,n,(F,J)=>{sg(p.inferences,F,J)}),l||Fae(a,n,(F,J)=>{sg(p.inferences,F,J,128)}),OD(n,Yae(p),fr(a.declaration))}function Lat(n,a,l,u){const p=WV(a,n),y=yA(n.attributes,p,u,l);return sg(u.inferences,y,p),Yae(u)}function xDe(n){if(!n)return Rt;const a=ha(n);return KI(n.parent)?dy(a):xu(n.parent)?Nae(a):a}function Noe(n,a,l,u,p){if(od(n))return Lat(n,a,u,p);if(n.kind!==167){const F=Zn(a.typeParameters,Q=>!!qE(Q)),J=_d(n,F?8:0);if(J){const Q=vs(a);if(ZE(Q)){const ge=jS(n);if(!(!F&&_d(n,8)!==J)){const Bt=Uae(qnt(ge,1)),Fn=$i(J,Bt),An=HS(Fn),Xn=An&&An.typeParameters?JE(Fie(An,An.typeParameters)):Fn;sg(p.inferences,Xn,Q,128)}const De=JD(a.typeParameters,a,p.flags),_t=$i(J,ge&&ge.returnMapper);sg(De.inferences,_t,Q),p.returnMapper=kt(De.inferences,vA)?Uae(Ynt(De)):void 0}}}const y=aR(a),A=y?Math.min(lf(a)-1,l.length):l.length;if(y&&y.flags&262144){const F=In(p.inferences,J=>J.typeParameter===y);F&&(F.impliedArity=mi(l,QV,A)<0?l.length-A:void 0)}const R=Qb(a);if(R&&ZE(R)){const F=LDe(n);sg(p.inferences,xDe(F),R)}for(let F=0;F<A;F++){const J=l[F];if(J.kind!==229&&!(u&32&&Wae(J))){const Q=bp(a,F);if(ZE(Q)){const ge=yA(J,Q,p,u);sg(p.inferences,ge,Q)}}}if(y&&ZE(y)){const F=Ooe(l,A,l.length,y,p,u);sg(p.inferences,F,y)}return Yae(p)}function ADe(n){return n.flags&1048576?Zs(n,ADe):n.flags&1||TV(Zu(n)||n)?n:Bo(n)?zp(ys(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):zp([n],[8])}function Ooe(n,a,l,u,p,y){if(a>=l-1){const Q=n[l-1];if(QV(Q))return ADe(Q.kind===234?Q.type:yA(Q.expression,u,p,y))}const A=[],R=[],F=[],J=UP(u);for(let Q=a;Q<l;Q++){const ge=n[Q];if(QV(ge)){const Ne=ge.kind===234?ge.type:ha(ge.expression);V0(Ne)?(A.push(Ne),R.push(8)):(A.push(Av(33,Ne,He,ge.kind===227?ge.expression:ge)),R.push(4))}else{const Ne=jd(u,qp(Q-a),256),De=yA(ge,Ne,p,y),_t=J||gl(Ne,406978556);A.push(_t?xd(De):o1(De)),R.push(1)}ge.kind===234&&ge.tupleNameSource&&F.push(ge.tupleNameSource)}return zp(A,R,J,Le(F)===Le(A)?F:void 0)}function Poe(n,a,l,u){const p=fr(n.declaration),y=n.typeParameters,A=gv(zt(a,pi),y,Am(y),p);let R;for(let F=0;F<a.length;F++){D.assert(y[F]!==void 0,"Should not call checkTypeArguments with too many type arguments");const J=Ru(y[F]);if(J){const Q=l&&u?()=>Ra(void 0,_.Type_0_does_not_satisfy_the_constraint_1):void 0,ge=u||_.Type_0_does_not_satisfy_the_constraint_1;R||(R=Ad(y,A));const Ne=A[F];if(!fd(Ne,Yf($i(J,R),Ne),l?a[F]:void 0,ge,Q))return}}return A}function CDe(n){if(eI(n.tagName))return 2;const a=ed(ha(n.tagName));return Le(za(a,1))?0:Le(za(a,0))?1:2}function Iat(n,a,l,u,p,y,A){const R=WV(a,n),F=yA(n.attributes,R,void 0,u);return J()&&yae(F,R,l,p?n.tagName:void 0,n.attributes,void 0,y,A);function J(){var Q;if(yoe(n))return!0;const ge=Gh(n)||Qx(n)&&!eI(n.tagName)?ha(n.tagName):void 0;if(!ge)return!0;const Ne=za(ge,0);if(!Le(Ne))return!0;const De=DNe(n);if(!De)return!0;const _t=Ml(De,111551,!0,!1,n);if(!_t)return!0;const Bt=or(_t),Fn=za(Bt,0);if(!Le(Fn))return!0;let An=!1,Xn=0;for(const xn of Fn){const yr=bp(xn,0),sn=za(yr,0);if(Le(sn))for(const Un of sn){if(An=!0,Dm(Un))return!0;const Jn=lf(Un);Jn>Xn&&(Xn=Jn)}}if(!An)return!0;let hn=1/0;for(const xn of Ne){const yr=wm(xn);yr<hn&&(hn=yr)}if(hn<=Xn)return!0;if(p){const xn=Nr(n.tagName,_.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,Pf(n.tagName),hn,Pf(De),Xn),yr=(Q=G_(n.tagName))==null?void 0:Q.valueDeclaration;yr&&Yo(xn,Nr(yr,_._0_is_declared_here,Pf(n.tagName))),A&&A.skipLogging&&(A.errors||(A.errors=[])).push(xn),A.skipLogging||Zo.add(xn)}return!1}}function T4(n,a,l,u,p,y,A){const R={errors:void 0,skipLogging:!0};if(od(n))return Iat(n,l,u,p,y,A,R)?void 0:(D.assert(!y||!!R.errors,"jsx should have errors when reporting errors"),R.errors||rt);const F=Qb(l);if(F&&F!==Rt&&!(X1(n)||io(n)&&hd(n.expression))){const De=LDe(n),_t=xDe(De),Bt=y?De||n:void 0,Fn=_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!h_(_t,F,u,Bt,Fn,A,R))return D.assert(!y||!!R.errors,"this parameter should have errors when reporting errors"),R.errors||rt}const J=_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Q=aR(l),ge=Q?Math.min(lf(l)-1,a.length):a.length;for(let De=0;De<ge;De++){const _t=a[De];if(_t.kind!==229){const Bt=bp(l,De),Fn=yA(_t,Bt,void 0,p),An=p&4?o4(Fn):Fn;if(!yae(An,Bt,u,y?_t:void 0,_t,J,A,R))return D.assert(!y||!!R.errors,"parameter should have errors when reporting errors"),Ne(_t,An,Bt),R.errors||rt}}if(Q){const De=Ooe(a,ge,a.length,Q,void 0,p),_t=a.length-ge,Bt=y?_t===0?n:_t===1?a[ge]:Ym(S4(n,De),a[ge].pos,a[a.length-1].end):void 0;if(!h_(De,Q,u,Bt,J,void 0,R))return D.assert(!y||!!R.errors,"rest parameter should have errors when reporting errors"),Ne(Bt,De,Q),R.errors||rt}return;function Ne(De,_t,Bt){if(De&&y&&R.errors&&R.errors.length){if(uR(Bt))return;const Fn=uR(_t);Fn&&Im(Fn,Bt,u)&&Yo(R.errors[0],Nr(De,_.Did_you_forget_to_use_await))}}}function LDe(n){const a=n.kind===210?n.expression:n.kind===212?n.tag:void 0;if(a){const l=Cu(a);if(dl(l))return l.expression}}function S4(n,a,l,u){const p=nh.createSyntheticExpression(a,l,u);return ht(p,n),jo(p,n),p}function Moe(n){if(n.kind===212){const u=n.template,p=[S4(u,bet())];return u.kind===225&&Je(u.templateSpans,y=>{p.push(y.expression)}),p}if(n.kind===167)return kat(n);if(od(n))return n.attributes.properties.length>0||Gh(n)&&n.parent.children.length>0?[n.attributes]:rt;const a=n.arguments||rt,l=ZV(a);if(l>=0){const u=a.slice(0,l);for(let p=l;p<a.length;p++){const y=a[p],A=y.kind===227&&(Wn?ha(y.expression):nc(y.expression));A&&Bo(A)?Je(ys(A),(R,F)=>{var J;const Q=A.target.elementFlags[F],ge=S4(y,Q&4?Ou(R):R,!!(Q&12),(J=A.target.labeledElementDeclarations)==null?void 0:J[F]);u.push(ge)}):u.push(y)}return u}return a}function kat(n){const a=n.expression,l=qoe(n);if(l){const u=[];for(const p of l.parameters){const y=or(p);u.push(S4(a,y))}return u}return D.fail()}function IDe(n,a){return $.experimentalDecorators?wat(n,a):2}function wat(n,a){switch(n.parent.kind){case 260:case 228:return 1;case 169:return Jm(n.parent)?3:2;case 171:case 174:case 175:return M===0||a.parameters.length<=2?2:3;case 166:return 3;default:return D.fail()}}function kDe(n,a){let l,u;const p=er(n);if(Fr(n.expression)){const y=P1(p,n.expression.name);l=y.start,u=a?y.length:n.end-l}else{const y=P1(p,n.expression);l=y.start,u=a?y.length:n.end-l}return{start:l,length:u,sourceFile:p}}function nR(n,a,l,u,p,y){if(io(n)){const{sourceFile:A,start:R,length:F}=kDe(n);return"message"in a?Mc(A,R,F,a,l,u,p,y):$z(A,a)}else return"message"in a?Nr(n,a,l,u,p,y):Eg(er(n),n,a)}function Dat(n){if(!io(n)||!je(n.expression))return!1;const a=hl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),l=a==null?void 0:a.valueDeclaration;if(!l||!Fa(l)||!CC(l.parent)||!X1(l.parent.parent)||!je(l.parent.parent.expression))return!1;const u=qie(!1);return u?G_(l.parent.parent.expression,!0)===u:!1}function wDe(n,a,l,u){var p;const y=ZV(l);if(y>-1)return Nr(l[y],_.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let A=Number.POSITIVE_INFINITY,R=Number.NEGATIVE_INFINITY,F=Number.NEGATIVE_INFINITY,J=Number.POSITIVE_INFINITY,Q;for(const Bt of a){const Fn=wm(Bt),An=lf(Bt);Fn<A&&(A=Fn,Q=Bt),R=Math.max(R,An),Fn<l.length&&Fn>F&&(F=Fn),l.length<An&&An<J&&(J=An)}const ge=kt(a,Dm),Ne=ge?A:A<R?A+"-"+R:A,De=!ge&&Ne===1&&l.length===0&&Dat(n);if(De&&fr(n))return nR(n,_.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const _t=Wu(n)?ge?_.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:_.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:ge?_.Expected_at_least_0_arguments_but_got_1:De?_.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:_.Expected_0_arguments_but_got_1;if(A<l.length&&l.length<R){if(u){let Bt=Ra(void 0,_.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,l.length,F,J);return Bt=Ra(Bt,u),nR(n,Bt)}return nR(n,_.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,l.length,F,J)}else if(l.length<A){let Bt;if(u){let An=Ra(void 0,_t,Ne,l.length);An=Ra(An,u),Bt=nR(n,An)}else Bt=nR(n,_t,Ne,l.length);const Fn=(p=Q==null?void 0:Q.declaration)==null?void 0:p.parameters[Q.thisParameter?l.length+1:l.length];if(Fn){const An=Nr(Fn,Ya(Fn.name)?_.An_argument_matching_this_binding_pattern_was_not_provided:Lh(Fn)?_.Arguments_for_the_rest_parameter_0_were_not_provided:_.An_argument_for_0_was_not_provided,Fn.name?Ya(Fn.name)?void 0:Mr(Ff(Fn.name)):l.length);return Yo(Bt,An)}return Bt}else{const Bt=N.createNodeArray(l.slice(R)),Fn=ds(Bt).pos;let An=Jo(Bt).end;if(An===Fn&&An++,Ym(Bt,Fn,An),u){let Xn=Ra(void 0,_t,Ne,l.length);return Xn=Ra(Xn,u),LN(er(n),Bt,Xn)}return ZA(er(n),Bt,_t,Ne,l.length)}}function Rat(n,a,l,u){const p=l.length;if(a.length===1){const R=a[0],F=Am(R.typeParameters),J=Le(R.typeParameters);if(u){let Q=Ra(void 0,_.Expected_0_type_arguments_but_got_1,F<J?F+"-"+J:F,p);return Q=Ra(Q,u),LN(er(n),l,Q)}return ZA(er(n),l,_.Expected_0_type_arguments_but_got_1,F<J?F+"-"+J:F,p)}let y=-1/0,A=1/0;for(const R of a){const F=Am(R.typeParameters),J=Le(R.typeParameters);F>p?A=Math.min(A,F):J<p&&(y=Math.max(y,J))}if(y!==-1/0&&A!==1/0){if(u){let R=Ra(void 0,_.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,p,y,A);return R=Ra(R,u),LN(er(n),l,R)}return ZA(er(n),l,_.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,p,y,A)}if(u){let R=Ra(void 0,_.Expected_0_type_arguments_but_got_1,y===-1/0?A:y,p);return R=Ra(R,u),LN(er(n),l,R)}return ZA(er(n),l,_.Expected_0_type_arguments_but_got_1,y===-1/0?A:y,p)}function nI(n,a,l,u,p,y){const A=n.kind===212,R=n.kind===167,F=od(n),J=!H&&!l;let Q;!R&&!eC(n)&&(Q=n.typeArguments,(A||F||n.expression.kind!==106)&&Je(Q,yo));const ge=l||[];if(Aat(a,ge,p),!ge.length)return J&&Zo.add(nR(n,_.Call_target_does_not_contain_any_signatures)),km(n);const Ne=Moe(n),De=ge.length===1&&!ge[0].typeParameters;let _t=!R&&!De&&kt(Ne,F_)?4:0;_t|=u&32;let Bt,Fn,An,Xn;const hn=!!(u&16)&&n.kind===210&&n.arguments.hasTrailingComma;if(ge.length>1&&(Xn=yr(ge,oh,De,hn)),Xn||(Xn=yr(ge,Pd,De,hn)),Xn)return Xn;if(Xn=Nat(n,ge,Ne,!!l,u),Jr(n).resolvedSignature=Xn,J)if(Bt)if(Bt.length===1||Bt.length>3){const sn=Bt[Bt.length-1];let Un;Bt.length>3&&(Un=Ra(Un,_.The_last_overload_gave_the_following_error),Un=Ra(Un,_.No_overload_matches_this_call)),y&&(Un=Ra(Un,y));const Jn=T4(n,Ne,sn,Pd,0,!0,()=>Un);if(Jn)for(const ei of Jn)sn.declaration&&Bt.length>3&&Yo(ei,Nr(sn.declaration,_.The_last_overload_is_declared_here)),xn(sn,ei),Zo.add(ei);else D.fail("No error for last overload signature")}else{const sn=[];let Un=0,Jn=Number.MAX_VALUE,ei=0,ai=0;for(const kf of Bt){const Vn=T4(n,Ne,kf,Pd,0,!0,()=>Ra(void 0,_.Overload_0_of_1_2_gave_the_following_error,ai+1,ge.length,le(kf)));Vn?(Vn.length<=Jn&&(Jn=Vn.length,ei=ai),Un=Math.max(Un,Vn.length),sn.push(Vn)):D.fail("No error for 3 or fewer overload signatures"),ai++}const _a=Un>1?sn[ei]:Ds(sn);D.assert(_a.length>0,"No errors reported for 3 or fewer overload signatures");let Za=Ra(zt(_a,Sfe),_.No_overload_matches_this_call);y&&(Za=Ra(Za,y));const Lc=[...Ga(_a,kf=>kf.relatedInformation)];let e_;if(Zn(_a,kf=>kf.start===_a[0].start&&kf.length===_a[0].length&&kf.file===_a[0].file)){const{file:kf,start:sa,length:Vn}=_a[0];e_={file:kf,start:sa,length:Vn,code:Za.code,category:Za.category,messageText:Za,relatedInformation:Lc}}else e_=Eg(er(n),n,Za,Lc);xn(Bt[0],e_),Zo.add(e_)}else if(Fn)Zo.add(wDe(n,[Fn],Ne,y));else if(An)Poe(An,n.typeArguments,!0,y);else{const sn=yn(a,Un=>Roe(Un,Q));sn.length===0?Zo.add(Rat(n,a,Q,y)):Zo.add(wDe(n,sn,Ne,y))}return Xn;function xn(sn,Un){var Jn,ei;const ai=Bt,_a=Fn,Za=An,Lc=((ei=(Jn=sn.declaration)==null?void 0:Jn.symbol)==null?void 0:ei.declarations)||rt,kf=Lc.length>1?In(Lc,sa=>el(sa)&&E_(sa.body)):void 0;if(kf){const sa=Wp(kf),Vn=!sa.typeParameters;yr([sa],Pd,Vn)&&Yo(Un,Nr(kf,_.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Bt=ai,Fn=_a,An=Za}function yr(sn,Un,Jn,ei=!1){if(Bt=void 0,Fn=void 0,An=void 0,Jn){const ai=sn[0];if(kt(Q)||!ej(n,Ne,ai,ei))return;if(T4(n,Ne,ai,Un,0,!1,void 0)){Bt=[ai];return}return ai}for(let ai=0;ai<sn.length;ai++){const _a=sn[ai];if(!Roe(_a,Q)||!ej(n,Ne,_a,ei))continue;let Za,Lc;if(_a.typeParameters){let e_;if(kt(Q)){if(e_=Poe(_a,Q,!1),!e_){An=_a;continue}}else Lc=JD(_a.typeParameters,_a,fr(n)?2:0),e_=Noe(n,_a,Ne,_t|8,Lc),_t|=Lc.flags&4?8:0;if(Za=OD(_a,e_,fr(_a.declaration),Lc&&Lc.inferredTypeParameters),aR(_a)&&!ej(n,Ne,Za,ei)){Fn=Za;continue}}else Za=_a;if(T4(n,Ne,Za,Un,_t,!1,void 0)){(Bt||(Bt=[])).push(Za);continue}if(_t){if(_t=u&32,Lc){const e_=Noe(n,_a,Ne,_t,Lc);if(Za=OD(_a,e_,fr(_a.declaration),Lc.inferredTypeParameters),aR(_a)&&!ej(n,Ne,Za,ei)){Fn=Za;continue}}if(T4(n,Ne,Za,Un,_t,!1,void 0)){(Bt||(Bt=[])).push(Za);continue}}return sn[ai]=Za,Za}}}function Nat(n,a,l,u,p){return D.assert(a.length>0),fI(n),u||a.length===1||a.some(y=>!!y.typeParameters)?Mat(n,a,l,p):Oat(a)}function Oat(n){const a=pa(n,F=>F.thisParameter);let l;a.length&&(l=DDe(a,a.map(A4)));const{min:u,max:p}=cpe(n,Pat),y=[];for(let F=0;F<p;F++){const J=pa(n,Q=>Lu(Q)?F<Q.parameters.length-1?Q.parameters[F]:Jo(Q.parameters):F<Q.parameters.length?Q.parameters[F]:void 0);D.assert(J.length!==0),y.push(DDe(J,pa(n,Q=>aT(Q,F))))}const A=pa(n,F=>Lu(F)?Jo(F.parameters):void 0);let R=0;if(A.length!==0){const F=Ou(Zr(pa(n,pIe),2));y.push(RDe(A,F)),R|=1}return n.some(qX)&&(R|=2),mh(n[0].declaration,void 0,l,y,Do(n.map(vs)),void 0,u,R)}function Pat(n){const a=n.parameters.length;return Lu(n)?a-1:a}function DDe(n,a){return RDe(n,Zr(a,2))}function RDe(n,a){return QE(ds(n),a)}function Mat(n,a,l,u){const p=Gat(a,tt===void 0?l.length:tt),y=a[p],{typeParameters:A}=y;if(!A)return y;const R=bDe(n)?n.typeArguments:void 0,F=R?XU(y,Fat(R,A,fr(n))):Bat(n,A,y,l,u);return a[p]=F,F}function Fat(n,a,l){const u=n.map(WS);for(;u.length>a.length;)u.pop();for(;u.length<a.length;)u.push(qE(a[u.length])||Ru(a[u.length])||Xae(l));return u}function Bat(n,a,l,u,p){const y=JD(a,l,fr(n)?2:0),A=Noe(n,l,u,p|4|8,y);return XU(l,A)}function Gat(n,a){let l=-1,u=-1;for(let p=0;p<n.length;p++){const y=n[p],A=lf(y);if(Dm(y)||A>=a)return p;A>u&&(u=A,l=p)}return l}function Uat(n,a,l){if(n.expression.kind===106){const F=ooe(n.expression);if(xs(F)){for(const J of n.arguments)ha(J);return Ys}if(!rs(F)){const J=am(wc(n));if(J){const Q=Vr(F,J.typeArguments,J);return nI(n,Q,a,l,0)}}return gA(n)}let u,p=ha(n.expression);if(gT(n)){const F=zD(p,n.expression);u=F===p?0:XI(n)?16:8,p=F}else u=0;if(p=aDe(p,n.expression,iat),p===ft)return wu;const y=ed(p);if(rs(y))return km(n);const A=za(y,0),R=za(y,1).length;if(tj(p,y,A.length,R))return!rs(p)&&n.typeArguments&&Ke(n,_.Untyped_function_calls_may_not_accept_type_arguments),gA(n);if(!A.length){if(R)Ke(n,_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ke(p));else{let F;if(n.arguments.length===1){const J=er(n).text;Tu(J.charCodeAt(Xo(J,n.expression.end,!0)-1))&&(F=Nr(n.expression,_.Are_you_missing_a_semicolon))}Boe(n.expression,y,0,F)}return km(n)}return l&8&&!n.typeArguments&&A.some(Vat)?(fRe(n,l),zl):A.some(F=>fr(F.declaration)&&!!iz(F.declaration))?(Ke(n,_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ke(p)),km(n)):nI(n,A,a,l,u)}function Vat(n){return!!(n.typeParameters&&Ase(vs(n)))}function tj(n,a,l,u){return xs(n)||xs(a)&&!!(n.flags&262144)||!l&&!u&&!(a.flags&1048576)&&!(yp(a).flags&131072)&&Ao(n,pl)}function jat(n,a,l){if(n.arguments&&M<1){const A=ZV(n.arguments);A>=0&&Ke(n.arguments[A],_.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let u=tI(n.expression);if(u===ft)return wu;if(u=ed(u),rs(u))return km(n);if(xs(u))return n.typeArguments&&Ke(n,_.Untyped_function_calls_may_not_accept_type_arguments),gA(n);const p=za(u,1);if(p.length){if(!Hat(n,p[0]))return km(n);if(NDe(p,R=>!!(R.flags&4)))return Ke(n,_.Cannot_create_an_instance_of_an_abstract_class),km(n);const A=u.symbol&&Lg(u.symbol);return A&&$r(A,256)?(Ke(n,_.Cannot_create_an_instance_of_an_abstract_class),km(n)):nI(n,p,a,l,0)}const y=za(u,0);if(y.length){const A=nI(n,y,a,l,0);return xe||(A.declaration&&!Kp(A.declaration)&&vs(A)!==Rt&&Ke(n,_.Only_a_void_function_can_be_called_with_the_new_keyword),Qb(A)===Rt&&Ke(n,_.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),A}return Boe(n.expression,u,1),km(n)}function NDe(n,a){return Va(n)?kt(n,l=>NDe(l,a)):n.compositeKind===1048576?kt(n.compositeSignatures,a):a(n)}function Foe(n,a){const l=Fo(a);if(!Le(l))return!1;const u=l[0];if(u.flags&2097152){const p=u.types,y=eIe(p);let A=0;for(const R of u.types){if(!y[A]&&ri(R)&3&&(R.symbol===n||Foe(n,R)))return!0;A++}return!1}return u.symbol===n?!0:Foe(n,u)}function Hat(n,a){if(!a||!a.declaration)return!0;const l=a.declaration,u=Dx(l,24);if(!u||l.kind!==173)return!0;const p=Lg(l.parent.symbol),y=js(l.parent.symbol);if(!Tse(n,p)){const A=wc(n);if(A&&u&16){const R=WS(A);if(Foe(l.parent.symbol,R))return!0}return u&8&&Ke(n,_.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ke(y)),u&16&&Ke(n,_.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ke(y)),!1}return!0}function ODe(n,a,l){let u;const p=l===0,y=sT(a),A=y&&za(y,l).length>0;if(a.flags&1048576){const F=a.types;let J=!1;for(const Q of F)if(za(Q,l).length!==0){if(J=!0,u)break}else if(u||(u=Ra(u,p?_.Type_0_has_no_call_signatures:_.Type_0_has_no_construct_signatures,ke(Q)),u=Ra(u,p?_.Not_all_constituents_of_type_0_are_callable:_.Not_all_constituents_of_type_0_are_constructable,ke(a))),J)break;J||(u=Ra(void 0,p?_.No_constituent_of_type_0_is_callable:_.No_constituent_of_type_0_is_constructable,ke(a))),u||(u=Ra(u,p?_.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:_.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,ke(a)))}else u=Ra(u,p?_.Type_0_has_no_call_signatures:_.Type_0_has_no_construct_signatures,ke(a));let R=p?_.This_expression_is_not_callable:_.This_expression_is_not_constructable;if(io(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:F}=Jr(n);F&&F.flags&32768&&(R=_.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Ra(u,R),relatedMessage:A?_.Did_you_forget_to_use_await:void 0}}function Boe(n,a,l,u){const{messageChain:p,relatedMessage:y}=ODe(n,a,l),A=Eg(er(n),n,p);if(y&&Yo(A,Nr(n,y)),io(n.parent)){const{start:R,length:F}=kDe(n.parent,!0);A.start=R,A.length=F}Zo.add(A),PDe(a,l,u?Yo(A,u):A)}function PDe(n,a,l){if(!n.symbol)return;const u=zi(n.symbol).originatingImport;if(u&&!hf(u)){const p=za(or(zi(n.symbol).target),a);if(!p||!p.length)return;Yo(l,Nr(u,_.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function Wat(n,a,l){const u=ha(n.tag),p=ed(u);if(rs(p))return km(n);const y=za(p,0),A=za(p,1).length;if(tj(u,p,y.length,A))return gA(n);if(!y.length){if(zu(n.parent)){const R=Nr(n.tag,_.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Zo.add(R),km(n)}return Boe(n.tag,p,0),km(n)}return nI(n,y,a,l,0)}function zat(n){switch(n.parent.kind){case 260:case 228:return _.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 166:return _.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 169:return _.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 171:case 174:case 175:return _.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return D.fail()}}function qat(n,a,l){const u=ha(n.expression),p=ed(u);if(rs(p))return km(n);const y=za(p,0),A=za(p,1).length;if(tj(u,p,y.length,A))return gA(n);if(Kat(n,y)&&!Jd(n.expression)){const F=kc(n.expression,!1);return Ke(n,_._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,F),km(n)}const R=zat(n);if(!y.length){const F=ODe(n.expression,p,0),J=Ra(F.messageChain,R),Q=Eg(er(n.expression),n.expression,J);return F.relatedMessage&&Yo(Q,Nr(n.expression,F.relatedMessage)),Zo.add(Q),PDe(p,0,Q),km(n)}return nI(n,y,a,l,0,R)}function nj(n,a){const l=hA(n),u=l&&xf(l),p=u&&tf(u,Gf.Element,788968),y=p&&Ye.symbolToEntityName(p,788968,n),A=N.createFunctionTypeNode(void 0,[N.createParameterDeclaration(void 0,void 0,"props",void 0,Ye.typeToTypeNode(a,n))],y?N.createTypeReferenceNode(y,void 0):N.createKeywordTypeNode(131)),R=ns(1,"props");return R.links.type=a,mh(A,void 0,void 0,[R],p?js(p):Ce,void 0,1,0)}function Jat(n,a,l){if(eI(n.tagName)){const A=eDe(n),R=nj(n,A);return Tv(yA(n.attributes,WV(R,n),void 0,0),A,n.tagName,n.attributes),Le(n.typeArguments)&&(Je(n.typeArguments,yo),Zo.add(ZA(er(n),n.typeArguments,_.Expected_0_type_arguments_but_got_1,0,Le(n.typeArguments)))),R}const u=ha(n.tagName),p=ed(u);if(rs(p))return km(n);const y=Qwe(u,n);return tj(u,p,y.length,0)?gA(n):y.length===0?(Ke(n.tagName,_.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,kc(n.tagName)),km(n)):nI(n,y,a,l,0)}function Kat(n,a){return a.length&&Zn(a,l=>l.minArgumentCount===0&&!Lu(l)&&l.parameters.length<IDe(n,l))}function Xat(n,a,l){switch(n.kind){case 210:return Uat(n,a,l);case 211:return jat(n,a,l);case 212:return Wat(n,a,l);case 167:return qat(n,a,l);case 283:case 282:return Jat(n,a,l)}throw D.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function rI(n,a,l){const u=Jr(n),p=u.resolvedSignature;if(p&&p!==zl&&!a)return p;u.resolvedSignature=zl;const y=Xat(n,a,l||0);return y!==zl&&(u.resolvedSignature=Tn===Wn?y:p),y}function Kp(n){var a;if(!n||!fr(n))return!1;const l=xc(n)||Us(n)?n:(Xi(n)||$c(n))&&n.initializer&&Us(n.initializer)?n.initializer:void 0;if(l){if(iz(n))return!0;if($c(jv(l.parent)))return!1;const u=Ir(l);return!!((a=u==null?void 0:u.members)!=null&&a.size)}return!1}function Goe(n,a){var l,u;if(a){const p=zi(a);if(!p.inferredClassSymbol||!p.inferredClassSymbol.has(Eo(n))){const y=Hm(n)?n:Fb(n);return y.exports=y.exports||co(),y.members=y.members||co(),y.flags|=a.flags&32,(l=a.exports)!=null&&l.size&&Uc(y.exports,a.exports),(u=a.members)!=null&&u.size&&Uc(y.members,a.members),(p.inferredClassSymbol||(p.inferredClassSymbol=new Map)).set(Eo(y),y),y}return p.inferredClassSymbol.get(Eo(n))}}function Yat(n){var a;const l=n&&rj(n,!0),u=(a=l==null?void 0:l.exports)==null?void 0:a.get("prototype"),p=(u==null?void 0:u.valueDeclaration)&&$at(u.valueDeclaration);return p?Ir(p):void 0}function rj(n,a){if(!n.parent)return;let l,u;if(Xi(n.parent)&&n.parent.initializer===n){if(!fr(n)&&!(Tg(n.parent)&&el(n)))return;l=n.parent.name,u=n.parent}else if(br(n.parent)){const p=n.parent,y=n.parent.operatorToken.kind;if(y===63&&(a||p.right===n))l=p.left,u=l;else if((y===56||y===60)&&(Xi(p.parent)&&p.parent.initializer===p?(l=p.parent.name,u=p.parent):br(p.parent)&&p.parent.operatorToken.kind===63&&(a||p.parent.right===p)&&(l=p.parent.left,u=l),!l||!Sx(l)||!oC(l,p.left)))return}else a&&xc(n)&&(l=n.name,u=n);if(!(!u||!l||!a&&!lb(n,fb(l))))return nf(u)}function $at(n){if(!n.parent)return!1;let a=n.parent;for(;a&&a.kind===208;)a=a.parent;if(a&&br(a)&&fb(a.left)&&a.operatorToken.kind===63){const l=fq(a);return Is(l)&&l}}function Qat(n,a){var l,u,p;W4(n,n.typeArguments);const y=rI(n,void 0,a);if(y===zl)return ft;if(ij(y,n),n.expression.kind===106)return Rt;if(n.kind===211){const R=y.declaration;if(R&&R.kind!==173&&R.kind!==177&&R.kind!==182&&!(Z1(R)&&((u=(l=_k(R))==null?void 0:l.parent)==null?void 0:u.kind)===173)&&!cC(R)&&!Kp(R))return xe&&Ke(n,_.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),we}if(fr(n)&&Tl($)!==100&&UDe(n))return fIe(n.arguments[0]);const A=vs(y);if(A.flags&12288&&MDe(n))return uae(jv(n.parent));if(n.kind===210&&!n.questionDotToken&&n.parent.kind===241&&A.flags&16384&&p_(y)){if(!xk(n.expression))Ke(n.expression,_.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!MV(n)){const R=Ke(n.expression,_.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);d4(n.expression,R)}}if(fr(n)){const R=rj(n,!1);if((p=R==null?void 0:R.exports)!=null&&p.size){const F=Ps(R,R.exports,rt,rt,rt);return F.objectFlags|=4096,Do([A,F])}}return A}function ij(n,a){if(n.declaration&&n.declaration.flags&268435456){const l=x4(a),u=pO(B3(a));SS(l,n.declaration,u,le(n))}}function x4(n){switch(n=Ws(n),n.kind){case 210:case 167:case 211:return x4(n.expression);case 212:return x4(n.tag);case 283:case 282:return x4(n.tagName);case 209:return n.argumentExpression;case 208:return n.name;case 180:const a=n;return Rd(a.typeName)?a.typeName.right:a;default:return n}}function MDe(n){if(!io(n))return!1;let a=n.expression;if(Fr(a)&&a.name.escapedText==="for"&&(a=a.expression),!je(a)||a.escapedText!=="Symbol")return!1;const l=RIe(!1);return l?l===hl(a,"Symbol",111551,void 0,void 0,!1):!1}function Zat(n){if(pdt(n),n.arguments.length===0)return I4(n,we);const a=n.arguments[0],l=nc(a),u=n.arguments.length>1?nc(n.arguments[1]):void 0;for(let y=2;y<n.arguments.length;++y)nc(n.arguments[y]);if((l.flags&32768||l.flags&65536||!Ao(l,ue))&&Ke(a,_.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,ke(l)),u){const y=DIe(!0);y!==fa&&fd(u,AV(y,32768),n.arguments[1])}const p=gu(n,a);if(p){const y=Kb(p,a,!0,!1);if(y)return I4(n,BDe(or(y),y,p,a)||GDe(or(y),y,p,a))}return I4(n,we)}function FDe(n,a,l){const u=co(),p=ns(2097152,"default");return p.parent=a,p.links.nameType=Qf("default"),p.links.aliasTarget=ec(n),u.set("default",p),Ps(l,u,rt,rt,rt)}function BDe(n,a,l,u){if(Os(u)&&n&&!rs(n)){const y=n;if(!y.defaultOnlyType){const A=FDe(a,l);y.defaultOnlyType=A}return y.defaultOnlyType}}function GDe(n,a,l,u){var p;if(ae&&n&&!rs(n)){const y=n;if(!y.syntheticType){const A=(p=l.declarations)==null?void 0:p.find(Ji);if(Yy(A,l,!1,u)){const F=ns(2048,"__type"),J=FDe(a,l,F);F.links.type=J,y.syntheticType=g4(n)?n1(n,J,F,0,!1):J}else y.syntheticType=n}return y.syntheticType}return n}function UDe(n){if(!wd(n,!0))return!1;if(!je(n.expression))return D.fail();const a=hl(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(a===Et)return!0;if(a.flags&2097152)return!1;const l=a.flags&16?259:a.flags&3?257:0;if(l!==0){const u=Il(a,l);return!!u&&!!(u.flags&16777216)}return!1}function eot(n){Gut(n)||W4(n,n.typeArguments),M<2&&Ec(n,262144);const a=rI(n);return ij(a,n),vs(a)}function tot(n){if(n.kind===213){const a=er(n);a&&Ic(a.fileName,[".cts",".mts"])&&En(n,_.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return VDe(n,n.type,n.expression)}function Uoe(n){switch(n.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 206:case 207:case 225:return!0;case 214:return Uoe(n.expression);case 221:const a=n.operator,l=n.operand;return a===40&&(l.kind===8||l.kind===9)||a===39&&l.kind===8;case 208:case 209:const u=Ws(n.expression),p=Xl(u)?Ml(u,111551,!0):void 0;return!!(p&&p.flags&384)}return!1}function VDe(n,a,l,u){let p=ha(l,u);if(vg(a))return Uoe(l)||Ke(l,_.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),xd(p);yo(a),p=o4(Sv(p));const y=pi(a);return rs(y)||i(()=>{const A=sf(p);hV(y,A)||kke(p,y,n,_.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}),y}function not(n){const a=ha(n.expression),l=zD(a,n.expression);return CV(dy(l),n,l!==a)}function rot(n){return n.flags&32?not(n):dy(ha(n.expression))}function jDe(n){ONe(n),Je(n.typeArguments,yo);const a=n.kind===230?ha(n.expression):OT(n.exprName)?p4(n.exprName):ha(n.exprName);return HDe(a,n)}function HDe(n,a){const l=a.typeArguments;if(n===ft||rs(n)||!kt(l))return n;let u=!1,p;const y=R(n),A=u?p:n;return A&&Zo.add(ZA(er(a),l,_.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,ke(A))),y;function R(J){let Q=!1,ge=!1;const Ne=De(J);return u||(u=ge),Q&&!ge&&(p!=null||(p=J)),Ne;function De(_t){if(_t.flags&524288){const Bt=gp(_t),Fn=F(Bt.callSignatures),An=F(Bt.constructSignatures);if(Q||(Q=Bt.callSignatures.length!==0||Bt.constructSignatures.length!==0),ge||(ge=Fn.length!==0||An.length!==0),Fn!==Bt.callSignatures||An!==Bt.constructSignatures){const Xn=Ps(void 0,Bt.members,Fn,An,Bt.indexInfos);return Xn.objectFlags|=8388608,Xn.node=a,Xn}}else if(_t.flags&58982400){const Bt=Zu(_t);if(Bt){const Fn=De(Bt);if(Fn!==Bt)return Fn}}else{if(_t.flags&1048576)return Zs(_t,R);if(_t.flags&2097152)return Do(no(_t.types,De))}return _t}}function F(J){const Q=yn(J,ge=>!!ge.typeParameters&&Roe(ge,l));return no(Q,ge=>{const Ne=Poe(ge,l,!0);return Ne?OD(ge,Ne,fr(ge.declaration)):ge})}}function iot(n){return yo(n.type),Voe(n.expression,n.type)}function Voe(n,a,l){const u=ha(n,l),p=pi(a);return rs(p)?p:(Tv(u,p,a,n,_.Type_0_does_not_satisfy_the_expected_type_1),u)}function aot(n){return tdt(n),n.keywordToken===103?joe(n):n.keywordToken===100?oot(n):D.assertNever(n.keywordToken)}function WDe(n){switch(n.keywordToken){case 100:return wIe();case 103:const a=joe(n);return rs(a)?Ce:xot(a);default:D.assertNever(n.keywordToken)}}function joe(n){const a=Pfe(n);if(a)if(a.kind===173){const l=Ir(a.parent);return or(l)}else{const l=Ir(a);return or(l)}else return Ke(n,_.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ce}function oot(n){de===100||de===199?er(n).impliedNodeFormat!==99&&Ke(n,_.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):de<6&&de!==4&&Ke(n,_.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const a=er(n);return D.assert(!!(a.flags&4194304),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?kIe():Ce}function A4(n){const a=or(n);if(W){const l=n.valueDeclaration;if(l&&Uv(l))return uy(a)}return a}function aj(n){return D.assert(je(n.name)),n.name.escapedText}function iI(n,a,l){const u=n.parameters.length-(Lu(n)?1:0);if(a<u)return n.parameters[a].escapedName;const p=n.parameters[u]||rn,y=l||or(p);if(Bo(y)){const A=y.target.labeledElementDeclarations,R=a-u;return A&&aj(A[R])||p.escapedName+"_"+R}return p.escapedName}function sot(n,a){var l;if(((l=n.declaration)==null?void 0:l.kind)===320)return;const u=n.parameters.length-(Lu(n)?1:0);if(a<u){const A=n.parameters[a];return zDe(A)?[A.escapedName,!1]:void 0}const p=n.parameters[u]||rn;if(!zDe(p))return;const y=or(p);if(Bo(y)){const A=y.target.labeledElementDeclarations,R=a-u,F=A==null?void 0:A[R],J=!!(F!=null&&F.dotDotDotToken);return F?[aj(F),J]:void 0}if(a===u)return[p.escapedName,!0]}function zDe(n){return n.valueDeclaration&&Fa(n.valueDeclaration)&&je(n.valueDeclaration.name)}function qDe(n){return n.kind===199||Fa(n)&&n.name&&je(n.name)}function lot(n,a){const l=n.parameters.length-(Lu(n)?1:0);if(a<l){const y=n.parameters[a].valueDeclaration;return y&&qDe(y)?y:void 0}const u=n.parameters[l]||rn,p=or(u);if(Bo(p)){const y=p.target.labeledElementDeclarations,A=a-l;return y&&y[A]}return u.valueDeclaration&&qDe(u.valueDeclaration)?u.valueDeclaration:void 0}function bp(n,a){return aT(n,a)||we}function aT(n,a){const l=n.parameters.length-(Lu(n)?1:0);if(a<l)return A4(n.parameters[a]);if(Lu(n)){const u=or(n.parameters[l]),p=a-l;if(!Bo(u)||u.target.hasRestElement||p<u.target.fixedLength)return jd(u,qp(p))}}function rR(n,a){const l=lf(n),u=wm(n),p=iR(n);if(p&&a>=l-1)return a===l-1?p:Ou(jd(p,mt));const y=[],A=[],R=[];for(let F=a;F<l;F++){!p||F<l-1?(y.push(bp(n,F)),A.push(F<u?1:2)):(y.push(p),A.push(8));const J=lot(n,F);J&&R.push(J)}return zp(y,A,!1,Le(R)===Le(y)?R:void 0)}function lf(n){const a=n.parameters.length;if(Lu(n)){const l=or(n.parameters[a-1]);if(Bo(l))return a+l.target.fixedLength-(l.target.hasRestElement?0:1)}return a}function wm(n,a){const l=a&1,u=a&2;if(u||n.resolvedMinArgumentCount===void 0){let p;if(Lu(n)){const y=or(n.parameters[n.parameters.length-1]);if(Bo(y)){const A=mi(y.target.elementFlags,F=>!(F&1)),R=A<0?y.target.fixedLength:A;R>0&&(p=n.parameters.length-1+R)}}if(p===void 0){if(!l&&n.flags&32)return 0;p=n.minArgumentCount}if(u)return p;for(let y=p-1;y>=0;y--){const A=bp(n,y);if(bc(A,EDe).flags&131072)break;p=y}n.resolvedMinArgumentCount=p}return n.resolvedMinArgumentCount}function Dm(n){if(Lu(n)){const a=or(n.parameters[n.parameters.length-1]);return!Bo(a)||a.target.hasRestElement}return!1}function iR(n){if(Lu(n)){const a=or(n.parameters[n.parameters.length-1]);if(!Bo(a))return a;if(a.target.hasRestElement)return jL(a,a.target.fixedLength)}}function aR(n){const a=iR(n);return a&&!Zf(a)&&!xs(a)&&!(yp(a).flags&131072)?a:void 0}function Hoe(n){return Woe(n,gt)}function Woe(n,a){return n.parameters.length>0?bp(n,0):a}function cot(n,a,l){const u=n.parameters.length-(Lu(n)?1:0);for(let p=0;p<u;p++){const y=n.parameters[p].valueDeclaration;if(y.type){const A=iu(y);A&&sg(l.inferences,pi(A),bp(a,p))}}}function uot(n,a){if(a.typeParameters)if(!n.typeParameters)n.typeParameters=a.typeParameters;else return;if(a.thisParameter){const u=n.thisParameter;(!u||u.valueDeclaration&&!u.valueDeclaration.type)&&(u||(n.thisParameter=QE(a.thisParameter,void 0)),C4(n.thisParameter,or(a.thisParameter)))}const l=n.parameters.length-(Lu(n)?1:0);for(let u=0;u<l;u++){const p=n.parameters[u];if(!iu(p.valueDeclaration)){const y=aT(a,u);C4(p,y)}}if(Lu(n)){const u=Jo(n.parameters);if(u.valueDeclaration?!iu(u.valueDeclaration):Dl(u)&65536){const p=rR(a,l);C4(u,p)}}}function dot(n){n.thisParameter&&C4(n.thisParameter);for(const a of n.parameters)C4(a)}function C4(n,a){const l=zi(n);if(l.type)a&&D.assertEqual(l.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{const u=n.valueDeclaration;l.type=a||(u?xl(u,!0):or(n)),u&&u.name.kind!==79&&(l.type===he&&(l.type=wo(u.name)),JDe(u.name,l.type))}}function JDe(n,a){for(const l of n.elements)if(!Fc(l)){const u=Li(l,a);l.name.kind===79?zi(Ir(l)).type=u:JDe(l.name,u)}}function fot(n){return oA(Pet(!0),[n])}function _ot(n,a){return oA(Met(!0),[n,a])}function pot(n,a){return oA(Fet(!0),[n,a])}function mot(n,a){return oA(Bet(!0),[n,a])}function hot(n,a){return oA(Get(!0),[n,a])}function got(n,a){return oA(jet(!0),[n,a])}function yot(n,a,l){const u=`${a?"p":"P"}${l?"s":"S"}${n.id}`;let p=ir.get(u);if(!p){const y=co();y.set("name",EE("name",n)),y.set("private",EE("private",a?Pe:it)),y.set("static",EE("static",l?Pe:it)),p=Ps(void 0,y,rt,rt,rt),ir.set(u,p)}return p}function KDe(n,a,l){const u=Sc(n),p=Oi(n.name),y=p?Qf(Mr(n.name)):sy(n.name),A=uc(n)?_ot(a,l):Z_(n)?pot(a,l):c_(n)?mot(a,l):_f(n)?hot(a,l):ro(n)?got(a,l):D.failBadSyntaxKind(n),R=yot(y,p,u);return Do([A,R])}function vot(n,a){return oA(Uet(!0),[n,a])}function bot(n,a){return oA(Vet(!0),[n,a])}function Eot(n,a){const l=up("this",n),u=up("value",a);return ase(void 0,l,[u],a,void 0,1)}function zoe(n,a,l){const u=up("target",n),p=up("context",a),y=Zr([l,Rt]);return _R(void 0,void 0,[u,p],y)}function Tot(n){const{parent:a}=n,l=Jr(a);if(!l.decoratorSignature)switch(l.decoratorSignature=Ys,a.kind){case 260:case 228:{const p=or(Ir(a)),y=fot(p);l.decoratorSignature=zoe(p,y,p);break}case 171:case 174:case 175:{const u=a;if(!_i(u.parent))break;const p=uc(u)?JE(Wp(u)):WS(u),y=Sc(u)?or(Ir(u.parent)):Qu(Ir(u.parent)),A=Z_(u)?CRe(p):c_(u)?LRe(p):p,R=KDe(u,y,p),F=Z_(u)?CRe(p):c_(u)?LRe(p):p;l.decoratorSignature=zoe(A,R,F);break}case 169:{const u=a;if(!_i(u.parent))break;const p=WS(u),y=Sc(u)?or(Ir(u.parent)):Qu(Ir(u.parent)),A=Jm(u)?vot(y,p):He,R=KDe(u,y,p),F=Jm(u)?bot(y,p):Eot(y,p);l.decoratorSignature=zoe(A,R,F);break}}return l.decoratorSignature===Ys?void 0:l.decoratorSignature}function Sot(n){const{parent:a}=n,l=Jr(a);if(!l.decoratorSignature)switch(l.decoratorSignature=Ys,a.kind){case 260:case 228:{const p=or(Ir(a)),y=up("target",p);l.decoratorSignature=_R(void 0,void 0,[y],Zr([p,Rt]));break}case 166:{const u=a;if(!Yl(u.parent)&&!(uc(u.parent)||c_(u.parent)&&_i(u.parent.parent))||V1(u.parent)===u)break;const p=V1(u.parent)?u.parent.parameters.indexOf(u)-1:u.parent.parameters.indexOf(u);D.assert(p>=0);const y=Yl(u.parent)?or(Ir(u.parent.parent)):SNe(u.parent),A=Yl(u.parent)?He:xNe(u.parent),R=qp(p),F=up("target",y),J=up("propertyKey",A),Q=up("parameterIndex",R);l.decoratorSignature=_R(void 0,void 0,[F,J,Q],Rt);break}case 171:case 174:case 175:case 169:{const u=a;if(!_i(u.parent))break;const p=SNe(u),y=up("target",p),A=xNe(u),R=up("propertyKey",A),F=ro(u)?Rt:MIe(WS(u));if(M!==0&&(!ro(a)||Jm(a))){const Q=MIe(WS(u)),ge=up("descriptor",Q);l.decoratorSignature=_R(void 0,void 0,[y,R,ge],Zr([F,Rt]))}else l.decoratorSignature=_R(void 0,void 0,[y,R],Zr([F,Rt]));break}}return l.decoratorSignature===Ys?void 0:l.decoratorSignature}function qoe(n){return re?Sot(n):Tot(n)}function L4(n){const a=zP(!0);return a!==Lo?(n=_y(sI(n))||he,oy(a,[n])):he}function XDe(n){const a=OIe(!0);return a!==Lo?(n=_y(sI(n))||he,oy(a,[n])):he}function I4(n,a){const l=L4(a);return l===he?(Ke(n,hf(n)?_.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:_.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Ce):(qie(!0)||Ke(n,hf(n)?_.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:_.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),l)}function xot(n){const a=ns(0,"NewTargetExpression"),l=ns(4,"target",8);l.parent=a,l.links.type=n;const u=co([l]);return a.members=u,Ps(a,u,rt,rt,rt)}function oj(n,a){if(!n.body)return Ce;const l=Jc(n),u=(l&2)!==0,p=(l&1)!==0;let y,A,R,F=Rt;if(n.body.kind!==238)y=nc(n.body,a&&a&-9),u&&(y=sI(fR(y,!1,n,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(p){const J=tRe(n,a);J?J.length>0&&(y=Zr(J,2)):F=gt;const{yieldTypes:Q,nextTypes:ge}=Aot(n,a);A=kt(Q)?Zr(Q,2):void 0,R=kt(ge)?Do(ge):void 0}else{const J=tRe(n,a);if(!J)return l&2?I4(n,gt):gt;if(J.length===0)return l&2?I4(n,Rt):Rt;y=Zr(J,2)}if(y||A||R){if(A&&kV(n,A,3),y&&kV(n,y,1),R&&kV(n,R,2),y&&vp(y)||A&&vp(A)||R&&vp(R)){const J=_oe(n),Q=J?J===Wp(n)?p?void 0:y:jV(vs(J),n,void 0):void 0;p?(A=Rae(A,Q,0,u),y=Rae(y,Q,1,u),R=Rae(R,Q,2,u)):y=Ont(y,Q,u)}A&&(A=sf(A)),y&&(y=sf(y)),R&&(R=sf(R))}return p?YDe(A||gt,y||F,R||Fwe(2,n)||he,u):u?L4(y||F):y||F}function YDe(n,a,l,u){const p=u?xt:pn,y=p.getGlobalGeneratorType(!1);if(n=p.resolveIterationType(n,void 0)||he,a=p.resolveIterationType(a,void 0)||he,l=p.resolveIterationType(l,void 0)||he,y===Lo){const A=p.getGlobalIterableIteratorType(!1),R=A!==Lo?HRe(A,p):void 0,F=R?R.returnType:we,J=R?R.nextType:He;return Ao(a,F)&&Ao(J,l)?A!==Lo?FD(A,[n]):(p.getGlobalIterableIteratorType(!0),fa):(p.getGlobalGeneratorType(!0),fa)}return FD(y,[n,a,l])}function Aot(n,a){const l=[],u=[],p=(Jc(n)&2)!==0;return Afe(n.body,y=>{const A=y.expression?ha(y.expression,a):Ze;v_(l,$De(y,A,we,p));let R;if(y.asteriskToken){const F=hj(A,p?19:17,y.expression);R=F&&F.nextType}else R=_d(y,void 0);R&&v_(u,R)}),{yieldTypes:l,nextTypes:u}}function $De(n,a,l,u){const p=n.expression||n,y=n.asteriskToken?Av(u?19:17,a,l,p):a;return u?sT(y,p,n.asteriskToken?_.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:_.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):y}function QDe(n,a,l){let u=0;for(let p=0;p<l.length;p++){const y=p<n||p>=a?l[p]:void 0;u|=y!==void 0?mF.get(y)||32768:0}return u}function ZDe(n){const a=Jr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const l=Cot(n);a.isExhaustive===0&&(a.isExhaustive=l)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function Cot(n){if(n.expression.kind===218){const u=vwe(n);if(!u)return!1;const p=hv(nc(n.expression.expression)),y=QDe(0,0,u);return p.flags&3?(556800&y)===556800:!lg(p,A=>(Mu(A)&y)===y)}const a=nc(n.expression);if(!WD(a))return!1;const l=NV(n);return!l.length||kt(l,Dnt)?!1:Irt(Zs(a,xd),l)}function eRe(n){return n.endFlowNode&&f4(n.endFlowNode)}function tRe(n,a){const l=Jc(n),u=[];let p=eRe(n),y=!1;if(AT(n.body,A=>{const R=A.expression;if(R){let F=nc(R,a&&a&-9);l&2&&(F=sI(fR(F,!1,n,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),F.flags&131072&&(y=!0),v_(u,F)}else p=!0}),!(u.length===0&&!p&&(y||Lot(n))))return W&&u.length&&p&&!(Kp(n)&&u.some(A=>A.symbol===n.symbol))&&v_(u,He),u}function Lot(n){switch(n.kind){case 215:case 216:return!0;case 171:return n.parent.kind===207;default:return!1}}function Joe(n,a){i(l);return;function l(){const u=Jc(n),p=a&&gj(a,u);if(p&&gl(p,16385)||n.kind===170||kl(n.body)||n.body.kind!==238||!eRe(n))return;const y=n.flags&512,A=Cp(n)||n;if(p&&p.flags&131072)Ke(A,_.A_function_returning_never_cannot_have_a_reachable_end_point);else if(p&&!y)Ke(A,_.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(p&&W&&!Ao(He,p))Ke(A,_.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if($.noImplicitReturns){if(!p){if(!y)return;const R=vs(Wp(n));if(YRe(n,R))return}Ke(A,_.Not_all_code_paths_return_a_value)}}}function nRe(n,a){if(D.assert(n.kind!==171||q_(n)),fI(n),Us(n)&&cI(n,n.name),a&&a&4&&F_(n)){if(!Cp(n)&&!S7(n)){const u=eR(n);if(u&&ZE(vs(u))){const p=Jr(n);if(p.contextFreeType)return p.contextFreeType;const y=oj(n,a),A=mh(void 0,void 0,void 0,rt,y,void 0,0,0),R=Ps(n.symbol,ne,[A],rt,rt);return R.objectFlags|=262144,p.contextFreeType=R}}return Ca}return!Ij(n)&&n.kind===215&&kse(n),Iot(n,a),or(Ir(n))}function Iot(n,a){const l=Jr(n);if(!(l.flags&64)){const u=eR(n);if(!(l.flags&64)){l.flags|=64;const p=tu(za(or(Ir(n)),0));if(!p)return;if(F_(n))if(u){const y=jS(n);let A;if(a&&a&2){cot(p,u,y);const R=iR(u);R&&R.flags&262144&&(A=fA(u,y.nonFixingMapper))}A||(A=y?fA(u,y.mapper):u),uot(p,A)}else dot(p);if(u&&!iA(n)&&!p.resolvedReturnType){const y=oj(n,a);p.resolvedReturnType||(p.resolvedReturnType=y)}lR(n)}}}function kot(n){D.assert(n.kind!==171||q_(n));const a=Jc(n),l=iA(n);if(Joe(n,l),n.body)if(Cp(n)||vs(Wp(n)),n.body.kind===238)yo(n.body);else{const u=ha(n.body),p=l&&gj(l,a);if(p)if((a&3)===2){const y=fR(u,!1,n.body,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Tv(y,p,n.body,n.body)}else Tv(u,p,n.body,n.body)}}function sj(n,a,l,u=!1){if(!Ao(a,ho)){const p=u&&uR(a);return h0(n,!!p&&Ao(p,ho),l),!1}return!0}function wot(n){if(!io(n)||!Tx(n))return!1;const a=nc(n.arguments[2]);if(vc(a,"value")){const p=fo(a,"writable"),y=p&&or(p);if(!y||y===it||y===K)return!0;if(p&&p.valueDeclaration&&$c(p.valueDeclaration)){const A=p.valueDeclaration.initializer,R=ha(A);if(R===it||R===K)return!0}return!1}return!fo(a,"set")}function Ep(n){return!!(Dl(n)&8||n.flags&4&&s_(n)&64||n.flags&3&&JV(n)&2||n.flags&98304&&!(n.flags&65536)||n.flags&8||kt(n.declarations,wot))}function rRe(n,a,l){var u,p;if(l===0)return!1;if(Ep(a)){if(a.flags&4&&dl(n)&&n.expression.kind===108){const y=Mf(n);if(!(y&&(y.kind===173||Kp(y))))return!0;if(a.valueDeclaration){const A=br(a.valueDeclaration),R=y.parent===a.valueDeclaration.parent,F=y===a.valueDeclaration.parent,J=A&&((u=a.parent)==null?void 0:u.valueDeclaration)===y.parent,Q=A&&((p=a.parent)==null?void 0:p.valueDeclaration)===y;return!(R||F||J||Q)}}return!0}if(dl(n)){const y=Ws(n.expression);if(y.kind===79){const A=Jr(y).resolvedSymbol;if(A.flags&2097152){const R=Ed(A);return!!R&&R.kind===271}}}return!1}function oR(n,a,l){const u=Cu(n,7);return u.kind!==79&&!dl(u)?(Ke(n,a),!1):u.flags&32?(Ke(n,l),!1):!0}function Dot(n){ha(n.expression);const a=Ws(n.expression);if(!dl(a))return Ke(a,_.The_operand_of_a_delete_operator_must_be_a_property_reference),Re;Fr(a)&&Oi(a.name)&&Ke(a,_.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const l=Jr(a),u=Vp(l.resolvedSymbol);return u&&(Ep(u)&&Ke(a,_.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Rot(a,u)),Re}function Rot(n,a){const l=or(a);W&&!(l.flags&131075)&&!(ze?a.flags&16777216:Mu(l)&16777216)&&Ke(n,_.The_operand_of_a_delete_operator_must_be_optional)}function Not(n){return ha(n.expression),IL}function Oot(n){return ha(n.expression),Ze}function Pot(n){const a=P3(n);if(a&&Rl(a))Ke(n,_.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(n.flags&32768))if(M3(n)){const l=er(n);if(!d1(l)){let u;if(!bx(l,$)){u!=null||(u=ky(l,n.pos));const p=Mc(l,u.start,u.length,_.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);Zo.add(p)}switch(de){case 100:case 199:if(l.impliedNodeFormat===1){u!=null||(u=ky(l,n.pos)),Zo.add(Mc(l,u.start,u.length,_.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(M>=4)break;default:u!=null||(u=ky(l,n.pos)),Zo.add(Mc(l,u.start,u.length,_.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}}else{const l=er(n);if(!d1(l)){const u=ky(l,n.pos),p=Mc(l,u.start,u.length,_.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(a&&a.kind!==173&&!(Jc(a)&2)){const y=Nr(a,_.Did_you_mean_to_mark_this_function_as_async);Yo(p,y)}Zo.add(p)}}loe(n)&&Ke(n,_.await_expressions_cannot_be_used_in_a_parameter_initializer)}function Mot(n){i(()=>Pot(n));const a=ha(n.expression),l=fR(a,!0,n,_.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l===a&&!rs(l)&&!(a.flags&3)&&Ky(!1,Nr(n,_.await_has_no_effect_on_the_type_of_this_expression)),l}function Fot(n){const a=ha(n.operand);if(a===ft)return ft;switch(n.operand.kind){case 8:switch(n.operator){case 40:return dA(qp(-n.operand.text));case 39:return dA(qp(+n.operand.text))}break;case 9:if(n.operator===40)return dA(lV({negative:!0,base10Value:Bk(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return Jp(a,n.operand),k4(a,12288)&&Ke(n.operand,_.The_0_operator_cannot_be_applied_to_type_symbol,vo(n.operator)),n.operator===39?(k4(a,2112)&&Ke(n.operand,_.Operator_0_cannot_be_applied_to_type_1,vo(n.operator),ke(Sv(a))),mt):Koe(a);case 53:bA(n.operand);const l=Mu(a)&12582912;return l===4194304?it:l===8388608?Pe:Re;case 45:case 46:return sj(n.operand,Jp(a,n.operand),_.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&oR(n.operand,_.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Koe(a)}return Ce}function Bot(n){const a=ha(n.operand);return a===ft?ft:(sj(n.operand,Jp(a,n.operand),_.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&oR(n.operand,_.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Koe(a))}function Koe(n){return gl(n,2112)?Vc(n,3)||gl(n,296)?ho:Wt:mt}function k4(n,a){if(gl(n,a))return!0;const l=hv(n);return!!l&&gl(l,a)}function gl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const l=n.types;for(const u of l)if(gl(u,a))return!0}return!1}function Vc(n,a,l){return n.flags&a?!0:l&&n.flags&114691?!1:!!(a&296)&&Ao(n,mt)||!!(a&2112)&&Ao(n,Wt)||!!(a&402653316)&&Ao(n,ue)||!!(a&528)&&Ao(n,Re)||!!(a&16384)&&Ao(n,Rt)||!!(a&131072)&&Ao(n,gt)||!!(a&65536)&&Ao(n,Sn)||!!(a&32768)&&Ao(n,He)||!!(a&4096)&&Ao(n,q)||!!(a&67108864)&&Ao(n,li)}function w4(n,a,l){return n.flags&1048576?Zn(n.types,u=>w4(u,a,l)):Vc(n,a,l)}function Xoe(n){return!!(ri(n)&16)&&!!n.symbol&&Yoe(n.symbol)}function Yoe(n){return(n.flags&128)!==0}function Got(n,a,l,u){return l===ft||u===ft?ft:(!xs(l)&&w4(l,134348796)&&Ke(n,_.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),xs(u)||xj(u)||Ev(u,pl)||Ke(a,_.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Re)}function Uot(n){return lg(n,a=>a===Zl||!!(a.flags&2097152)&&og(hv(a)))}function Vot(n,a,l,u){if(l===ft||u===ft)return ft;if(Oi(n)){if(M<99&&Ec(n,2097152),!Jr(n).resolvedSymbol&&wc(n)){const p=Coe(n,u.symbol,!0);_De(n,u,p)}}else fd(Jp(l,n),ki,n);return fd(Jp(u,a),li,a)&&Uot(u)&&Ke(a,_.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,ke(u)),Re}function jot(n,a,l){const u=n.properties;if(W&&u.length===0)return Jp(a,n);for(let p=0;p<u.length;p++)iRe(n,a,p,u,l);return a}function iRe(n,a,l,u,p=!1){const y=n.properties,A=y[l];if(A.kind===299||A.kind===300){const R=A.name,F=sy(R);if(ng(F)){const ge=Sm(F),Ne=fo(a,ge);Ne&&(E4(Ne,A,p),Toe(A,!1,!0,a,Ne))}const J=jd(a,F,32,R),Q=$e(A,J);return oT(A.kind===300?A:A.initializer,Q)}else if(A.kind===301)if(l<y.length-1)Ke(A,_.A_rest_element_must_be_last_in_a_destructuring_pattern);else{M<99&&Ec(A,4);const R=[];if(u)for(const J of u)n2(J)||R.push(J.name);const F=$2(a,R,a.symbol);return zS(u,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),oT(A.expression,F)}else Ke(A,_.Property_assignment_expected)}function Hot(n,a,l){const u=n.elements;M<2&&$.downlevelIteration&&Ec(n,512);const p=Av(193,a,He,n)||Ce;let y=$.noUncheckedIndexedAccess?void 0:p;for(let A=0;A<u.length;A++){let R=p;n.elements[A].kind===227&&(R=y=y!=null?y:Av(65,a,He,n)||Ce),aRe(n,a,A,R,l)}return a}function aRe(n,a,l,u,p){const y=n.elements,A=y[l];if(A.kind!==229){if(A.kind!==227){const R=qp(l);if(V0(a)){const F=32|(ZL(A)?16:0),J=vv(a,R,F,S4(A,R))||Ce,Q=ZL(A)?g_(J,524288):J,ge=$e(A,Q);return oT(A,ge,p)}return oT(A,u,p)}if(l<y.length-1)Ke(A,_.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const R=A.expression;if(R.kind===223&&R.operatorToken.kind===63)Ke(R.operatorToken,_.A_rest_element_cannot_have_an_initializer);else{zS(n.elements,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);const F=gh(a,Bo)?Zs(a,J=>jL(J,l)):Ou(u);return oT(R,F,p)}}}}function oT(n,a,l,u){let p;if(n.kind===300){const y=n;y.objectAssignmentInitializer&&(W&&!(Mu(ha(y.objectAssignmentInitializer))&16777216)&&(a=g_(a,524288)),Jot(y.name,y.equalsToken,y.objectAssignmentInitializer,l)),p=n.name}else p=n;return p.kind===223&&p.operatorToken.kind===63&&(Oe(p,l),p=p.left,W&&(a=g_(a,524288))),p.kind===207?jot(p,a,u):p.kind===206?Hot(p,a,l):Wot(p,a,l)}function Wot(n,a,l){const u=ha(n,l),p=n.parent.kind===301?_.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:_.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,y=n.parent.kind===301?_.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:_.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return oR(n,p,y)&&Tv(a,u,n,n),HA(n)&&Ec(n.parent,1048576),a}function D4(n){switch(n=Ws(n),n.kind){case 79:case 10:case 13:case 212:case 225:case 14:case 8:case 9:case 110:case 95:case 104:case 155:case 215:case 228:case 216:case 206:case 207:case 218:case 232:case 282:case 281:return!0;case 224:return D4(n.whenTrue)&&D4(n.whenFalse);case 223:return wy(n.operatorToken.kind)?!1:D4(n.left)&&D4(n.right);case 221:case 222:switch(n.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 219:case 213:case 231:default:return!1}}function $oe(n,a){return(a.flags&98304)!==0||hV(n,a)}function zot(){const n=k5(a,l,u,p,y,A);return(Ne,De)=>{const _t=n(Ne,De);return D.assertIsDefined(_t),_t};function a(Ne,De,_t){return De?(De.stackIndex++,De.skip=!1,J(De,void 0),ge(De,void 0)):De={checkMode:_t,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},fr(Ne)&&Ex(Ne)?(De.skip=!0,ge(De,ha(Ne.right,_t)),De):(qot(Ne),Ne.operatorToken.kind===63&&(Ne.left.kind===207||Ne.left.kind===206)&&(De.skip=!0,ge(De,oT(Ne.left,ha(Ne.right,_t),_t,Ne.right.kind===108))),De)}function l(Ne,De,_t){if(!De.skip)return R(De,Ne)}function u(Ne,De,_t){if(!De.skip){const Bt=Q(De);D.assertIsDefined(Bt),J(De,Bt),ge(De,void 0);const Fn=Ne.kind;if(uO(Fn)){let An=_t.parent;for(;An.kind===214||dO(An);)An=An.parent;(Fn===55||jT(An))&&use(_t.left,Bt,jT(An)?An.thenStatement:void 0),GRe(Bt,_t.left)}}}function p(Ne,De,_t){if(!De.skip)return R(De,Ne)}function y(Ne,De){let _t;if(De.skip)_t=Q(De);else{const Bt=F(De);D.assertIsDefined(Bt);const Fn=Q(De);D.assertIsDefined(Fn),_t=oRe(Ne.left,Ne.operatorToken,Ne.right,Bt,Fn,Ne)}return De.skip=!1,J(De,void 0),ge(De,void 0),De.stackIndex--,_t}function A(Ne,De,_t){return ge(Ne,De),Ne}function R(Ne,De){if(br(De))return De;ge(Ne,ha(De,Ne.checkMode))}function F(Ne){return Ne.typeStack[Ne.stackIndex]}function J(Ne,De){Ne.typeStack[Ne.stackIndex]=De}function Q(Ne){return Ne.typeStack[Ne.stackIndex+1]}function ge(Ne,De){Ne.typeStack[Ne.stackIndex+1]=De}}function qot(n){const{left:a,operatorToken:l,right:u}=n;l.kind===60&&(br(a)&&(a.operatorToken.kind===56||a.operatorToken.kind===55)&&En(a,_._0_and_1_operations_cannot_be_mixed_without_parentheses,vo(a.operatorToken.kind),vo(l.kind)),br(u)&&(u.operatorToken.kind===56||u.operatorToken.kind===55)&&En(u,_._0_and_1_operations_cannot_be_mixed_without_parentheses,vo(u.operatorToken.kind),vo(l.kind)))}function Jot(n,a,l,u,p){const y=a.kind;if(y===63&&(n.kind===207||n.kind===206))return oT(n,ha(l,u),u,l.kind===108);let A;uO(y)?A=bA(n,u):A=ha(n,u);const R=ha(l,u);return oRe(n,a,l,A,R,p)}function oRe(n,a,l,u,p,y){const A=a.kind;switch(A){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(u===ft||p===ft)return ft;u=Jp(u,n),p=Jp(p,l);let hn;if(u.flags&528&&p.flags&528&&(hn=ge(a.kind))!==void 0)return Ke(y||a,_.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,vo(a.kind),vo(hn)),mt;{const sn=sj(n,u,_.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Un=sj(l,p,_.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let Jn;if(Vc(u,3)&&Vc(p,3)||!(gl(u,2112)||gl(p,2112)))Jn=mt;else if(R(u,p)){switch(A){case 49:case 72:Bt();break;case 42:case 67:M<3&&Ke(y,_.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Jn=Wt}else Bt(R),Jn=Ce;return sn&&Un&&Ne(Jn),Jn}case 39:case 64:if(u===ft||p===ft)return ft;!Vc(u,402653316)&&!Vc(p,402653316)&&(u=Jp(u,n),p=Jp(p,l));let xn;return Vc(u,296,!0)&&Vc(p,296,!0)?xn=mt:Vc(u,2112,!0)&&Vc(p,2112,!0)?xn=Wt:Vc(u,402653316,!0)||Vc(p,402653316,!0)?xn=ue:(xs(u)||xs(p))&&(xn=rs(u)||rs(p)?Ce:we),xn&&!Q(A)?xn:xn?(A===64&&Ne(xn),xn):(Bt((Un,Jn)=>Vc(Un,402655727)&&Vc(Jn,402655727)),we);case 29:case 31:case 32:case 33:return Q(A)&&(u=wae(Jp(u,n)),p=wae(Jp(p,l)),_t((sn,Un)=>{if(xs(sn)||xs(Un))return!0;const Jn=Ao(sn,ho),ei=Ao(Un,ho);return Jn&&ei||!Jn&&!ei&&QP(sn,Un)})),Re;case 34:case 35:case 36:case 37:if(pz(n)||pz(l)){const sn=A===34||A===36;Ke(y,_.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,sn?"false":"true")}return An(y,A,n,l),_t((sn,Un)=>$oe(sn,Un)||$oe(Un,sn)),Re;case 102:return Got(n,l,u,p);case 101:return Vot(n,l,u,p);case 55:case 76:{const sn=Mu(u)&4194304?Zr([Fnt(W?u:Sv(p)),p]):u;return A===76&&Ne(p),sn}case 56:case 75:{const sn=Mu(u)&8388608?Zr([dy(Wke(u)),p],2):u;return A===75&&Ne(p),sn}case 60:case 77:{const sn=Mu(u)&262144?Zr([dy(u),p],2):u;return A===77&&Ne(p),sn}case 63:const yr=br(n.parent)?wl(n.parent):0;return F(yr,p),De(yr)?((!(p.flags&524288)||yr!==2&&yr!==6&&!ag(p)&&!Qae(p)&&!(ri(p)&1))&&Ne(p),u):(Ne(p),p);case 27:if(!$.allowUnreachableCode&&D4(n)&&!J(n.parent)){const sn=er(n),Un=sn.text,Jn=Xo(Un,n.pos);sn.parseDiagnostics.some(ai=>ai.code!==_.JSX_expressions_must_have_one_parent_element.code?!1:ZW(ai,Jn))||Ke(n,_.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return p;default:return D.fail()}function R(hn,xn){return Vc(hn,2112)&&Vc(xn,2112)}function F(hn,xn){if(hn===2)for(const yr of mv(xn)){const sn=or(yr);if(sn.symbol&&sn.symbol.flags&32){const Un=yr.escapedName,Jn=hl(yr.valueDeclaration,Un,788968,void 0,Un,!1);Jn!=null&&Jn.declarations&&Jn.declarations.some(CK)&&(Bb(Jn,_.Duplicate_identifier_0,ra(Un),yr),Bb(yr,_.Duplicate_identifier_0,ra(Un),Jn))}}}function J(hn){return hn.parent.kind===214&&L_(hn.left)&&hn.left.text==="0"&&(io(hn.parent.parent)&&hn.parent.parent.expression===hn.parent||hn.parent.parent.kind===212)&&(dl(hn.right)||je(hn.right)&&hn.right.escapedText==="eval")}function Q(hn){const xn=k4(u,12288)?n:k4(p,12288)?l:void 0;return xn?(Ke(xn,_.The_0_operator_cannot_be_applied_to_type_symbol,vo(hn)),!1):!0}function ge(hn){switch(hn){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Ne(hn){wy(A)&&i(xn);function xn(){if(oR(n,_.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,_.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let yr;if(ze&&Fr(n)&&gl(hn,32768)){const sn=vc(Fu(n.expression),n.name.escapedText);yV(hn,sn)&&(yr=_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Tv(hn,u,n,l,yr)}}}function De(hn){var xn;switch(hn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const yr=nf(n),sn=Ex(l);return!!sn&&Is(sn)&&!!((xn=yr==null?void 0:yr.exports)!=null&&xn.size);default:return!1}}function _t(hn){return hn(u,p)?!1:(Bt(hn),!0)}function Bt(hn){let xn=!1;const yr=y||a;if(hn){const ai=_y(u),_a=_y(p);xn=!(ai===u&&_a===p)&&!!(ai&&_a)&&hn(ai,_a)}let sn=u,Un=p;!xn&&hn&&([sn,Un]=Kot(u,p,hn));const[Jn,ei]=an(sn,Un);Fn(yr,xn,Jn,ei)||h0(yr,xn,_.Operator_0_cannot_be_applied_to_types_1_and_2,vo(a.kind),Jn,ei)}function Fn(hn,xn,yr,sn){switch(a.kind){case 36:case 34:case 37:case 35:return h0(hn,xn,_.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,yr,sn);default:return}}function An(hn,xn,yr,sn){const Un=Xn(Ws(yr)),Jn=Xn(Ws(sn));if(Un||Jn){const ei=Ke(hn,_.This_condition_will_always_return_0,vo(xn===36||xn===34?95:110));if(Un&&Jn)return;const ai=xn===37||xn===35?vo(53):"",_a=Un?sn:yr,Za=Ws(_a);Yo(ei,Nr(_a,_.Did_you_mean_0,`${ai}Number.isNaN(${Xl(Za)?Pf(Za):"..."})`))}}function Xn(hn){if(je(hn)&&hn.escapedText==="NaN"){const xn=Het();return!!xn&&xn===B_(hn)}return!1}}function Kot(n,a,l){let u=n,p=a;const y=Sv(n),A=Sv(a);return l(y,A)||(u=y,p=A),[u,p]}function Xot(n){i(Ne);const a=Mf(n);if(!a)return we;const l=Jc(a);if(!(l&1))return we;const u=(l&2)!==0;n.asteriskToken&&(u&&M<99&&Ec(n,26624),!u&&M<2&&$.downlevelIteration&&Ec(n,256));const p=iA(a),y=p&&XRe(p,u),A=y&&y.yieldType||we,R=y&&y.nextType||we,F=u?sT(R)||we:R,J=n.expression?ha(n.expression):Ze,Q=$De(n,J,F,u);if(p&&Q&&Tv(Q,A,n.expression||n,n.expression),n.asteriskToken)return fse(u?19:17,1,J,n.expression)||we;if(p)return u1(2,p,u)||we;let ge=Fwe(2,a);return ge||(ge=we,i(()=>{if(xe&&!ppe(n)){const De=_d(n,void 0);(!De||xs(De))&&Ke(n,_.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),ge;function Ne(){n.flags&8192||jc(n,_.A_yield_expression_is_only_allowed_in_a_generator_body),loe(n)&&Ke(n,_.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Yot(n,a){const l=bA(n.condition);use(n.condition,l,n.whenTrue);const u=ha(n.whenTrue,a),p=ha(n.whenFalse,a);return Zr([u,p],2)}function sRe(n){const a=n.parent;return Jd(a)&&sRe(a)||fl(a)&&a.argumentExpression===n}function $ot(n){const a=[n.head.text],l=[];for(const u of n.templateSpans){const p=ha(u.expression);k4(p,12288)&&Ke(u.expression,_.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(u.literal.text),l.push(Ao(p,So)?p:ue)}return aI(n)||sRe(n)||lg(_d(n,void 0)||he,Qot)?KE(a,l):ue}function Qot(n){return!!(n.flags&134217856||n.flags&58982400&&gl(Zu(n)||he,402653316))}function Zot(n){return $1(n)&&!Qx(n.parent)?n.parent.parent:n}function yA(n,a,l,u){const p=Zot(n);h4(p,a,!1),xit(p,l);const y=ha(n,u|1|(l?2:0));l&&l.intraExpressionInferenceSites&&(l.intraExpressionInferenceSites=void 0);const A=gl(y,2944)&&lj(y,jV(a,n,void 0))?xd(y):y;return Ait(),ZD(),A}function nc(n,a){if(a)return ha(n,a);const l=Jr(n);if(!l.resolvedType){const u=Tn,p=Sa;Tn=Wn,Sa=void 0,l.resolvedType=ha(n,a),Sa=p,Tn=u}return l.resolvedType}function lRe(n){return n=Ws(n,!0),n.kind===213||n.kind===231||fw(n)}function sR(n,a,l){const u=PN(n);if(fr(n)){const y=A7(n);if(y)return Voe(u,y,a)}const p=ese(u)||(l?yA(u,l,void 0,a||0):nc(u,a));return Fa(n)&&n.name.kind===204&&Bo(p)&&!p.target.hasRestElement&&P0(p)<n.name.elements.length?est(p,n.name):p}function est(n,a){const l=a.elements,u=ys(n).slice(),p=n.target.elementFlags.slice();for(let y=P0(n);y<l.length;y++){const A=l[y];(y<l.length-1||!(A.kind===205&&A.dotDotDotToken))&&(u.push(!Fc(A)&&ZL(A)?uv(A,!1,!1):we),p.push(2),!Fc(A)&&!ZL(A)&&j0(A,we))}return zp(u,p,n.target.readonly)}function Qoe(n,a){const l=xp(n)&2||L3(n)?a:o1(a);if(fr(n)){if(Gke(l))return j0(n,we),we;if(SV(l))return j0(n,Dt),Dt}return l}function lj(n,a){if(a){if(a.flags&3145728){const l=a.types;return kt(l,u=>lj(n,u))}if(a.flags&58982400){const l=Zu(a)||he;return gl(l,4)&&gl(n,128)||gl(l,8)&&gl(n,256)||gl(l,64)&&gl(n,2048)||gl(l,4096)&&gl(n,8192)||lj(n,l)}return!!(a.flags&406847616&&gl(n,128)||a.flags&256&&gl(n,256)||a.flags&2048&&gl(n,2048)||a.flags&512&&gl(n,512)||a.flags&8192&&gl(n,8192))}return!1}function aI(n){const a=n.parent;return bT(a)&&vg(a.type)||fw(a)&&vg(A5(a))||Uoe(n)&&tst(n)||(Jd(a)||zu(a)||Fh(a))&&aI(a)||($c(a)||u_(a)||iw(a))&&aI(a.parent)}function tst(n){const a=_d(n,0);return!!a&&lg(a,UP)}function oI(n,a,l){const u=ha(n,a,l);return aI(n)||Ife(n)?xd(u):lRe(n)?u:Dae(u,jV(_d(n,void 0),n,void 0))}function cRe(n,a){return n.name.kind===164&&fy(n.name),oI(n.initializer,a)}function uRe(n,a){FNe(n),n.name.kind===164&&fy(n.name);const l=nRe(n,a);return dRe(n,l,a)}function dRe(n,a,l){if(l&&l&10){const u=tR(a,0,!0),p=tR(a,1,!0),y=u||p;if(y&&y.typeParameters){const A=l1(n,2);if(A){const R=tR(dy(A),u?0:1,!1);if(R&&!R.typeParameters){if(l&8)return fRe(n,l),Ca;const F=jS(n),J=F.signature&&vs(F.signature),Q=J&&TDe(J);if(Q&&!Q.typeParameters&&!Zn(F.inferences,vA)){const ge=ast(F,y.typeParameters),Ne=Fie(y,ge),De=zt(F.inferences,_t=>Gae(_t.typeParameter));if(Mae(Ne,R,(_t,Bt)=>{sg(De,_t,Bt,0,!0)}),kt(De,vA)&&(Fae(Ne,R,(_t,Bt)=>{sg(De,_t,Bt)}),!rst(F.inferences,De)))return ist(F.inferences,De),F.inferredTypeParameters=ya(F.inferredTypeParameters,ge),JE(Ne)}return JE(SDe(y,R,F))}}}}return a}function fRe(n,a){if(a&2){const l=jS(n);l.flags|=4}}function vA(n){return!!(n.candidates||n.contraCandidates)}function nst(n){return!!(n.candidates||n.contraCandidates||sIe(n.typeParameter))}function rst(n,a){for(let l=0;l<n.length;l++)if(vA(n[l])&&vA(a[l]))return!0;return!1}function ist(n,a){for(let l=0;l<n.length;l++)!vA(n[l])&&vA(a[l])&&(n[l]=a[l])}function ast(n,a){const l=[];let u,p;for(const y of a){const A=y.symbol.escapedName;if(Zoe(n.inferredTypeParameters,A)||Zoe(l,A)){const R=ost(ya(n.inferredTypeParameters,l),A),F=ns(262144,R),J=Gd(F);J.target=y,u=Bn(u,y),p=Bn(p,J),l.push(J)}else l.push(y)}if(p){const y=Ad(u,p);for(const A of p)A.mapper=y}return l}function Zoe(n,a){return kt(n,l=>l.symbol.escapedName===a)}function ost(n,a){let l=a.length;for(;l>1&&a.charCodeAt(l-1)>=48&&a.charCodeAt(l-1)<=57;)l--;const u=a.slice(0,l);for(let p=1;;p++){const y=u+p;if(!Zoe(n,y))return y}}function _Re(n){const a=HS(n);if(a&&!a.typeParameters)return vs(a)}function sst(n){const a=ha(n.expression),l=zD(a,n.expression),u=_Re(a);return u&&CV(u,n,l!==a)}function Fu(n){const a=ese(n);if(a)return a;if(n.flags&134217728&&Sa){const p=Sa[hs(n)];if(p)return p}const l=nr,u=ha(n);if(nr!==l){const p=Sa||(Sa=[]);p[hs(n)]=u,_pe(n,n.flags|134217728)}return u}function ese(n){let a=Ws(n,!0);if(fw(a)){const l=A5(a);if(!vg(l))return pi(l)}if(a=Ws(n),UC(a)){const l=ese(a.expression);return l?sT(l):void 0}if(io(a)&&a.expression.kind!==106&&!wd(a,!0)&&!MDe(a))return gT(a)?sst(a):_Re(tI(a.expression));if(bT(a)&&!vg(a.type))return pi(a.type);if(yT(n)||Pde(n))return ha(n)}function R4(n){const a=Jr(n);if(a.contextFreeType)return a.contextFreeType;h4(n,we,!1);const l=a.contextFreeType=ha(n,4);return ZD(),l}function ha(n,a,l){var u,p;(u=Si)==null||u.push(Si.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const y=G;G=n,I=0;const A=ust(n,a,l),R=dRe(n,A,a);return Xoe(R)&&lst(n,R),G=y,(p=Si)==null||p.pop(),R}function lst(n,a){n.parent.kind===208&&n.parent.expression===n||n.parent.kind===209&&n.parent.expression===n||(n.kind===79||n.kind===163)&&Tj(n)||n.parent.kind===183&&n.parent.exprName===n||n.parent.kind===278||Ke(n,_.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),Y_($)&&(D.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&16777216&&Ke(n,_.Cannot_access_ambient_const_enums_when_0_is_enabled,Vt))}function cst(n,a){if(Of(n)){if(xJ(n))return Voe(n.expression,AJ(n),a);if(fw(n)){const l=A5(n);return VDe(l,l,n.expression,a)}}return ha(n.expression,a)}function ust(n,a,l){const u=n.kind;if(o)switch(u){case 228:case 215:case 216:o.throwIfCancellationRequested()}switch(u){case 79:return Jrt(n,a);case 80:return sat(n);case 108:return p4(n);case 106:return ooe(n);case 104:return Er;case 14:case 10:return dA(Qf(n.text));case 8:return Nse(n),dA(qp(+n.text));case 9:return udt(n),dA(lV({negative:!1,base10Value:Bk(n.text)}));case 110:return Pe;case 95:return it;case 225:return $ot(n);case 13:return Hf;case 206:return qwe(n,a,l);case 207:return Vit(n,a);case 208:return sDe(n,a);case 163:return lDe(n,a);case 209:return Sat(n,a);case 210:if(n.expression.kind===100)return Zat(n);case 211:return Qat(n,a);case 212:return eot(n);case 214:return cst(n,a);case 228:return Ylt(n);case 215:case 216:return nRe(n,a);case 218:return Not(n);case 213:case 231:return tot(n);case 232:return rot(n);case 230:return jDe(n);case 235:return iot(n);case 233:return aot(n);case 217:return Dot(n);case 219:return Oot(n);case 220:return Mot(n);case 221:return Fot(n);case 222:return Bot(n);case 223:return Oe(n,a);case 224:return Yot(n,a);case 227:return Mit(n,a);case 229:return Ze;case 226:return Xot(n);case 234:return Fit(n);case 291:return eat(n,a);case 281:return zit(n);case 282:return Hit(n);case 285:return qit(n);case 289:return Kit(n,a);case 283:D.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ce}function pRe(n){vh(n),n.expression&&jc(n.expression,_.Type_expected),yo(n.constraint),yo(n.default);const a=WE(Ir(n));Zu(a),YZe(a)||Ke(n.default,_.Type_parameter_0_has_a_circular_default,ke(a));const l=Ru(a),u=qE(a);l&&u&&fd(u,Yf($i(l,i1(a,u)),u),n.default,_.Type_0_does_not_satisfy_the_constraint_1),fI(n),i(()=>uI(n.name,_.Type_parameter_name_cannot_be_0))}function dst(n){var a,l;if(ud(n.parent)||_i(n.parent)||um(n.parent)){const u=WE(Ir(n)),p=Aae(u)&98304;if(p){const y=Ir(n.parent);if(um(n.parent)&&!(ri(js(y))&48))Ke(n,_.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(p===32768||p===65536){(a=Si)==null||a.push(Si.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Pu(js(y)),id:Pu(u)});const A=t4(y,u,p===65536?vl:Ns),R=t4(y,u,p===65536?Ns:vl),F=u;V=u,fd(A,R,n,_.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),V=F,(l=Si)==null||l.pop()}}}}function mRe(n){vh(n),B4(n);const a=Mf(n);$r(n,16476)&&(a.kind===173&&E_(a.body)||Ke(n,_.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===173&&je(n.name)&&n.name.escapedText==="constructor"&&Ke(n.name,_.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&SJ(n)&&Ya(n.name)&&a.body&&Ke(n,_.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&je(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&Ke(n,_.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===173||a.kind===177||a.kind===182)&&Ke(n,_.A_constructor_cannot_have_a_this_parameter),a.kind===216&&Ke(n,_.An_arrow_function_cannot_have_a_this_parameter),(a.kind===174||a.kind===175)&&Ke(n,_.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Ya(n.name)&&!Ao(yp(or(n.symbol)),Yi)&&Ke(n,_.A_rest_parameter_must_be_of_an_array_type)}function fst(n){const a=_st(n);if(!a){Ke(n,_.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const l=Wp(a),u=p_(l);if(!u)return;yo(n.type);const{parameterName:p}=n;if(u.kind===0||u.kind===2)cV(p);else if(u.parameterIndex>=0){if(Lu(l)&&u.parameterIndex===l.parameters.length-1)Ke(p,_.A_type_predicate_cannot_reference_a_rest_parameter);else if(u.type){const y=()=>Ra(void 0,_.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);fd(u.type,or(l.parameters[u.parameterIndex]),n.type,void 0,y)}}else if(p){let y=!1;for(const{name:A}of a.parameters)if(Ya(A)&&hRe(A,p,u.parameterName)){y=!0;break}y||Ke(n.parameterName,_.Cannot_find_parameter_0,u.parameterName)}}function _st(n){switch(n.parent.kind){case 216:case 176:case 259:case 215:case 181:case 171:case 170:const a=n.parent;if(n===a.type)return a}}function hRe(n,a,l){for(const u of n.elements){if(Fc(u))continue;const p=u.name;if(p.kind===79&&p.escapedText===l)return Ke(a,_.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,l),!0;if((p.kind===204||p.kind===203)&&hRe(p,a,l))return!0}}function lR(n){n.kind===178?Fut(n):(n.kind===181||n.kind===259||n.kind===182||n.kind===176||n.kind===173||n.kind===177)&&Ij(n);const a=Jc(n);a&4||((a&3)===3&&M<99&&Ec(n,6144),(a&3)===2&&M<4&&Ec(n,64),a&3&&M<2&&Ec(n,128)),U4(Mv(n)),Jlt(n),Je(n.parameters,mRe),n.type&&yo(n.type),i(l);function l(){ult(n);const u=Cp(n);if(xe&&!u)switch(n.kind){case 177:Ke(n,_.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 176:Ke(n,_.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(u){const p=Jc(n);if((p&5)===1){const y=pi(u);if(y===Rt)Ke(u,_.A_generator_cannot_have_a_void_type_annotation);else{const A=u1(0,y,(p&2)!==0)||we,R=u1(1,y,(p&2)!==0)||A,F=u1(2,y,(p&2)!==0)||he,J=YDe(A,R,F,!!(p&2));fd(J,y,u)}}else(p&3)===2&&Wst(n,u)}n.kind!==178&&n.kind!==320&&xv(n)}}function pst(n){const a=new Map,l=new Map,u=new Map;for(const y of n.members)if(y.kind===173)for(const A of y.parameters)df(A,y)&&!Ya(A.name)&&p(a,A.name,A.name.escapedText,3);else{const A=Ja(y),R=y.name;if(!R)continue;const F=Oi(R),J=F&&A?16:0,Q=F?u:A?l:a,ge=R&&U1(R);if(ge)switch(y.kind){case 174:p(Q,R,ge,1|J);break;case 175:p(Q,R,ge,2|J);break;case 169:p(Q,R,ge,3|J);break;case 171:p(Q,R,ge,8|J);break}}function p(y,A,R,F){const J=y.get(R);if(J)if((J&16)!==(F&16))Ke(A,_.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,kc(A));else{const Q=!!(J&8),ge=!!(F&8);Q||ge?Q!==ge&&Ke(A,_.Duplicate_identifier_0,kc(A)):J&F&-17?Ke(A,_.Duplicate_identifier_0,kc(A)):y.set(R,J|F)}else y.set(R,F)}}function mst(n){for(const a of n.members){const l=a.name;if(Ja(a)&&l){const p=U1(l);switch(p){case"name":case"length":case"caller":case"arguments":case"prototype":const y=_.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,A=sv(Ir(n));Ke(l,y,p,A);break}}}}function gRe(n){const a=new Map;for(const l of n.members)if(l.kind===168){let u;const p=l.name;switch(p.kind){case 10:case 8:u=p.text;break;case 79:u=Mr(p);break;default:continue}a.get(u)?(Ke(Ia(l.symbol.valueDeclaration),_.Duplicate_identifier_0,u),Ke(l.name,_.Duplicate_identifier_0,u)):a.set(u,!0)}}function tse(n){if(n.kind===261){const l=Ir(n);if(l.declarations&&l.declarations.length>0&&l.declarations[0]!==n)return}const a=mIe(Ir(n));if(a!=null&&a.declarations){const l=new Map;for(const u of a.declarations)u.parameters.length===1&&u.parameters[0].type&&nT(pi(u.parameters[0].type),p=>{const y=l.get(Pu(p));y?y.declarations.push(u):l.set(Pu(p),{type:p,declarations:[u]})});l.forEach(u=>{if(u.declarations.length>1)for(const p of u.declarations)Ke(p,_.Duplicate_index_signature_for_type_0,ke(u.type))})}}function yRe(n){!vh(n)&&!adt(n)&&kj(n.name),B4(n),nse(n),$r(n,256)&&n.kind===169&&n.initializer&&Ke(n,_.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Rs(n.name))}function hst(n){return Oi(n.name)&&Ke(n,_.Private_identifiers_are_not_allowed_outside_class_bodies),yRe(n)}function gst(n){FNe(n)||kj(n.name),uc(n)&&n.asteriskToken&&je(n.name)&&Mr(n.name)==="constructor"&&Ke(n.name,_.Class_constructor_may_not_be_a_generator),DRe(n),$r(n,256)&&n.kind===171&&n.body&&Ke(n,_.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Rs(n.name)),Oi(n.name)&&!wc(n)&&Ke(n,_.Private_identifiers_are_not_allowed_outside_class_bodies),nse(n)}function nse(n){if(Oi(n.name)&&M<99){for(let a=zm(n);a;a=zm(a))Jr(a).flags|=4194304;if(qu(n.parent)){const a=roe(n.parent);a&&(Jr(n.name).flags|=32768,Jr(a).flags|=4096)}}}function yst(n){vh(n),Pa(n,yo)}function vst(n){lR(n),rdt(n)||idt(n),yo(n.body);const a=Ir(n),l=Il(a,n.kind);if(n===l&&dj(a),kl(n.body))return;i(p);return;function u(y){return ad(y)?!0:y.kind===169&&!Ja(y)&&!!y.initializer}function p(){const y=n.parent;if(G1(y)){ioe(n.parent,y);const A=Dwe(y),R=wwe(n.body);if(R){if(A&&Ke(R,_.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(ts($)!==99||!be)&&(kt(n.parent.members,u)||kt(n.parameters,J=>$r(J,16476))))if(!bst(R,n.body))Ke(R,_.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let J;for(const Q of n.body.statements){if(fu(Q)&&eC(Cu(Q.expression))){J=Q;break}if(vRe(Q))break}J===void 0&&Ke(n,_.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else A||Ke(n,_.Constructors_for_derived_classes_must_contain_a_super_call)}}}function bst(n,a){const l=jv(n.parent);return fu(l)&&l.parent===a}function vRe(n){return n.kind===106||n.kind===108?!0:Ofe(n)?!1:!!Pa(n,vRe)}function bRe(n){je(n.name)&&Mr(n.name)==="constructor"&&Ke(n.name,_.Class_constructor_may_not_be_an_accessor),i(a),yo(n.body),nse(n);function a(){if(!Ij(n)&&!qut(n)&&kj(n.name),O4(n),lR(n),n.kind===174&&!(n.flags&16777216)&&E_(n.body)&&n.flags&256&&(n.flags&512||Ke(n.name,_.A_get_accessor_must_return_a_value)),n.name.kind===164&&fy(n.name),tA(n)){const u=Ir(n),p=Il(u,174),y=Il(u,175);if(p&&y&&!(TA(p)&1)){Jr(p).flags|=1;const A=Hu(p),R=Hu(y);(A&256)!==(R&256)&&(Ke(p.name,_.Accessors_must_both_be_abstract_or_non_abstract),Ke(y.name,_.Accessors_must_both_be_abstract_or_non_abstract)),(A&16&&!(R&24)||A&8&&!(R&8))&&(Ke(p.name,_.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Ke(y.name,_.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));const F=se(p),J=se(y);F&&J&&fd(F,J,p,_.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}const l=Gr(Ir(n));n.kind===174&&Joe(n,l)}}function Est(n){O4(n)}function Tst(n,a,l){return n.typeArguments&&l<n.typeArguments.length?pi(n.typeArguments[l]):cj(n,a)[l]}function cj(n,a){return gv(zt(n.typeArguments,pi),a,Am(a),fr(n))}function ERe(n,a){let l,u,p=!0;for(let y=0;y<a.length;y++){const A=Ru(a[y]);A&&(l||(l=cj(n,a),u=Ad(a,l)),p=p&&fd(l[y],$i(A,u),n.typeArguments[y],_.Type_0_does_not_satisfy_the_constraint_1))}return p}function Sst(n,a){if(!rs(n))return a.flags&524288&&zi(a).typeParameters||(ri(n)&4?n.target.localTypeParameters:void 0)}function rse(n){const a=pi(n);if(!rs(a)){const l=Jr(n).resolvedSymbol;if(l)return Sst(a,l)}}function ise(n){if(W4(n,n.typeArguments),n.kind===180&&!fr(n)&&!NN(n)&&n.typeArguments&&n.typeName.end!==n.typeArguments.pos){const a=er(n);xfe(a,n.typeName.end)===24&&f1(n,Xo(a.text,n.typeName.end),1,_.JSDoc_types_can_only_be_used_inside_documentation_comments)}Je(n.typeArguments,yo),TRe(n)}function TRe(n){const a=pi(n);if(!rs(a)){n.typeArguments&&i(()=>{const u=rse(n);u&&ERe(n,u)});const l=Jr(n).resolvedSymbol;l&&kt(l.declarations,u=>LC(u)&&!!(u.flags&268435456))&&jg(x4(n),l.declarations,l.escapedName)}}function xst(n){const a=si(n.parent,h3);if(!a)return;const l=rse(a);if(!l)return;const u=Ru(l[a.typeArguments.indexOf(n)]);return u&&$i(u,Ad(l,cj(a,l)))}function Ast(n){CIe(n)}function Cst(n){Je(n.members,yo),i(a);function a(){const l=_ke(n);yj(l,l.symbol),tse(n),gRe(n)}}function Lst(n){yo(n.elementType)}function Ist(n){const a=n.elements;let l=!1,u=!1;const p=kt(a,ew);for(const y of a){if(y.kind!==199&&p){En(y,_.Tuple_members_must_all_have_names_or_all_not_have_names);break}const A=Xie(y);if(A&8){const R=pi(y.type);if(!V0(R)){Ke(y,_.A_rest_element_type_must_be_an_array_type);break}(Zf(R)||Bo(R)&&R.target.combinedFlags&4)&&(u=!0)}else if(A&4){if(u){En(y,_.A_rest_element_cannot_follow_another_rest_element);break}u=!0}else if(A&2){if(u){En(y,_.An_optional_element_cannot_follow_a_rest_element);break}l=!0}else if(l){En(y,_.A_required_element_cannot_follow_an_optional_element);break}}Je(n.elements,yo),pi(n)}function kst(n){Je(n.types,yo),pi(n)}function SRe(n,a){if(!(n.flags&8388608))return n;const l=n.objectType,u=n.indexType;if(Ao(u,Lm(l,!1)))return a.kind===209&&wh(a)&&ri(l)&32&&xm(l)&1&&Ke(a,_.Index_signature_in_type_0_only_permits_reading,ke(l)),n;const p=ed(l);if(hh(p,mt)&&Vc(u,296))return n;if(t1(l)){const y=rV(u,a);if(y){const A=nT(p,R=>fo(R,y));if(A&&s_(A)&24)return Ke(a,_.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,ra(y)),Ce}}return Ke(a,_.Type_0_cannot_be_used_to_index_type_1,ke(u),ke(l)),Ce}function wst(n){yo(n.objectType),yo(n.indexType),SRe(ske(n),n)}function Dst(n){Rst(n),yo(n.typeParameter),yo(n.nameType),yo(n.type),n.type||j0(n,we);const a=aae(n),l=pv(a);if(l)fd(l,Hi,n.nameType);else{const u=Hp(a);fd(u,Hi,jA(n.typeParameter))}}function Rst(n){var a;if((a=n.members)!=null&&a.length)return En(n.members[0],_.A_mapped_type_may_not_declare_properties_or_methods)}function Nst(n){cV(n)}function Ost(n){Kut(n),yo(n.type)}function Pst(n){Pa(n,yo)}function Mst(n){rr(n,l=>l.parent&&l.parent.kind===191&&l.parent.extendsType===l)||En(n,_.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),yo(n.typeParameter);const a=Ir(n.typeParameter);if(a.declarations&&a.declarations.length>1){const l=zi(a);if(!l.typeParametersChecked){l.typeParametersChecked=!0;const u=WE(a),p=efe(a,165);if(!ZRe(p,[u],y=>[y])){const y=x(a);for(const A of p)Ke(A.name,_.All_declarations_of_0_must_have_identical_constraints,y)}}}xv(n)}function Fst(n){for(const a of n.templateSpans){yo(a.type);const l=pi(a.type);fd(l,So,a.type)}pi(n)}function Bst(n){yo(n.argument),n.assertions&&c2(n.assertions.assertClause,En)&&(sO()||En(n.assertions.assertClause,_.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),Tl($)!==3&&Tl($)!==99&&En(n.assertions.assertClause,_.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),TRe(n)}function Gst(n){n.dotDotDotToken&&n.questionToken&&En(n,_.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===187&&En(n.type,_.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===188&&En(n.type,_.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),yo(n.type),pi(n)}function N4(n){return(zd(n,8)||ad(n))&&!!(n.flags&16777216)}function uj(n,a){let l=Ay(n);return n.parent.kind!==261&&n.parent.kind!==260&&n.parent.kind!==228&&n.flags&16777216&&(!(l&2)&&!(dm(n.parent)&&$l(n.parent.parent)&&im(n.parent.parent))&&(l|=1),l|=2),l&a}function dj(n){i(()=>Ust(n))}function Ust(n){function a(xn,yr){return yr!==void 0&&yr.parent===xn[0].parent?yr:xn[0]}function l(xn,yr,sn,Un,Jn){if((Un^Jn)!==0){const ai=uj(a(xn,yr),sn);Je(xn,_a=>{const Za=uj(_a,sn)^ai;Za&1?Ke(Ia(_a),_.Overload_signatures_must_all_be_exported_or_non_exported):Za&2?Ke(Ia(_a),_.Overload_signatures_must_all_be_ambient_or_non_ambient):Za&24?Ke(Ia(_a)||_a,_.Overload_signatures_must_all_be_public_private_or_protected):Za&256&&Ke(Ia(_a),_.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function u(xn,yr,sn,Un){if(sn!==Un){const Jn=Ax(a(xn,yr));Je(xn,ei=>{Ax(ei)!==Jn&&Ke(Ia(ei),_.Overload_signatures_must_all_be_optional_or_required)})}}const p=283;let y=0,A=p,R=!1,F=!0,J=!1,Q,ge,Ne;const De=n.declarations,_t=(n.flags&16384)!==0;function Bt(xn){if(xn.name&&kl(xn.name))return;let yr=!1;const sn=Pa(xn.parent,Jn=>{if(yr)return Jn;yr=Jn===xn});if(sn&&sn.pos===xn.end&&sn.kind===xn.kind){const Jn=sn.name||sn,ei=sn.name;if(xn.name&&ei&&(Oi(xn.name)&&Oi(ei)&&xn.name.escapedText===ei.escapedText||Cs(xn.name)&&Cs(ei)||J_(xn.name)&&J_(ei)&&hk(xn.name)===hk(ei))){if((xn.kind===171||xn.kind===170)&&Ja(xn)!==Ja(sn)){const _a=Ja(xn)?_.Function_overload_must_be_static:_.Function_overload_must_not_be_static;Ke(Jn,_a)}return}if(E_(sn.body)){Ke(Jn,_.Function_implementation_name_must_be_0,Rs(xn.name));return}}const Un=xn.name||xn;_t?Ke(Un,_.Constructor_implementation_is_missing):$r(xn,256)?Ke(Un,_.All_declarations_of_an_abstract_method_must_be_consecutive):Ke(Un,_.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Fn=!1,An=!1,Xn=!1;const hn=[];if(De)for(const xn of De){const yr=xn,sn=yr.flags&16777216,Un=yr.parent&&(yr.parent.kind===261||yr.parent.kind===184)||sn;if(Un&&(Ne=void 0),(yr.kind===260||yr.kind===228)&&!sn&&(Xn=!0),yr.kind===259||yr.kind===171||yr.kind===170||yr.kind===173){hn.push(yr);const Jn=uj(yr,p);y|=Jn,A&=Jn,R=R||Ax(yr),F=F&&Ax(yr);const ei=E_(yr.body);ei&&Q?_t?An=!0:Fn=!0:(Ne==null?void 0:Ne.parent)===yr.parent&&Ne.end!==yr.pos&&Bt(Ne),ei?Q||(Q=yr):J=!0,Ne=yr,Un||(ge=yr)}if(fr(xn)&&Xa(xn)&&xn.jsDoc){for(const Jn of xn.jsDoc)if(Jn.tags)for(const ei of Jn.tags)cw(ei)&&(J=!0)}}if(An&&Je(hn,xn=>{Ke(xn,_.Multiple_constructor_implementations_are_not_allowed)}),Fn&&Je(hn,xn=>{Ke(Ia(xn)||xn,_.Duplicate_function_implementation)}),Xn&&!_t&&n.flags&16&&De){const xn=yn(De,yr=>yr.kind===260).map(yr=>Nr(yr,_.Consider_adding_a_declare_modifier_to_this_class));Je(De,yr=>{const sn=yr.kind===260?_.Class_declaration_cannot_implement_overload_list_for_0:yr.kind===259?_.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;sn&&Yo(Ke(Ia(yr)||yr,sn,Gl(n)),...xn)})}if(ge&&!ge.body&&!$r(ge,256)&&!ge.questionToken&&Bt(ge),J&&(De&&(l(De,Q,p,y,A),u(De,Q,R,F)),Q)){const xn=$b(n),yr=Wp(Q);for(const sn of xn)if(!_nt(yr,sn)){const Un=sn.declaration&&Z1(sn.declaration)?sn.declaration.parent.tagName:sn.declaration;Yo(Ke(Un,_.This_overload_signature_is_not_compatible_with_its_implementation_signature),Nr(Q,_.The_implementation_signature_is_declared_here));break}}}function cR(n){i(()=>Vst(n))}function Vst(n){let a=n.localSymbol;if(!a&&(a=Ir(n),!a.exportSymbol)||Il(a,n.kind)!==n)return;let l=0,u=0,p=0;for(const J of a.declarations){const Q=F(J),ge=uj(J,1025);ge&1?ge&1024?p|=Q:l|=Q:u|=Q}const y=l|u,A=l&u,R=p&y;if(A||R)for(const J of a.declarations){const Q=F(J),ge=Ia(J);Q&R?Ke(ge,_.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Rs(ge)):Q&A&&Ke(ge,_.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Rs(ge))}function F(J){let Q=J;switch(Q.kind){case 261:case 262:case 349:case 341:case 343:return 2;case 264:return ju(Q)||Dg(Q)!==0?5:4;case 260:case 263:case 302:return 3;case 308:return 7;case 274:case 223:const ge=Q,Ne=Vl(ge)?ge.expression:ge.right;if(!Xl(Ne))return 1;Q=Ne;case 268:case 271:case 270:let De=0;const _t=oc(Ir(Q));return Je(_t.declarations,Bt=>{De|=F(Bt)}),De;case 257:case 205:case 259:case 273:case 79:return 1;case 170:case 168:return 2;default:return D.failBadSyntaxKind(Q)}}}function uR(n,a,l,u){const p=dR(n,a);return p&&sT(p,a,l,u)}function dR(n,a,l){if(xs(n))return;const u=n;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(N0(n,zP(!1)))return u.promisedTypeOfPromise=ys(n)[0];if(w4(hv(n),134479868))return;const p=vc(n,"then");if(xs(p))return;const y=p?za(p,0):rt;if(y.length===0){a&&Ke(a,_.A_promise_must_have_a_then_method);return}let A,R;for(const Q of y){const ge=Qb(Q);ge&&ge!==Rt&&!Im(n,ge,oh)?A=ge:R=Bn(R,Q)}if(!R){D.assertIsDefined(A),l&&(l.value=A),a&&Ke(a,_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ke(n),ke(A));return}const F=g_(Zr(zt(R,Hoe)),2097152);if(xs(F))return;const J=za(F,0);if(J.length===0){a&&Ke(a,_.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return u.promisedTypeOfPromise=Zr(zt(J,Hoe),2)}function fR(n,a,l,u,p){return(a?sT(n,l,u,p):_y(n,l,u,p))||Ce}function xRe(n){if(w4(hv(n),134479868))return!1;const a=vc(n,"then");return!!a&&za(g_(a,2097152),0).length>0}function fj(n){var a;if(n.flags&16777216){const l=Kie(!1);return!!l&&n.aliasSymbol===l&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function sI(n){return n.flags&1048576?Zs(n,sI):fj(n)?n.aliasTypeArguments[0]:n}function ARe(n){if(xs(n)||fj(n))return!1;if(t1(n)){const a=Zu(n);if(a?a.flags&3||ag(a)||lg(a,xRe):gl(n,8650752))return!0}return!1}function jst(n){const a=Kie(!0);if(a)return sA(a,[sI(n)])}function Hst(n){if(ARe(n)){const a=jst(n);if(a)return a}return D.assert(fj(n)||dR(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function sT(n,a,l,u){const p=_y(n,a,l,u);return p&&Hst(p)}function _y(n,a,l,u){if(xs(n)||fj(n))return n;const p=n;if(p.awaitedTypeOfType)return p.awaitedTypeOfType;if(n.flags&1048576){if(Gg.lastIndexOf(n.id)>=0){a&&Ke(a,_.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const R=a?J=>_y(J,a,l,u):_y;Gg.push(n.id);const F=Zs(n,R);return Gg.pop(),p.awaitedTypeOfType=F}if(ARe(n))return p.awaitedTypeOfType=n;const y={value:void 0},A=dR(n,void 0,y);if(A){if(n.id===A.id||Gg.lastIndexOf(A.id)>=0){a&&Ke(a,_.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Gg.push(n.id);const R=_y(A,a,l,u);return Gg.pop(),R?p.awaitedTypeOfType=R:void 0}if(xRe(n)){if(a){D.assertIsDefined(l);let R;y.value&&(R=Ra(R,_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ke(n),ke(y.value))),R=Ra(R,l,u),Zo.add(Eg(er(a),a,R))}return}return p.awaitedTypeOfType=n}function Wst(n,a){const l=pi(a);if(M>=2){if(rs(l))return;const u=zP(!0);if(u!==Lo&&!N0(l,u)){Ke(a,_.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,ke(_y(l)||Rt));return}}else{if(qst(a),rs(l))return;const u=DN(a);if(u===void 0){Ke(a,_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,ke(l));return}const p=Ml(u,111551,!0),y=p?or(p):Ce;if(rs(y)){u.kind===79&&u.escapedText==="Promise"&&eA(l)===zP(!1)?Ke(a,_.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Ke(a,_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Pf(u));return}const A=Tet(!0);if(A===fa){Ke(a,_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Pf(u));return}if(!fd(y,A,a,_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;const R=u&&Ff(u),F=tf(n.locals,R.escapedText,111551);if(F){Ke(F.valueDeclaration,_.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Mr(R),Pf(u));return}}fR(l,!1,n,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function zst(n){const a=rI(n);ij(a,n);const l=vs(a);if(l.flags&1)return;const u=qoe(n);if(!(u!=null&&u.resolvedReturnType))return;let p;const y=u.resolvedReturnType;switch(n.parent.kind){case 260:case 228:p=_.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 169:if(!re){p=_.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 166:p=_.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 171:case 174:case 175:p=_.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return D.failBadSyntaxKind(n.parent)}fd(l,y,n.expression,p)}function _R(n,a,l,u,p,y=l.length,A=0){const R=N.createFunctionTypeNode(void 0,rt,N.createKeywordTypeNode(131));return mh(R,n,a,l,u,p,y,A)}function ase(n,a,l,u,p,y,A){const R=_R(n,a,l,u,p,y,A);return JE(R)}function CRe(n){return ase(void 0,void 0,rt,n)}function LRe(n){const a=up("value",n);return ase(void 0,void 0,[a],Rt)}function qst(n){IRe(n&&DN(n),!1)}function IRe(n,a){if(!n)return;const l=Ff(n),u=(n.kind===79?788968:1920)|2097152,p=hl(l,l.escapedText,u,void 0,void 0,!0);if(p&&p.flags&2097152){if(!$.verbatimModuleSyntax&&$g(p)&&!hR(oc(p))&&!Bd(p))zb(p);else if(a&&Y_($)&&du($)>=5&&!$g(p)&&!kt(p.declarations,D1)){const y=Ke(n,_.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),A=In(p.declarations||rt,qg);A&&Yo(y,Nr(A,_._0_was_imported_here,Mr(l)))}}}function lI(n){const a=ose(n);a&&ff(a)&&IRe(a,!0)}function ose(n){if(n)switch(n.kind){case 190:case 189:return kRe(n.types);case 191:return kRe([n.trueType,n.falseType]);case 193:case 199:return ose(n.type);case 180:return n.typeName}}function kRe(n){let a;for(let l of n){for(;l.kind===193||l.kind===199;)l=l.type;if(l.kind===144||!W&&(l.kind===198&&l.literal.kind===104||l.kind===155))continue;const u=ose(l);if(!u)return;if(a){if(!je(a)||!je(u)||a.escapedText!==u.escapedText)return}else a=u}return a}function _j(n){const a=iu(n);return Lh(n)?nq(a):a}function O4(n){if(!i2(n)||!o_(n)||!n.modifiers||!G3(re,n,n.parent,n.parent.parent))return;const a=In(n.modifiers,Wu);if(a){if(re?(Ec(a,8),n.kind===166&&Ec(a,32)):M<99&&(Ec(a,8),Bc(n)?n.name?eNe(n)&&Ec(a,8388608):Ec(a,8388608):qu(n)||(Oi(n.name)&&(uc(n)||ab(n)||_f(n))&&Ec(a,8388608),Cs(n.name)&&Ec(a,16777216))),$.emitDecoratorMetadata)switch(Ec(a,16),n.kind){case 260:const l=Dh(n);if(l)for(const A of l.parameters)lI(_j(A));break;case 174:case 175:const u=n.kind===174?175:174,p=Il(Ir(n),u);lI(B(n)||p&&B(p));break;case 171:for(const A of n.parameters)lI(_j(A));lI(Cp(n));break;case 169:lI(iu(n));break;case 166:lI(_j(n));const y=n.parent;for(const A of y.parameters)lI(_j(A));break}for(const l of n.modifiers)Wu(l)&&zst(l)}}function Jst(n){i(a);function a(){DRe(n),kse(n),cI(n,n.name)}}function Kst(n){n.typeExpression||Ke(n.name,_.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&uI(n.name,_.Type_alias_name_cannot_be_0),yo(n.typeExpression),U4(Mv(n))}function Xst(n){yo(n.constraint);for(const a of n.typeParameters)yo(a)}function Yst(n){yo(n.typeExpression)}function $st(n){yo(n.typeExpression);const a=dC(n);if(a){const l=lz(a,T5);if(Le(l)>1)for(let u=1;u<Le(l);u++){const p=l[u].tagName;Ke(p,_._0_tag_already_specified,Mr(p))}}}function Qst(n){n.name&&j4(n.name,!0)}function Zst(n){yo(n.typeExpression)}function elt(n){yo(n.typeExpression)}function tlt(n){i(a),lR(n);function a(){!n.type&&!cC(n)&&j0(n,we)}}function nlt(n){const a=dC(n);(!a||!Bc(a)&&!qu(a))&&Ke(a,_.JSDoc_0_is_not_attached_to_a_class,Mr(n.tagName))}function rlt(n){const a=dC(n);if(!a||!Bc(a)&&!qu(a)){Ke(a,_.JSDoc_0_is_not_attached_to_a_class,Mr(n.tagName));return}const l=k1(a).filter(zC);D.assert(l.length>0),l.length>1&&Ke(l[1],_.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const u=wRe(n.class.expression),p=G1(a);if(p){const y=wRe(p.expression);y&&u.escapedText!==y.escapedText&&Ke(u,_.JSDoc_0_1_does_not_match_the_extends_2_clause,Mr(n.tagName),Mr(u),Mr(y))}}function ilt(n){const a=Cx(n);a&&ad(a)&&Ke(n,_.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function wRe(n){switch(n.kind){case 79:return n;case 208:return n.name;default:return}}function DRe(n){var a;O4(n),lR(n);const l=Jc(n);if(n.name&&n.name.kind===164&&fy(n.name),tA(n)){const y=Ir(n),A=n.localSymbol||y,R=(a=A.declarations)==null?void 0:a.find(F=>F.kind===n.kind&&!(F.flags&262144));n===R&&dj(A),y.parent&&dj(y)}const u=n.kind===170?void 0:n.body;if(yo(u),Joe(n,iA(n)),i(p),fr(n)){const y=I1(n);y&&y.typeExpression&&!foe(pi(y.typeExpression),n)&&Ke(y.typeExpression.type,_.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function p(){Cp(n)||(kl(u)&&!N4(n)&&j0(n,we),l&1&&E_(u)&&vs(Wp(n)))}}function xv(n){i(a);function a(){const l=er(n);let u=bn.get(l.path);u||(u=[],bn.set(l.path,u)),u.push(n)}}function RRe(n,a){for(const l of n)switch(l.kind){case 260:case 228:alt(l,a),sse(l,a);break;case 308:case 264:case 238:case 266:case 245:case 246:case 247:PRe(l,a);break;case 173:case 215:case 259:case 216:case 171:case 174:case 175:l.body&&PRe(l,a),sse(l,a);break;case 170:case 176:case 177:case 181:case 182:case 262:case 261:sse(l,a);break;case 192:olt(l,a);break;default:D.assertNever(l,"Node should not have been registered for unused identifiers check")}}function NRe(n,a,l){const u=Ia(n)||n,p=LC(n)?_._0_is_declared_but_never_used:_._0_is_declared_but_its_value_is_never_read;l(n,0,Nr(u,p,a))}function P4(n){return je(n)&&Mr(n).charCodeAt(0)===95}function alt(n,a){for(const l of n.members)switch(l.kind){case 171:case 169:case 174:case 175:if(l.kind===175&&l.symbol.flags&32768)break;const u=Ir(l);!u.isReferenced&&(zd(l,8)||Su(l)&&Oi(l.name))&&!(l.flags&16777216)&&a(l,0,Nr(l.name,_._0_is_declared_but_its_value_is_never_read,x(u)));break;case 173:for(const p of l.parameters)!p.symbol.isReferenced&&$r(p,8)&&a(p,0,Nr(p.name,_.Property_0_is_declared_but_its_value_is_never_read,Gl(p.symbol)));break;case 178:case 237:case 172:break;default:D.fail("Unexpected class member")}}function olt(n,a){const{typeParameter:l}=n;lse(l)&&a(n,1,Nr(n,_._0_is_declared_but_its_value_is_never_read,Mr(l.name)))}function sse(n,a){const l=Ir(n).declarations;if(!l||Jo(l)!==n)return;const u=Mv(n),p=new Set;for(const y of u){if(!lse(y))continue;const A=Mr(y.name),{parent:R}=y;if(R.kind!==192&&R.typeParameters.every(lse)){if(g1(p,R)){const F=er(R),J=kp(R)?mJ(R):hJ(F,R.typeParameters),Q=R.typeParameters.length===1,ge=Q?_._0_is_declared_but_its_value_is_never_read:_.All_type_parameters_are_unused,Ne=Q?A:void 0;a(y,1,Mc(F,J.pos,J.end-J.pos,ge,Ne))}}else a(y,1,Nr(y,_._0_is_declared_but_its_value_is_never_read,A))}}function lse(n){return!(as(n.symbol).isReferenced&262144)&&!P4(n.name)}function M4(n,a,l,u){const p=String(u(a)),y=n.get(p);y?y[1].push(l):n.set(p,[a,[l]])}function ORe(n){return si(qm(n),Fa)}function slt(n){return ms(n)?Qm(n.parent)?!!(n.propertyName&&P4(n.name)):P4(n.name):ju(n)||(Xi(n)&&JA(n.parent.parent)||MRe(n))&&P4(n.name)}function PRe(n,a){const l=new Map,u=new Map,p=new Map;n.locals.forEach(y=>{if(!(y.flags&262144?!(y.flags&3&&!(y.isReferenced&3)):y.isReferenced||y.exportSymbol)&&y.declarations){for(const A of y.declarations)if(!slt(A))if(MRe(A))M4(l,clt(A),A,hs);else if(ms(A)&&Qm(A.parent)){const R=Jo(A.parent.elements);(A===R||!Jo(A.parent.elements).dotDotDotToken)&&M4(u,A.parent,A,hs)}else if(Xi(A))M4(p,A.parent,A,hs);else{const R=y.valueDeclaration&&ORe(y.valueDeclaration),F=y.valueDeclaration&&Ia(y.valueDeclaration);R&&F?!df(R,R.parent)&&!j1(R)&&!P4(F)&&(ms(A)&&BC(A.parent)?M4(u,A.parent,A,hs):a(R,1,Nr(F,_._0_is_declared_but_its_value_is_never_read,Gl(y)))):NRe(A,Gl(y),a)}}}),l.forEach(([y,A])=>{const R=y.parent;if((y.name?1:0)+(y.namedBindings?y.namedBindings.kind===271?1:y.namedBindings.elements.length:0)===A.length)a(R,0,A.length===1?Nr(R,_._0_is_declared_but_its_value_is_never_read,Mr(ds(A).name)):Nr(R,_.All_imports_in_import_declaration_are_unused));else for(const J of A)NRe(J,Mr(J.name),a)}),u.forEach(([y,A])=>{const R=ORe(y.parent)?1:0;if(y.elements.length===A.length)A.length===1&&y.parent.kind===257&&y.parent.parent.kind===258?M4(p,y.parent.parent,y.parent,hs):a(y,R,A.length===1?Nr(y,_._0_is_declared_but_its_value_is_never_read,F4(ds(A).name)):Nr(y,_.All_destructured_elements_are_unused));else for(const F of A)a(F,R,Nr(F,_._0_is_declared_but_its_value_is_never_read,F4(F.name)))}),p.forEach(([y,A])=>{if(y.declarations.length===A.length)a(y,0,A.length===1?Nr(ds(A).name,_._0_is_declared_but_its_value_is_never_read,F4(ds(A).name)):Nr(y.parent.kind===240?y.parent:y,_.All_variables_are_unused));else for(const R of A)a(R,0,Nr(R,_._0_is_declared_but_its_value_is_never_read,F4(R.name)))})}function llt(){var n;for(const a of ES)if(!((n=Ir(a))!=null&&n.isReferenced)){const l=VA(a);D.assert(RT(l),"Only parameter declaration should be checked here");const u=Nr(a.name,_._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Rs(a.name),Rs(a.propertyName));l.type||Yo(u,Mc(er(l),l.end,1,_.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Rs(a.propertyName))),Zo.add(u)}}function F4(n){switch(n.kind){case 79:return Mr(n);case 204:case 203:return F4(so(ds(n.elements),ms).name);default:return D.assertNever(n)}}function MRe(n){return n.kind===270||n.kind===273||n.kind===271}function clt(n){return n.kind===270?n:n.kind===271?n.parent:n.parent.parent}function pj(n){if(n.kind===238&&cg(n),yz(n)){const a=Ki;Je(n.statements,yo),Ki=a}else Je(n.statements,yo);n.locals&&xv(n)}function ult(n){M>=2||!kz(n)||n.flags&16777216||kl(n.body)||Je(n.parameters,a=>{a.name&&!Ya(a.name)&&a.name.escapedText===Ct.escapedName&&m0("noEmit",a,_.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function pR(n,a,l){if((a==null?void 0:a.escapedText)!==l||n.kind===169||n.kind===168||n.kind===171||n.kind===170||n.kind===174||n.kind===175||n.kind===299||n.flags&16777216||(Zm(n)||_u(n)||Nd(n))&&D1(n))return!1;const u=qm(n);return!(Fa(u)&&kl(u.parent.body))}function dlt(n){rr(n,a=>TA(a)&4?(n.kind!==79?Ke(Ia(n),_.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Ke(n,_.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function flt(n){rr(n,a=>TA(a)&8?(n.kind!==79?Ke(Ia(n),_.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Ke(n,_.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function _lt(n,a){if(de>=5&&!(de>=100&&er(n).impliedNodeFormat===1)||!a||!pR(n,a,"require")&&!pR(n,a,"exports")||$l(n)&&Dg(n)!==1)return;const l=VE(n);l.kind===308&&mf(l)&&m0("noEmit",a,_.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Rs(a),Rs(a))}function plt(n,a){if(!a||M>=4||!pR(n,a,"Promise")||$l(n)&&Dg(n)!==1)return;const l=VE(n);l.kind===308&&mf(l)&&l.flags&2048&&m0("noEmit",a,_.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Rs(a),Rs(a))}function mlt(n,a){M<=8&&(pR(n,a,"WeakMap")||pR(n,a,"WeakSet"))&&wb.push(n)}function hlt(n){const a=zm(n);TA(a)&4194304&&(D.assert(Su(n)&&je(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),m0("noEmit",n,_.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function glt(n,a){a&&M>=2&&M<=8&&pR(n,a,"Reflect")&&p0.push(n)}function ylt(n){let a=!1;if(qu(n)){for(const l of n.members)if(TA(l)&8388608){a=!0;break}}else if(Us(n))TA(n)&8388608&&(a=!0);else{const l=zm(n);l&&TA(l)&8388608&&(a=!0)}a&&(D.assert(Su(n)&&je(n.name),"The target of a Reflect collision check should be an identifier"),m0("noEmit",n,_.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Rs(n.name),"Reflect"))}function cI(n,a){a&&(_lt(n,a),plt(n,a),mlt(n,a),glt(n,a),_i(n)?(uI(a,_.Class_name_cannot_be_0),n.flags&16777216||qlt(a)):yb(n)&&uI(a,_.Enum_name_cannot_be_0))}function vlt(n){if(xp(n)&3||RT(n)||n.kind===257&&!n.initializer)return;const a=Ir(n);if(a.flags&1){if(!je(n.name))return D.fail();const l=hl(n,n.name.escapedText,3,void 0,void 0,!1);if(l&&l!==a&&l.flags&2&&JV(l)&3){const u=ub(l.valueDeclaration,258),p=u.parent.kind===240&&u.parent.parent?u.parent.parent:void 0;if(!(p&&(p.kind===238&&Xa(p.parent)||p.kind===265||p.kind===264||p.kind===308))){const A=x(l);Ke(n,_.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,A,A)}}}}function mR(n){return n===yt?we:n===On?Dt:n}function B4(n){var a;if(O4(n),ms(n)||yo(n.type),!n.name)return;if(n.name.kind===164&&(fy(n.name),ET(n)&&n.initializer&&nc(n.initializer)),ms(n)){if(n.propertyName&&je(n.name)&&RT(n)&&kl(Mf(n).body)){ES.push(n);return}Qm(n.parent)&&n.dotDotDotToken&&M<5&&Ec(n,4),n.propertyName&&n.propertyName.kind===164&&fy(n.propertyName);const p=n.parent.parent,y=n.dotDotDotToken?64:0,A=Y2(p,y),R=n.propertyName||n.name;if(A&&!Ya(R)){const F=sy(R);if(ng(F)){const J=Sm(F),Q=fo(A,J);Q&&(E4(Q,void 0,!1),Toe(n,!!p.initializer&&p.initializer.kind===106,!1,A,Q))}}}if(Ya(n.name)&&(n.name.kind===204&&M<2&&$.downlevelIteration&&Ec(n,512),Je(n.name.elements,yo)),Fa(n)&&n.initializer&&kl(Mf(n).body)){Ke(n,_.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Ya(n.name)){const p=ET(n)&&n.initializer&&n.parent.parent.kind!==246,y=!kt(n.name.elements,EM(Fc));if(p||y){const A=xl(n);if(p){const R=nc(n.initializer);W&&y?oDe(R,n):Tv(R,xl(n),n,n.initializer)}y&&(BC(n.name)?Av(65,A,He,n):W&&oDe(A,n))}return}const l=Ir(n);if(l.flags&2097152&&(B1(n)||Bfe(n))){vj(n);return}const u=mR(or(l));if(n===l.valueDeclaration){const p=ET(n)&&PN(n);p&&!(fr(n)&&Is(p)&&(p.properties.length===0||fb(n.name))&&((a=l.exports)!=null&&a.size))&&n.parent.parent.kind!==246&&Tv(nc(p),u,n,p,void 0),l.declarations&&l.declarations.length>1&&kt(l.declarations,y=>y!==n&&nC(y)&&!BRe(y,n))&&Ke(n.name,_.All_declarations_of_0_must_have_identical_modifiers,Rs(n.name))}else{const p=mR(xl(n));!rs(u)&&!rs(p)&&!ig(u,p)&&!(l.flags&67108864)&&FRe(l.valueDeclaration,u,n,p),ET(n)&&n.initializer&&Tv(nc(n.initializer),p,n,n.initializer,void 0),l.valueDeclaration&&!BRe(n,l.valueDeclaration)&&Ke(n.name,_.All_declarations_of_0_must_have_identical_modifiers,Rs(n.name))}n.kind!==169&&n.kind!==168&&(cR(n),(n.kind===257||n.kind===205)&&vlt(n),cI(n,n.name))}function FRe(n,a,l,u){const p=Ia(l),y=l.kind===169||l.kind===168?_.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:_.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,A=Rs(p),R=Ke(p,y,A,ke(a),ke(u));n&&Yo(R,Nr(n,_._0_was_also_declared_here,A))}function BRe(n,a){if(n.kind===166&&a.kind===257||n.kind===257&&a.kind===166)return!0;if(Ax(n)!==Ax(a))return!1;const l=888;return Dx(n,l)===Dx(a,l)}function cse(n){var a,l;(a=Si)==null||a.push(Si.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Zut(n),B4(n),(l=Si)==null||l.pop()}function blt(n){return Yut(n),B4(n)}function Elt(n){!vh(n)&&!Rse(n.declarationList)&&edt(n),Je(n.declarationList.declarations,yo)}function Tlt(n){cg(n),ha(n.expression)}function Slt(n){cg(n);const a=bA(n.expression);use(n.expression,a,n.thenStatement),yo(n.thenStatement),n.thenStatement.kind===239&&Ke(n.thenStatement,_.The_body_of_an_if_statement_cannot_be_the_empty_statement),yo(n.elseStatement)}function use(n,a,l){if(!W)return;u(n,l);function u(y,A){for(y=Ws(y),p(y,A);br(y)&&(y.operatorToken.kind===56||y.operatorToken.kind===60);)y=Ws(y.left),p(y,A)}function p(y,A){const R=dO(y)?Ws(y.right):y;if(kh(R))return;if(dO(R)){u(R,A);return}const F=R===y?a:bA(R),J=Fr(R)&&lRe(R.expression);if(!(Mu(F)&4194304)||J)return;const Q=za(F,0),ge=!!uR(F);if(Q.length===0&&!ge)return;const Ne=je(R)?R:Fr(R)?R.name:void 0,De=Ne&&G_(Ne);if(!De&&!ge)return;De&&br(y.parent)&&Alt(y.parent,De)||De&&A&&xlt(y,A,Ne,De)||(ge?h0(R,!0,_.This_condition_will_always_return_true_since_this_0_is_always_defined,Cr(F)):Ke(R,_.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function xlt(n,a,l,u){return!!Pa(a,function p(y){if(je(y)){const A=G_(y);if(A&&A===u){if(je(n)||je(l)&&br(l.parent))return!0;let R=l.parent,F=y.parent;for(;R&&F;){if(je(R)&&je(F)||R.kind===108&&F.kind===108)return G_(R)===G_(F);if(Fr(R)&&Fr(F)){if(G_(R.name)!==G_(F.name))return!1;F=F.expression,R=R.expression}else if(io(R)&&io(F))F=F.expression,R=R.expression;else return!1}}}return Pa(y,p)})}function Alt(n,a){for(;br(n)&&n.operatorToken.kind===55;){if(Pa(n.right,function u(p){if(je(p)){const y=G_(p);if(y&&y===a)return!0}return Pa(p,u)}))return!0;n=n.parent}return!1}function Clt(n){cg(n),yo(n.statement),bA(n.expression)}function Llt(n){cg(n),bA(n.expression),yo(n.statement)}function GRe(n,a){return n.flags&16384&&Ke(a,_.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function bA(n,a){return GRe(ha(n,a),n)}function Ilt(n){cg(n)||n.initializer&&n.initializer.kind===258&&Rse(n.initializer),n.initializer&&(n.initializer.kind===258?Je(n.initializer.declarations,cse):ha(n.initializer)),n.condition&&bA(n.condition),n.incrementor&&ha(n.incrementor),yo(n.statement),n.locals&&xv(n)}function klt(n){MNe(n);const a=P3(n);if(n.awaitModifier?a&&Rl(a)?En(n.awaitModifier,_.For_await_loops_cannot_be_used_inside_a_class_static_block):(Jc(a)&6)===2&&M<99&&Ec(n,16384):$.downlevelIteration&&M<2&&Ec(n,256),n.initializer.kind===258)URe(n);else{const l=n.initializer,u=G4(n);if(l.kind===206||l.kind===207)oT(l,u||Ce);else{const p=ha(l);oR(l,_.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,_.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),u&&Tv(u,p,l,n.expression)}}yo(n.statement),n.locals&&xv(n)}function wlt(n){MNe(n);const a=Soe(ha(n.expression));if(n.initializer.kind===258){const l=n.initializer.declarations[0];l&&Ya(l.name)&&Ke(l.name,_.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),URe(n)}else{const l=n.initializer,u=ha(l);l.kind===206||l.kind===207?Ke(l,_.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Ao(gtt(a),u)?oR(l,_.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,_.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Ke(l,_.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===gt||!Vc(a,126091264))&&Ke(n.expression,_.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,ke(a)),yo(n.statement),n.locals&&xv(n)}function URe(n){const a=n.initializer;if(a.declarations.length>=1){const l=a.declarations[0];cse(l)}}function G4(n){const a=n.awaitModifier?15:13;return Av(a,tI(n.expression),He,n.expression)}function Av(n,a,l,u){return xs(a)?a:dse(n,a,l,u,!0)||we}function dse(n,a,l,u,p){const y=(n&2)!==0;if(a===gt){hse(u,a,y);return}const A=M>=2,R=!A&&$.downlevelIteration,F=$.noUncheckedIndexedAccess&&!!(n&128);if(A||R||y){const _t=hj(a,n,A?u:void 0);if(p&&_t){const Bt=n&8?_.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?_.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?_.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?_.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;Bt&&fd(l,_t.nextType,u,Bt)}if(_t||A)return F?YD(_t&&_t.yieldType):_t&&_t.yieldType}let J=a,Q=!1,ge=!1;if(n&4){if(J.flags&1048576){const _t=a.types,Bt=yn(_t,Fn=>!(Fn.flags&402653316));Bt!==_t&&(J=Zr(Bt,2))}else J.flags&402653316&&(J=gt);if(ge=J!==a,ge&&(M<1&&u&&(Ke(u,_.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),Q=!0),J.flags&131072))return F?YD(ue):ue}if(!V0(J)){if(u&&!Q){const _t=!!(n&4)&&!ge,[Bt,Fn]=De(_t,R);h0(u,Fn&&!!uR(J),Bt,ke(J))}return ge?F?YD(ue):ue:void 0}const Ne=ay(J,mt);if(ge&&Ne)return Ne.flags&402653316&&!$.noUncheckedIndexedAccess?ue:Zr(F?[Ne,ue,He]:[Ne,ue],2);return n&128?YD(Ne):Ne;function De(_t,Bt){var Fn;return Bt?_t?[_.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[_.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:fse(n,0,a,void 0)?[_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Dlt((Fn=a.symbol)==null?void 0:Fn.escapedName)?[_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:_t?[_.Type_0_is_not_an_array_type_or_a_string_type,!0]:[_.Type_0_is_not_an_array_type,!0]}}function Dlt(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function fse(n,a,l,u){if(xs(l))return;const p=hj(l,n,u);return p&&p[sye(a)]}function py(n=gt,a=gt,l=he){if(n.flags&67359327&&a.flags&180227&&l.flags&180227){const u=m_([n,a,l]);let p=fe.get(u);return p||(p={yieldType:n,returnType:a,nextType:l},fe.set(u,p)),p}return{yieldType:n,returnType:a,nextType:l}}function VRe(n){let a,l,u;for(const p of n)if(!(p===void 0||p===It)){if(p===jt)return jt;a=Bn(a,p.yieldType),l=Bn(l,p.returnType),u=Bn(u,p.nextType)}return a||l||u?py(a&&Zr(a),l&&Zr(l),u&&Do(u)):It}function mj(n,a){return n[a]}function yh(n,a,l){return n[a]=l}function hj(n,a,l){var u,p;if(xs(n))return jt;if(!(n.flags&1048576)){const J=l?{errors:void 0}:void 0,Q=jRe(n,a,l,J);if(Q===It){if(l){const ge=hse(l,n,!!(a&2));J!=null&&J.errors&&Yo(ge,...J.errors)}return}else if((u=J==null?void 0:J.errors)!=null&&u.length)for(const ge of J.errors)Zo.add(ge);return Q}const y=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",A=mj(n,y);if(A)return A===It?void 0:A;let R;for(const J of n.types){const Q=l?{errors:void 0}:void 0,ge=jRe(J,a,l,Q);if(ge===It){if(l){const Ne=hse(l,n,!!(a&2));Q!=null&&Q.errors&&Yo(Ne,...Q.errors)}yh(n,y,It);return}else if((p=Q==null?void 0:Q.errors)!=null&&p.length)for(const Ne of Q.errors)Zo.add(Ne);R=Bn(R,ge)}const F=R?VRe(R):It;return yh(n,y,F),F===It?void 0:F}function _se(n,a){if(n===It)return It;if(n===jt)return jt;const{yieldType:l,returnType:u,nextType:p}=n;return a&&Kie(!0),py(sT(l,a)||we,sT(u,a)||we,p)}function jRe(n,a,l,u){if(xs(n))return jt;let p=!1;if(a&2){const y=pse(n,xt)||WRe(n,xt);if(y)if(y===It&&l)p=!0;else return a&8?_se(y,l):y}if(a&1){let y=pse(n,pn)||WRe(n,pn);if(y)if(y===It&&l)p=!0;else if(a&2){if(y!==It)return y=_se(y,l),p?y:yh(n,"iterationTypesOfAsyncIterable",y)}else return y}if(a&2){const y=mse(n,xt,l,u,p);if(y!==It)return y}if(a&1){let y=mse(n,pn,l,u,p);if(y!==It)return a&2?(y=_se(y,l),p?y:yh(n,"iterationTypesOfAsyncIterable",y)):y}return It}function pse(n,a){return mj(n,a.iterableCacheKey)}function HRe(n,a){const l=pse(n,a)||mse(n,a,void 0,void 0,!1);return l===It?ot:l}function WRe(n,a){let l;if(N0(n,l=a.getGlobalIterableType(!1))||N0(n,l=a.getGlobalIterableIteratorType(!1))){const[u]=ys(n),{returnType:p,nextType:y}=HRe(l,a);return yh(n,a.iterableCacheKey,py(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(p,void 0)||p,y))}if(N0(n,a.getGlobalGeneratorType(!1))){const[u,p,y]=ys(n);return yh(n,a.iterableCacheKey,py(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(p,void 0)||p,y))}}function Rlt(n){const a=RIe(!1),l=a&&vc(or(a),ul(n));return l&&ng(l)?Sm(l):`__@${n}`}function mse(n,a,l,u,p){var y;const A=fo(n,Rlt(a.iteratorSymbolName)),R=A&&!(A.flags&16777216)?or(A):void 0;if(xs(R))return p?jt:yh(n,a.iterableCacheKey,jt);const F=R?za(R,0):void 0;if(!kt(F))return p?It:yh(n,a.iterableCacheKey,It);const J=Do(zt(F,vs)),Q=(y=zRe(J,a,l,u,p))!=null?y:It;return p?Q:yh(n,a.iterableCacheKey,Q)}function hse(n,a,l){const u=l?_.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:_.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,p=!!uR(a)||!l&&QO(n.parent)&&n.parent.expression===n&&nV(!1)!==Lo&&Ao(a,nV(!1));return h0(n,p,u,ke(a))}function Nlt(n,a,l,u){return zRe(n,a,l,u,!1)}function zRe(n,a,l,u,p){if(xs(n))return jt;let y=qRe(n,a)||Olt(n,a);return y===It&&l&&(y=void 0,p=!0),y!=null||(y=KRe(n,a,l,u,p)),y===It?void 0:y}function qRe(n,a){return mj(n,a.iteratorCacheKey)}function Olt(n,a){const l=a.getGlobalIterableIteratorType(!1);if(N0(n,l)){const[u]=ys(n),p=qRe(l,a)||KRe(l,a,void 0,void 0,!1),{returnType:y,nextType:A}=p===It?ot:p;return yh(n,a.iteratorCacheKey,py(u,y,A))}if(N0(n,a.getGlobalIteratorType(!1))||N0(n,a.getGlobalGeneratorType(!1))){const[u,p,y]=ys(n);return yh(n,a.iteratorCacheKey,py(u,p,y))}}function JRe(n,a){const l=vc(n,"done")||it;return Ao(a===0?it:Pe,l)}function Plt(n){return JRe(n,0)}function Mlt(n){return JRe(n,1)}function Flt(n){if(xs(n))return jt;const a=mj(n,"iterationTypesOfIteratorResult");if(a)return a;if(N0(n,wet(!1))){const A=ys(n)[0];return yh(n,"iterationTypesOfIteratorResult",py(A,void 0,void 0))}if(N0(n,Det(!1))){const A=ys(n)[0];return yh(n,"iterationTypesOfIteratorResult",py(void 0,A,void 0))}const l=bc(n,Plt),u=l!==gt?vc(l,"value"):void 0,p=bc(n,Mlt),y=p!==gt?vc(p,"value"):void 0;return!u&&!y?yh(n,"iterationTypesOfIteratorResult",It):yh(n,"iterationTypesOfIteratorResult",py(u,y||Rt,void 0))}function gse(n,a,l,u,p){var y,A,R,F,J,Q;const ge=fo(n,l);if(!ge&&l!=="next")return;const Ne=ge&&!(l==="next"&&ge.flags&16777216)?l==="next"?or(ge):g_(or(ge),2097152):void 0;if(xs(Ne))return l==="next"?jt:Z;const De=Ne?za(Ne,0):rt;if(De.length===0){if(u){const sn=l==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;p?((y=p.errors)!=null||(p.errors=[]),p.errors.push(Nr(u,sn,l))):Ke(u,sn,l)}return l==="next"?It:void 0}if(Ne!=null&&Ne.symbol&&De.length===1){const sn=a.getGlobalGeneratorType(!1),Un=a.getGlobalIteratorType(!1),Jn=((R=(A=sn.symbol)==null?void 0:A.members)==null?void 0:R.get(l))===Ne.symbol,ei=!Jn&&((J=(F=Un.symbol)==null?void 0:F.members)==null?void 0:J.get(l))===Ne.symbol;if(Jn||ei){const ai=Jn?sn:Un,{mapper:_a}=Ne;return py(G0(ai.typeParameters[0],_a),G0(ai.typeParameters[1],_a),l==="next"?G0(ai.typeParameters[2],_a):void 0)}}let _t,Bt;for(const sn of De)l!=="throw"&&kt(sn.parameters)&&(_t=Bn(_t,bp(sn,0))),Bt=Bn(Bt,vs(sn));let Fn,An;if(l!=="throw"){const sn=_t?Zr(_t):he;if(l==="next")An=sn;else if(l==="return"){const Un=a.resolveIterationType(sn,u)||we;Fn=Bn(Fn,Un)}}let Xn;const hn=Bt?Do(Bt):gt,xn=a.resolveIterationType(hn,u)||we,yr=Flt(xn);return yr===It?(u&&(p?((Q=p.errors)!=null||(p.errors=[]),p.errors.push(Nr(u,a.mustHaveAValueDiagnostic,l))):Ke(u,a.mustHaveAValueDiagnostic,l)),Xn=we,Fn=Bn(Fn,we)):(Xn=yr.yieldType,Fn=Bn(Fn,yr.returnType)),py(Xn,Zr(Fn),An)}function KRe(n,a,l,u,p){const y=VRe([gse(n,a,"next",l,u),gse(n,a,"return",l,u),gse(n,a,"throw",l,u)]);return p?y:yh(n,a.iteratorCacheKey,y)}function u1(n,a,l){if(xs(a))return;const u=XRe(a,l);return u&&u[sye(n)]}function XRe(n,a){if(xs(n))return jt;const l=a?2:1,u=a?xt:pn;return hj(n,l,void 0)||Nlt(n,u,void 0,void 0)}function Blt(n){cg(n)||Xut(n)}function gj(n,a){const l=!!(a&1),u=!!(a&2);if(l){const p=u1(1,n,u);return p?u?_y(sI(p)):p:Ce}return u?_y(n)||Ce:n}function YRe(n,a){const l=gj(a,Jc(n));return!!l&&gl(l,16387)}function Glt(n){var a;if(cg(n))return;const l=P3(n);if(l&&Rl(l)){jc(n,_.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!l){jc(n,_.A_return_statement_can_only_be_used_within_a_function_body);return}const u=Wp(l),p=vs(u),y=Jc(l);if(W||n.expression||p.flags&131072){const A=n.expression?nc(n.expression):He;if(l.kind===175)n.expression&&Ke(n,_.Setters_cannot_return_a_value);else if(l.kind===173)n.expression&&!Tv(A,p,n,n.expression)&&Ke(n,_.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(iA(l)){const R=(a=gj(p,y))!=null?a:p,F=y&2?fR(A,!1,n,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):A;R&&Tv(F,R,n,n.expression)}}else l.kind!==173&&$.noImplicitReturns&&!YRe(l,p)&&Ke(n,_.Not_all_code_paths_return_a_value)}function Ult(n){cg(n)||n.flags&32768&&jc(n,_.with_statements_are_not_allowed_in_an_async_function_block),ha(n.expression);const a=er(n);if(!d1(a)){const l=ky(a,n.pos).start,u=n.statement.pos;f1(a,l,u-l,_.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Vlt(n){cg(n);let a,l=!1;const u=ha(n.expression);Je(n.caseBlock.clauses,p=>{p.kind===293&&!l&&(a===void 0?a=p:(En(p,_.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),l=!0)),p.kind===292&&i(y(p)),Je(p.statements,yo),$.noFallthroughCasesInSwitch&&p.fallthroughFlowNode&&f4(p.fallthroughFlowNode)&&Ke(p,_.Fallthrough_case_in_switch);function y(A){return()=>{const R=ha(A.expression);$oe(u,R)||kke(R,u,A.expression,void 0)}}}),n.caseBlock.locals&&xv(n.caseBlock)}function jlt(n){cg(n)||rr(n.parent,a=>Xa(a)?"quit":a.kind===253&&a.label.escapedText===n.label.escapedText?(En(n.label,_.Duplicate_label_0,kc(n.label)),!0):!1),yo(n.statement)}function Hlt(n){cg(n)||je(n.expression)&&!n.expression.escapedText&&ddt(n,_.Line_break_not_permitted_here),n.expression&&ha(n.expression)}function Wlt(n){cg(n),pj(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const l=a.variableDeclaration;B4(l);const u=iu(l);if(u){const p=pi(u);p&&!(p.flags&3)&&jc(u,_.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(l.initializer)jc(l.initializer,_.Catch_clause_variable_cannot_have_an_initializer);else{const p=a.block.locals;p&&nk(a.locals,y=>{const A=p.get(y);A!=null&&A.valueDeclaration&&A.flags&2&&En(A.valueDeclaration,_.Cannot_redeclare_identifier_0_in_catch_clause,y)})}}pj(a.block)}n.finallyBlock&&pj(n.finallyBlock)}function yj(n,a,l){const u=Nu(n);if(u.length===0)return;for(const y of mv(n))l&&y.flags&4194304||$Re(n,y,HL(y,8576,!0),R0(y));const p=a.valueDeclaration;if(p&&_i(p)){for(const y of p.members)if(!Ja(y)&&!tA(y)){const A=Ir(y);$Re(n,A,Fu(y.name.expression),R0(A))}}if(u.length>1)for(const y of u)zlt(n,y)}function $Re(n,a,l,u){const p=a.valueDeclaration,y=Ia(p);if(y&&Oi(y))return;const A=Rie(n,l),R=ri(n)&2?Il(n.symbol,261):void 0,F=p&&p.kind===223||y&&y.kind===164?p:void 0,J=Sd(a)===n.symbol?p:void 0;for(const Q of A){const ge=Q.declaration&&Sd(Ir(Q.declaration))===n.symbol?Q.declaration:void 0,Ne=J||ge||(R&&!kt(Fo(n),De=>!!Yb(De,a.escapedName)&&!!ay(De,Q.keyType))?R:void 0);if(Ne&&!Ao(u,Q.type)){const De=bE(Ne,_.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,x(a),ke(u),ke(Q.keyType),ke(Q.type));F&&Ne!==F&&Yo(De,Nr(F,_._0_is_declared_here,x(a))),Zo.add(De)}}}function zlt(n,a){const l=a.declaration,u=Rie(n,a.keyType),p=ri(n)&2?Il(n.symbol,261):void 0,y=l&&Sd(Ir(l))===n.symbol?l:void 0;for(const A of u){if(A===a)continue;const R=A.declaration&&Sd(Ir(A.declaration))===n.symbol?A.declaration:void 0,F=y||R||(p&&!kt(Fo(n),J=>!!hh(J,a.keyType)&&!!ay(J,A.keyType))?p:void 0);F&&!Ao(a.type,A.type)&&Ke(F,_._0_index_type_1_is_not_assignable_to_2_index_type_3,ke(a.keyType),ke(a.type),ke(A.keyType),ke(A.type))}}function uI(n,a){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Ke(n,a,n.escapedText)}}function qlt(n){M>=1&&n.escapedText==="Object"&&(de<5||er(n).impliedNodeFormat===1)&&Ke(n,_.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,UM[de])}function Jlt(n){const a=yn(k1(n),_m);if(!Le(a))return;const l=fr(n),u=new Set,p=new Set;if(Je(n.parameters,({name:A},R)=>{je(A)&&u.add(A.escapedText),Ya(A)&&p.add(R)}),Pie(n)){const A=a.length-1,R=a[A];l&&R&&je(R.name)&&R.typeExpression&&R.typeExpression.type&&!u.has(R.name.escapedText)&&!p.has(A)&&!Zf(pi(R.typeExpression.type))&&Ke(R.name,_.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Mr(R.name))}else Je(a,({name:A,isNameFirst:R},F)=>{p.has(F)||je(A)&&u.has(A.escapedText)||(Rd(A)?l&&Ke(A,_.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Pf(A),Pf(A.left)):R||hm(l,A,_.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Mr(A)))})}function U4(n){let a=!1;if(n)for(let u=0;u<n.length;u++){const p=n[u];pRe(p),i(l(p,u))}function l(u,p){return()=>{u.default?(a=!0,Klt(u.default,n,p)):a&&Ke(u,_.Required_type_parameters_may_not_follow_optional_type_parameters);for(let y=0;y<p;y++)n[y].symbol===u.symbol&&Ke(u.name,_.Duplicate_identifier_0,Rs(u.name))}}}function Klt(n,a,l){u(n);function u(p){if(p.kind===180){const y=Wie(p);if(y.flags&262144)for(let A=l;A<a.length;A++)y.symbol===Ir(a[A])&&Ke(p,_.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Pa(p,u)}}function QRe(n){if(n.declarations&&n.declarations.length===1)return;const a=zi(n);if(!a.typeParametersChecked){a.typeParametersChecked=!0;const l=nct(n);if(!l||l.length<=1)return;const u=js(n);if(!ZRe(l,u.localTypeParameters,Mv)){const p=x(n);for(const y of l)Ke(y.name,_.All_declarations_of_0_must_have_identical_type_parameters,p)}}}function ZRe(n,a,l){const u=Le(a),p=Am(a);for(const y of n){const A=l(y),R=A.length;if(R<p||R>u)return!1;for(let F=0;F<R;F++){const J=A[F],Q=a[F];if(J.name.escapedText!==Q.symbol.escapedName)return!1;const ge=jA(J),Ne=ge&&pi(ge),De=Ru(Q);if(Ne&&De&&!ig(Ne,De))return!1;const _t=J.default&&pi(J.default),Bt=qE(Q);if(_t&&Bt&&!ig(_t,Bt))return!1}}return!0}function eNe(n){var a;const l=!re&&M<99&&F1(!1,n),u=M<=9,p=!be||M<9;if(l||u)for(const y of n.members){if(l&&iq(!1,y,n))return(a=tu(Ov(n)))!=null?a:n;if(u){if(Rl(y))return y;if(Ja(y)&&(ad(y)||p&&q8(y)))return y}}}function Xlt(n){var a;if(n.name)return;const l=Rme(n);if(!bq(l))return;const u=!re&&M<99;let p;u&&F1(!1,n)?p=(a=tu(Ov(n)))!=null?a:n:p=eNe(n),p&&(Ec(p,8388608),($c(l)||ro(l)||ms(l))&&Cs(l.name)&&Ec(p,16777216))}function Ylt(n){return tNe(n),fI(n),Xlt(n),or(Ir(n))}function $lt(n){Je(n.members,yo),xv(n)}function Qlt(n){const a=In(n.modifiers,Wu);re&&a&&kt(n.members,l=>Sc(l)&&ad(l))&&En(a,_.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!$r(n,1024)&&jc(n,_.A_class_declaration_without_the_default_modifier_must_have_a_name),tNe(n),Je(n.members,yo),xv(n)}function tNe(n){Out(n),O4(n),cI(n,n.name),U4(Mv(n)),cR(n);const a=Ir(n),l=js(a),u=Yf(l),p=or(a);QRe(a),dj(a),pst(n),!!(n.flags&16777216)||mst(n);const A=am(n);if(A){Je(A.typeArguments,yo),M<2&&Ec(A.parent,1);const J=G1(n);J&&J!==A&&ha(J.expression);const Q=Fo(l);Q.length&&i(()=>{const ge=Q[0],Ne=oi(l),De=ed(Ne);if(ect(De,A),yo(A.expression),kt(A.typeArguments)){Je(A.typeArguments,yo);for(const Bt of Kr(De,A.typeArguments,A))if(!ERe(A,Bt.typeParameters))break}const _t=Yf(ge,l.thisType);if(fd(u,_t,void 0)?fd(p,Tke(De),n.name||n,_.Class_static_side_0_incorrectly_extends_base_class_static_side_1):iNe(n,u,_t,_.Class_0_incorrectly_extends_base_class_1),Ne.flags&8650752&&(OP(p)?za(Ne,1).some(Fn=>Fn.flags&4)&&!$r(n,256)&&Ke(n.name||n,_.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Ke(n.name||n,_.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(De.symbol&&De.symbol.flags&32)&&!(Ne.flags&8650752)){const Bt=Vr(De,A.typeArguments,A);Je(Bt,Fn=>!Kp(Fn.declaration)&&!ig(vs(Fn),ge))&&Ke(A.expression,_.Base_constructors_must_all_have_the_same_return_type)}rct(l,ge)})}Zlt(n,l,u,p);const R=_C(n);if(R)for(const J of R)(!Xl(J.expression)||xu(J.expression))&&Ke(J.expression,_.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),ise(J),i(F(J));i(()=>{yj(l,a),yj(p,a,!0),tse(n),oct(n)});function F(J){return()=>{const Q=yp(pi(J));if(!rs(Q))if(ph(Q)){const ge=Q.symbol&&Q.symbol.flags&32?_.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:_.Class_0_incorrectly_implements_interface_1,Ne=Yf(Q,l.thisType);fd(u,Ne,void 0)||iNe(n,u,Ne,ge)}else Ke(J,_.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Zlt(n,a,l,u){const y=am(n)&&Fo(a),A=y!=null&&y.length?Yf(ds(y),a.thisType):void 0,R=oi(a);for(const F of n.members)Bq(F)||(Yl(F)&&Je(F.parameters,J=>{df(J,F)&&nNe(n,u,R,A,a,l,J,!0)}),nNe(n,u,R,A,a,l,F,!1))}function nNe(n,a,l,u,p,y,A,R,F=!0){const J=A.name&&G_(A.name)||G_(A);return J?rNe(n,a,l,u,p,y,Fq(A),H1(A),Ja(A),R,Gl(J),F?A:void 0):0}function rNe(n,a,l,u,p,y,A,R,F,J,Q,ge){const Ne=fr(n),De=!!(n.flags&16777216);if(u&&(A||$.noImplicitOverride)){const _t=ul(Q),Bt=F?a:y,Fn=F?l:u,An=fo(Bt,_t),Xn=fo(Fn,_t),hn=ke(u);if(An&&!Xn&&A){if(ge){const xn=mDe(Q,Fn);xn?Ke(ge,Ne?_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,hn,x(xn)):Ke(ge,Ne?_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,hn)}return 2}else if(An&&(Xn!=null&&Xn.declarations)&&$.noImplicitOverride&&!De){const xn=kt(Xn.declarations,H1);if(A)return 0;if(xn){if(R&&xn)return ge&&Ke(ge,_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,hn),1}else{if(ge){const yr=J?Ne?_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Ne?_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Ke(ge,yr,hn)}return 1}}}else if(A){if(ge){const _t=ke(p);Ke(ge,Ne?_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:_.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,_t)}return 2}return 0}function iNe(n,a,l,u){let p=!1;for(const y of n.members){if(Ja(y))continue;const A=y.name&&G_(y.name)||G_(y);if(A){const R=fo(a,A.escapedName),F=fo(l,A.escapedName);if(R&&F){const J=()=>Ra(void 0,_.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,x(A),ke(a),ke(l));fd(or(R),or(F),y.name||y,void 0,J)||(p=!0)}}}p||fd(a,l,n.name||n,u)}function ect(n,a){const l=za(n,1);if(l.length){const u=l[0].declaration;if(u&&zd(u,8)){const p=Lg(n.symbol);Tse(a,p)||Ke(a,_.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Jh(n.symbol))}}}function tct(n,a,l){if(!a.name)return 0;const u=Ir(n),p=js(u),y=Yf(p),A=or(u),F=am(n)&&Fo(p),J=F!=null&&F.length?Yf(ds(F),p.thisType):void 0,Q=oi(p),ge=a.parent?Fq(a):$r(a,16384);return rNe(n,A,Q,J,p,y,ge,H1(a),Ja(a),!1,Gl(l))}function EA(n){return Dl(n)&1?n.links.target:n}function nct(n){return yn(n.declarations,a=>a.kind===260||a.kind===261)}function rct(n,a){var l,u,p,y;const A=gs(a);e:for(const R of A){const F=EA(R);if(F.flags&4194304)continue;const J=Yb(n,F.escapedName);if(!J)continue;const Q=EA(J),ge=s_(F);if(D.assert(!!Q,"derived should point to something, even if it is the base class' declaration."),Q===F){const Ne=Lg(n.symbol);if(ge&256&&(!Ne||!$r(Ne,256))){for(const De of Fo(n)){if(De===a)continue;const _t=Yb(De,F.escapedName),Bt=_t&&EA(_t);if(Bt&&Bt!==F)continue e}Ne.kind===228?Ke(Ne,_.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,x(R),ke(a)):Ke(Ne,_.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,ke(n),x(R),ke(a))}}else{const Ne=s_(Q);if(ge&8||Ne&8)continue;let De;const _t=F.flags&98308,Bt=Q.flags&98308;if(_t&&Bt){if((Dl(F)&6?(l=F.declarations)!=null&&l.some(Xn=>aNe(Xn,ge)):(u=F.declarations)!=null&&u.every(Xn=>aNe(Xn,ge)))||Dl(F)&262144||Q.valueDeclaration&&br(Q.valueDeclaration))continue;const Fn=_t!==4&&Bt===4;if(Fn||_t===4&&Bt!==4){const Xn=Fn?_._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:_._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Ke(Ia(Q.valueDeclaration)||Q.valueDeclaration,Xn,x(F),ke(a),ke(n))}else if(be){const Xn=(p=Q.declarations)==null?void 0:p.find(hn=>hn.kind===169&&!hn.initializer);if(Xn&&!(Q.flags&33554432)&&!(ge&256)&&!(Ne&256)&&!((y=Q.declarations)!=null&&y.some(hn=>!!(hn.flags&16777216)))){const hn=A0(Lg(n.symbol)),xn=Xn.name;if(Xn.exclamationToken||!hn||!je(xn)||!W||!sNe(xn,n,hn)){const yr=_.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Ke(Ia(Q.valueDeclaration)||Q.valueDeclaration,yr,x(F),ke(a))}}}continue}else if(Eoe(F)){if(Eoe(Q)||Q.flags&4)continue;D.assert(!!(Q.flags&98304)),De=_.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else F.flags&98304?De=_.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:De=_.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Ke(Ia(Q.valueDeclaration)||Q.valueDeclaration,De,ke(a),x(F),ke(n))}}}function aNe(n,a){return a&256&&(!ro(n)||!n.initializer)||ud(n.parent)}function ict(n,a,l){if(!Le(a))return l;const u=new Map;Je(l,p=>{u.set(p.escapedName,p)});for(const p of a){const y=gs(Yf(p,n.thisType));for(const A of y){const R=u.get(A.escapedName);R&&A.parent===R.parent&&u.delete(A.escapedName)}}return No(u.values())}function act(n,a){const l=Fo(n);if(l.length<2)return!0;const u=new Map;Je(_ie(n).declaredProperties,y=>{u.set(y.escapedName,{prop:y,containingType:n})});let p=!0;for(const y of l){const A=gs(Yf(y,n.thisType));for(const R of A){const F=u.get(R.escapedName);if(!F)u.set(R.escapedName,{prop:R,containingType:y});else if(F.containingType!==n&&!xnt(F.prop,R)){p=!1;const Q=ke(F.containingType),ge=ke(y);let Ne=Ra(void 0,_.Named_property_0_of_types_1_and_2_are_not_identical,x(R),Q,ge);Ne=Ra(Ne,_.Interface_0_cannot_simultaneously_extend_types_1_and_2,ke(n),Q,ge),Zo.add(Eg(er(a),a,Ne))}}}return p}function oct(n){if(!W||!Ee||n.flags&16777216)return;const a=A0(n);for(const l of n.members)if(!(Hu(l)&2)&&!Ja(l)&&oNe(l)){const u=l.name;if(je(u)||Oi(u)||Cs(u)){const p=or(Ir(l));p.flags&3||zL(p)||(!a||!sNe(u,p,a))&&Ke(l.name,_.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Rs(u))}}}function oNe(n){return n.kind===169&&!H1(n)&&!n.exclamationToken&&!n.initializer}function sct(n,a,l,u,p){for(const y of l)if(y.pos>=u&&y.pos<=p){const A=N.createPropertyAccessExpression(N.createThis(),n);jo(A.expression,A),jo(A,y),A.flowNode=y.returnFlowNode;const R=W0(A,a,uy(a));if(!zL(R))return!0}return!1}function sNe(n,a,l){const u=Cs(n)?N.createElementAccessExpression(N.createThis(),n.expression):N.createPropertyAccessExpression(N.createThis(),n);jo(u.expression,u),jo(u,l),u.flowNode=l.returnFlowNode;const p=W0(u,a,uy(a));return!zL(p)}function lct(n){vh(n)||Vut(n),U4(n.typeParameters),i(()=>{uI(n.name,_.Interface_name_cannot_be_0),cR(n);const a=Ir(n);QRe(a);const l=Il(a,261);if(n===l){const u=js(a),p=Yf(u);if(act(u,n.name)){for(const y of Fo(u))fd(p,Yf(y,u.thisType),n.name,_.Interface_0_incorrectly_extends_interface_1);yj(u,a)}}gRe(n)}),Je(mk(n),a=>{(!Xl(a.expression)||xu(a.expression))&&Ke(a.expression,_.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),ise(a)}),Je(n.members,yo),i(()=>{tse(n),xv(n)})}function cct(n){vh(n),uI(n.name,_.Type_alias_name_cannot_be_0),cR(n),U4(n.typeParameters),n.type.kind===139?(!j8.has(n.name.escapedText)||Le(n.typeParameters)!==1)&&Ke(n.type,_.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(yo(n.type),xv(n))}function lNe(n){const a=Jr(n);if(!(a.flags&1024)){a.flags|=1024;let l=0;for(const u of n.members){const p=uct(u,l);Jr(u).enumMemberValue=p,l=typeof p=="number"?p+1:void 0}}}function uct(n,a){if(CN(n.name))Ke(n.name,_.Computed_property_names_are_not_allowed_in_enums);else{const l=QA(n.name);Oh(l)&&!jk(l)&&Ke(n.name,_.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return dct(n);if(!(n.parent.flags&16777216&&!M1(n.parent))){if(a!==void 0)return a;Ke(n.name,_.Enum_member_must_have_initializer)}}function dct(n){const a=M1(n.parent),l=n.initializer,u=dI(l,n);return u!==void 0?a&&typeof u=="number"&&!isFinite(u)&&Ke(l,isNaN(u)?_.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:_.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?Ke(l,_.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&16777216?Ke(l,_.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):fd(ha(l),mt,l,_.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),u}function dI(n,a){switch(n.kind){case 221:const l=dI(n.operand,a);if(typeof l=="number")switch(n.operator){case 39:return l;case 40:return-l;case 54:return~l}break;case 223:const u=dI(n.left,a),p=dI(n.right,a);if(typeof u=="number"&&typeof p=="number")switch(n.operatorToken.kind){case 51:return u|p;case 50:return u&p;case 48:return u>>p;case 49:return u>>>p;case 47:return u<<p;case 52:return u^p;case 41:return u*p;case 43:return u/p;case 39:return u+p;case 40:return u-p;case 44:return u%p;case 42:return q4(u,p)}else if((typeof u=="string"||typeof u=="number")&&(typeof p=="string"||typeof p=="number")&&n.operatorToken.kind===39)return""+u+p;break;case 10:case 14:return n.text;case 225:return fct(n,a);case 8:return Nse(n),+n.text;case 214:return dI(n.expression,a);case 79:if(jk(n.escapedText))return+n.escapedText;case 208:if(Xl(n)){const A=Ml(n,111551,!0);if(A){if(A.flags&8)return cNe(n,A,a);if(QL(A)){const R=A.valueDeclaration;if(R&&!R.type&&R.initializer&&R!==a&&Wg(R,a))return dI(R.initializer,R)}}}break;case 209:const y=n.expression;if(Xl(y)&&As(n.argumentExpression)){const A=Ml(y,111551,!0);if(A&&A.flags&384){const R=ul(n.argumentExpression.text),F=A.exports.get(R);if(F)return cNe(n,F,a)}}break}}function cNe(n,a,l){const u=a.valueDeclaration;if(!u||u===l){Ke(n,_.Property_0_is_used_before_being_assigned,x(a));return}return Wg(u,l)?Lj(u):(Ke(n,_.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function fct(n,a){let l=n.head.text;for(const u of n.templateSpans){const p=dI(u.expression,a);if(p===void 0)return;l+=p,l+=u.literal.text}return l}function _ct(n){i(()=>pct(n))}function pct(n){vh(n),cI(n,n.name),cR(n),n.members.forEach(mct),lNe(n);const a=Ir(n),l=Il(a,n.kind);if(n===l){if(a.declarations&&a.declarations.length>1){const p=M1(n);Je(a.declarations,y=>{yb(y)&&M1(y)!==p&&Ke(Ia(y),_.Enum_declarations_must_all_be_const_or_non_const)})}let u=!1;Je(a.declarations,p=>{if(p.kind!==263)return!1;const y=p;if(!y.members.length)return!1;const A=y.members[0];A.initializer||(u?Ke(A.name,_.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):u=!0)})}}function mct(n){Oi(n.name)&&Ke(n,_.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&ha(n.initializer)}function hct(n){const a=n.declarations;if(a){for(const l of a)if((l.kind===260||l.kind===259&&E_(l.body))&&!(l.flags&16777216))return l}}function gct(n,a){const l=zm(n),u=zm(a);return sh(l)?sh(u):sh(u)?!1:l===u}function yct(n){n.body&&(yo(n.body),im(n)||xv(n)),i(a);function a(){var l,u;const p=im(n),y=n.flags&16777216;p&&!y&&Ke(n.name,_.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const A=ju(n),R=A?_.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:_.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(V4(n,R))return;vh(n)||!y&&n.name.kind===10&&En(n.name,_.Only_ambient_modules_can_use_quoted_names),je(n.name)&&cI(n,n.name),cR(n);const F=Ir(n);if(F.flags&512&&!y&&zX(n,W1($))){if(Y_($)&&!er(n).externalModuleIndicator&&Ke(n.name,_.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Vt),((l=F.declarations)==null?void 0:l.length)>1){const J=hct(F);J&&(er(n)!==er(J)?Ke(n.name,_.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<J.pos&&Ke(n.name,_.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const Q=Il(F,260);Q&&gct(n,Q)&&(Jr(n).flags|=2048)}if($.verbatimModuleSyntax&&n.parent.kind===308&&(de===1||n.parent.impliedNodeFormat===1)){const J=(u=n.modifiers)==null?void 0:u.find(Q=>Q.kind===93);J&&Ke(J,_.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(A)if(O1(n)){if((p||Ir(n).flags&33554432)&&n.body)for(const Q of n.body.statements)yse(Q,p)}else sh(n.parent)?p?Ke(n.name,_.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):zc(K_(n.name))&&Ke(n.name,_.Ambient_module_declaration_cannot_specify_relative_module_name):p?Ke(n.name,_.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ke(n.name,_.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function yse(n,a){switch(n.kind){case 240:for(const u of n.declarationList.declarations)yse(u,a);break;case 274:case 275:jc(n,_.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 268:case 269:jc(n,_.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 205:case 257:const l=n.name;if(Ya(l)){for(const u of l.elements)yse(u,a);break}case 260:case 263:case 259:case 261:case 264:case 262:if(a)return;break}}function vct(n){switch(n.kind){case 79:return n;case 163:do n=n.left;while(n.kind!==79);return n;case 208:do{if(kh(n.expression)&&!Oi(n.name))return n.name;n=n.expression}while(n.kind!==79);return n}}function vse(n){const a=sC(n);if(!a||kl(a))return!1;if(!Ho(a))return Ke(a,_.String_literal_expected),!1;const l=n.parent.kind===265&&ju(n.parent.parent);if(n.parent.kind!==308&&!l)return Ke(a,n.kind===275?_.Export_declarations_are_not_permitted_in_a_namespace:_.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(l&&zc(a.text)&&!of(n))return Ke(n,_.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!_u(n)&&n.assertClause){let u=!1;for(const p of n.assertClause.elements)Ho(p.value)||(u=!0,Ke(p.value,_.Import_assertion_values_must_be_string_literal_expressions));return!u}return!0}function vj(n){var a,l,u,p,y;let A=Ir(n);const R=oc(A);if(R!==rn){if(A=as(A.exportSymbol||A),fr(n)&&!(R.flags&111551)&&!D1(n)){const Q=mx(n)?n.propertyName||n.name:Su(n)?n.name:n;if(D.assert(n.kind!==277),n.kind===278){const ge=Ke(Q,_.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Ne=(l=(a=er(n).symbol)==null?void 0:a.exports)==null?void 0:l.get((n.propertyName||n.name).escapedText);if(Ne===R){const De=(u=Ne.declarations)==null?void 0:u.find(KA);De&&Yo(ge,Nr(De,_._0_is_automatically_exported_here,ra(Ne.escapedName)))}}else{D.assert(n.kind!==257);const ge=rr(n,Fm(Yc,_u)),Ne=(y=ge&&((p=HN(ge))==null?void 0:p.text))!=null?y:"...",De=ra(je(Q)?Q.escapedText:A.escapedName);Ke(Q,_._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,De,`import("${Ne}").${De}`)}return}const F=hu(R),J=(A.flags&1160127?111551:0)|(A.flags&788968?788968:0)|(A.flags&1920?1920:0);if(F&J){const Q=n.kind===278?_.Export_declaration_conflicts_with_exported_declaration_of_0:_.Import_declaration_conflicts_with_local_declaration_of_0;Ke(n,Q,x(A))}if(Y_($)&&!D1(n)&&!(n.flags&16777216)){const Q=Bd(A),ge=!(F&111551);if(ge||Q)switch(n.kind){case 270:case 273:case 268:{if($.preserveValueImports||$.verbatimModuleSyntax){D.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const Ne=$.verbatimModuleSyntax&&aC(n)?_.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:ge?$.verbatimModuleSyntax?_._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:_._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:$.verbatimModuleSyntax?_._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:_._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,De=Mr(n.kind===273&&n.propertyName||n.name);AS(Ke(n,Ne,De),ge?void 0:Q,De)}ge&&n.kind===268&&zd(n,1)&&Ke(n,_.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Vt);break}case 278:if($.verbatimModuleSyntax||er(Q)!==er(n)){const Ne=Mr(n.propertyName||n.name),De=ge?Ke(n,_.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Vt):Ke(n,_._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Ne,Vt);AS(De,ge?void 0:Q,Ne);break}}$.verbatimModuleSyntax&&n.kind!==268&&!fr(n)&&(de===1||er(n).impliedNodeFormat===1)&&Ke(n,_.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(Nd(n)){const Q=dNe(A,n);uNe(Q)&&Q.declarations&&jg(n,Q.declarations,Q.escapedName)}}}function uNe(n){return!!n.declarations&&Zn(n.declarations,a=>!!(xp(a)&268435456))}function dNe(n,a){if(!(n.flags&2097152))return n;const l=oc(n);if(l===rn)return l;for(;n.flags&2097152;){const u=moe(n);if(u){if(u===l)break;if(u.declarations&&Le(u.declarations))if(uNe(u)){jg(a,u.declarations,u.escapedName);break}else{if(n===l)break;n=u}}else break}return l}function bj(n){cI(n,n.name),vj(n),n.kind===273&&Mr(n.propertyName||n.name)==="default"&&$_($)&&de!==4&&(de<5||er(n).impliedNodeFormat===1)&&Ec(n,131072)}function fNe(n){var a;if(n.assertClause){const l=GY(n),u=c2(n.assertClause,l?En:void 0);if(l&&u)return sO()||En(n.assertClause,_.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),Tl($)!==3&&Tl($)!==99?En(n.assertClause,_.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((de===199&&n.moduleSpecifier&&Xy(n.moduleSpecifier))!==99&&de!==99)return En(n.assertClause,de===199?_.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:_.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(Yc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return En(n.assertClause,_.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(u)return En(n.assertClause,_.resolution_mode_can_only_be_set_for_type_only_imports)}}function bct(n){if(!V4(n,fr(n)?_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!vh(n)&&a7(n)&&jc(n,_.An_import_declaration_cannot_have_modifiers),vse(n)){const a=n.importClause;a&&!_dt(a)&&(a.name&&bj(a),a.namedBindings&&(a.namedBindings.kind===271?(bj(a.namedBindings),de!==4&&(de<5||er(n).impliedNodeFormat===1)&&$_($)&&Ec(n,65536)):gu(n,n.moduleSpecifier)&&Je(a.namedBindings.elements,bj)))}fNe(n)}}function Ect(n){if(!V4(n,fr(n)?_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(vh(n),aC(n)||vse(n)))if(bj(n),$r(n,1)&&CE(n),n.moduleReference.kind!==280){const a=oc(Ir(n));if(a!==rn){const l=hu(a);if(l&111551){const u=Ff(n.moduleReference);Ml(u,112575).flags&1920||Ke(u,_.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Rs(u))}l&788968&&uI(n.name,_.Import_name_cannot_be_0)}n.isTypeOnly&&En(n,_.An_import_alias_cannot_use_import_type)}else de>=5&&er(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&16777216)&&En(n,_.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function Tct(n){if(!V4(n,fr(n)?_.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:_.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!vh(n)&&v_e(n)&&jc(n,_.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&tp(n.exportClause)&&Le(n.exportClause.elements)&&M===0&&Ec(n,4194304),Sct(n),!n.moduleSpecifier||vse(n))if(n.exportClause&&!Bh(n.exportClause)){Je(n.exportClause.elements,kct);const a=n.parent.kind===265&&ju(n.parent.parent),l=!a&&n.parent.kind===265&&!n.moduleSpecifier&&n.flags&16777216;n.parent.kind!==308&&!a&&!l&&Ke(n,_.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=gu(n,n.moduleSpecifier);a&&kE(a)?Ke(n.moduleSpecifier,_.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,x(a)):n.exportClause&&vj(n.exportClause),de!==4&&(de<5||er(n).impliedNodeFormat===1)&&(n.exportClause?$_($)&&Ec(n,65536):Ec(n,32768))}fNe(n)}}function Sct(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===276?HNe(n.exportClause):!1}function V4(n,a){const l=n.parent.kind===308||n.parent.kind===265||n.parent.kind===264;return l||jc(n,a),!l}function xct(n){return K3(n,a=>!!Ir(a).isReferenced)}function Act(n){return K3(n,a=>!!zi(Ir(a)).constEnumReferenced)}function Cct(n){return Yc(n)&&n.importClause&&!n.importClause.isTypeOnly&&xct(n.importClause)&&!Cj(n.importClause,!0)&&!Act(n.importClause)}function Lct(n){return _u(n)&&eh(n.moduleReference)&&!n.isTypeOnly&&Ir(n).isReferenced&&!Cj(n,!1)&&!zi(Ir(n)).constEnumReferenced}function Ict(n){for(const a of n.statements)(Cct(a)||Lct(a))&&Ke(a,_.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function kct(n){if(vj(n),Q_($)&&UE(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)$_($)&&de!==4&&(de<5||er(n).impliedNodeFormat===1)&&Mr(n.propertyName||n.name)==="default"&&Ec(n,131072);else{const a=n.propertyName||n.name,l=hl(a,a.escapedText,2998271,void 0,void 0,!0);if(l&&(l===Fe||l===st||l.declarations&&sh(VE(l.declarations[0]))))Ke(a,_.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Mr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&CE(n);const u=l&&(l.flags&2097152?oc(l):l);(!u||hu(u)&111551)&&nc(n.propertyName||n.name)}}}function wct(n){const a=n.isExportEquals?_.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:_.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(V4(n,a))return;const l=n.parent.kind===308?n.parent:n.parent.parent;if(l.kind===264&&!ju(l)){n.isExportEquals?Ke(n,_.An_export_assignment_cannot_be_used_in_a_namespace):Ke(n,_.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!vh(n)&&a7(n)&&jc(n,_.An_export_assignment_cannot_have_modifiers);const u=iu(n);u&&fd(nc(n.expression),pi(u),n.expression);const p=!n.isExportEquals&&!(n.flags&16777216)&&$.verbatimModuleSyntax&&(de===1||er(n).impliedNodeFormat===1);if(n.expression.kind===79){const y=n.expression,A=Vp(Ml(y,67108863,!0,!0,n));A?(UV(A,y),hu(A)&111551?(nc(y),!p&&$.verbatimModuleSyntax&&Bd(A,111551)&&Ke(y,n.isExportEquals?_.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:_.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Mr(y))):!p&&$.verbatimModuleSyntax&&Ke(y,n.isExportEquals?_.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:_.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Mr(y))):nc(y),Q_($)&&UE(y,!0)}else nc(n.expression);p&&Ke(n,_.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),_Ne(l),n.flags&16777216&&!Xl(n.expression)&&En(n.expression,_.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(de>=5&&(n.flags&16777216&&er(n).impliedNodeFormat===99||!(n.flags&16777216)&&er(n).impliedNodeFormat!==1)?En(n,_.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):de===4&&!(n.flags&16777216)&&En(n,_.Export_assignment_is_not_supported_when_module_flag_is_system))}function Dct(n){return pf(n.exports,(a,l)=>l!=="export=")}function _Ne(n){const a=Ir(n),l=zi(a);if(!l.exportsChecked){const u=a.exports.get("export=");if(u&&Dct(a)){const y=Ed(u)||u.valueDeclaration;y&&!of(y)&&!fr(y)&&Ke(y,_.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const p=$h(a);p&&p.forEach(({declarations:y,flags:A},R)=>{if(R==="__export"||A&1920)return;const F=Wc(y,bM(lye,EM(ud)));if(!(A&524288&&F<=2)&&F>1&&!Ej(y))for(const J of y)aye(J)&&Zo.add(Nr(J,_.Cannot_redeclare_exported_variable_0,ra(R)))}),l.exportsChecked=!0}}function Ej(n){return n&&n.length>1&&n.every(a=>fr(a)&&dl(a)&&(IT(a.expression)||kh(a.expression)))}function yo(n){if(n){const a=G;G=n,I=0,Rct(n),G=a}}function Rct(n){KN(n)&&Je(n.jsDoc,({comment:l,tags:u})=>{pNe(l),Je(u,p=>{pNe(p.comment),fr(n)&&yo(p)})});const a=n.kind;if(o)switch(a){case 264:case 260:case 261:case 259:o.throwIfCancellationRequested()}switch(a>=240&&a<=256&&JN(n)&&n.flowNode&&!f4(n.flowNode)&&hm($.allowUnreachableCode===!1,n,_.Unreachable_code_detected),a){case 165:return pRe(n);case 166:return mRe(n);case 169:return yRe(n);case 168:return hst(n);case 182:case 181:case 176:case 177:case 178:return lR(n);case 171:case 170:return gst(n);case 172:return yst(n);case 173:return vst(n);case 174:case 175:return bRe(n);case 180:return ise(n);case 179:return fst(n);case 183:return Ast(n);case 184:return Cst(n);case 185:return Lst(n);case 186:return Ist(n);case 189:case 190:return kst(n);case 193:case 187:case 188:return yo(n.type);case 194:return Nst(n);case 195:return Ost(n);case 191:return Pst(n);case 192:return Mst(n);case 200:return Fst(n);case 202:return Bst(n);case 199:return Gst(n);case 331:return rlt(n);case 332:return nlt(n);case 349:case 341:case 343:return Kst(n);case 348:return Xst(n);case 347:return Yst(n);case 327:case 328:case 329:return Qst(n);case 344:return Zst(n);case 351:return elt(n);case 320:tlt(n);case 318:case 317:case 315:case 316:case 325:mNe(n),Pa(n,yo);return;case 321:Nct(n);return;case 312:return yo(n.type);case 336:case 338:case 337:return ilt(n);case 353:return $st(n);case 196:return wst(n);case 197:return Dst(n);case 259:return Jst(n);case 238:case 265:return pj(n);case 240:return Elt(n);case 241:return Tlt(n);case 242:return Slt(n);case 243:return Clt(n);case 244:return Llt(n);case 245:return Ilt(n);case 246:return wlt(n);case 247:return klt(n);case 248:case 249:return Blt(n);case 250:return Glt(n);case 251:return Ult(n);case 252:return Vlt(n);case 253:return jlt(n);case 254:return Hlt(n);case 255:return Wlt(n);case 257:return cse(n);case 205:return blt(n);case 260:return Qlt(n);case 261:return lct(n);case 262:return cct(n);case 263:return _ct(n);case 264:return yct(n);case 269:return bct(n);case 268:return Ect(n);case 275:return Tct(n);case 274:return wct(n);case 239:case 256:cg(n);return;case 279:return Est(n)}}function pNe(n){Va(n)&&Je(n,a=>{vx(a)&&yo(a)})}function mNe(n){if(!fr(n))if(y5(n)||HC(n)){const a=vo(y5(n)?53:57),l=n.postfix?_._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:_._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,u=n.type,p=pi(u);En(n,l,a,ke(HC(n)&&!(p===gt||p===Rt)?Zr(Bn([p,He],n.postfix?void 0:Sn)):p))}else En(n,_.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Nct(n){mNe(n),yo(n.type);const{parent:a}=n;if(Fa(a)&&WC(a.parent)){Jo(a.parent.parameters)!==a&&Ke(n,_.A_rest_parameter_must_be_last_in_a_parameter_list);return}qT(a)||Ke(n,_.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const l=n.parent.parent;if(!_m(l)){Ke(n,_.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const u=XN(l);if(!u)return;const p=cb(l);(!p||Jo(p.parameters).symbol!==u)&&Ke(n,_.A_rest_parameter_must_be_last_in_a_parameter_list)}function Oct(n){const a=pi(n.type),{parent:l}=n,u=n.parent.parent;if(qT(n.parent)&&_m(u)){const p=cb(u),y=bK(u.parent.parent);if(p||y){const A=rl(y?u.parent.parent.typeExpression.parameters:p.parameters),R=XN(u);if(!A||R&&A.symbol===R&&Lh(A))return Ou(a)}}return Fa(l)&&WC(l.parent)?Ou(a):ko(a)}function fI(n){const a=er(n),l=Jr(a);l.flags&1?D.assert(!l.deferredNodes,"A type-checked file should have no deferred nodes."):(l.deferredNodes||(l.deferredNodes=new Set),l.deferredNodes.add(n))}function Pct(n){const a=Jr(n);a.deferredNodes&&a.deferredNodes.forEach(Mct),a.deferredNodes=void 0}function Mct(n){var a,l;(a=Si)==null||a.push(Si.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const u=G;switch(G=n,I=0,n.kind){case 210:case 211:case 212:case 167:case 283:gA(n);break;case 215:case 216:case 171:case 170:kot(n);break;case 174:case 175:bRe(n);break;case 228:$lt(n);break;case 165:dst(n);break;case 282:jit(n);break;case 281:Wit(n);break}G=u,(l=Si)==null||l.pop()}function Fct(n){var a,l;(a=Si)==null||a.push(Si.Phase.Check,"checkSourceFile",{path:n.path},!0),ll("beforeCheck"),Bct(n),ll("afterCheck"),n_("Check","beforeCheck","afterCheck"),(l=Si)==null||l.pop()}function hNe(n,a){if(a)return!1;switch(n){case 0:return!!$.noUnusedLocals;case 1:return!!$.noUnusedParameters;default:return D.assertNever(n)}}function gNe(n){return bn.get(n.path)||rt}function Bct(n){const a=Jr(n);if(!(a.flags&1)){if(Fk(n,$,e))return;ldt(n),Aa(yE),Aa(_0),Aa(wb),Aa(p0),Aa(ES),Je(n.statements,yo),yo(n.endOfFileToken),Pct(n),mf(n)&&xv(n),i(()=>{!n.isDeclarationFile&&($.noUnusedLocals||$.noUnusedParameters)&&RRe(gNe(n),(l,u,p)=>{!SN(l)&&hNe(u,!!(l.flags&16777216))&&Zo.add(p)}),n.isDeclarationFile||llt()}),$.importsNotUsedAsValues===2&&!n.isDeclarationFile&&rc(n)&&Ict(n),mf(n)&&_Ne(n),yE.length&&(Je(yE,dlt),Aa(yE)),_0.length&&(Je(_0,flt),Aa(_0)),wb.length&&(Je(wb,hlt),Aa(wb)),p0.length&&(Je(p0,ylt),Aa(p0)),a.flags|=1}}function yNe(n,a){try{return o=a,Gct(n)}finally{o=void 0}}function bse(){for(const n of r)n();r=[]}function Ese(n){bse();const a=i;i=l=>l(),Fct(n),i=a}function Gct(n){if(n){bse();const a=Zo.getGlobalDiagnostics(),l=a.length;Ese(n);const u=Zo.getDiagnostics(n.fileName),p=Zo.getGlobalDiagnostics();if(p!==a){const y=Vce(a,p,Nk);return ya(y,u)}else if(l===0&&p.length>0)return ya(p,u);return u}return Je(e.getSourceFiles(),Ese),Zo.getDiagnostics()}function Uct(){return bse(),Zo.getGlobalDiagnostics()}function Vct(n,a){if(n.flags&33554432)return[];const l=co();let u=!1;return p(),l.delete("this"),Nie(l);function p(){for(;n;){switch(jm(n)&&n.locals&&!sh(n)&&A(n.locals,a),n.kind){case 308:if(!rc(n))break;case 264:R(Ir(n).exports,a&2623475);break;case 263:A(Ir(n).exports,a&8);break;case 228:n.name&&y(n.symbol,a);case 260:case 261:u||A(_v(Ir(n)),a&788968);break;case 215:n.name&&y(n.symbol,a);break}wfe(n)&&y(Ct,a),u=Ja(n),n=n.parent}A(We,a)}function y(F,J){if(kk(F)&J){const Q=F.escapedName;l.has(Q)||l.set(Q,F)}}function A(F,J){J&&F.forEach(Q=>{y(Q,J)})}function R(F,J){J&&F.forEach(Q=>{!Il(Q,278)&&!Il(Q,277)&&y(Q,J)})}}function jct(n){return n.kind===79&&LC(n.parent)&&Ia(n.parent)===n}function vNe(n){for(;n.parent.kind===163;)n=n.parent;return n.parent.kind===180}function Hct(n){for(;n.parent.kind===208;)n=n.parent;return n.parent.kind===230}function bNe(n,a){let l,u=wc(n);for(;u&&!(l=a(u));)u=wc(u);return l}function Wct(n){return!!rr(n,a=>Yl(a)&&E_(a.body)||ro(a)?!0:_i(a)||el(a)?"quit":!1)}function Tse(n,a){return!!bNe(n,l=>l===a)}function zct(n){for(;n.parent.kind===163;)n=n.parent;if(n.parent.kind===268)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===274)return n.parent.expression===n?n.parent:void 0}function Tj(n){return zct(n)!==void 0}function qct(n){switch(wl(n.parent.parent)){case 1:case 3:return nf(n.parent);case 4:case 2:case 5:return Ir(n.parent.parent)}}function Jct(n){let a=n.parent;for(;Rd(a);)n=a,a=a.parent;if(a&&a.kind===202&&a.qualifier===n)return a}function ENe(n){if(Ag(n))return nf(n.parent);if(fr(n)&&n.parent.kind===208&&n.parent===n.parent.parent.left&&!Oi(n)&&!vb(n)){const a=qct(n);if(a)return a}if(n.parent.kind===274&&Xl(n)){const a=Ml(n,2998271,!0);if(a&&a!==rn)return a}else if(ff(n)&&Tj(n)){const a=ub(n,268);return D.assert(a!==void 0),Up(n,!0)}if(ff(n)){const a=Jct(n);if(a){pi(a);const l=Jr(n).resolvedSymbol;return l===rn?void 0:l}}for(;L_e(n);)n=n.parent;if(Hct(n)){let a=0;n.parent.kind===230?(a=Ih(n)?788968:111551,fO(n.parent)&&(a|=111551)):a=1920,a|=2097152;const l=Xl(n)?Ml(n,a):void 0;if(l)return l}if(n.parent.kind===344)return XN(n.parent);if(n.parent.kind===165&&n.parent.parent.kind===348){D.assert(!fr(n));const a=Jfe(n.parent);return a&&a.symbol}if(Sg(n)){if(kl(n))return;const a=rr(n,Fm(vx,sw,vb)),l=a?901119:111551;if(n.kind===79){if(uk(n)&&eI(n)){const p=goe(n.parent);return p===rn?void 0:p}const u=Ml(n,l,!1,!0,cb(n));if(!u&&a){const p=rr(n,Fm(_i,ud));if(p)return j4(n,!1,Ir(p))}if(u&&a){const p=Cx(n);if(p&&Q1(p)&&p===u.valueDeclaration)return Ml(n,l,!0,!0,er(p))||u}return u}else{if(Oi(n))return YV(n);if(n.kind===208||n.kind===163){const u=Jr(n);if(u.resolvedSymbol)return u.resolvedSymbol;if(n.kind===208){if(sDe(n,0),!u.resolvedSymbol){const p=nc(n.expression),y=Rie(p,sy(n.name));if(y.length&&p.members){const R=gp(p).members.get("__index");if(y===Nu(p))u.resolvedSymbol=R;else if(R){const F=zi(R),J=pa(y,ge=>ge.declaration),Q=zt(J,hs).join(",");if(F.filteredIndexSymbolCache||(F.filteredIndexSymbolCache=new Map),F.filteredIndexSymbolCache.has(Q))u.resolvedSymbol=F.filteredIndexSymbolCache.get(Q);else{const ge=ns(131072,"__index");ge.declarations=pa(y,Ne=>Ne.declaration),ge.parent=p.aliasSymbol?p.aliasSymbol:p.symbol?p.symbol:G_(ge.declarations[0].parent),F.filteredIndexSymbolCache.set(Q,ge),u.resolvedSymbol=F.filteredIndexSymbolCache.get(Q)}}}}}else lDe(n,0);return!u.resolvedSymbol&&a&&Rd(n)?j4(n):u.resolvedSymbol}else if(vb(n))return j4(n)}}else if(vNe(n)){const a=n.parent.kind===180?788968:1920,l=Ml(n,a,!1,!0);return l&&l!==rn?l:QU(n)}if(n.parent.kind===179)return Ml(n,1)}function j4(n,a,l){if(ff(n)){let A=Ml(n,901119,a,!0,cb(n));if(!A&&je(n)&&l&&(A=as(tf(xf(l),n.escapedText,901119))),A)return A}const u=je(n)?l:j4(n.left,a,l),p=je(n)?n.escapedText:n.right.escapedText;if(u){const y=u.flags&111551&&fo(or(u),"prototype"),A=y?or(y):js(u);return fo(A,p)}}function G_(n,a){if(Ji(n))return rc(n)?as(n.symbol):void 0;const{parent:l}=n,u=l.parent;if(!(n.flags&33554432)){if(oye(n)){const p=Ir(l);return mx(n.parent)&&n.parent.propertyName===n?moe(p):p}else if(QN(n))return Ir(l.parent);if(n.kind===79){if(Tj(n))return ENe(n);if(l.kind===205&&u.kind===203&&n===l.propertyName){const p=WS(u),y=fo(p,n.escapedText);if(y)return y}else if(nw(l)&&l.name===n)return l.keywordToken===103&&Mr(n)==="target"?joe(l).symbol:l.keywordToken===100&&Mr(n)==="meta"?wIe().members.get("meta"):void 0}switch(n.kind){case 79:case 80:case 208:case 163:if(!wx(n))return ENe(n);case 108:const p=kd(n,!1,!1);if(Xa(p)){const R=Wp(p);if(R.thisParameter)return R.thisParameter}if(U3(n))return ha(n).symbol;case 194:return cV(n).symbol;case 106:return ha(n).symbol;case 135:const y=n.parent;return y&&y.kind===173?y.parent.symbol:void 0;case 10:case 14:if(sb(n.parent.parent)&&dk(n.parent.parent)===n||(n.parent.kind===269||n.parent.kind===275)&&n.parent.moduleSpecifier===n||fr(n)&&Tl($)!==100&&wd(n.parent,!1)||hf(n.parent)||gb(n.parent)&&ob(n.parent.parent)&&n.parent.parent.argument===n.parent)return gu(n,n,a);if(io(l)&&Tx(l)&&l.arguments[1]===n)return Ir(l);case 8:const A=fl(l)?l.argumentExpression===n?Fu(l.expression):void 0:gb(l)&&Kx(u)?pi(u.objectType):void 0;return A&&fo(A,ul(n.text));case 88:case 98:case 38:case 84:return nf(n.parent);case 202:return ob(n)?G_(n.argument.literal,a):void 0;case 93:return Vl(n.parent)?D.checkDefined(n.parent.symbol):void 0;case 100:case 103:return nw(n.parent)?WDe(n.parent).symbol:void 0;case 233:return ha(n).symbol;default:return}}}function Kct(n){if(je(n)&&Fr(n.parent)&&n.parent.name===n){const a=sy(n),l=Fu(n.parent.expression),u=l.flags&1048576?l.types:[l];return Ga(u,p=>yn(Nu(p),y=>nA(a,y.keyType)))}}function Xct(n){if(n&&n.kind===300)return Ml(n.name,2208703)}function Yct(n){return gd(n)?n.parent.parent.moduleSpecifier?zf(n.parent.parent,n):Ml(n.propertyName||n.name,2998271):Ml(n,2998271)}function WS(n){if(Ji(n)&&!rc(n)||n.flags&33554432)return Ce;const a=Hq(n),l=a&&Qu(Ir(a.class));if(Ih(n)){const u=pi(n);return l?Yf(u,l.thisType):u}if(Sg(n))return TNe(n);if(l&&!a.isImplements){const u=tu(Fo(l));return u?Yf(u,l.thisType):Ce}if(LC(n)){const u=Ir(n);return js(u)}if(jct(n)){const u=G_(n);return u?js(u):Ce}if(Au(n)){const u=Ir(n);return u?or(u):Ce}if(oye(n)){const u=G_(n);return u?or(u):Ce}if(Ya(n))return is(n.parent,!0,0)||Ce;if(Tj(n)){const u=G_(n);if(u){const p=js(u);return rs(p)?or(u):p}}return nw(n.parent)&&n.parent.keywordToken===n.kind?WDe(n.parent):Ce}function Sj(n){if(D.assert(n.kind===207||n.kind===206),n.parent.kind===247){const p=G4(n.parent);return oT(n,p||Ce)}if(n.parent.kind===223){const p=Fu(n.parent.right);return oT(n,p||Ce)}if(n.parent.kind===299){const p=so(n.parent.parent,Is),y=Sj(p)||Ce,A=$A(p.properties,n.parent);return iRe(p,y,A)}const a=so(n.parent,zu),l=Sj(a)||Ce,u=Av(65,l,He,n.parent)||Ce;return aRe(a,l,a.elements.indexOf(n),u)}function $ct(n){const a=Sj(so(n.parent.parent,ZI));return a&&fo(a,n.escapedText)}function TNe(n){return Ak(n)&&(n=n.parent),xd(Fu(n))}function SNe(n){const a=nf(n.parent);return Ja(n)?or(a):js(a)}function xNe(n){const a=n.name;switch(a.kind){case 79:return Qf(Mr(a));case 8:case 10:return Qf(a.text);case 164:const l=fy(a);return Vc(l,12288)?l:ue;default:return D.fail("Unsupported property name.")}}function Sse(n){n=ed(n);const a=co(gs(n)),l=za(n,0).length?yc:za(n,1).length?vd:void 0;return l&&Je(gs(l),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),iv(a)}function xj(n){return za(n,0).length!==0||za(n,1).length!==0}function ANe(n){const a=Qct(n);return a?Ga(a,ANe):[n]}function Qct(n){if(Dl(n)&6)return pa(zi(n).containingType.types,a=>fo(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:l,syntheticOrigin:u}}=n;return a?[a,l]:u?[u]:dT(Zct(n))}}function Zct(n){let a,l=n;for(;l=zi(l).target;)a=l;return a}function eut(n){if(Ll(n))return!1;const a=va(n,je);if(!a)return!1;const l=a.parent;return l?!((Fr(l)||$c(l))&&l.name===a)&&H4(a)===Ct:!1}function tut(n){let a=gu(n.parent,n);if(!a||ok(a))return!0;const l=kE(a);a=Td(a);const u=zi(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=l?!!(a.flags&111551):pf($h(a),p)),u.exportsSomeValue;function p(y){return y=ec(y),y&&!!(hu(y)&111551)}}function nut(n){return yN(n.parent)&&n===n.parent.name}function rut(n,a){var l;const u=va(n,je);if(u){let p=H4(u,nut(u));if(p){if(p.flags&1048576){const A=as(p.exportSymbol);if(!a&&A.flags&944&&!(A.flags&3))return;p=A}const y=Sd(p);if(y){if(y.flags&512&&((l=y.valueDeclaration)==null?void 0:l.kind)===308){const A=y.valueDeclaration,R=er(u);return A!==R?void 0:A}return rr(u.parent,A=>yN(A)&&Ir(A)===y)}}}}function iut(n){const a=Ype(n);if(a)return a;const l=va(n,je);if(l){const u=gut(l);if(Zy(u,111551)&&!Bd(u,111551))return Ed(u)}}function aut(n){return n.valueDeclaration&&ms(n.valueDeclaration)&&VA(n.valueDeclaration).parent.kind===295}function CNe(n){if(n.flags&418&&n.valueDeclaration&&!Ji(n.valueDeclaration)){const a=zi(n);if(a.isDeclarationWithCollidingName===void 0){const l=zm(n.valueDeclaration);if(lfe(l)||aut(n)){const u=Jr(n.valueDeclaration);if(hl(l.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(u.flags&16384){const p=u.flags&32768,y=Bv(l,!1),A=l.kind===238&&Bv(l.parent,!1);a.isDeclarationWithCollidingName=!yfe(l)&&(!p||!y&&!A)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function out(n){if(!Ll(n)){const a=va(n,je);if(a){const l=H4(a);if(l&&CNe(l))return l.valueDeclaration}}}function sut(n){const a=va(n,Au);if(a){const l=Ir(a);if(l)return CNe(l)}return!1}function LNe(n){switch(D.assert(!$.verbatimModuleSyntax),n.kind){case 268:return Aj(Ir(n));case 270:case 271:case 273:case 278:const a=Ir(n);return!!a&&Aj(a)&&!Bd(a,111551);case 275:const l=n.exportClause;return!!l&&(Bh(l)||kt(l.elements,LNe));case 274:return n.expression&&n.expression.kind===79?Aj(Ir(n)):!0}return!1}function lut(n){const a=va(n,_u);return a===void 0||a.parent.kind!==308||!aC(a)?!1:Aj(Ir(a))&&a.moduleReference&&!kl(a.moduleReference)}function Aj(n){var a;if(!n)return!1;const l=Vp(oc(n));return l===rn?!0:!!(((a=hu(l))!=null?a:-1)&111551)&&(W1($)||!hR(l))}function hR(n){return Yoe(n)||!!n.constEnumOnlyModule}function Cj(n,a){if(D.assert(!$.verbatimModuleSyntax),qg(n)){const l=Ir(n),u=l&&zi(l);if(u!=null&&u.referenced)return!0;const p=zi(l).aliasTarget;if(p&&Hu(n)&1&&hu(p)&111551&&(W1($)||!hR(p)))return!0}return a?!!Pa(n,l=>Cj(l,a)):!1}function INe(n){if(E_(n.body)){if(Gv(n)||Iy(n))return!1;const a=Ir(n),l=$b(a);return l.length>1||l.length===1&&l[0].declaration!==n}return!1}function kNe(n){return!!W&&!RD(n)&&!_m(n)&&!!n.initializer&&!$r(n,16476)}function cut(n){return W&&RD(n)&&!n.initializer&&$r(n,16476)}function uut(n){const a=va(n,xc);if(!a)return!1;const l=Ir(a);return!l||!(l.flags&16)?!1:!!pf(xf(l),u=>u.flags&111551&&u.valueDeclaration&&Fr(u.valueDeclaration))}function dut(n){const a=va(n,xc);if(!a)return rt;const l=Ir(a);return l&&gs(or(l))||rt}function TA(n){var a;const l=n.id||0;return l<0||l>=kb.length?0:((a=kb[l])==null?void 0:a.flags)||0}function Lj(n){return lNe(n.parent),Jr(n).enumMemberValue}function wNe(n){switch(n.kind){case 302:case 208:case 209:return!0}return!1}function xse(n){if(n.kind===302)return Lj(n);const a=Jr(n).resolvedSymbol;if(a&&a.flags&8){const l=a.valueDeclaration;if(M1(l.parent))return Lj(l)}}function Ase(n){return!!(n.flags&524288)&&za(n,0).length>0}function fut(n,a){var l;const u=va(n,ff);if(!u||a&&(a=va(a),!a))return 0;let p=!1;if(Rd(u)){const J=Ml(Ff(u),111551,!0,!0,a);p=!!((l=J==null?void 0:J.declarations)!=null&&l.every(D1))}const y=Ml(u,111551,!0,!0,a),A=y&&y.flags&2097152?oc(y):y;p||(p=!!(y&&Bd(y,111551)));const R=Ml(u,788968,!0,!1,a);if(A&&A===R){const J=qie(!1);if(J&&A===J)return 9;const Q=or(A);if(Q&&O0(Q))return p?10:1}if(!R)return p?11:0;const F=js(R);return rs(F)?p?11:0:F.flags&3?11:Vc(F,245760)?2:Vc(F,528)?6:Vc(F,296)?3:Vc(F,2112)?4:Vc(F,402653316)?5:Bo(F)?7:Vc(F,12288)?8:Ase(F)?10:Zf(F)?7:11}function _ut(n,a,l,u,p){const y=va(n,Lfe);if(!y)return N.createToken(131);const A=Ir(y);let R=A&&!(A.flags&133120)?o1(or(A)):Ce;return R.flags&8192&&R.symbol===A&&(l|=1048576),p&&(R=uy(R)),Ye.typeToTypeNode(R,a,l|1024,u)}function put(n,a,l,u){const p=va(n,Xa);if(!p)return N.createToken(131);const y=Wp(p);return Ye.typeToTypeNode(vs(y),a,l|1024,u)}function mut(n,a,l,u){const p=va(n,vt);if(!p)return N.createToken(131);const y=sf(TNe(p));return Ye.typeToTypeNode(y,a,l|1024,u)}function hut(n){return We.has(ul(n))}function H4(n,a){const l=Jr(n).resolvedSymbol;if(l)return l;let u=n;if(a){const p=n.parent;Au(p)&&n===p.name&&(u=VE(p))}return hl(u,n.escapedText,3257279,void 0,void 0,!0)}function gut(n){const a=Jr(n).resolvedSymbol;return a&&a!==rn?a:hl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function yut(n){if(!Ll(n)){const a=va(n,je);if(a){const l=H4(a);if(l)return Vp(l).valueDeclaration}}}function vut(n){return L3(n)||Xi(n)&&Tg(n)?r1(or(Ir(n))):!1}function but(n,a,l){const u=n.flags&1056?Ye.symbolToExpression(n.symbol,111551,a,void 0,l):n===Pe?N.createTrue():n===it&&N.createFalse();if(u)return u;const p=n.value;return typeof p=="object"?N.createBigIntLiteral(p):typeof p=="number"?N.createNumericLiteral(p):N.createStringLiteral(p)}function Eut(n,a){const l=or(Ir(n));return but(l,n,a)}function DNe(n){return n?(Ob(n),er(n).localJsxFactory||Ug):Ug}function Cse(n){if(n){const a=er(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const l=a.pragmas.get("jsxfrag"),u=Va(l)?l[0]:l;if(u)return a.localJsxFragmentFactory=o2(u.arguments.factory,M),a.localJsxFragmentFactory}}if($.jsxFragmentFactory)return o2($.jsxFragmentFactory,M)}function Tut(){const n=e.getResolvedTypeReferenceDirectives();let a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:F},J,Q)=>{if(!(F!=null&&F.resolvedFileName))return;const ge=e.getSourceFile(F.resolvedFileName);ge&&R(ge,J,Q)})),{getReferencedExportContainer:rut,getReferencedImportDeclaration:iut,getReferencedDeclarationWithCollidingName:out,isDeclarationWithCollidingName:sut,isValueAliasDeclaration:F=>{const J=va(F);return J?LNe(J):!0},hasGlobalName:hut,isReferencedAliasDeclaration:(F,J)=>{const Q=va(F);return Q?Cj(Q,J):!0},getNodeCheckFlags:F=>{const J=va(F);return J?TA(J):0},isTopLevelValueImportEqualsWithEntityName:lut,isDeclarationVisible:P_,isImplementationOfOverload:INe,isRequiredInitializedParameter:kNe,isOptionalUninitializedParameterProperty:cut,isExpandoFunctionDeclaration:uut,getPropertiesOfContainerFunction:dut,createTypeOfDeclaration:_ut,createReturnTypeOfSignatureDeclaration:put,createTypeOfExpression:mut,createLiteralConstValue:Eut,isSymbolAccessible:av,isEntityNameVisible:X2,getConstantValue:F=>{const J=va(F,wNe);return J?xse(J):void 0},collectLinkedAliases:UE,getReferencedValueDeclaration:yut,getTypeReferenceSerializationKind:fut,isOptionalParameter:RD,moduleExportsSomeValue:tut,isArgumentsLocalBinding:eut,getExternalModuleFileFromDeclaration:F=>{const J=va(F,bfe);return J&&Lse(J)},getTypeReferenceDirectivesForEntityName:p,getTypeReferenceDirectivesForSymbol:y,isLiteralConstDeclaration:vut,isLateBound:F=>{const J=va(F,Au),Q=J&&Ir(J);return!!(Q&&Dl(Q)&4096)},getJsxFactoryEntity:DNe,getJsxFragmentFactoryEntity:Cse,getAllAccessorDeclarations(F){F=va(F,i3);const J=F.kind===175?174:175,Q=Il(Ir(F),J),ge=Q&&Q.pos<F.pos?Q:F,Ne=Q&&Q.pos<F.pos?F:Q,De=F.kind===175?F:Q,_t=F.kind===174?F:Q;return{firstAccessor:ge,secondAccessor:Ne,setAccessor:De,getAccessor:_t}},getSymbolOfExternalModuleSpecifier:F=>Xh(F,F,void 0),isBindingCapturedByNode:(F,J)=>{const Q=va(F),ge=va(J);return!!Q&&!!ge&&(Xi(ge)||ms(ge))&&Zrt(Q,ge)},getDeclarationStatementsForSourceFile:(F,J,Q,ge)=>{const Ne=va(F);D.assert(Ne&&Ne.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");const De=Ir(F);return De?De.exports?Ye.symbolTableToDeclarationStatements(De.exports,F,J,Q,ge):[]:F.locals?Ye.symbolTableToDeclarationStatements(F.locals,F,J,Q,ge):[]},isImportRequiredByAugmentation:l};function l(F){const J=er(F);if(!J.symbol)return!1;const Q=Lse(F);if(!Q||Q===J)return!1;const ge=$h(J.symbol);for(const Ne of No(ge.values()))if(Ne.mergeId){const De=as(Ne);if(De.declarations){for(const _t of De.declarations)if(er(_t)===Q)return!0}}return!1}function u(F){return F.parent&&F.parent.kind===230&&F.parent.parent&&F.parent.parent.kind===294}function p(F){if(!a)return;let J;F.parent.kind===164?J=1160127:(J=790504,(F.kind===79&&YL(F)||F.kind===208&&!u(F))&&(J=1160127));const Q=Ml(F,J,!0);return Q&&Q!==rn?y(Q,J):void 0}function y(F,J){if(!a||!A(F))return;let Q;for(const ge of F.declarations)if(ge.symbol&&ge.symbol.flags&J){const Ne=er(ge),De=a.get(Ne.path);if(De)(Q||(Q=[])).push(De);else return}return Q}function A(F){if(!F.declarations)return!1;let J=F;for(;;){const Q=Sd(J);if(Q)J=Q;else break}if(J.valueDeclaration&&J.valueDeclaration.kind===308&&J.flags&512)return!1;for(const Q of F.declarations){const ge=er(Q);if(a.has(ge.path))return!0}return!1}function R(F,J,Q){if(!a.has(F.path)){a.set(F.path,[J,Q]);for(const{fileName:ge,resolutionMode:Ne}of F.referencedFiles){const De=OF(ge,F.fileName),_t=e.getSourceFile(De);_t&&R(_t,J,Ne||F.impliedNodeFormat)}}}}function Lse(n){const a=n.kind===264?si(n.name,Ho):sC(n),l=Xh(a,a,void 0);if(l)return Il(l,308)}function Sut(){for(const a of e.getSourceFiles())Fge(a,$);wr=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!mf(a)){const l=a.locals.get("globalThis");if(l!=null&&l.declarations)for(const u of l.declarations)Zo.add(Nr(u,_.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Uc(We,a.locals)}a.jsGlobalAugmentations&&Uc(We,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(go=ya(go,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((u,p)=>{We.has(p)||We.set(p,u)})}if(n)for(const a of n)for(const l of a)im(l.parent)&&xS(l);if(wL(We,Rb,_.Declaration_name_conflicts_with_built_in_global_identifier_0),zi(Fe).type=Ze,zi(Ct).type=_c("IArguments",0,!0),zi(rn).type=Ce,zi(st).type=Af(16,st),Ts=_c("Array",1,!0),$a=_c("Object",0,!0),pl=_c("Function",0,!0),yc=me&&_c("CallableFunction",0,!0)||pl,vd=me&&_c("NewableFunction",0,!0)||pl,ml=_c("String",0,!0),Zd=_c("Number",0,!0),ql=_c("Boolean",0,!0),Hf=_c("RegExp",0,!0),Dt=Ou(we),On=Ou(yt),On===fa&&(On=Ps(void 0,ne,rt,rt,rt)),fs=PIe("ReadonlyArray",1)||Ts,Yi=fs?FD(fs,[we]):Dt,Ae=PIe("ThisType",1),n)for(const a of n)for(const l of a)im(l.parent)||xS(l);wr.forEach(({firstFile:a,secondFile:l,conflictingSymbols:u})=>{if(u.size<8)u.forEach(({isBlockScoped:p,firstFileLocations:y,secondFileLocations:A},R)=>{const F=p?_.Cannot_redeclare_block_scoped_variable_0:_.Duplicate_identifier_0;for(const J of y)mu(J,F,R,A);for(const J of A)mu(J,F,R,y)});else{const p=No(u.keys()).join(", ");Zo.add(Yo(Nr(a,_.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,p),Nr(l,_.Conflicts_are_in_this_file))),Zo.add(Yo(Nr(l,_.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,p),Nr(a,_.Conflicts_are_in_this_file)))}}),wr=void 0}function Ec(n,a){if((c&a)!==a&&$.importHelpers){const l=er(n);if(bx(l,$)&&!(n.flags&16777216)){const u=Aut(l,n);if(u!==rn){const p=a&~c;for(let y=1;y<=16777216;y<<=1)if(p&y)for(const A of xut(y)){if(s.has(A))continue;s.add(A);const R=tf(u.exports,ul(A),111551);R?y&524288?kt($b(R),F=>lf(F)>3)||Ke(n,_.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,mb,A,4):y&1048576?kt($b(R),F=>lf(F)>4)||Ke(n,_.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,mb,A,5):y&1024&&(kt($b(R),F=>lf(F)>2)||Ke(n,_.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,mb,A,3)):Ke(n,_.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,mb,A)}}c|=a}}}function xut(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return re?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];default:return D.fail("Unrecognized helper")}}function Aut(n,a){return f||(f=Cc(n,mb,_.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||rn),f}function vh(n){const a=Iut(n)||Cut(n);if(a!==void 0)return a;if(Fa(n)&&j1(n))return jc(n,_.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let l,u,p,y,A,R=0,F=!1,J=!1;for(const Q of n.modifiers)if(Wu(Q)){if(G3(re,n,n.parent,n.parent.parent)){if(re&&(n.kind===174||n.kind===175)){const ge=PT(n.parent.members,n);if(o_(ge.firstAccessor)&&n===ge.secondAccessor)return jc(n,_.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===171&&!E_(n.body)?jc(n,_.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):jc(n,_.Decorators_are_not_valid_here);if(R&-132098)return En(Q,_.Decorators_are_not_valid_here);if(J&&R&126975){D.assertIsDefined(A);const ge=er(Q);return d1(ge)?!1:(Yo(Ke(Q,_.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Nr(A,_.Decorator_used_before_export_here)),!0)}R|=131072,R&126975?R&1&&(F=!0):J=!0,A!=null||(A=Q)}else{if(Q.kind!==146){if(n.kind===168||n.kind===170)return En(Q,_._0_modifier_cannot_appear_on_a_type_member,vo(Q.kind));if(n.kind===178&&(Q.kind!==124||!_i(n.parent)))return En(Q,_._0_modifier_cannot_appear_on_an_index_signature,vo(Q.kind))}if(Q.kind!==101&&Q.kind!==145&&Q.kind!==85&&n.kind===165)return En(Q,_._0_modifier_cannot_appear_on_a_type_parameter,vo(Q.kind));switch(Q.kind){case 85:if(n.kind!==263&&n.kind!==165)return En(n,_.A_class_member_cannot_have_the_0_keyword,vo(85));const ge=n.parent;if(n.kind===165&&!(el(ge)||_i(ge)||Mh(ge)||Qk(ge)||OC(ge)||XO(ge)||Ph(ge)))return En(Q,_._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,vo(Q.kind));break;case 161:if(R&16384)return En(Q,_._0_modifier_already_seen,"override");if(R&2)return En(Q,_._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(R&64)return En(Q,_._0_modifier_must_precede_1_modifier,"override","readonly");if(R&128)return En(Q,_._0_modifier_must_precede_1_modifier,"override","accessor");if(R&512)return En(Q,_._0_modifier_must_precede_1_modifier,"override","async");R|=16384,y=Q;break;case 123:case 122:case 121:const Ne=Cf(Rx(Q.kind));if(R&28)return En(Q,_.Accessibility_modifier_already_seen);if(R&16384)return En(Q,_._0_modifier_must_precede_1_modifier,Ne,"override");if(R&32)return En(Q,_._0_modifier_must_precede_1_modifier,Ne,"static");if(R&128)return En(Q,_._0_modifier_must_precede_1_modifier,Ne,"accessor");if(R&64)return En(Q,_._0_modifier_must_precede_1_modifier,Ne,"readonly");if(R&512)return En(Q,_._0_modifier_must_precede_1_modifier,Ne,"async");if(n.parent.kind===265||n.parent.kind===308)return En(Q,_._0_modifier_cannot_appear_on_a_module_or_namespace_element,Ne);if(R&256)return Q.kind===121?En(Q,_._0_modifier_cannot_be_used_with_1_modifier,Ne,"abstract"):En(Q,_._0_modifier_must_precede_1_modifier,Ne,"abstract");if(ad(n))return En(Q,_.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);R|=Rx(Q.kind);break;case 124:if(R&32)return En(Q,_._0_modifier_already_seen,"static");if(R&64)return En(Q,_._0_modifier_must_precede_1_modifier,"static","readonly");if(R&512)return En(Q,_._0_modifier_must_precede_1_modifier,"static","async");if(R&128)return En(Q,_._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===265||n.parent.kind===308)return En(Q,_._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===166)return En(Q,_._0_modifier_cannot_appear_on_a_parameter,"static");if(R&256)return En(Q,_._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(R&16384)return En(Q,_._0_modifier_must_precede_1_modifier,"static","override");R|=32,l=Q;break;case 127:if(R&128)return En(Q,_._0_modifier_already_seen,"accessor");if(R&64)return En(Q,_._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(R&2)return En(Q,_._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==169)return En(Q,_.accessor_modifier_can_only_appear_on_a_property_declaration);R|=128;break;case 146:if(R&64)return En(Q,_._0_modifier_already_seen,"readonly");if(n.kind!==169&&n.kind!==168&&n.kind!==178&&n.kind!==166)return En(Q,_.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(R&128)return En(Q,_._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");R|=64;break;case 93:if($.verbatimModuleSyntax&&!(n.flags&16777216)&&n.kind!==262&&n.kind!==261&&n.kind!==264&&n.parent.kind===308&&(de===1||er(n).impliedNodeFormat===1))return En(Q,_.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(R&1)return En(Q,_._0_modifier_already_seen,"export");if(R&2)return En(Q,_._0_modifier_must_precede_1_modifier,"export","declare");if(R&256)return En(Q,_._0_modifier_must_precede_1_modifier,"export","abstract");if(R&512)return En(Q,_._0_modifier_must_precede_1_modifier,"export","async");if(_i(n.parent))return En(Q,_._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===166)return En(Q,_._0_modifier_cannot_appear_on_a_parameter,"export");R|=1;break;case 88:const De=n.parent.kind===308?n.parent:n.parent.parent;if(De.kind===264&&!ju(De))return En(Q,_.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(R&1){if(F)return En(A,_.Decorators_are_not_valid_here)}else return En(Q,_._0_modifier_must_precede_1_modifier,"export","default");R|=1024;break;case 136:if(R&2)return En(Q,_._0_modifier_already_seen,"declare");if(R&512)return En(Q,_._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(R&16384)return En(Q,_._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(_i(n.parent)&&!ro(n))return En(Q,_._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===166)return En(Q,_._0_modifier_cannot_appear_on_a_parameter,"declare");if(n.parent.flags&16777216&&n.parent.kind===265)return En(Q,_.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ad(n))return En(Q,_._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(R&128)return En(Q,_._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");R|=2,u=Q;break;case 126:if(R&256)return En(Q,_._0_modifier_already_seen,"abstract");if(n.kind!==260&&n.kind!==182){if(n.kind!==171&&n.kind!==169&&n.kind!==174&&n.kind!==175)return En(Q,_.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===260&&$r(n.parent,256)))return En(Q,_.Abstract_methods_can_only_appear_within_an_abstract_class);if(R&32)return En(Q,_._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(R&8)return En(Q,_._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(R&512&&p)return En(p,_._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(R&16384)return En(Q,_._0_modifier_must_precede_1_modifier,"abstract","override");if(R&128)return En(Q,_._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Su(n)&&n.name.kind===80)return En(Q,_._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");R|=256;break;case 132:if(R&512)return En(Q,_._0_modifier_already_seen,"async");if(R&2||n.parent.flags&16777216)return En(Q,_._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===166)return En(Q,_._0_modifier_cannot_appear_on_a_parameter,"async");if(R&256)return En(Q,_._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");R|=512,p=Q;break;case 101:case 145:const _t=Q.kind===101?32768:65536,Bt=Q.kind===101?"in":"out";if(n.kind!==165||!(ud(n.parent)||_i(n.parent)||um(n.parent)))return En(Q,_._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Bt);if(R&_t)return En(Q,_._0_modifier_already_seen,Bt);if(_t&32768&&R&65536)return En(Q,_._0_modifier_must_precede_1_modifier,"in","out");R|=_t;break}}return n.kind===173?R&32?En(l,_._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):R&16384?En(y,_._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):R&512?En(p,_._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===269||n.kind===268)&&R&2?En(u,_.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===166&&R&16476&&Ya(n.name)?En(n,_.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===166&&R&16476&&n.dotDotDotToken?En(n,_.A_parameter_property_cannot_be_declared_using_a_rest_parameter):R&512?wut(n,p):!1}function Cut(n){if(!n.modifiers)return!1;const a=Lut(n);return a&&jc(a,_.Modifiers_cannot_appear_here)}function Ise(n,a){const l=In(n.modifiers,_o);return l&&l.kind!==a?l:void 0}function Lut(n){switch(n.kind){case 174:case 175:case 173:case 169:case 168:case 171:case 170:case 178:case 264:case 269:case 268:case 275:case 274:case 215:case 216:case 166:case 165:return;case 172:case 299:case 300:case 267:case 279:return In(n.modifiers,_o);default:if(n.parent.kind===265||n.parent.kind===308)return;switch(n.kind){case 259:return Ise(n,132);case 260:case 182:return Ise(n,126);case 228:case 261:case 240:case 262:return In(n.modifiers,_o);case 263:return Ise(n,85);default:D.assertNever(n)}}}function Iut(n){const a=kut(n);return a&&jc(a,_.Decorators_are_not_valid_here)}function kut(n){return BK(n)?In(n.modifiers,Wu):void 0}function wut(n,a){switch(n.kind){case 171:case 259:case 215:case 216:return!1}return En(a,_._0_modifier_cannot_be_used_here,"async")}function zS(n,a=_.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?f1(n[0],n.end-1,1,a):!1}function RNe(n,a){if(n&&n.length===0){const l=n.pos-1,u=Xo(a.text,n.end)+1;return f1(a,l,u-l,_.Type_parameter_list_cannot_be_empty)}return!1}function Dut(n){let a=!1;const l=n.length;for(let u=0;u<l;u++){const p=n[u];if(p.dotDotDotToken){if(u!==l-1)return En(p.dotDotDotToken,_.A_rest_parameter_must_be_last_in_a_parameter_list);if(p.flags&16777216||zS(n,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),p.questionToken)return En(p.questionToken,_.A_rest_parameter_cannot_be_optional);if(p.initializer)return En(p.name,_.A_rest_parameter_cannot_have_an_initializer)}else if(RD(p)){if(a=!0,p.questionToken&&p.initializer)return En(p.name,_.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!p.initializer)return En(p.name,_.A_required_parameter_cannot_follow_an_optional_parameter)}}function Rut(n){return yn(n,a=>!!a.initializer||Ya(a.name)||Lh(a))}function Nut(n){if(M>=3){const a=n.body&&uo(n.body)&&OK(n.body.statements);if(a){const l=Rut(n.parameters);if(Le(l)){Je(l,p=>{Yo(Ke(p,_.This_parameter_is_not_allowed_with_use_strict_directive),Nr(a,_.use_strict_directive_used_here))});const u=l.map((p,y)=>y===0?Nr(p,_.Non_simple_parameter_declared_here):Nr(p,_.and_here));return Yo(Ke(a,_.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...u),!0}}}return!1}function Ij(n){const a=er(n);return vh(n)||RNe(n.typeParameters,a)||Dut(n.parameters)||Put(n,a)||el(n)&&Nut(n)}function Out(n){const a=er(n);return Uut(n)||RNe(n.typeParameters,a)}function Put(n,a){if(!Xs(n))return!1;n.typeParameters&&!(Le(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Ic(a.fileName,[".mts",".cts"])&&En(n.typeParameters[0],_.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:l}=n,u=cl(a,l.pos).line,p=cl(a,l.end).line;return u!==p&&En(l,_.Line_terminator_not_permitted_before_arrow)}function Mut(n){const a=n.parameters[0];if(n.parameters.length!==1)return En(a?a.name:n,_.An_index_signature_must_have_exactly_one_parameter);if(zS(n.parameters,_.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return En(a.dotDotDotToken,_.An_index_signature_cannot_have_a_rest_parameter);if(a7(a))return En(a.name,_.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return En(a.questionToken,_.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return En(a.name,_.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return En(a.name,_.An_index_signature_parameter_must_have_a_type_annotation);const l=pi(a.type);return lg(l,u=>!!(u.flags&8576))||WL(l)?En(a.name,_.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):gh(l,YU)?n.type?!1:En(n,_.An_index_signature_must_have_a_type_annotation):En(a.name,_.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Fut(n){return vh(n)||Mut(n)}function But(n,a){if(a&&a.length===0){const l=er(n),u=a.pos-1,p=Xo(l.text,a.end)+1;return f1(l,u,p-u,_.Type_argument_list_cannot_be_empty)}return!1}function W4(n,a){return zS(a)||But(n,a)}function Gut(n){return n.questionDotToken||n.flags&32?En(n.template,_.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function NNe(n){const a=n.types;if(zS(a))return!0;if(a&&a.length===0){const l=vo(n.token);return f1(n,a.pos,0,_._0_list_cannot_be_empty,l)}return kt(a,ONe)}function ONe(n){return Py(n)&&$k(n.expression)&&n.typeArguments?En(n,_.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):W4(n,n.typeArguments)}function Uut(n){let a=!1,l=!1;if(!vh(n)&&n.heritageClauses)for(const u of n.heritageClauses){if(u.token===94){if(a)return jc(u,_.extends_clause_already_seen);if(l)return jc(u,_.extends_clause_must_precede_implements_clause);if(u.types.length>1)return jc(u.types[1],_.Classes_can_only_extend_a_single_class);a=!0}else{if(D.assert(u.token===117),l)return jc(u,_.implements_clause_already_seen);l=!0}NNe(u)}}function Vut(n){let a=!1;if(n.heritageClauses)for(const l of n.heritageClauses){if(l.token===94){if(a)return jc(l,_.extends_clause_already_seen);a=!0}else return D.assert(l.token===117),jc(l,_.Interface_declaration_cannot_have_implements_clause);NNe(l)}return!1}function kj(n){if(n.kind!==164)return!1;const a=n;return a.expression.kind===223&&a.expression.operatorToken.kind===27?En(a.expression,_.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function kse(n){if(n.asteriskToken){if(D.assert(n.kind===259||n.kind===215||n.kind===171),n.flags&16777216)return En(n.asteriskToken,_.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return En(n.asteriskToken,_.An_overload_signature_cannot_be_declared_as_a_generator)}}function wse(n,a){return!!n&&En(n,a)}function PNe(n,a){return!!n&&En(n,a)}function jut(n,a){const l=new Map;for(const u of n.properties){if(u.kind===301){if(a){const A=Ws(u.expression);if(zu(A)||Is(A))return En(u.expression,_.A_rest_element_cannot_contain_a_binding_pattern)}continue}const p=u.name;if(p.kind===164&&kj(p),u.kind===300&&!a&&u.objectAssignmentInitializer&&En(u.equalsToken,_.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),p.kind===80&&En(p,_.Private_identifiers_are_not_allowed_outside_class_bodies),np(u)&&u.modifiers)for(const A of u.modifiers)_o(A)&&(A.kind!==132||u.kind!==171)&&En(A,_._0_modifier_cannot_be_used_here,kc(A));else if(Fme(u)&&u.modifiers)for(const A of u.modifiers)_o(A)&&En(A,_._0_modifier_cannot_be_used_here,kc(A));let y;switch(u.kind){case 300:case 299:PNe(u.exclamationToken,_.A_definite_assignment_assertion_is_not_permitted_in_this_context),wse(u.questionToken,_.An_object_member_cannot_be_declared_optional),p.kind===8&&Nse(p),y=4;break;case 171:y=8;break;case 174:y=1;break;case 175:y=2;break;default:throw D.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!a){const A=U1(p);if(A===void 0)continue;const R=l.get(A);if(!R)l.set(A,y);else if(y&8&&R&8)En(p,_.Duplicate_identifier_0,kc(p));else if(y&4&&R&4)En(p,_.An_object_literal_cannot_have_multiple_properties_with_the_same_name,kc(p));else if(y&3&&R&3)if(R!==3&&y!==R)l.set(A,y|R);else return En(p,_.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return En(p,_.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Hut(n){Wut(n.tagName),W4(n,n.typeArguments);const a=new Map;for(const l of n.attributes.properties){if(l.kind===290)continue;const{name:u,initializer:p}=l;if(!a.get(u.escapedText))a.set(u.escapedText,!0);else return En(u,_.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(p&&p.kind===291&&!p.expression)return En(p,_.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Wut(n){if(Fr(n)){let l=n;do{const p=a(l.name);if(p)return p;l=l.expression}while(Fr(l));const u=a(l);if(u)return u}function a(l){if(je(l)&&Mr(l).indexOf(":")!==-1)return En(l,_.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function zut(n){if(n.expression&&dw(n.expression))return En(n.expression,_.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function MNe(n){if(cg(n))return!0;if(n.kind===247&&n.awaitModifier&&!(n.flags&32768)){const a=er(n);if(M3(n)){if(!d1(a))switch(bx(a,$)||Zo.add(Nr(n.awaitModifier,_.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),de){case 100:case 199:if(a.impliedNodeFormat===1){Zo.add(Nr(n.awaitModifier,_.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(M>=4)break;default:Zo.add(Nr(n.awaitModifier,_.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!d1(a)){const l=Nr(n.awaitModifier,_.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),u=Mf(n);if(u&&u.kind!==173){D.assert((Jc(u)&2)===0,"Enclosing function should never be an async function.");const p=Nr(u,_.Did_you_mean_to_mark_this_function_as_async);Yo(l,p)}return Zo.add(l),!0}return!1}if(QO(n)&&!(n.flags&32768)&&je(n.initializer)&&n.initializer.escapedText==="async")return En(n.initializer,_.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===258){const a=n.initializer;if(!Rse(a)){const l=a.declarations;if(!l.length)return!1;if(l.length>1){const p=n.kind===246?_.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:_.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return jc(a.declarations[1],p)}const u=l[0];if(u.initializer){const p=n.kind===246?_.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:_.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return En(u.name,p)}if(u.type){const p=n.kind===246?_.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:_.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return En(u,p)}}}return!1}function qut(n){if(!(n.flags&16777216)&&n.parent.kind!==184&&n.parent.kind!==261){if(M<1)return En(n.name,_.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(M<2&&Oi(n.name))return En(n.name,_.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!$r(n,256))return f1(n,n.end-1,1,_._0_expected,"{")}if(n.body){if($r(n,256))return En(n,_.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===184||n.parent.kind===261)return En(n.body,_.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return En(n.name,_.An_accessor_cannot_have_type_parameters);if(!Jut(n))return En(n.name,n.kind===174?_.A_get_accessor_cannot_have_parameters:_.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===175){if(n.type)return En(n.name,_.A_set_accessor_cannot_have_a_return_type_annotation);const a=D.checkDefined(Ek(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return En(a.dotDotDotToken,_.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return En(a.questionToken,_.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return En(n.name,_.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Jut(n){return Dse(n)||n.parameters.length===(n.kind===174?0:1)}function Dse(n){if(n.parameters.length===(n.kind===174?1:2))return V1(n)}function Kut(n){if(n.operator===156){if(n.type.kind!==153)return En(n.type,_._0_expected,vo(153));let a=YN(n.parent);if(fr(a)&&qT(a)){const l=Cx(a);l&&(a=uC(l)||l)}switch(a.kind){case 257:const l=a;if(l.name.kind!==79)return En(n,_.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!D3(l))return En(n,_.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(l.parent.flags&2))return En(a.name,_.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 169:if(!Ja(a)||!Tk(a))return En(a.name,_.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 168:if(!$r(a,64))return En(a.name,_.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return En(n,_.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===146&&n.type.kind!==185&&n.type.kind!==186)return jc(n,_.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,vo(153))}function _I(n,a){if(TZe(n))return En(n,a)}function FNe(n){if(Ij(n))return!0;if(n.kind===171){if(n.parent.kind===207){if(n.modifiers&&!(n.modifiers.length===1&&ds(n.modifiers).kind===132))return jc(n,_.Modifiers_cannot_appear_here);if(wse(n.questionToken,_.An_object_member_cannot_be_declared_optional))return!0;if(PNe(n.exclamationToken,_.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return f1(n,n.end-1,1,_._0_expected,"{")}if(kse(n))return!0}if(_i(n.parent)){if(M<2&&Oi(n.name))return En(n.name,_.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&16777216)return _I(n.name,_.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.kind===171&&!n.body)return _I(n.name,_.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(n.parent.kind===261)return _I(n.name,_.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===184)return _I(n.name,_.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Xut(n){let a=n;for(;a;){if(WA(a))return En(n,_.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 253:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===248&&!Bv(a.statement,!0)?En(n,_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 252:if(n.kind===249&&!n.label)return!1;break;default:if(Bv(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const l=n.kind===249?_.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return En(n,l)}else{const l=n.kind===249?_.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:_.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return En(n,l)}}function Yut(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==Jo(a))return En(n,_.A_rest_element_must_be_last_in_a_destructuring_pattern);if(zS(a,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return En(n.name,_.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return f1(n,n.initializer.pos-1,1,_.A_rest_element_cannot_have_an_initializer)}function BNe(n){return i_(n)||n.kind===221&&n.operator===40&&n.operand.kind===8}function $ut(n){return n.kind===9||n.kind===221&&n.operator===40&&n.operand.kind===9}function Qut(n){if((Fr(n)||fl(n)&&BNe(n.argumentExpression))&&Xl(n.expression))return!!(nc(n).flags&1056)}function GNe(n){const a=n.initializer;if(a){const l=!(BNe(a)||Qut(a)||a.kind===110||a.kind===95||$ut(a));if((L3(n)||Xi(n)&&Tg(n))&&!n.type){if(l)return En(a,_.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return En(a,_.Initializers_are_not_allowed_in_ambient_contexts)}}function Zut(n){if(n.parent.parent.kind!==246&&n.parent.parent.kind!==247){if(n.flags&16777216)GNe(n);else if(!n.initializer){if(Ya(n.name)&&!Ya(n.parent))return En(n,_.A_destructuring_declaration_must_have_an_initializer);if(Tg(n))return En(n,_.const_declarations_must_be_initialized)}}if(n.exclamationToken&&(n.parent.parent.kind!==240||!n.type||n.initializer||n.flags&16777216)){const l=n.initializer?_.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?_.A_definite_assignment_assertion_is_not_permitted_in_this_context:_.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return En(n.exclamationToken,l)}return(de<5||er(n).impliedNodeFormat===1)&&de!==4&&!(n.parent.parent.flags&16777216)&&$r(n.parent.parent,1)&&UNe(n.name),(sk(n)||Tg(n))&&VNe(n.name)}function UNe(n){if(n.kind===79){if(Mr(n)==="__esModule")return ndt("noEmit",n,_.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=n.elements;for(const l of a)if(!Fc(l))return UNe(l.name)}return!1}function VNe(n){if(n.kind===79){if(n.escapedText==="let")return En(n,_.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=n.elements;for(const l of a)Fc(l)||VNe(l.name)}return!1}function Rse(n){const a=n.declarations;return zS(n.declarations)?!0:n.declarations.length?!1:f1(n,a.pos,a.end-a.pos,_.Variable_declaration_list_cannot_be_empty)}function jNe(n){switch(n.kind){case 242:case 243:case 244:case 251:case 245:case 246:case 247:return!1;case 253:return jNe(n.parent)}return!0}function edt(n){if(!jNe(n.parent)){if(sk(n.declarationList))return En(n,_.let_declarations_can_only_be_declared_inside_a_block);if(Tg(n.declarationList))return En(n,_.const_declarations_can_only_be_declared_inside_a_block)}}function tdt(n){const a=n.name.escapedText;switch(n.keywordToken){case 103:if(a!=="target")return En(n.name,_._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,vo(n.keywordToken),"target");break;case 100:if(a!=="meta")return En(n.name,_._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,vo(n.keywordToken),"meta");break}}function d1(n){return n.parseDiagnostics.length>0}function jc(n,a,l,u,p){const y=er(n);if(!d1(y)){const A=ky(y,n.pos);return Zo.add(Mc(y,A.start,A.length,a,l,u,p)),!0}return!1}function f1(n,a,l,u,p,y,A){const R=er(n);return d1(R)?!1:(Zo.add(Mc(R,a,l,u,p,y,A)),!0)}function ndt(n,a,l,u,p,y){const A=er(a);return d1(A)?!1:(m0(n,a,l,u,p,y),!0)}function En(n,a,l,u,p){const y=er(n);return d1(y)?!1:(Zo.add(Nr(n,a,l,u,p)),!0)}function rdt(n){const a=fr(n)?i7(n):void 0,l=n.typeParameters||a&&tu(a);if(l){const u=l.pos===l.end?l.pos:Xo(er(n).text,l.pos);return f1(n,u,l.end-u,_.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function idt(n){const a=n.type||Cp(n);if(a)return En(a,_.Type_annotation_cannot_appear_on_a_constructor_declaration)}function adt(n){if(Cs(n.name)&&br(n.name.expression)&&n.name.expression.operatorToken.kind===101)return En(n.parent.members[0],_.A_mapped_type_may_not_declare_properties_or_methods);if(_i(n.parent)){if(Ho(n.name)&&n.name.text==="constructor")return En(n.name,_.Classes_may_not_have_a_field_named_constructor);if(_I(n.name,_.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(M<2&&Oi(n.name))return En(n.name,_.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(M<2&&_f(n))return En(n.name,_.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(_f(n)&&wse(n.questionToken,_.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===261){if(_I(n.name,_.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(D.assertNode(n,Bf),n.initializer)return En(n.initializer,_.An_interface_property_cannot_have_an_initializer)}else if(yf(n.parent)){if(_I(n.name,_.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(D.assertNode(n,Bf),n.initializer)return En(n.initializer,_.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&16777216&&GNe(n),ro(n)&&n.exclamationToken&&(!_i(n.parent)||!n.type||n.initializer||n.flags&16777216||Ja(n)||H1(n))){const a=n.initializer?_.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?_.A_definite_assignment_assertion_is_not_permitted_in_this_context:_.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return En(n.exclamationToken,a)}}function odt(n){return n.kind===261||n.kind===262||n.kind===269||n.kind===268||n.kind===275||n.kind===274||n.kind===267||$r(n,1027)?!1:jc(n,_.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function sdt(n){for(const a of n.statements)if((Au(a)||a.kind===240)&&odt(a))return!0;return!1}function ldt(n){return!!(n.flags&16777216)&&sdt(n)}function cg(n){if(n.flags&16777216){if(!Jr(n).hasReportedStatementInAmbientContext&&(Xa(n.parent)||ab(n.parent)))return Jr(n).hasReportedStatementInAmbientContext=jc(n,_.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===238||n.parent.kind===265||n.parent.kind===308){const l=Jr(n.parent);if(!l.hasReportedStatementInAmbientContext)return l.hasReportedStatementInAmbientContext=jc(n,_.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Nse(n){if(n.numericLiteralFlags&32){let a;if(M>=1?a=_.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:tq(n,198)?a=_.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:tq(n,302)&&(a=_.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),a){const l=Xv(n.parent)&&n.parent.operator===40,u=(l?"-":"")+"0o"+n.text;return En(l?n.parent:n,a,u)}}return cdt(n),!1}function cdt(n){const a=kc(n).indexOf(".")!==-1,l=n.numericLiteralFlags&16;a||l||+n.text<=q4(2,53)-1||Ky(!1,Nr(n,_.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function udt(n){return!!(!(gb(n.parent)||Xv(n.parent)&&gb(n.parent.parent))&&M<7&&En(n,_.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function ddt(n,a,l,u,p){const y=er(n);if(!d1(y)){const A=ky(y,n.pos);return Zo.add(Mc(y,uu(A),0,a,l,u,p)),!0}return!1}function fdt(){return ls||(ls=[],We.forEach((n,a)=>{_F.test(a)&&ls.push(n)})),ls}function _dt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?En(n,_.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===272?HNe(n.namedBindings):!1}function HNe(n){return!!Je(n.elements,a=>{if(a.isTypeOnly)return jc(a,a.kind===273?_.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:_.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function pdt(n){if($.verbatimModuleSyntax&&de===1)return En(n,_.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(de===5)return En(n,_.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return En(n,_.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const a=n.arguments;if(de!==99&&de!==199&&de!==100&&(zS(a),a.length>1)){const u=a[1];return En(u,_.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return En(n,_.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);const l=In(a,Fh);return l?En(l,_.Argument_of_dynamic_import_cannot_be_spread_element):!1}function mdt(n,a){const l=ri(n);if(l&20&&a.flags&1048576)return In(a.types,u=>{if(u.flags&524288){const p=l&ri(u);if(p&4)return n.target===u.target;if(p&16)return!!n.aliasSymbol&&n.aliasSymbol===u.aliasSymbol}return!1})}function hdt(n,a){if(ri(n)&128&&lg(a,V0))return In(a.types,l=>!V0(l))}function gdt(n,a){let l=0;if(za(n,l).length>0||(l=1,za(n,l).length>0))return In(a.types,p=>za(p,l).length>0)}function ydt(n,a){let l;if(!(n.flags&406978556)){let u=0;for(const p of a.types)if(!(p.flags&406978556)){const y=Do([Lm(n),Lm(p)]);if(y.flags&4194304)return p;if(vp(y)||y.flags&1048576){const A=y.flags&1048576?Wc(y.types,vp):1;A>=u&&(l=p,u=A)}}}return l}function vdt(n){if(gl(n,67108864)){const a=bc(n,l=>!(l.flags&134348796));if(!(a.flags&131072))return a}return n}function WNe(n,a,l,u){if(a.flags&1048576&&n.flags&2621440){const p=lwe(a,n);if(p)return p;const y=gs(n);if(y){const A=swe(y,a);if(A)return Sae(a,zt(A,R=>[()=>or(R),R.escapedName]),l,void 0,u)}}}}function E5e(e){return!ab(e)}function aye(e){return e.kind!==259&&e.kind!==171||!!e.body}function oye(e){switch(e.parent.kind){case 273:case 278:return je(e);default:return Ag(e)}}function sye(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Lu(e){return!!(e.flags&1)}function qX(e){return!!(e.flags&2)}function T5e(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Vo(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:Vo(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var _F,V8,JX,KX,XX,YX,pF,mF,hF,gF,lye,j8,$X,Gf,H8,S5e=S({"src/compiler/checker.ts"(){Na(),WX(),A1(),_F=/^".+"$/,V8="(anonymous)",JX=1,KX=1,XX=1,YX=1,pF=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(pF||{}),mF=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),hF=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement",e))(hF||{}),gF=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(gF||{}),lye=bM(aye,E5e),j8=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),$X=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(Gf||(Gf={})),H8=class{constructor(e,t,r){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var i;t instanceof H8;)t=t.inner;this.inner=t,this.moduleResolverHost=r,this.context=e,this.canTrackSymbol=!!((i=this.inner)!=null&&i.trackSymbol)}trackSymbol(e,t,r){var i;return(i=this.inner)!=null&&i.trackSymbol&&!this.disableTrackSymbol&&this.inner.trackSymbol(e,t,r)?(this.onDiagnosticReported(),!0):!1}reportInaccessibleThisError(){var e;(e=this.inner)!=null&&e.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(t=this.inner)!=null&&t.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(e=this.inner)!=null&&e.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(e=this.inner)!=null&&e.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(t=this.inner)!=null&&t.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(e=this.inner)!=null&&e.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(e,t){var r;(r=this.inner)!=null&&r.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(e,t))}trackExternalModuleSymbolOfImportTypeNode(e){var t;(t=this.inner)!=null&&t.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(e))}reportNonlocalAugmentation(e,t,r){var i;(i=this.inner)!=null&&i.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,r))}reportNonSerializableProperty(e){var t;(t=this.inner)!=null&&t.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}reportImportTypeNodeResolutionModeOverride(){var e;(e=this.inner)!=null&&e.reportImportTypeNodeResolutionModeOverride&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function lt(e,t,r,i){if(e===void 0)return e;const o=t(e);let s;if(o!==void 0)return Va(o)?s=(i||I5e)(o):s=o,D.assertNode(s,r),s}function Kn(e,t,r,i,o){if(e===void 0)return e;const s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let c,f=-1,d=-1;i>0||o<s?c=e.hasTrailingComma&&i+o===s:(f=e.pos,d=e.end,c=e.hasTrailingComma);const v=cye(e,t,r,i,o);if(v!==e){const h=N.createNodeArray(v,c);return Ym(h,f,d),h}return e}function QX(e,t,r,i,o){if(e===void 0)return e;const s=e.length;return(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i),cye(e,t,r,i,o)}function cye(e,t,r,i,o){let s;const c=e.length;(i>0||o<c)&&(s=[]);for(let f=0;f<o;f++){const d=e[f+i],v=d!==void 0?t?t(d):d:void 0;if((s!==void 0||v===void 0||v!==d)&&(s===void 0&&(s=e.slice(0,f),D.assertEachNode(s,r)),v))if(Va(v))for(const h of v)D.assertNode(h,r),s.push(h);else D.assertNode(v,r),s.push(v)}return s||(D.assertEachNode(e,r),e)}function yF(e,t,r,i,o,s=Kn){return r.startLexicalEnvironment(),e=s(e,t,ka,i),o&&(e=r.factory.ensureUseStrict(e)),N.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function Ql(e,t,r,i=Kn){let o;return r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),o=i(e,t,Fa),r.getLexicalEnvironmentFlags()&2&&ts(r.getCompilerOptions())>=2&&(o=x5e(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function x5e(e,t){let r;for(let i=0;i<e.length;i++){const o=e[i],s=A5e(o,t);(r||s!==o)&&(r||(r=e.slice(0,i)),r[i]=s)}return r?ht(t.factory.createNodeArray(r,e.hasTrailingComma),e):e}function A5e(e,t){return e.dotDotDotToken?e:Ya(e.name)?C5e(e,t):e.initializer?L5e(e,e.name,e.initializer,t):e}function C5e(e,t){const{factory:r}=t;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}function L5e(e,t,r,i){const o=i.factory;return i.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(t),"undefined"),sr(ht(o.createBlock([o.createExpressionStatement(sr(ht(o.createAssignment(sr(o.cloneNode(t),96),sr(r,96|bo(r)|3072)),e),3072))]),e),3905))),o.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function Uf(e,t,r,i=lt){r.resumeLexicalEnvironment();const o=i(e,t,_3),s=r.endLexicalEnvironment();if(kt(s)){if(!o)return r.factory.createBlock(s);const c=r.factory.converters.convertToFunctionBlock(o),f=N.mergeLexicalEnvironment(c.statements,s);return r.factory.updateBlock(c,f)}return o}function I_(e,t,r,i=lt){r.startBlockScope();const o=i(e,t,ka,r.factory.liftToBlock);D.assert(o);const s=r.endBlockScope();return kt(s)?uo(o)?(s.push(...o.statements),r.factory.updateBlock(o,s)):(s.push(o),r.factory.createBlock(s)):o}function W8(e,t,r=t){if(r===t||e.length<=1)return Kn(e,t,vt);let i=0;const o=e.length;return Kn(e,s=>{const c=i<o-1;return i++,c?r(s):t(s)},vt)}function Gn(e,t,r,i=Kn,o,s=lt){if(e===void 0)return;const c=uye[e.kind];return c===void 0?e:c(e,t,r,i,s,o)}function I5e(e){return D.assert(e.length<=1,"Too many nodes written to output."),Om(e)}var uye,k5e=S({"src/compiler/visitorPublic.ts"(){Na(),uye={163:function(t,r,i,o,s,c){return i.factory.updateQualifiedName(t,D.checkDefined(s(t.left,r,ff)),D.checkDefined(s(t.right,r,je)))},164:function(t,r,i,o,s,c){return i.factory.updateComputedPropertyName(t,D.checkDefined(s(t.expression,r,vt)))},165:function(t,r,i,o,s,c){return i.factory.updateTypeParameterDeclaration(t,o(t.modifiers,r,_o),D.checkDefined(s(t.name,r,je)),s(t.constraint,r,Gi),s(t.default,r,Gi))},166:function(t,r,i,o,s,c){return i.factory.updateParameterDeclaration(t,o(t.modifiers,r,il),c?s(t.dotDotDotToken,c,c5):t.dotDotDotToken,D.checkDefined(s(t.name,r,Ch)),c?s(t.questionToken,c,Kv):t.questionToken,s(t.type,r,Gi),s(t.initializer,r,vt))},167:function(t,r,i,o,s,c){return i.factory.updateDecorator(t,D.checkDefined(s(t.expression,r,vt)))},168:function(t,r,i,o,s,c){return i.factory.updatePropertySignature(t,o(t.modifiers,r,_o),D.checkDefined(s(t.name,r,El)),c?s(t.questionToken,c,Kv):t.questionToken,s(t.type,r,Gi))},169:function(t,r,i,o,s,c){var f,d;return i.factory.updatePropertyDeclaration(t,o(t.modifiers,r,il),D.checkDefined(s(t.name,r,El)),c?s((f=t.questionToken)!=null?f:t.exclamationToken,c,Bme):(d=t.questionToken)!=null?d:t.exclamationToken,s(t.type,r,Gi),s(t.initializer,r,vt))},170:function(t,r,i,o,s,c){return i.factory.updateMethodSignature(t,o(t.modifiers,r,_o),D.checkDefined(s(t.name,r,El)),c?s(t.questionToken,c,Kv):t.questionToken,o(t.typeParameters,r,Ul),o(t.parameters,r,Fa),s(t.type,r,Gi))},171:function(t,r,i,o,s,c){return i.factory.updateMethodDeclaration(t,o(t.modifiers,r,il),c?s(t.asteriskToken,c,JO):t.asteriskToken,D.checkDefined(s(t.name,r,El)),c?s(t.questionToken,c,Kv):t.questionToken,o(t.typeParameters,r,Ul),Ql(t.parameters,r,i,o),s(t.type,r,Gi),Uf(t.body,r,i,s))},173:function(t,r,i,o,s,c){return i.factory.updateConstructorDeclaration(t,o(t.modifiers,r,il),Ql(t.parameters,r,i,o),Uf(t.body,r,i,s))},174:function(t,r,i,o,s,c){return i.factory.updateGetAccessorDeclaration(t,o(t.modifiers,r,il),D.checkDefined(s(t.name,r,El)),Ql(t.parameters,r,i,o),s(t.type,r,Gi),Uf(t.body,r,i,s))},175:function(t,r,i,o,s,c){return i.factory.updateSetAccessorDeclaration(t,o(t.modifiers,r,il),D.checkDefined(s(t.name,r,El)),Ql(t.parameters,r,i,o),Uf(t.body,r,i,s))},172:function(t,r,i,o,s,c){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,Uf(t.body,r,i,s))},176:function(t,r,i,o,s,c){return i.factory.updateCallSignature(t,o(t.typeParameters,r,Ul),o(t.parameters,r,Fa),s(t.type,r,Gi))},177:function(t,r,i,o,s,c){return i.factory.updateConstructSignature(t,o(t.typeParameters,r,Ul),o(t.parameters,r,Fa),s(t.type,r,Gi))},178:function(t,r,i,o,s,c){return i.factory.updateIndexSignature(t,o(t.modifiers,r,il),o(t.parameters,r,Fa),D.checkDefined(s(t.type,r,Gi)))},179:function(t,r,i,o,s,c){return i.factory.updateTypePredicateNode(t,s(t.assertsModifier,r,ame),D.checkDefined(s(t.parameterName,r,Gme)),s(t.type,r,Gi))},180:function(t,r,i,o,s,c){return i.factory.updateTypeReferenceNode(t,D.checkDefined(s(t.typeName,r,ff)),o(t.typeArguments,r,Gi))},181:function(t,r,i,o,s,c){return i.factory.updateFunctionTypeNode(t,o(t.typeParameters,r,Ul),o(t.parameters,r,Fa),D.checkDefined(s(t.type,r,Gi)))},182:function(t,r,i,o,s,c){return i.factory.updateConstructorTypeNode(t,o(t.modifiers,r,_o),o(t.typeParameters,r,Ul),o(t.parameters,r,Fa),D.checkDefined(s(t.type,r,Gi)))},183:function(t,r,i,o,s,c){return i.factory.updateTypeQueryNode(t,D.checkDefined(s(t.exprName,r,ff)),o(t.typeArguments,r,Gi))},184:function(t,r,i,o,s,c){return i.factory.updateTypeLiteralNode(t,o(t.members,r,vT))},185:function(t,r,i,o,s,c){return i.factory.updateArrayTypeNode(t,D.checkDefined(s(t.elementType,r,Gi)))},186:function(t,r,i,o,s,c){return i.factory.updateTupleTypeNode(t,o(t.elements,r,Gi))},187:function(t,r,i,o,s,c){return i.factory.updateOptionalTypeNode(t,D.checkDefined(s(t.type,r,Gi)))},188:function(t,r,i,o,s,c){return i.factory.updateRestTypeNode(t,D.checkDefined(s(t.type,r,Gi)))},189:function(t,r,i,o,s,c){return i.factory.updateUnionTypeNode(t,o(t.types,r,Gi))},190:function(t,r,i,o,s,c){return i.factory.updateIntersectionTypeNode(t,o(t.types,r,Gi))},191:function(t,r,i,o,s,c){return i.factory.updateConditionalTypeNode(t,D.checkDefined(s(t.checkType,r,Gi)),D.checkDefined(s(t.extendsType,r,Gi)),D.checkDefined(s(t.trueType,r,Gi)),D.checkDefined(s(t.falseType,r,Gi)))},192:function(t,r,i,o,s,c){return i.factory.updateInferTypeNode(t,D.checkDefined(s(t.typeParameter,r,Ul)))},202:function(t,r,i,o,s,c){return i.factory.updateImportTypeNode(t,D.checkDefined(s(t.argument,r,Gi)),s(t.assertions,r,hme),s(t.qualifier,r,ff),o(t.typeArguments,r,Gi),t.isTypeOf)},298:function(t,r,i,o,s,c){return i.factory.updateImportTypeAssertionContainer(t,D.checkDefined(s(t.assertClause,r,g5)),t.multiLine)},199:function(t,r,i,o,s,c){return i.factory.updateNamedTupleMember(t,c?s(t.dotDotDotToken,c,c5):t.dotDotDotToken,D.checkDefined(s(t.name,r,je)),c?s(t.questionToken,c,Kv):t.questionToken,D.checkDefined(s(t.type,r,Gi)))},193:function(t,r,i,o,s,c){return i.factory.updateParenthesizedType(t,D.checkDefined(s(t.type,r,Gi)))},195:function(t,r,i,o,s,c){return i.factory.updateTypeOperatorNode(t,D.checkDefined(s(t.type,r,Gi)))},196:function(t,r,i,o,s,c){return i.factory.updateIndexedAccessTypeNode(t,D.checkDefined(s(t.objectType,r,Gi)),D.checkDefined(s(t.indexType,r,Gi)))},197:function(t,r,i,o,s,c){return i.factory.updateMappedTypeNode(t,c?s(t.readonlyToken,c,Ume):t.readonlyToken,D.checkDefined(s(t.typeParameter,r,Ul)),s(t.nameType,r,Gi),c?s(t.questionToken,c,Vme):t.questionToken,s(t.type,r,Gi),o(t.members,r,vT))},198:function(t,r,i,o,s,c){return i.factory.updateLiteralTypeNode(t,D.checkDefined(s(t.literal,r,zde)))},200:function(t,r,i,o,s,c){return i.factory.updateTemplateLiteralType(t,D.checkDefined(s(t.head,r,NC)),o(t.templateSpans,r,dme))},201:function(t,r,i,o,s,c){return i.factory.updateTemplateLiteralTypeSpan(t,D.checkDefined(s(t.type,r,Gi)),D.checkDefined(s(t.literal,r,c3)))},203:function(t,r,i,o,s,c){return i.factory.updateObjectBindingPattern(t,o(t.elements,r,ms))},204:function(t,r,i,o,s,c){return i.factory.updateArrayBindingPattern(t,o(t.elements,r,d3))},205:function(t,r,i,o,s,c){return i.factory.updateBindingElement(t,c?s(t.dotDotDotToken,c,c5):t.dotDotDotToken,s(t.propertyName,r,El),D.checkDefined(s(t.name,r,Ch)),s(t.initializer,r,vt))},206:function(t,r,i,o,s,c){return i.factory.updateArrayLiteralExpression(t,o(t.elements,r,vt))},207:function(t,r,i,o,s,c){return i.factory.updateObjectLiteralExpression(t,o(t.properties,r,Ly))},208:function(t,r,i,o,s,c){return a3(t)?i.factory.updatePropertyAccessChain(t,D.checkDefined(s(t.expression,r,vt)),c?s(t.questionDotToken,c,u5):t.questionDotToken,D.checkDefined(s(t.name,r,yg))):i.factory.updatePropertyAccessExpression(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.name,r,yg)))},209:function(t,r,i,o,s,c){return cz(t)?i.factory.updateElementAccessChain(t,D.checkDefined(s(t.expression,r,vt)),c?s(t.questionDotToken,c,u5):t.questionDotToken,D.checkDefined(s(t.argumentExpression,r,vt))):i.factory.updateElementAccessExpression(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.argumentExpression,r,vt)))},210:function(t,r,i,o,s,c){return gT(t)?i.factory.updateCallChain(t,D.checkDefined(s(t.expression,r,vt)),c?s(t.questionDotToken,c,u5):t.questionDotToken,o(t.typeArguments,r,Gi),o(t.arguments,r,vt)):i.factory.updateCallExpression(t,D.checkDefined(s(t.expression,r,vt)),o(t.typeArguments,r,Gi),o(t.arguments,r,vt))},211:function(t,r,i,o,s,c){return i.factory.updateNewExpression(t,D.checkDefined(s(t.expression,r,vt)),o(t.typeArguments,r,Gi),o(t.arguments,r,vt))},212:function(t,r,i,o,s,c){return i.factory.updateTaggedTemplateExpression(t,D.checkDefined(s(t.tag,r,vt)),o(t.typeArguments,r,Gi),D.checkDefined(s(t.template,r,qA)))},213:function(t,r,i,o,s,c){return i.factory.updateTypeAssertion(t,D.checkDefined(s(t.type,r,Gi)),D.checkDefined(s(t.expression,r,vt)))},214:function(t,r,i,o,s,c){return i.factory.updateParenthesizedExpression(t,D.checkDefined(s(t.expression,r,vt)))},215:function(t,r,i,o,s,c){return i.factory.updateFunctionExpression(t,o(t.modifiers,r,_o),c?s(t.asteriskToken,c,JO):t.asteriskToken,s(t.name,r,je),o(t.typeParameters,r,Ul),Ql(t.parameters,r,i,o),s(t.type,r,Gi),Uf(t.body,r,i,s))},216:function(t,r,i,o,s,c){return i.factory.updateArrowFunction(t,o(t.modifiers,r,_o),o(t.typeParameters,r,Ul),Ql(t.parameters,r,i,o),s(t.type,r,Gi),c?D.checkDefined(s(t.equalsGreaterThanToken,c,rme)):t.equalsGreaterThanToken,Uf(t.body,r,i,s))},217:function(t,r,i,o,s,c){return i.factory.updateDeleteExpression(t,D.checkDefined(s(t.expression,r,vt)))},218:function(t,r,i,o,s,c){return i.factory.updateTypeOfExpression(t,D.checkDefined(s(t.expression,r,vt)))},219:function(t,r,i,o,s,c){return i.factory.updateVoidExpression(t,D.checkDefined(s(t.expression,r,vt)))},220:function(t,r,i,o,s,c){return i.factory.updateAwaitExpression(t,D.checkDefined(s(t.expression,r,vt)))},221:function(t,r,i,o,s,c){return i.factory.updatePrefixUnaryExpression(t,D.checkDefined(s(t.operand,r,vt)))},222:function(t,r,i,o,s,c){return i.factory.updatePostfixUnaryExpression(t,D.checkDefined(s(t.operand,r,vt)))},223:function(t,r,i,o,s,c){return i.factory.updateBinaryExpression(t,D.checkDefined(s(t.left,r,vt)),c?D.checkDefined(s(t.operatorToken,c,Hme)):t.operatorToken,D.checkDefined(s(t.right,r,vt)))},224:function(t,r,i,o,s,c){return i.factory.updateConditionalExpression(t,D.checkDefined(s(t.condition,r,vt)),c?D.checkDefined(s(t.questionToken,c,Kv)):t.questionToken,D.checkDefined(s(t.whenTrue,r,vt)),c?D.checkDefined(s(t.colonToken,c,nme)):t.colonToken,D.checkDefined(s(t.whenFalse,r,vt)))},225:function(t,r,i,o,s,c){return i.factory.updateTemplateExpression(t,D.checkDefined(s(t.head,r,NC)),o(t.templateSpans,r,iw))},226:function(t,r,i,o,s,c){return i.factory.updateYieldExpression(t,c?s(t.asteriskToken,c,JO):t.asteriskToken,s(t.expression,r,vt))},227:function(t,r,i,o,s,c){return i.factory.updateSpreadElement(t,D.checkDefined(s(t.expression,r,vt)))},228:function(t,r,i,o,s,c){return i.factory.updateClassExpression(t,o(t.modifiers,r,il),s(t.name,r,je),o(t.typeParameters,r,Ul),o(t.heritageClauses,r,Kd),o(t.members,r,qc))},230:function(t,r,i,o,s,c){return i.factory.updateExpressionWithTypeArguments(t,D.checkDefined(s(t.expression,r,vt)),o(t.typeArguments,r,Gi))},231:function(t,r,i,o,s,c){return i.factory.updateAsExpression(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.type,r,Gi)))},235:function(t,r,i,o,s,c){return i.factory.updateSatisfiesExpression(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.type,r,Gi)))},232:function(t,r,i,o,s,c){return xu(t)?i.factory.updateNonNullChain(t,D.checkDefined(s(t.expression,r,vt))):i.factory.updateNonNullExpression(t,D.checkDefined(s(t.expression,r,vt)))},233:function(t,r,i,o,s,c){return i.factory.updateMetaProperty(t,D.checkDefined(s(t.name,r,je)))},236:function(t,r,i,o,s,c){return i.factory.updateTemplateSpan(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.literal,r,c3)))},238:function(t,r,i,o,s,c){return i.factory.updateBlock(t,o(t.statements,r,ka))},240:function(t,r,i,o,s,c){return i.factory.updateVariableStatement(t,o(t.modifiers,r,il),D.checkDefined(s(t.declarationList,r,Ju)))},241:function(t,r,i,o,s,c){return i.factory.updateExpressionStatement(t,D.checkDefined(s(t.expression,r,vt)))},242:function(t,r,i,o,s,c){return i.factory.updateIfStatement(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.thenStatement,r,ka,i.factory.liftToBlock)),s(t.elseStatement,r,ka,i.factory.liftToBlock))},243:function(t,r,i,o,s,c){return i.factory.updateDoStatement(t,I_(t.statement,r,i,s),D.checkDefined(s(t.expression,r,vt)))},244:function(t,r,i,o,s,c){return i.factory.updateWhileStatement(t,D.checkDefined(s(t.expression,r,vt)),I_(t.statement,r,i,s))},245:function(t,r,i,o,s,c){return i.factory.updateForStatement(t,s(t.initializer,r,rm),s(t.condition,r,vt),s(t.incrementor,r,vt),I_(t.statement,r,i,s))},246:function(t,r,i,o,s,c){return i.factory.updateForInStatement(t,D.checkDefined(s(t.initializer,r,rm)),D.checkDefined(s(t.expression,r,vt)),I_(t.statement,r,i,s))},247:function(t,r,i,o,s,c){return i.factory.updateForOfStatement(t,c?s(t.awaitModifier,c,cK):t.awaitModifier,D.checkDefined(s(t.initializer,r,rm)),D.checkDefined(s(t.expression,r,vt)),I_(t.statement,r,i,s))},248:function(t,r,i,o,s,c){return i.factory.updateContinueStatement(t,s(t.label,r,je))},249:function(t,r,i,o,s,c){return i.factory.updateBreakStatement(t,s(t.label,r,je))},250:function(t,r,i,o,s,c){return i.factory.updateReturnStatement(t,s(t.expression,r,vt))},251:function(t,r,i,o,s,c){return i.factory.updateWithStatement(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.statement,r,ka,i.factory.liftToBlock)))},252:function(t,r,i,o,s,c){return i.factory.updateSwitchStatement(t,D.checkDefined(s(t.expression,r,vt)),D.checkDefined(s(t.caseBlock,r,t8)))},253:function(t,r,i,o,s,c){return i.factory.updateLabeledStatement(t,D.checkDefined(s(t.label,r,je)),D.checkDefined(s(t.statement,r,ka,i.factory.liftToBlock)))},254:function(t,r,i,o,s,c){return i.factory.updateThrowStatement(t,D.checkDefined(s(t.expression,r,vt)))},255:function(t,r,i,o,s,c){return i.factory.updateTryStatement(t,D.checkDefined(s(t.tryBlock,r,uo)),s(t.catchClause,r,jC),s(t.finallyBlock,r,uo))},257:function(t,r,i,o,s,c){return i.factory.updateVariableDeclaration(t,D.checkDefined(s(t.name,r,Ch)),c?s(t.exclamationToken,c,KO):t.exclamationToken,s(t.type,r,Gi),s(t.initializer,r,vt))},258:function(t,r,i,o,s,c){return i.factory.updateVariableDeclarationList(t,o(t.declarations,r,Xi))},259:function(t,r,i,o,s,c){return i.factory.updateFunctionDeclaration(t,o(t.modifiers,r,_o),c?s(t.asteriskToken,c,JO):t.asteriskToken,s(t.name,r,je),o(t.typeParameters,r,Ul),Ql(t.parameters,r,i,o),s(t.type,r,Gi),Uf(t.body,r,i,s))},260:function(t,r,i,o,s,c){return i.factory.updateClassDeclaration(t,o(t.modifiers,r,il),s(t.name,r,je),o(t.typeParameters,r,Ul),o(t.heritageClauses,r,Kd),o(t.members,r,qc))},261:function(t,r,i,o,s,c){return i.factory.updateInterfaceDeclaration(t,o(t.modifiers,r,il),D.checkDefined(s(t.name,r,je)),o(t.typeParameters,r,Ul),o(t.heritageClauses,r,Kd),o(t.members,r,vT))},262:function(t,r,i,o,s,c){return i.factory.updateTypeAliasDeclaration(t,o(t.modifiers,r,il),D.checkDefined(s(t.name,r,je)),o(t.typeParameters,r,Ul),D.checkDefined(s(t.type,r,Gi)))},263:function(t,r,i,o,s,c){return i.factory.updateEnumDeclaration(t,o(t.modifiers,r,il),D.checkDefined(s(t.name,r,je)),o(t.members,r,Q1))},264:function(t,r,i,o,s,c){return i.factory.updateModuleDeclaration(t,o(t.modifiers,r,il),D.checkDefined(s(t.name,r,jme)),s(t.body,r,Kde))},265:function(t,r,i,o,s,c){return i.factory.updateModuleBlock(t,o(t.statements,r,ka))},266:function(t,r,i,o,s,c){return i.factory.updateCaseBlock(t,o(t.clauses,r,Cz))},267:function(t,r,i,o,s,c){return i.factory.updateNamespaceExportDeclaration(t,D.checkDefined(s(t.name,r,je)))},268:function(t,r,i,o,s,c){return i.factory.updateImportEqualsDeclaration(t,o(t.modifiers,r,il),t.isTypeOnly,D.checkDefined(s(t.name,r,je)),D.checkDefined(s(t.moduleReference,r,$de)))},269:function(t,r,i,o,s,c){return i.factory.updateImportDeclaration(t,o(t.modifiers,r,il),s(t.importClause,r,Zm),D.checkDefined(s(t.moduleSpecifier,r,vt)),s(t.assertClause,r,g5))},296:function(t,r,i,o,s,c){return i.factory.updateAssertClause(t,o(t.elements,r,gme),t.multiLine)},297:function(t,r,i,o,s,c){return i.factory.updateAssertEntry(t,D.checkDefined(s(t.name,r,Ode)),D.checkDefined(s(t.value,r,vt)))},270:function(t,r,i,o,s,c){return i.factory.updateImportClause(t,t.isTypeOnly,s(t.name,r,je),s(t.namedBindings,r,Sz))},271:function(t,r,i,o,s,c){return i.factory.updateNamespaceImport(t,D.checkDefined(s(t.name,r,je)))},277:function(t,r,i,o,s,c){return i.factory.updateNamespaceExport(t,D.checkDefined(s(t.name,r,je)))},272:function(t,r,i,o,s,c){return i.factory.updateNamedImports(t,o(t.elements,r,Nd))},273:function(t,r,i,o,s,c){return i.factory.updateImportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,je),D.checkDefined(s(t.name,r,je)))},274:function(t,r,i,o,s,c){return i.factory.updateExportAssignment(t,o(t.modifiers,r,il),D.checkDefined(s(t.expression,r,vt)))},275:function(t,r,i,o,s,c){return i.factory.updateExportDeclaration(t,o(t.modifiers,r,il),t.isTypeOnly,s(t.exportClause,r,dz),s(t.moduleSpecifier,r,vt),s(t.assertClause,r,g5))},276:function(t,r,i,o,s,c){return i.factory.updateNamedExports(t,o(t.elements,r,gd))},278:function(t,r,i,o,s,c){return i.factory.updateExportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,je),D.checkDefined(s(t.name,r,je)))},280:function(t,r,i,o,s,c){return i.factory.updateExternalModuleReference(t,D.checkDefined(s(t.expression,r,vt)))},281:function(t,r,i,o,s,c){return i.factory.updateJsxElement(t,D.checkDefined(s(t.openingElement,r,Gh)),o(t.children,r,bN),D.checkDefined(s(t.closingElement,r,Zx)))},282:function(t,r,i,o,s,c){return i.factory.updateJsxSelfClosingElement(t,D.checkDefined(s(t.tagName,r,ek)),o(t.typeArguments,r,Gi),D.checkDefined(s(t.attributes,r,$1)))},283:function(t,r,i,o,s,c){return i.factory.updateJsxOpeningElement(t,D.checkDefined(s(t.tagName,r,ek)),o(t.typeArguments,r,Gi),D.checkDefined(s(t.attributes,r,$1)))},284:function(t,r,i,o,s,c){return i.factory.updateJsxClosingElement(t,D.checkDefined(s(t.tagName,r,ek)))},285:function(t,r,i,o,s,c){return i.factory.updateJsxFragment(t,D.checkDefined(s(t.openingFragment,r,t2)),o(t.children,r,bN),D.checkDefined(s(t.closingFragment,r,yme)))},288:function(t,r,i,o,s,c){return i.factory.updateJsxAttribute(t,D.checkDefined(s(t.name,r,je)),s(t.initializer,r,Qde))},289:function(t,r,i,o,s,c){return i.factory.updateJsxAttributes(t,o(t.properties,r,p3))},290:function(t,r,i,o,s,c){return i.factory.updateJsxSpreadAttribute(t,D.checkDefined(s(t.expression,r,vt)))},291:function(t,r,i,o,s,c){return i.factory.updateJsxExpression(t,s(t.expression,r,vt))},292:function(t,r,i,o,s,c){return i.factory.updateCaseClause(t,D.checkDefined(s(t.expression,r,vt)),o(t.statements,r,ka))},293:function(t,r,i,o,s,c){return i.factory.updateDefaultClause(t,o(t.statements,r,ka))},294:function(t,r,i,o,s,c){return i.factory.updateHeritageClause(t,o(t.types,r,Py))},295:function(t,r,i,o,s,c){return i.factory.updateCatchClause(t,s(t.variableDeclaration,r,Xi),D.checkDefined(s(t.block,r,uo)))},299:function(t,r,i,o,s,c){return i.factory.updatePropertyAssignment(t,D.checkDefined(s(t.name,r,El)),D.checkDefined(s(t.initializer,r,vt)))},300:function(t,r,i,o,s,c){return i.factory.updateShorthandPropertyAssignment(t,D.checkDefined(s(t.name,r,je)),s(t.objectAssignmentInitializer,r,vt))},301:function(t,r,i,o,s,c){return i.factory.updateSpreadAssignment(t,D.checkDefined(s(t.expression,r,vt)))},302:function(t,r,i,o,s,c){return i.factory.updateEnumMember(t,D.checkDefined(s(t.name,r,El)),s(t.initializer,r,vt))},308:function(t,r,i,o,s,c){return i.factory.updateSourceFile(t,yF(t.statements,r,i))},356:function(t,r,i,o,s,c){return i.factory.updatePartiallyEmittedExpression(t,D.checkDefined(s(t.expression,r,vt)))},357:function(t,r,i,o,s,c){return i.factory.updateCommaListExpression(t,o(t.elements,r,vt))}}}});function dye(e,t,r,i,o){var{enter:s,exit:c}=o.extendedDiagnostics?LM("Source Map","beforeSourcemap","afterSourcemap"):IM,f=[],d=[],v=new Map,h,E=[],C,L=[],I="",O=0,k=0,G=0,V=0,H=0,ne=0,Y=!1,$=0,M=0,de=0,re=0,be=0,ae=0,W=!1,ce=!1,me=!1;return{getSources:()=>f,addSource:Ee,setSourceContent:xe,addName:te,addMapping:Ge,appendSourceMap:ze,toJSON:Fe,toString:()=>JSON.stringify(Fe())};function Ee(Ct){s();const Et=_x(i,Ct,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let Vt=v.get(Et);return Vt===void 0&&(Vt=d.length,d.push(Et),f.push(Ct),v.set(Et,Vt)),c(),Vt}function xe(Ct,Et){if(s(),Et!==null){for(h||(h=[]);h.length<Ct;)h.push(null);h[Ct]=Et}c()}function te(Ct){s(),C||(C=new Map);let Et=C.get(Ct);return Et===void 0&&(Et=E.length,E.push(Ct),C.set(Ct,Et)),c(),Et}function Qe(Ct,Et){return!W||$!==Ct||M!==Et}function Ve(Ct,Et,Vt){return Ct!==void 0&&Et!==void 0&&Vt!==void 0&&de===Ct&&(re>Et||re===Et&&be>Vt)}function Ge(Ct,Et,Vt,tt,at,on){D.assert(Ct>=$,"generatedLine cannot backtrack"),D.assert(Et>=0,"generatedCharacter cannot be negative"),D.assert(Vt===void 0||Vt>=0,"sourceIndex cannot be negative"),D.assert(tt===void 0||tt>=0,"sourceLine cannot be negative"),D.assert(at===void 0||at>=0,"sourceCharacter cannot be negative"),s(),(Qe(Ct,Et)||Ve(Vt,tt,at))&&(Ye(),$=Ct,M=Et,ce=!1,me=!1,W=!0),Vt!==void 0&&tt!==void 0&&at!==void 0&&(de=Vt,re=tt,be=at,ce=!0,on!==void 0&&(ae=on,me=!0)),c()}function ze(Ct,Et,Vt,tt,at,on){D.assert(Ct>=$,"generatedLine cannot backtrack"),D.assert(Et>=0,"generatedCharacter cannot be negative"),s();const Qt=[];let Pn;const Hn=eY(Vt.mappings);for(const kn of Hn){if(on&&(kn.generatedLine>on.line||kn.generatedLine===on.line&&kn.generatedCharacter>on.character))break;if(at&&(kn.generatedLine<at.line||at.line===kn.generatedLine&&kn.generatedCharacter<at.character))continue;let Zt,_r,wi,Qi;if(kn.sourceIndex!==void 0){if(Zt=Qt[kn.sourceIndex],Zt===void 0){const Ht=Vt.sources[kn.sourceIndex],un=Vt.sourceRoot?Bi(Vt.sourceRoot,Ht):Ht,ir=Bi(yi(tt),un);Qt[kn.sourceIndex]=Zt=Ee(ir),Vt.sourcesContent&&typeof Vt.sourcesContent[kn.sourceIndex]=="string"&&xe(Zt,Vt.sourcesContent[kn.sourceIndex])}_r=kn.sourceLine,wi=kn.sourceCharacter,Vt.names&&kn.nameIndex!==void 0&&(Pn||(Pn=[]),Qi=Pn[kn.nameIndex],Qi===void 0&&(Pn[kn.nameIndex]=Qi=te(Vt.names[kn.nameIndex])))}const Zi=kn.generatedLine-(at?at.line:0),Or=Zi+Ct,At=at&&at.line===kn.generatedLine?kn.generatedCharacter-at.character:kn.generatedCharacter,vn=Zi===0?At+Et:At;Ge(Or,vn,Zt,_r,wi,Qi)}c()}function Oe(){return!Y||O!==$||k!==M||G!==de||V!==re||H!==be||ne!==ae}function Me(Ct){L.push(Ct),L.length>=1024&&We()}function Ye(){if(!(!W||!Oe())){if(s(),O<$){do Me(59),O++;while(O<$);k=0}else D.assertEqual(O,$,"generatedLine cannot backtrack"),Y&&Me(44);st(M-k),k=M,ce&&(st(de-G),G=de,st(re-V),V=re,st(be-H),H=be,me&&(st(ae-ne),ne=ae)),Y=!0,c()}}function We(){L.length>0&&(I+=String.fromCharCode.apply(void 0,L),L.length=0)}function Fe(){return Ye(),We(),{version:3,file:t,sourceRoot:r,sources:d,names:E,mappings:I,sourcesContent:h}}function st(Ct){Ct<0?Ct=(-Ct<<1)+1:Ct=Ct<<1;do{let Et=Ct&31;Ct=Ct>>5,Ct>0&&(Et=Et|32),Me(R5e(Et))}while(Ct>0)}}function fye(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function _ye(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=vF.exec(r);if(i)return MR(i[1]);if(!r.match(bF))break}}function w5e(e){return typeof e=="string"||e===null}function pye(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Va(e.sources)&&Zn(e.sources,Ha)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Va(e.sourcesContent)&&Zn(e.sourcesContent,w5e))&&(e.names===void 0||e.names===null||Va(e.names)&&Zn(e.names,Ha))}function ZX(e){try{const t=JSON.parse(e);if(pye(t))return t}catch(t){}}function eY(e){let t=!1,r=0,i=0,o=0,s=0,c=0,f=0,d=0,v;return{get pos(){return r},get error(){return v},get state(){return h(!0,!0)},next(){for(;!t&&r<e.length;){const G=e.charCodeAt(r);if(G===59){i++,o=0,r++;continue}if(G===44){r++;continue}let V=!1,H=!1;if(o+=k(),I())return E();if(o<0)return L("Invalid generatedCharacter found");if(!O()){if(V=!0,s+=k(),I())return E();if(s<0)return L("Invalid sourceIndex found");if(O())return L("Unsupported Format: No entries after sourceIndex");if(c+=k(),I())return E();if(c<0)return L("Invalid sourceLine found");if(O())return L("Unsupported Format: No entries after sourceLine");if(f+=k(),I())return E();if(f<0)return L("Invalid sourceCharacter found");if(!O()){if(H=!0,d+=k(),I())return E();if(d<0)return L("Invalid nameIndex found");if(!O())return L("Unsupported Error Format: Entries after nameIndex")}}return{value:h(V,H),done:t}}return E()},[Symbol.iterator](){return this}};function h(G,V){return{generatedLine:i,generatedCharacter:o,sourceIndex:G?s:void 0,sourceLine:G?c:void 0,sourceCharacter:G?f:void 0,nameIndex:V?d:void 0}}function E(){return t=!0,{value:void 0,done:!0}}function C(G){v===void 0&&(v=G)}function L(G){return C(G),E()}function I(){return v!==void 0}function O(){return r===e.length||e.charCodeAt(r)===44||e.charCodeAt(r)===59}function k(){let G=!0,V=0,H=0;for(;G;r++){if(r>=e.length)return C("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const ne=N5e(e.charCodeAt(r));if(ne===-1)return C("Invalid character in VLQ"),-1;G=(ne&32)!==0,H=H|(ne&31)<<V,V+=5}return H&1?(H=H>>1,H=-H):H=H>>1,H}}function D5e(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function mye(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function R5e(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:D.fail(`${e}: not a base64 value`)}function N5e(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function hye(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function gye(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function O5e(e,t){return D.assert(e.sourceIndex===t.sourceIndex),qs(e.sourcePosition,t.sourcePosition)}function P5e(e,t){return qs(e.generatedPosition,t.generatedPosition)}function M5e(e){return e.sourcePosition}function F5e(e){return e.generatedPosition}function yye(e,t,r){const i=yi(r),o=t.sourceRoot?Oa(t.sourceRoot,i):i,s=Oa(t.file,i),c=e.getSourceFileLike(s),f=t.sources.map(V=>Oa(V,o)),d=new Map(f.map((V,H)=>[e.getCanonicalFileName(V),H]));let v,h,E;return{getSourcePosition:G,getGeneratedPosition:k};function C(V){const H=c!==void 0?nN(c,V.generatedLine,V.generatedCharacter,!0):-1;let ne,Y;if(mye(V)){const $=e.getSourceFileLike(f[V.sourceIndex]);ne=t.sources[V.sourceIndex],Y=$!==void 0?nN($,V.sourceLine,V.sourceCharacter,!0):-1}return{generatedPosition:H,source:ne,sourceIndex:V.sourceIndex,sourcePosition:Y,nameIndex:V.nameIndex}}function L(){if(v===void 0){const V=eY(t.mappings),H=No(V,C);V.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${V.error}`),v=rt):v=H}return v}function I(V){if(E===void 0){const H=[];for(const ne of L()){if(!hye(ne))continue;let Y=H[ne.sourceIndex];Y||(H[ne.sourceIndex]=Y=[]),Y.push(ne)}E=H.map(ne=>IR(ne,O5e,gye))}return E[V]}function O(){if(h===void 0){const V=[];for(const H of L())V.push(H);h=IR(V,P5e,gye)}return h}function k(V){const H=d.get(e.getCanonicalFileName(V.fileName));if(H===void 0)return V;const ne=I(H);if(!kt(ne))return V;let Y=rx(ne,V.pos,M5e,qs);Y<0&&(Y=~Y);const $=ne[Y];return $===void 0||$.sourceIndex!==H?V:{fileName:s,pos:$.generatedPosition}}function G(V){const H=O();if(!kt(H))return V;let ne=rx(H,V.pos,F5e,qs);ne<0&&(ne=~ne);const Y=H[ne];return Y===void 0||!hye(Y)?V:{fileName:f[Y.sourceIndex],pos:Y.sourcePosition}}}var tY,vF,bF,EF,B5e=S({"src/compiler/sourcemap.ts"(){Na(),A1(),tY=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,vF=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,bF=/^\s*(\/\/[@#] .*)?$/,EF={getSourcePosition:yl,getGeneratedPosition:yl}}});function Nl(e){return e=Cl(e),e?hs(e):0}function G5e(e){return!e||!My(e)?!1:kt(e.elements,vye)}function vye(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function rp(e,t){return r;function r(o){return o.kind===308?t(o):i(o)}function i(o){return e.factory.createBundle(zt(o.sourceFiles,t),o.prepends)}}function bye(e){return!!lC(e)}function TF(e){if(lC(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!My(t))return!1;let r=0;for(const i of t.elements)vye(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&xx(e)}function nY(e){return!TF(e)&&(xx(e)||!!e.importClause&&My(e.importClause.namedBindings)&&G5e(e.importClause.namedBindings))}function rY(e,t,r,i){const o=[],s=b_(),c=[],f=new Map;let d,v=!1,h,E=!1,C=!1,L=!1;for(const k of t.statements)switch(k.kind){case 269:o.push(k),!C&&TF(k)&&(C=!0),!L&&nY(k)&&(L=!0);break;case 268:k.moduleReference.kind===280&&o.push(k);break;case 275:if(k.moduleSpecifier)if(!k.exportClause)o.push(k),E=!0;else if(o.push(k),tp(k.exportClause))O(k);else{const G=k.exportClause.name;f.get(Mr(G))||(Sw(c,Nl(k),G),f.set(Mr(G),!0),d=Bn(d,G)),C=!0}else O(k);break;case 274:k.isExportEquals&&!h&&(h=k);break;case 240:if($r(k,1))for(const G of k.declarationList.declarations)d=Eye(G,f,d);break;case 259:if($r(k,1))if($r(k,1024))v||(Sw(c,Nl(k),e.factory.getDeclarationName(k)),v=!0);else{const G=k.name;f.get(Mr(G))||(Sw(c,Nl(k),G),f.set(Mr(G),!0),d=Bn(d,G))}break;case 260:if($r(k,1))if($r(k,1024))v||(Sw(c,Nl(k),e.factory.getDeclarationName(k)),v=!0);else{const G=k.name;G&&!f.get(Mr(G))&&(Sw(c,Nl(k),G),f.set(Mr(G),!0),d=Bn(d,G))}break}const I=PK(e.factory,e.getEmitHelperFactory(),t,i,E,C,L);return I&&o.unshift(I),{externalImports:o,exportSpecifiers:s,exportEquals:h,hasExportStarsToExportValues:E,exportedBindings:c,exportedNames:d,externalHelpersImportDeclaration:I};function O(k){for(const G of so(k.exportClause,tp).elements)if(!f.get(Mr(G.name))){const V=G.propertyName||G.name;k.moduleSpecifier||s.add(Mr(V),G);const H=r.getReferencedImportDeclaration(V)||r.getReferencedValueDeclaration(V);H&&Sw(c,Nl(H),G.name),f.set(Mr(G.name),!0),d=Bn(d,G.name)}}}function Eye(e,t,r){if(Ya(e.name))for(const i of e.name.elements)Fc(i)||(r=Eye(i,t,r));else if(!Ll(e.name)){const i=Mr(e.name);t.get(i)||(t.set(i,!0),r=Bn(r,e.name))}return r}function Sw(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function rE(e){return As(e)||e.kind===8||Dd(e.kind)||je(e)}function pm(e){return!je(e)&&rE(e)}function z8(e){return e>=64&&e<=78}function xw(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}function iY(e){if(!fu(e))return;const t=Ws(e.expression);return eC(t)?t:void 0}function SF(e,t){for(let r=t;r<e.length;r+=1){const i=e[r];if(iY(i))return r}return-1}function aY(e,t,r){return yn(e.members,i=>V5e(i,t,r))}function U5e(e){return j5e(e)||Rl(e)}function xF(e){return yn(e.members,U5e)}function V5e(e,t,r){return ro(e)&&(!!e.initializer||!t)&&Sc(e)===r}function j5e(e){return ro(e)&&Sc(e)}function q8(e){return e.kind===169&&e.initializer!==void 0}function Tye(e){return!Ja(e)&&(zA(e)||_f(e))&&Oi(e.name)}function oY(e){let t;if(e){const r=e.parameters,i=r.length>0&&j1(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let c=0;c<s;c++){const f=r[c+o];(t||o_(f))&&(t||(t=new Array(s)),t[c]=Ov(f))}}return t}function sY(e){const t=Ov(e),r=oY(Dh(e));if(!(!kt(t)&&!kt(r)))return{decorators:t,parameters:r}}function AF(e,t,r){switch(e.kind){case 174:case 175:return r?H5e(e,t):Sye(e);case 171:return Sye(e);case 169:return W5e(e);default:return}}function H5e(e,t){if(!e.body)return;const{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}=PT(t.members,e),c=o_(r)?r:i&&o_(i)?i:void 0;if(!c||e!==c)return;const f=Ov(c),d=oY(s);if(!(!kt(f)&&!kt(d)))return{decorators:f,parameters:d,getDecorators:o&&Ov(o),setDecorators:s&&Ov(s)}}function Sye(e){if(!e.body)return;const t=Ov(e),r=oY(e);if(!(!kt(t)&&!kt(r)))return{decorators:t,parameters:r}}function W5e(e){const t=Ov(e);if(kt(t))return{decorators:t}}function xye(e,t){for(;e;){const r=t(e);if(r!==void 0)return r;e=e.previous}}function Aye(e){return{data:e}}function lY(e,t){var r,i;return hx(t)?(r=e==null?void 0:e.generatedIdentifiers)==null?void 0:r.get(w5(t)):(i=e==null?void 0:e.identifiers)==null?void 0:i.get(t.escapedText)}function QT(e,t,r){var i,o;hx(t)?((i=e.generatedIdentifiers)!=null||(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(w5(t),r)):((o=e.identifiers)!=null||(e.identifiers=new Map),e.identifiers.set(t.escapedText,r))}function Cye(e,t){return xye(e,r=>lY(r.privateEnv,t))}var z5e=S({"src/compiler/transformers/utilities.ts"(){Na()}});function ZT(e,t,r,i,o,s){let c=e,f;if(Dy(e))for(f=e.right;I_e(e.left)||Wq(e.left);)if(Dy(f))c=e=f,f=e.right;else return D.checkDefined(lt(f,t,vt));let d;const v={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:h,emitBindingOrAssignment:E,createArrayBindingOrAssignmentPattern:C=>Z5e(r.factory,C),createObjectBindingOrAssignmentPattern:C=>tFe(r.factory,C),createArrayBindingOrAssignmentElement:rFe,visitor:t};if(f&&(f=lt(f,t,vt),D.assert(f),je(f)&&cY(e,f.escapedText)||uY(e)?f=eS(v,f,!1,c):o?f=eS(v,f,!0,c):tl(e)&&(c=f)),rL(v,e,f,c,Dy(e)),f&&o){if(!kt(d))return f;d.push(f)}return r.factory.inlineExpressions(d)||r.factory.createOmittedExpression();function h(C){d=Bn(d,C)}function E(C,L,I,O){D.assertNode(C,s?je:vt);const k=s?s(C,L,I):ht(r.factory.createAssignment(D.checkDefined(lt(C,t,vt)),L),I);k.original=O,h(k)}}function cY(e,t){const r=Qv(e);return pN(r)?q5e(r,t):je(r)?r.escapedText===t:!1}function q5e(e,t){const r=KC(e);for(const i of r)if(cY(i,t))return!0;return!1}function uY(e){const t=I5(e);if(t&&Cs(t)&&!yT(t.expression))return!0;const r=Qv(e);return!!r&&pN(r)&&J5e(r)}function J5e(e){return!!Je(KC(e),uY)}function iE(e,t,r,i,o,s=!1,c){let f;const d=[],v=[],h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:E,emitBindingOrAssignment:C,createArrayBindingOrAssignmentPattern:L=>Q5e(r.factory,L),createObjectBindingOrAssignmentPattern:L=>eFe(r.factory,L),createArrayBindingOrAssignmentElement:L=>nFe(r.factory,L),visitor:t};if(Xi(e)){let L=u8(e);L&&(je(L)&&cY(e,L.escapedText)||uY(e))&&(L=eS(h,D.checkDefined(lt(L,h.visitor,vt)),!1,L),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,L))}if(rL(h,e,o,e,c),f){const L=r.factory.createTempVariable(void 0);if(s){const I=r.factory.inlineExpressions(f);f=void 0,C(L,I,void 0,void 0)}else{r.hoistVariableDeclaration(L);const I=Jo(d);I.pendingExpressions=Bn(I.pendingExpressions,r.factory.createAssignment(L,I.value)),Ai(I.pendingExpressions,f),I.value=L}}for(const{pendingExpressions:L,name:I,value:O,location:k,original:G}of d){const V=r.factory.createVariableDeclaration(I,void 0,void 0,L?r.factory.inlineExpressions(Bn(L,O)):O);V.original=G,ht(V,k),v.push(V)}return v;function E(L){f=Bn(f,L)}function C(L,I,O,k){D.assertNode(L,Ch),f&&(I=r.factory.inlineExpressions(Bn(f,I)),f=void 0),d.push({pendingExpressions:f,name:L,value:I,location:O,original:k})}}function rL(e,t,r,i,o){const s=Qv(t);if(!o){const c=lt(u8(t),e.visitor,vt);c?r?(r=Y5e(e,r,c,i),!pm(c)&&pN(s)&&(r=eS(e,r,!0,i))):r=c:r||(r=e.context.factory.createVoidZero())}vz(s)?K5e(e,t,s,r,i):bz(s)?X5e(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function K5e(e,t,r,i,o){const s=KC(r),c=s.length;if(c!==1){const v=!_N(t)||c!==0;i=eS(e,i,v,o)}let f,d;for(let v=0;v<c;v++){const h=s[v];if(L5(h)){if(v===c-1){f&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f),i,o,r),f=void 0);const E=e.context.getEmitHelperFactory().createRestHelper(i,s,d,r);rL(e,h,E,h)}}else{const E=MK(h);if(e.level>=1&&!(h.transformFlags&98304)&&!(Qv(h).transformFlags&98304)&&!Cs(E))f=Bn(f,lt(h,e.visitor,Gde));else{f&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f),i,o,r),f=void 0);const C=$5e(e,i,E);Cs(E)&&(d=Bn(d,C.argumentExpression)),rL(e,h,C,h)}}}f&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f),i,o,r)}function X5e(e,t,r,i,o){const s=KC(r),c=s.length;if(e.level<1&&e.downlevelIteration)i=eS(e,ht(e.context.getEmitHelperFactory().createReadHelper(i,c>0&&L5(s[c-1])?void 0:c),o),!1,o);else if(c!==1&&(e.level<1||c===0)||Zn(s,Fc)){const v=!_N(t)||c!==0;i=eS(e,i,v,o)}let f,d;for(let v=0;v<c;v++){const h=s[v];if(e.level>=1)if(h.transformFlags&65536||e.hasTransformedPriorElement&&!Lye(h)){e.hasTransformedPriorElement=!0;const E=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(E),d=Bn(d,[E,h]),f=Bn(f,e.createArrayBindingOrAssignmentElement(E))}else f=Bn(f,h);else{if(Fc(h))continue;if(L5(h)){if(v===c-1){const E=e.context.factory.createArraySliceCall(i,v);rL(e,h,E,h)}}else{const E=e.context.factory.createElementAccessExpression(i,v);rL(e,h,E,h)}}}if(f&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(f),i,o,r),d)for(const[v,h]of d)rL(e,h,v,h)}function Lye(e){const t=Qv(e);if(!t||Fc(t))return!0;const r=I5(e);if(r&&!J_(r))return!1;const i=u8(e);return i&&!pm(i)?!1:pN(t)?Zn(KC(t),Lye):je(t)}function Y5e(e,t,r,i){return t=eS(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function $5e(e,t,r){if(Cs(r)){const i=eS(e,D.checkDefined(lt(r.expression,e.visitor,vt)),!1,r);return e.context.factory.createElementAccessExpression(t,i)}else if(i_(r)){const i=N.cloneNode(r);return e.context.factory.createElementAccessExpression(t,i)}else{const i=e.context.factory.createIdentifier(Mr(r));return e.context.factory.createPropertyAccessExpression(t,i)}}function eS(e,t,r,i){if(je(t)&&r)return t;{const o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(ht(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function Q5e(e,t){return D.assertEachNode(t,d3),e.createArrayBindingPattern(t)}function Z5e(e,t){return D.assertEachNode(t,hN),e.createArrayLiteralExpression(zt(t,e.converters.convertToArrayAssignmentElement))}function eFe(e,t){return D.assertEachNode(t,ms),e.createObjectBindingPattern(t)}function tFe(e,t){return D.assertEachNode(t,mN),e.createObjectLiteralExpression(zt(t,e.converters.convertToObjectAssignmentElement))}function nFe(e,t){return e.createBindingElement(void 0,void 0,t)}function rFe(e){return e}var dY,iFe=S({"src/compiler/transformers/destructuring.ts"(){Na(),dY=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(dY||{})}});function fY(e,t,r,i,o,s){const c=lt(t.tag,r,vt);D.assert(c);const f=[void 0],d=[],v=[],h=t.template;if(s===0&&!Cq(h))return Gn(t,r,e);if(jx(h))d.push(_Y(h)),v.push(pY(h,i));else{d.push(_Y(h.head)),v.push(pY(h.head,i));for(const C of h.templateSpans)d.push(_Y(C.literal)),v.push(pY(C.literal,i)),f.push(D.checkDefined(lt(C.expression,r,vt)))}const E=e.getEmitHelperFactory().createTemplateObjectHelper(N.createArrayLiteralExpression(d),N.createArrayLiteralExpression(v));if(rc(i)){const C=N.createUniqueName("templateObject");o(C),f[0]=N.createLogicalOr(C,N.createAssignment(C,E))}else f[0]=E;return N.createCallExpression(c,void 0,f)}function _Y(e){return e.templateFlags?N.createVoidZero():N.createStringLiteral(e.text)}function pY(e,t){let r=e.rawText;if(r===void 0){D.assertIsDefined(t,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=N1(t,e);const i=e.kind===14||e.kind===17;r=r.substring(1,r.length-(i?1:2))}return r=r.replace(/\r\n?/g,`
- `),ht(N.createStringLiteral(r),e)}var mY,aFe=S({"src/compiler/transformers/taggedTemplate.ts"(){Na(),mY=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(mY||{})}});function Iye(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:c}=e,f=e.getEmitResolver(),d=e.getCompilerOptions(),v=ts(d),h=du(d),E=!!d.experimentalDecorators,C=d.emitDecoratorMetadata?Dye(e):void 0,L=e.onEmitNode,I=e.onSubstituteNode;e.onEmitNode=Zc,e.onSubstituteNode=Ns,e.enableSubstitution(208),e.enableSubstitution(209);let O,k,G,V,H,ne,Y,$;return M;function M(Z){return Z.kind===309?de(Z):re(Z)}function de(Z){return t.createBundle(Z.sourceFiles.map(re),pa(Z.prepends,ot=>ot.kind===311?zJ(ot,"js"):ot))}function re(Z){if(Z.isDeclarationFile)return Z;O=Z;const ot=be(Z,st);return Ny(ot,e.readEmitHelpers()),O=void 0,ot}function be(Z,ot){const xt=V,pn=H,wr=ne;ae(Z);const Pr=ot(Z);return V!==xt&&(H=pn),V=xt,ne=wr,Pr}function ae(Z){switch(Z.kind){case 308:case 266:case 265:case 238:V=Z,H=void 0;break;case 260:case 259:if($r(Z,2))break;Z.name?Re(Z):D.assert(Z.kind===260||$r(Z,1024));break}}function W(Z){return be(Z,ce)}function ce(Z){return Z.transformFlags&1?Fe(Z):Z}function me(Z){return be(Z,Ee)}function Ee(Z){switch(Z.kind){case 269:case 268:case 274:case 275:return xe(Z);default:return ce(Z)}}function xe(Z){if(va(Z)!==Z)return Z.transformFlags&1?Gn(Z,W,e):Z;switch(Z.kind){case 269:return li(Z);case 268:return hi(Z);case 274:return ho(Z);case 275:return So(Z);default:D.fail("Unhandled ellided statement")}}function te(Z){return be(Z,Qe)}function Qe(Z){if(!(Z.kind===275||Z.kind===269||Z.kind===270||Z.kind===268&&Z.moduleReference.kind===280))return Z.transformFlags&1||$r(Z,1)?Fe(Z):Z}function Ve(Z){return ot=>be(ot,xt=>Ge(xt,Z))}function Ge(Z,ot){switch(Z.kind){case 173:return Mi(Z);case 169:return cr(Z,ot);case 174:return Ar(Z,ot);case 175:return Hr(Z,ot);case 171:return rn(Z,ot);case 172:return Gn(Z,W,e);case 237:return Z;case 178:return;default:return D.failBadSyntaxKind(Z)}}function ze(Z){return ot=>be(ot,xt=>Oe(xt,Z))}function Oe(Z,ot){switch(Z.kind){case 299:case 300:case 301:return W(Z);case 174:return Ar(Z,ot);case 175:return Hr(Z,ot);case 171:return rn(Z,ot);default:return D.failBadSyntaxKind(Z)}}function Me(Z){return Wu(Z)?void 0:W(Z)}function Ye(Z){return _o(Z)?void 0:W(Z)}function We(Z){if(!Wu(Z)&&!(Rx(Z.kind)&117086)&&!(k&&Z.kind===93))return Z}function Fe(Z){if(ka(Z)&&$r(Z,2))return t.createNotEmittedStatement(Z);switch(Z.kind){case 93:case 88:return k?void 0:Z;case 123:case 121:case 122:case 126:case 161:case 85:case 136:case 146:case 101:case 145:case 185:case 186:case 187:case 188:case 184:case 179:case 165:case 131:case 157:case 134:case 152:case 148:case 144:case 114:case 153:case 182:case 181:case 183:case 180:case 189:case 190:case 191:case 193:case 194:case 195:case 196:case 197:case 198:case 178:return;case 262:return t.createNotEmittedStatement(Z);case 267:return;case 261:return t.createNotEmittedStatement(Z);case 260:return at(Z);case 228:return Qt(Z);case 294:return Ht(Z);case 230:return un(Z);case 207:return Ct(Z);case 173:case 169:case 171:case 174:case 175:case 172:return D.fail("Class and object literal elements must be visited with their respective visitors");case 259:return we(Z);case 215:return yt(Z);case 216:return Nt(Z);case 166:return Ce(Z);case 214:return he(Z);case 213:case 231:return j(Z);case 235:return Ze(Z);case 210:return Xe(Z);case 211:return Ut(Z);case 212:return ln(Z);case 232:return He(Z);case 263:return mt(Z);case 240:return pt(Z);case 257:return ie(Z);case 264:return ft(Z);case 268:return hi(Z);case 282:return Sn(Z);case 283:return Er(Z);default:return Gn(Z,W,e)}}function st(Z){const ot=C_(d,"alwaysStrict")&&!(rc(Z)&&h>=5)&&!T_(Z);return t.updateSourceFile(Z,yF(Z.statements,me,e,0,ot))}function Ct(Z){return t.updateObjectLiteralExpression(Z,Kn(Z.properties,ze(Z),Ly))}function Et(Z){let ot=0;kt(aY(Z,!0,!0))&&(ot|=1);const xt=am(Z);return xt&&Cu(xt.expression).kind!==104&&(ot|=64),F1(E,Z)&&(ot|=2),ck(E,Z)&&(ot|=4),ua(Z)?ot|=8:ic(Z)?ot|=32:fa(Z)&&(ot|=16),ot}function Vt(Z){return!!(Z.transformFlags&8192)}function tt(Z){return o_(Z)||kt(Z.typeParameters)||kt(Z.heritageClauses,Vt)||kt(Z.members,Vt)}function at(Z){var ot;const xt=Et(Z),pn=v<=1&&!!(xt&7);if(!tt(Z)&&!F1(E,Z)&&!ua(Z))return t.updateClassDeclaration(Z,Kn(Z.modifiers,We,_o),Z.name,void 0,Kn(Z.heritageClauses,W,Kd),Kn(Z.members,Ve(Z),qc));pn&&e.startLexicalEnvironment();const wr=pn||xt&8||xt&2&&E||xt&1;let Pr=wr?Kn(Z.modifiers,Ye,il):Kn(Z.modifiers,W,il);xt&2&&(Pr=Hn(Pr,Z));const ls=wr&&!Z.name||xt&4||xt&1?(ot=Z.name)!=null?ot:t.getGeneratedNameForNode(Z):Z.name,go=t.updateClassDeclaration(Z,Pr,ls,void 0,Kn(Z.heritageClauses,W,Kd),Pn(Z));let Wo=bo(Z);xt&1&&(Wo|=64),sr(go,Wo);let $a;if(pn){const pl=[go],yc=qq(Xo(O.text,Z.members.end),19),vd=t.getInternalName(Z),Ts=t.createPartiallyEmittedExpression(vd);xC(Ts,yc.end),sr(Ts,3072);const fs=t.createReturnStatement(Ts);Gk(fs,yc.pos),sr(fs,3840),pl.push(fs),Wm(pl,e.endLexicalEnvironment());const ml=t.createImmediatelyInvokedArrowFunction(pl);GO(ml,1);const Zd=xt&16?t.createModifiersFromModifierFlags(1):void 0,ql=t.createVariableStatement(Zd,t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(Z,!1,!1),void 0,void 0,ml)],1));Wr(ql,Z),Xc(ql,Z),ps(ql,zv(Z)),Ku(ql),$a=ql}else $a=go;if(wr){if(xt&8)return on($a,al(Z));if(xt&32)return on($a,t.createExportDefault(t.getLocalName(Z,!1,!0)));if(xt&16&&!pn)return on($a,t.createExternalModuleExport(t.getLocalName(Z,!1,!0)))}return $a}function on(Z,ot){return cm(Z,8388608),[Z,ot,t.createEndOfDeclarationMarker(Z)]}function Qt(Z){let ot=Kn(Z.modifiers,Ye,il);return F1(E,Z)&&(ot=Hn(ot,Z)),t.updateClassExpression(Z,ot,Z.name,void 0,Kn(Z.heritageClauses,W,Kd),Pn(Z))}function Pn(Z){const ot=Kn(Z.members,Ve(Z),qc);let xt;const pn=Dh(Z),wr=pn&&yn(pn.parameters,Pr=>df(Pr,pn));if(wr)for(const Pr of wr){const ba=t.createPropertyDeclaration(void 0,Pr.name,void 0,void 0,void 0);Wr(ba,Pr),xt=Bn(xt,ba)}return xt?(xt=Ai(xt,ot),ht(t.createNodeArray(xt),Z.members)):ot}function Hn(Z,ot){const xt=Zt(ot,ot);if(kt(xt)){const pn=[];Ai(pn,TM(Z,GK)),Ai(pn,yn(Z,Wu)),Ai(pn,xt),Ai(pn,yn(cue(Z,GK),_o)),Z=ht(t.createNodeArray(pn),Z)}return Z}function kn(Z,ot,xt){if(_i(xt)&&iq(E,ot,xt)){const pn=Zt(ot,xt);if(kt(pn)){const wr=[];Ai(wr,yn(Z,Wu)),Ai(wr,pn),Ai(wr,yn(Z,_o)),Z=ht(t.createNodeArray(wr),Z)}}return Z}function Zt(Z,ot){if(E)return kye?wi(Z,ot):_r(Z,ot)}function _r(Z,ot){if(C){let xt;if(Qi(Z)){const pn=r().createMetadataHelper("design:type",C.serializeTypeOfNode({currentLexicalScope:V,currentNameScope:ot},Z));xt=Bn(xt,t.createDecorator(pn))}if(Or(Z)){const pn=r().createMetadataHelper("design:paramtypes",C.serializeParameterTypesOfNode({currentLexicalScope:V,currentNameScope:ot},Z,ot));xt=Bn(xt,t.createDecorator(pn))}if(Zi(Z)){const pn=r().createMetadataHelper("design:returntype",C.serializeReturnTypeOfNode({currentLexicalScope:V,currentNameScope:ot},Z));xt=Bn(xt,t.createDecorator(pn))}return xt}}function wi(Z,ot){if(C){let xt;if(Qi(Z)){const pn=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),C.serializeTypeOfNode({currentLexicalScope:V,currentNameScope:ot},Z)));xt=Bn(xt,pn)}if(Or(Z)){const pn=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),C.serializeParameterTypesOfNode({currentLexicalScope:V,currentNameScope:ot},Z,ot)));xt=Bn(xt,pn)}if(Zi(Z)){const pn=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),C.serializeReturnTypeOfNode({currentLexicalScope:V,currentNameScope:ot},Z)));xt=Bn(xt,pn)}if(xt){const pn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(xt,!0));return[t.createDecorator(pn)]}}}function Qi(Z){const ot=Z.kind;return ot===171||ot===174||ot===175||ot===169}function Zi(Z){return Z.kind===171}function Or(Z){switch(Z.kind){case 260:case 228:return Dh(Z)!==void 0;case 171:case 174:case 175:return!0}return!1}function At(Z,ot){const xt=Z.name;return Oi(xt)?t.createIdentifier(""):Cs(xt)?ot&&!pm(xt.expression)?t.getGeneratedNameForNode(xt):xt.expression:je(xt)?t.createStringLiteral(Mr(xt)):t.cloneNode(xt)}function vn(Z){const ot=Z.name;if(Cs(ot)&&(!Sc(Z)&&ne||o_(Z)&&E)){const xt=lt(ot.expression,W,vt);D.assert(xt);const pn=W_(xt);if(!pm(pn)){const wr=t.getGeneratedNameForNode(ot);return c(wr),t.updateComputedPropertyName(ot,t.createAssignment(wr,xt))}}return D.checkDefined(lt(ot,W,El))}function Ht(Z){if(Z.token!==117)return Gn(Z,W,e)}function un(Z){return t.updateExpressionWithTypeArguments(Z,D.checkDefined(lt(Z.expression,W,Id)),void 0)}function ir(Z){return!kl(Z.body)}function cr(Z,ot){const xt=Z.flags&16777216||$r(Z,256);if(xt&&!(E&&o_(Z)))return;let pn=_i(ot)?xt?Kn(Z.modifiers,Ye,il):Kn(Z.modifiers,W,il):Kn(Z.modifiers,Me,il);return pn=kn(pn,Z,ot),xt?t.updatePropertyDeclaration(Z,ya(pn,t.createModifiersFromModifierFlags(2)),D.checkDefined(lt(Z.name,W,El)),void 0,void 0,void 0):t.updatePropertyDeclaration(Z,pn,vn(Z),void 0,void 0,lt(Z.initializer,W,vt))}function Mi(Z){if(ir(Z))return t.updateConstructorDeclaration(Z,void 0,Ql(Z.parameters,W,e),vi(Z.body,Z))}function vi(Z,ot){const xt=ot&&yn(ot.parameters,Wo=>df(Wo,ot));if(!kt(xt))return Uf(Z,W,e);let pn=[];o();const wr=t.copyPrologue(Z.statements,pn,!1,W),Pr=SF(Z.statements,wr);Pr>=0&&Ai(pn,Kn(Z.statements,W,ka,wr,Pr+1-wr));const ba=pa(xt,Nn);Pr>=0?Ai(pn,ba):pn=[...pn.slice(0,wr),...ba,...pn.slice(wr)];const ls=Pr>=0?Pr+1:wr;Ai(pn,Kn(Z.statements,W,ka,ls)),pn=t.mergeLexicalEnvironment(pn,s());const go=t.createBlock(ht(t.createNodeArray(pn),Z.statements),!0);return ht(go,Z),Wr(go,Z),go}function Nn(Z){const ot=Z.name;if(!je(ot))return;const xt=jo(ht(t.cloneNode(ot),ot),ot.parent);sr(xt,3168);const pn=jo(ht(t.cloneNode(ot),ot),ot.parent);return sr(pn,3072),Ku(BO(ht(Wr(t.createExpressionStatement(t.createAssignment(ht(t.createPropertyAccessExpression(t.createThis(),xt),Z.name),pn)),Z),pb(Z,-1))))}function rn(Z,ot){if(!(Z.transformFlags&1))return Z;if(!ir(Z))return;let xt=_i(ot)?Kn(Z.modifiers,W,il):Kn(Z.modifiers,Me,il);return xt=kn(xt,Z,ot),t.updateMethodDeclaration(Z,xt,Z.asteriskToken,vn(Z),void 0,void 0,Ql(Z.parameters,W,e),void 0,Uf(Z.body,W,e))}function Mn(Z){return!(kl(Z.body)&&$r(Z,256))}function Ar(Z,ot){if(!(Z.transformFlags&1))return Z;if(!Mn(Z))return;let xt=_i(ot)?Kn(Z.modifiers,W,il):Kn(Z.modifiers,Me,il);return xt=kn(xt,Z,ot),t.updateGetAccessorDeclaration(Z,xt,vn(Z),Ql(Z.parameters,W,e),void 0,Uf(Z.body,W,e)||t.createBlock([]))}function Hr(Z,ot){if(!(Z.transformFlags&1))return Z;if(!Mn(Z))return;let xt=_i(ot)?Kn(Z.modifiers,W,il):Kn(Z.modifiers,Me,il);return xt=kn(xt,Z,ot),t.updateSetAccessorDeclaration(Z,xt,vn(Z),Ql(Z.parameters,W,e),Uf(Z.body,W,e)||t.createBlock([]))}function we(Z){if(!ir(Z))return t.createNotEmittedStatement(Z);const ot=t.updateFunctionDeclaration(Z,Kn(Z.modifiers,We,_o),Z.asteriskToken,Z.name,void 0,Ql(Z.parameters,W,e),void 0,Uf(Z.body,W,e)||t.createBlock([]));if(ua(Z)){const xt=[ot];return jl(xt,Z),xt}return ot}function yt(Z){return ir(Z)?t.updateFunctionExpression(Z,Kn(Z.modifiers,We,_o),Z.asteriskToken,Z.name,void 0,Ql(Z.parameters,W,e),void 0,Uf(Z.body,W,e)||t.createBlock([])):t.createOmittedExpression()}function Nt(Z){return t.updateArrowFunction(Z,Kn(Z.modifiers,We,_o),void 0,Ql(Z.parameters,W,e),void 0,Z.equalsGreaterThanToken,Uf(Z.body,W,e))}function Ce(Z){if(j1(Z))return;const ot=t.updateParameterDeclaration(Z,Kn(Z.modifiers,xt=>Wu(xt)?W(xt):void 0,il),Z.dotDotDotToken,D.checkDefined(lt(Z.name,W,Ch)),void 0,void 0,lt(Z.initializer,W,vt));return ot!==Z&&(Xc(ot,Z),ht(ot,sm(Z)),ps(ot,sm(Z)),sr(ot.name,64)),ot}function pt(Z){if(ua(Z)){const ot=Ik(Z.declarationList);return ot.length===0?void 0:ht(t.createExpressionStatement(t.inlineExpressions(zt(ot,pe))),Z)}else return Gn(Z,W,e)}function pe(Z){const ot=Z.name;return Ya(ot)?ZT(Z,W,e,0,!1,Hl):ht(t.createAssignment(Lo(ot),D.checkDefined(lt(Z.initializer,W,vt))),Z)}function ie(Z){const ot=t.updateVariableDeclaration(Z,D.checkDefined(lt(Z.name,W,Ch)),void 0,void 0,lt(Z.initializer,W,vt));return Z.type&&Jpe(ot.name,Z.type),ot}function he(Z){const ot=Cu(Z.expression,-7);if(bT(ot)){const xt=lt(Z.expression,W,vt);return D.assert(xt),t.createPartiallyEmittedExpression(xt,Z)}return Gn(Z,W,e)}function j(Z){const ot=lt(Z.expression,W,vt);return D.assert(ot),t.createPartiallyEmittedExpression(ot,Z)}function He(Z){const ot=lt(Z.expression,W,Id);return D.assert(ot),t.createPartiallyEmittedExpression(ot,Z)}function Ze(Z){const ot=lt(Z.expression,W,vt);return D.assert(ot),t.createPartiallyEmittedExpression(ot,Z)}function Xe(Z){return t.updateCallExpression(Z,D.checkDefined(lt(Z.expression,W,vt)),void 0,Kn(Z.arguments,W,vt))}function Ut(Z){return t.updateNewExpression(Z,D.checkDefined(lt(Z.expression,W,vt)),void 0,Kn(Z.arguments,W,vt))}function ln(Z){return t.updateTaggedTemplateExpression(Z,D.checkDefined(lt(Z.tag,W,vt)),void 0,D.checkDefined(lt(Z.template,W,qA)))}function Sn(Z){return t.updateJsxSelfClosingElement(Z,D.checkDefined(lt(Z.tagName,W,ek)),void 0,D.checkDefined(lt(Z.attributes,W,$1)))}function Er(Z){return t.updateJsxOpeningElement(Z,D.checkDefined(lt(Z.tagName,W,ek)),void 0,D.checkDefined(lt(Z.attributes,W,$1)))}function ue(Z){return!M1(Z)||W1(d)}function mt(Z){if(!ue(Z))return t.createNotEmittedStatement(Z);const ot=[];let xt=4;const pn=gt(ot,Z);pn&&(h!==4||V!==O)&&(xt|=1024);const wr=Ca(Z),Pr=$o(Z),ba=$r(Z,1)?t.getExternalModuleOrNamespaceExportName(G,Z,!1,!0):t.getLocalName(Z,!1,!0);let ls=t.createLogicalOr(ba,t.createAssignment(ba,t.createObjectLiteralExpression()));if(ee(Z)){const Wo=t.getLocalName(Z,!1,!0);ls=t.createAssignment(Wo,ls)}const go=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,wr)],void 0,Wt(Z,Pr)),void 0,[ls]));return Wr(go,Z),pn&&(K1(go,void 0),DC(go,void 0)),ht(go,Z),cm(go,xt),ot.push(go),ot.push(t.createEndOfDeclarationMarker(Z)),ot}function Wt(Z,ot){const xt=G;G=ot;const pn=[];i();const wr=zt(Z.members,it);return Wm(pn,s()),Ai(pn,wr),G=xt,t.createBlock(ht(t.createNodeArray(pn),Z.members),!0)}function it(Z){const ot=At(Z,!1),xt=K(Z),pn=t.createAssignment(t.createElementAccessExpression(G,ot),xt),wr=xt.kind===10?pn:t.createAssignment(t.createElementAccessExpression(G,pn),ot);return ht(t.createExpressionStatement(ht(wr,Z)),Z)}function K(Z){const ot=f.getConstantValue(Z);return ot!==void 0?typeof ot=="string"?t.createStringLiteral(ot):t.createNumericLiteral(ot):(Wl(),Z.initializer?D.checkDefined(lt(Z.initializer,W,vt)):t.createVoidZero())}function Pe(Z){const ot=va(Z,$l);return ot?zX(ot,W1(d)):!0}function ee(Z){return ua(Z)||Dn(Z)&&h!==5&&h!==6&&h!==7&&h!==99&&h!==4}function Re(Z){H||(H=new Map);const ot=Rt(Z);H.has(ot)||H.set(ot,Z)}function q(Z){if(H){const ot=Rt(Z);return H.get(ot)===Z}return!0}function Rt(Z){return D.assertNode(Z.name,je),Z.name.escapedText}function gt(Z,ot){const xt=t.createVariableStatement(Kn(ot.modifiers,We,_o),t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(ot,!1,!0))],V.kind===308?0:1));if(Wr(xt,ot),Re(ot),q(ot))return ot.kind===263?ps(xt.declarationList,ot):ps(xt,ot),Xc(xt,ot),cm(xt,8390656),Z.push(xt),!0;{const pn=t.createMergeDeclarationMarker(xt);return sr(pn,8391680),Z.push(pn),!1}}function ft(Z){if(!Pe(Z))return t.createNotEmittedStatement(Z);D.assertNode(Z.name,je,"A TypeScript namespace should have an Identifier name."),ou();const ot=[];let xt=4;const pn=gt(ot,Z);pn&&(h!==4||V!==O)&&(xt|=1024);const wr=Ca(Z),Pr=$o(Z),ba=$r(Z,1)?t.getExternalModuleOrNamespaceExportName(G,Z,!1,!0):t.getLocalName(Z,!1,!0);let ls=t.createLogicalOr(ba,t.createAssignment(ba,t.createObjectLiteralExpression()));if(ee(Z)){const Wo=t.getLocalName(Z,!1,!0);ls=t.createAssignment(Wo,ls)}const go=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,wr)],void 0,fn(Z,Pr)),void 0,[ls]));return Wr(go,Z),pn&&(K1(go,void 0),DC(go,void 0)),ht(go,Z),cm(go,xt),ot.push(go),ot.push(t.createEndOfDeclarationMarker(Z)),ot}function fn(Z,ot){const xt=G,pn=k,wr=H;G=ot,k=Z,H=void 0;const Pr=[];i();let ba,ls;if(Z.body)if(Z.body.kind===265)be(Z.body,Wo=>Ai(Pr,Kn(Wo.statements,te,ka))),ba=Z.body.statements,ls=Z.body;else{const Wo=ft(Z.body);Wo&&(Va(Wo)?Ai(Pr,Wo):Pr.push(Wo));const $a=$n(Z).body;ba=pb($a.statements,-1)}Wm(Pr,s()),G=xt,k=pn,H=wr;const go=t.createBlock(ht(t.createNodeArray(Pr),ba),!0);return ht(go,ls),(!Z.body||Z.body.kind!==265)&&sr(go,bo(go)|3072),go}function $n(Z){if(Z.body.kind===264)return $n(Z.body)||Z.body}function li(Z){if(!Z.importClause)return Z;if(Z.importClause.isTypeOnly)return;const ot=lt(Z.importClause,Ii,Zm);return ot||d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2?t.updateImportDeclaration(Z,void 0,ot,Z.moduleSpecifier,Z.assertClause):void 0}function Ii(Z){D.assert(!Z.isTypeOnly);const ot=jt(Z)?Z.name:void 0,xt=lt(Z.namedBindings,ki,Sz);return ot||xt?t.updateImportClause(Z,!1,ot,xt):void 0}function ki(Z){if(Z.kind===271)return jt(Z)?Z:void 0;{const ot=d.verbatimModuleSyntax||d.preserveValueImports&&(d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2),xt=Kn(Z.elements,Hi,Nd);return ot||kt(xt)?t.updateNamedImports(Z,xt):void 0}}function Hi(Z){return!Z.isTypeOnly&&jt(Z)?Z:void 0}function ho(Z){return d.verbatimModuleSyntax||f.isValueAliasDeclaration(Z)?Gn(Z,W,e):void 0}function So(Z){if(Z.isTypeOnly)return;if(!Z.exportClause||Bh(Z.exportClause))return Z;const ot=d.verbatimModuleSyntax||!!Z.moduleSpecifier&&(d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2),xt=lt(Z.exportClause,pn=>Wi(pn,ot),dz);return xt?t.updateExportDeclaration(Z,void 0,Z.isTypeOnly,xt,Z.moduleSpecifier,Z.assertClause):void 0}function oo(Z,ot){const xt=Kn(Z.elements,Xr,gd);return ot||kt(xt)?t.updateNamedExports(Z,xt):void 0}function ca(Z){return t.updateNamespaceExport(Z,D.checkDefined(lt(Z.name,W,je)))}function Wi(Z,ot){return Bh(Z)?ca(Z):oo(Z,ot)}function Xr(Z){return!Z.isTypeOnly&&(d.verbatimModuleSyntax||f.isValueAliasDeclaration(Z))?Z:void 0}function ss(Z){return jt(Z)||!rc(O)&&f.isTopLevelValueImportEqualsWithEntityName(Z)}function hi(Z){if(Z.isTypeOnly)return;if(sb(Z)){const xt=jt(Z);return!xt&&d.importsNotUsedAsValues===1?Wr(ht(t.createImportDeclaration(void 0,void 0,Z.moduleReference.expression,void 0),Z),Z):xt?Gn(Z,W,e):void 0}if(!ss(Z))return;const ot=o8(t,Z.moduleReference);return sr(ot,7168),fa(Z)||!ua(Z)?Wr(ht(t.createVariableStatement(Kn(Z.modifiers,We,_o),t.createVariableDeclarationList([Wr(t.createVariableDeclaration(Z.name,void 0,void 0,ot),Z)])),Z),Z):Wr(Zl(Z.name,ot,Z),Z)}function ua(Z){return k!==void 0&&$r(Z,1)}function Dn(Z){return k===void 0&&$r(Z,1)}function fa(Z){return Dn(Z)&&!$r(Z,1024)}function ic(Z){return Dn(Z)&&$r(Z,1024)}function al(Z){const ot=t.createAssignment(t.getExternalModuleOrNamespaceExportName(G,Z,!1,!0),t.getLocalName(Z));ps(ot,x_(Z.name?Z.name.pos:Z.pos,Z.end));const xt=t.createExpressionStatement(ot);return ps(xt,x_(-1,Z.end)),xt}function jl(Z,ot){Z.push(al(ot))}function Zl(Z,ot,xt){return ht(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(G,Z,!1,!0),ot)),xt)}function Hl(Z,ot,xt){return ht(t.createAssignment(Lo(Z),ot),xt)}function Lo(Z){return t.getNamespaceMemberName(G,Z,!1,!0)}function Ca(Z){const ot=t.getGeneratedNameForNode(Z);return ps(ot,Z.name),ot}function $o(Z){return t.getGeneratedNameForNode(Z)}function Wl(){Y&8||(Y|=8,e.enableSubstitution(79))}function ou(){Y&2||(Y|=2,e.enableSubstitution(79),e.enableSubstitution(300),e.enableEmitNotification(264))}function Qd(Z){return Cl(Z).kind===264}function dc(Z){return Cl(Z).kind===263}function Zc(Z,ot,xt){const pn=$,wr=O;Ji(ot)&&(O=ot),Y&2&&Qd(ot)&&($|=2),Y&8&&dc(ot)&&($|=8),L(Z,ot,xt),$=pn,O=wr}function Ns(Z,ot){return ot=I(Z,ot),Z===1?nl(ot):u_(ot)?vl(ot):ot}function vl(Z){if(Y&2){const ot=Z.name,xt=nn(ot);if(xt){if(Z.objectAssignmentInitializer){const pn=t.createAssignment(xt,Z.objectAssignmentInitializer);return ht(t.createPropertyAssignment(ot,pn),Z)}return ht(t.createPropertyAssignment(ot,xt),Z)}}return Z}function nl(Z){switch(Z.kind){case 79:return Ys(Z);case 208:return zl(Z);case 209:return wu(Z)}return Z}function Ys(Z){return nn(Z)||Z}function nn(Z){if(Y&$&&!Ll(Z)&&!$v(Z)){const ot=f.getReferencedExportContainer(Z,!1);if(ot&&ot.kind!==308&&($&2&&ot.kind===264||$&8&&ot.kind===263))return ht(t.createPropertyAccessExpression(t.getGeneratedNameForNode(ot),Z),Z)}}function zl(Z){return fe(Z)}function wu(Z){return fe(Z)}function $u(Z){return Z.replace(/\*\//g,"*_/")}function fe(Z){const ot=It(Z);if(ot!==void 0){zpe(Z,ot);const xt=typeof ot=="string"?t.createStringLiteral(ot):t.createNumericLiteral(ot);if(!d.removeComments){const pn=Cl(Z,dl);P7(xt,3,` ${$u(kc(pn))} `)}return xt}return Z}function It(Z){if(!Y_(d))return Fr(Z)||fl(Z)?f.getConstantValue(Z):void 0}function jt(Z){return d.verbatimModuleSyntax||fr(Z)||(d.preserveValueImports?f.isValueAliasDeclaration(Z):f.isReferencedAliasDeclaration(Z))}}var kye,oFe=S({"src/compiler/transformers/ts.ts"(){Na(),kye=!1}});function wye(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:c,addBlockScopedVariable:f}=e,d=e.getEmitResolver(),v=e.getCompilerOptions(),h=ts(v),E=EO(v),C=!!v.experimentalDecorators,L=!E,I=E&&h<9,O=L||I,k=h<9,G=h<99?-1:E?0:3,V=h<9,H=V&&h>=2,ne=O||k||G===-1,Y=e.onSubstituteNode;e.onSubstituteNode=Ys;const $=e.onEmitNode;e.onEmitNode=nl;let M=!1,de,re,be,ae,W;const ce=new Map;let me,Ee,xe=!1,te=!1;return rp(e,Qe);function Qe(fe){if(fe.isDeclarationFile||(W=void 0,M=!!(z_(fe)&32),!ne&&!M))return fe;const It=Gn(fe,Ge,e);return Ny(It,e.readEmitHelpers()),It}function Ve(fe){switch(fe.kind){case 127:return cr()?void 0:fe;default:return si(fe,_o)}}function Ge(fe){if(!(fe.transformFlags&16777216)&&!(fe.transformFlags&134234112))return fe;switch(fe.kind){case 127:return D.fail("Use `modifierVisitor` instead.");case 260:return ue(fe);case 228:return Wt(fe,void 0);case 172:case 169:return D.fail("Use `classElementVisitor` instead.");case 299:return tt(fe);case 240:return at(fe);case 257:return Qt(fe);case 166:return Pn(fe);case 205:return Hn(fe);case 274:return kn(fe);case 80:return Et(fe);case 208:return rn(fe);case 209:return Mn(fe);case 221:case 222:return Ar(fe,!1);case 223:return ie(fe,!1);case 214:return j(fe,!1,void 0);case 210:return Nt(fe);case 241:return we(fe);case 212:return Ce(fe);case 245:return Hr(fe);case 259:case 215:case 173:case 171:case 174:case 175:return Or(void 0,ze,fe);default:return ze(fe)}}function ze(fe){return Gn(fe,Ge,e)}function Oe(fe,It){switch(fe.kind){case 356:return He(fe,!1,It);case 214:return j(fe,!1,It);case 228:return Wt(fe,It);default:return Ge(fe)}}function Me(fe){switch(fe.kind){case 221:case 222:return Ar(fe,!0);case 223:return ie(fe,!0);case 357:return he(fe,!0);case 214:return j(fe,!0,void 0);default:return Ge(fe)}}function Ye(fe){switch(fe.kind){case 294:return Gn(fe,Ye,e);case 230:return Sn(fe);default:return Ge(fe)}}function We(fe){switch(fe.kind){case 207:case 206:return vl(fe);default:return Ge(fe)}}function Fe(fe){switch(fe.kind){case 173:return wi(fe);case 174:case 175:case 171:return Or(void 0,Zi,fe);case 169:return Or(void 0,Mi,fe);case 172:return K(fe);case 164:return _r(fe);case 237:return fe;default:return il(fe)?Ve(fe):Ge(fe)}}function st(fe){switch(fe.kind){case 164:return _r(fe);default:return Ge(fe)}}function Ct(fe){switch(fe.kind){case 169:return ir(fe);case 174:case 175:return Fe(fe);default:D.assertMissingNode(fe,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Et(fe){return!k||ka(fe.parent)?fe:Wr(t.createIdentifier(""),fe)}function Vt(fe){const It=Hl(fe.left);if(It){const jt=lt(fe.right,Ge,vt);return Wr(r().createClassPrivateFieldInHelper(It.brandCheckIdentifier,jt),fe)}return Gn(fe,Ge,e)}function tt(fe){if(a_(fe,pe)){const{referencedName:It,name:jt}=Ze(fe.name),Z=lt(fe.initializer,ot=>Oe(ot,It),vt);return t.updatePropertyAssignment(fe,jt,Z)}return Gn(fe,Ge,e)}function at(fe){const It=ae;ae=[];const jt=Gn(fe,Ge,e),Z=kt(ae)?[jt,...ae]:jt;return ae=It,Z}function on(fe,It){const jt=Cl(It,_i);return jt&&!jt.name&&$r(jt,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(fe)}function Qt(fe){if(a_(fe,pe)){const It=on(fe.name,fe.initializer),jt=lt(fe.name,Ge,Ch),Z=lt(fe.initializer,ot=>Oe(ot,It),vt);return t.updateVariableDeclaration(fe,jt,void 0,void 0,Z)}return Gn(fe,Ge,e)}function Pn(fe){if(a_(fe,pe)){const It=on(fe.name,fe.initializer),jt=lt(fe.name,Ge,Ch),Z=lt(fe.initializer,ot=>Oe(ot,It),vt);return t.updateParameterDeclaration(fe,void 0,void 0,jt,void 0,void 0,Z)}return Gn(fe,Ge,e)}function Hn(fe){if(a_(fe,pe)){const It=on(fe.name,fe.initializer),jt=lt(fe.propertyName,Ge,El),Z=lt(fe.name,Ge,Ch),ot=lt(fe.initializer,xt=>Oe(xt,It),vt);return t.updateBindingElement(fe,void 0,jt,Z,ot)}return Gn(fe,Ge,e)}function kn(fe){if(a_(fe,pe)){const It=t.createStringLiteral(fe.isExportEquals?"":"default"),jt=Kn(fe.modifiers,Ve,_o),Z=lt(fe.expression,ot=>Oe(ot,It),vt);return t.updateExportAssignment(fe,jt,Z)}return Gn(fe,Ge,e)}function Zt(fe){return kt(be)&&(Jd(fe)?(be.push(fe.expression),fe=t.updateParenthesizedExpression(fe,t.inlineExpressions(be))):(be.push(fe),fe=t.inlineExpressions(be)),be=void 0),fe}function _r(fe){const It=lt(fe.expression,Ge,vt);return t.updateComputedPropertyName(fe,Zt(It))}function wi(fe){return me?Re(fe,me):ze(fe)}function Qi(fe){return!!(k||Sc(fe)&&z_(fe)&32)}function Zi(fe){if(D.assert(!o_(fe)),!ad(fe)||!Qi(fe))return Gn(fe,Fe,e);const It=Hl(fe.name);if(D.assert(It,"Undeclared private name for property declaration."),!It.isValid)return fe;const jt=At(fe);jt&&Xr().push(t.createAssignment(jt,t.createFunctionExpression(yn(fe.modifiers,Z=>_o(Z)&&!Hx(Z)&&!cme(Z)),fe.asteriskToken,jt,void 0,Ql(fe.parameters,Ge,e),void 0,Uf(fe.body,Ge,e))))}function Or(fe,It,jt){const Z=Ee;Ee=fe;const ot=It(jt);return Ee=Z,ot}function At(fe){D.assert(Oi(fe.name));const It=Hl(fe.name);if(D.assert(It,"Undeclared private name for property declaration."),It.kind==="m")return It.methodName;if(It.kind==="a"){if(Gv(fe))return It.getterName;if(Iy(fe))return It.setterName}}function vn(fe){const It=$m(fe),jt=hb(fe),Z=fe.name;let ot=Z,xt=Z;if(Cs(Z)&&!pm(Z.expression)){const ls=D5(Z);if(ls)ot=t.updateComputedPropertyName(Z,lt(Z.expression,Ge,vt)),xt=t.updateComputedPropertyName(Z,ls.left);else{const go=t.createTempVariable(i);ps(go,Z.expression);const Wo=lt(Z.expression,Ge,vt),$a=t.createAssignment(go,Wo);ps($a,Z.expression),ot=t.updateComputedPropertyName(Z,$a),xt=t.updateComputedPropertyName(Z,go)}}const pn=Kn(fe.modifiers,Ve,_o),wr=UK(t,fe,pn,fe.initializer);Wr(wr,fe),sr(wr,3072),ps(wr,jt);const Pr=qme(t,fe,pn,ot);Wr(Pr,fe),Xc(Pr,It),ps(Pr,jt);const ba=Jme(t,fe,pn,xt);return Wr(ba,fe),sr(ba,3072),ps(ba,jt),QX([wr,Pr,ba],Ct,qc)}function Ht(fe){if(Qi(fe)){const It=Hl(fe.name);if(D.assert(It,"Undeclared private name for property declaration."),!It.isValid)return fe;if(It.isStatic&&!k){const jt=gt(fe,t.createThis());if(jt)return t.createClassStaticBlockDeclaration(t.createBlock([jt],!0))}return}if(L&&!Ja(fe)&&(W!=null&&W.data)&&W.data.facts&16)return t.updatePropertyDeclaration(fe,Kn(fe.modifiers,Ge,il),fe.name,void 0,void 0,void 0);if(a_(fe,pe)){const{referencedName:It,name:jt}=Ze(fe.name);return t.updatePropertyDeclaration(fe,Kn(fe.modifiers,Ve,_o),jt,void 0,void 0,lt(fe.initializer,Z=>Oe(Z,It),vt))}return t.updatePropertyDeclaration(fe,Kn(fe.modifiers,Ve,_o),lt(fe.name,st,El),void 0,void 0,lt(fe.initializer,Ge,vt))}function un(fe){if(O&&!_f(fe)){const It=ho(fe.name,!!fe.initializer||E,a_(fe,pe));if(It&&Xr().push(...Kme(It)),Ja(fe)&&!k){const jt=gt(fe,t.createThis());if(jt){const Z=t.createClassStaticBlockDeclaration(t.createBlock([jt]));return Wr(Z,fe),Xc(Z,fe),Xc(jt,{pos:-1,end:-1}),K1(jt,void 0),DC(jt,void 0),Z}}return}return t.updatePropertyDeclaration(fe,Kn(fe.modifiers,Ve,_o),lt(fe.name,st,El),void 0,void 0,lt(fe.initializer,Ge,vt))}function ir(fe){return D.assert(!o_(fe),"Decorators should already have been transformed and elided."),ad(fe)?Ht(fe):un(fe)}function cr(){return G===-1||G===3&&!!(W!=null&&W.data)&&!!(W.data.facts&16)}function Mi(fe){return _f(fe)&&(cr()||Sc(fe)&&z_(fe)&32)?vn(fe):ir(fe)}function vi(fe,It){return Nn(fe,lt(It,Ge,vt))}function Nn(fe,It){switch(Xc(It,pb(It,-1)),fe.kind){case"a":return r().createClassPrivateFieldGetHelper(It,fe.brandCheckIdentifier,fe.kind,fe.getterName);case"m":return r().createClassPrivateFieldGetHelper(It,fe.brandCheckIdentifier,fe.kind,fe.methodName);case"f":return r().createClassPrivateFieldGetHelper(It,fe.brandCheckIdentifier,fe.kind,fe.isStatic?fe.variableName:void 0);case"untransformed":return D.fail("Access helpers should not be created for untransformed private elements");default:D.assertNever(fe,"Unknown private element type")}}function rn(fe){if(Oi(fe.name)){const It=Hl(fe.name);if(It)return ht(Wr(vi(It,fe.expression),fe),fe)}if(H&&hd(fe)&&je(fe.name)&&Ee&&(W!=null&&W.data)){const{classConstructor:It,superClassReference:jt,facts:Z}=W.data;if(Z&1)return Hi(fe);if(It&&jt){const ot=t.createReflectGetCall(jt,t.createStringLiteralFromNode(fe.name),It);return Wr(ot,fe.expression),ht(ot,fe.expression),ot}}return Gn(fe,Ge,e)}function Mn(fe){if(H&&hd(fe)&&Ee&&(W!=null&&W.data)){const{classConstructor:It,superClassReference:jt,facts:Z}=W.data;if(Z&1)return Hi(fe);if(It&&jt){const ot=t.createReflectGetCall(jt,lt(fe.argumentExpression,Ge,vt),It);return Wr(ot,fe.expression),ht(ot,fe.expression),ot}}return Gn(fe,Ge,e)}function Ar(fe,It){if(fe.operator===45||fe.operator===46){const jt=Ws(fe.operand);if(HA(jt)){let Z;if(Z=Hl(jt.name)){const ot=lt(jt.expression,Ge,vt),{readExpression:xt,initializeExpression:pn}=yt(ot);let wr=vi(Z,xt);const Pr=Xv(fe)||It?void 0:t.createTempVariable(i);return wr=S5(t,fe,wr,i,Pr),wr=Xe(Z,pn||xt,wr,63),Wr(wr,fe),ht(wr,fe),Pr&&(wr=t.createComma(wr,Pr),ht(wr,fe)),wr}}else if(H&&hd(jt)&&Ee&&(W!=null&&W.data)){const{classConstructor:Z,superClassReference:ot,facts:xt}=W.data;if(xt&1){const pn=Hi(jt);return Xv(fe)?t.updatePrefixUnaryExpression(fe,pn):t.updatePostfixUnaryExpression(fe,pn)}if(Z&&ot){let pn,wr;if(Fr(jt)?je(jt.name)&&(wr=pn=t.createStringLiteralFromNode(jt.name)):pm(jt.argumentExpression)?wr=pn=jt.argumentExpression:(wr=t.createTempVariable(i),pn=t.createAssignment(wr,lt(jt.argumentExpression,Ge,vt))),pn&&wr){let Pr=t.createReflectGetCall(ot,wr,Z);ht(Pr,jt);const ba=It?void 0:t.createTempVariable(i);return Pr=S5(t,fe,Pr,i,ba),Pr=t.createReflectSetCall(ot,pn,Pr,Z),Wr(Pr,fe),ht(Pr,fe),ba&&(Pr=t.createComma(Pr,ba),ht(Pr,fe)),Pr}}}}return Gn(fe,Ge,e)}function Hr(fe){return t.updateForStatement(fe,lt(fe.initializer,Me,rm),lt(fe.condition,Ge,vt),lt(fe.incrementor,Me,vt),I_(fe.statement,Ge,e))}function we(fe){return t.updateExpressionStatement(fe,lt(fe.expression,Me,vt))}function yt(fe){const It=tl(fe)?fe:t.cloneNode(fe);if(pm(fe))return{readExpression:It,initializeExpression:void 0};const jt=t.createTempVariable(i),Z=t.createAssignment(jt,It);return{readExpression:jt,initializeExpression:Z}}function Nt(fe){var It;if(HA(fe.expression)&&Hl(fe.expression.name)){const{thisArg:jt,target:Z}=t.createCallBinding(fe.expression,i,h);return gT(fe)?t.updateCallChain(fe,t.createPropertyAccessChain(lt(Z,Ge,vt),fe.questionDotToken,"call"),void 0,void 0,[lt(jt,Ge,vt),...Kn(fe.arguments,Ge,vt)]):t.updateCallExpression(fe,t.createPropertyAccessExpression(lt(Z,Ge,vt),"call"),void 0,[lt(jt,Ge,vt),...Kn(fe.arguments,Ge,vt)])}if(H&&hd(fe.expression)&&Ee&&((It=W==null?void 0:W.data)!=null&&It.classConstructor)){const jt=t.createFunctionCallCall(lt(fe.expression,Ge,vt),W.data.classConstructor,Kn(fe.arguments,Ge,vt));return Wr(jt,fe),ht(jt,fe),jt}return Gn(fe,Ge,e)}function Ce(fe){var It;if(HA(fe.tag)&&Hl(fe.tag.name)){const{thisArg:jt,target:Z}=t.createCallBinding(fe.tag,i,h);return t.updateTaggedTemplateExpression(fe,t.createCallExpression(t.createPropertyAccessExpression(lt(Z,Ge,vt),"bind"),void 0,[lt(jt,Ge,vt)]),void 0,lt(fe.template,Ge,qA))}if(H&&hd(fe.tag)&&Ee&&((It=W==null?void 0:W.data)!=null&&It.classConstructor)){const jt=t.createFunctionBindCall(lt(fe.tag,Ge,vt),W.data.classConstructor,[]);return Wr(jt,fe),ht(jt,fe),t.updateTaggedTemplateExpression(fe,jt,void 0,lt(fe.template,Ge,qA))}return Gn(fe,Ge,e)}function pt(fe){if(W&&ce.set(Cl(fe),W),k){s();let It=Or(fe,Z=>Kn(Z,Ge,ka),fe.body.statements);It=t.mergeLexicalEnvironment(It,o());const jt=t.createImmediatelyInvokedArrowFunction(It);return Wr(jt,fe),ht(jt,fe),cm(jt,4),jt}}function pe(fe){if(qu(fe)&&!fe.name){const It=xF(fe),jt=In(It,Rl);if(jt){for(const ot of jt.body.statements)if(fu(ot)&&Kk(ot.expression,"___setFunctionName"))return!1}return(k||!!z_(fe))&&kt(It,ot=>Rl(ot)||ad(ot)||O&&q8(ot))}return!1}function ie(fe,It){if(Dy(fe)){const jt=be;be=void 0,fe=t.updateBinaryExpression(fe,lt(fe.left,We,vt),fe.operatorToken,lt(fe.right,Ge,vt));const Z=kt(be)?t.inlineExpressions(kR([...be,fe])):fe;return be=jt,Z}if(ld(fe)){if(a_(fe,pe)){const jt=on(fe.left,fe.right),Z=lt(fe.left,Ge,vt),ot=lt(fe.right,xt=>Oe(xt,jt),vt);return t.updateBinaryExpression(fe,Z,fe.operatorToken,ot)}if(HA(fe.left)){const jt=Hl(fe.left.name);if(jt)return ht(Wr(Xe(jt,fe.left.expression,fe.right,fe.operatorToken.kind),fe),fe)}else if(H&&hd(fe.left)&&Ee&&(W!=null&&W.data)){const{classConstructor:jt,superClassReference:Z,facts:ot}=W.data;if(ot&1)return t.updateBinaryExpression(fe,Hi(fe.left),fe.operatorToken,lt(fe.right,Ge,vt));if(jt&&Z){let xt=fl(fe.left)?lt(fe.left.argumentExpression,Ge,vt):je(fe.left.name)?t.createStringLiteralFromNode(fe.left.name):void 0;if(xt){let pn=lt(fe.right,Ge,vt);if(z8(fe.operatorToken.kind)){let Pr=xt;pm(xt)||(Pr=t.createTempVariable(i),xt=t.createAssignment(Pr,xt));const ba=t.createReflectGetCall(Z,Pr,jt);Wr(ba,fe.left),ht(ba,fe.left),pn=t.createBinaryExpression(ba,xw(fe.operatorToken.kind),pn),ht(pn,fe)}const wr=It?void 0:t.createTempVariable(i);return wr&&(pn=t.createAssignment(wr,pn),ht(wr,fe)),pn=t.createReflectSetCall(Z,xt,pn,jt),Wr(pn,fe),ht(pn,fe),wr&&(pn=t.createComma(pn,wr),ht(pn,fe)),pn}}}}return dFe(fe)?Vt(fe):Gn(fe,Ge,e)}function he(fe,It){const jt=It?W8(fe.elements,Me):W8(fe.elements,Ge,Me);return t.updateCommaListExpression(fe,jt)}function j(fe,It,jt){const Z=It?Me:jt?xt=>Oe(xt,jt):Ge,ot=lt(fe.expression,Z,vt);return t.updateParenthesizedExpression(fe,ot)}function He(fe,It,jt){const Z=It?Me:jt?xt=>Oe(xt,jt):Ge,ot=lt(fe.expression,Z,vt);return t.updatePartiallyEmittedExpression(fe,ot)}function Ze(fe){if(J_(fe)||Oi(fe)){const xt=t.createStringLiteralFromNode(fe),pn=lt(fe,Ge,El);return{referencedName:xt,name:pn}}if(J_(fe.expression)&&!je(fe.expression)){const xt=t.createStringLiteralFromNode(fe.expression),pn=lt(fe,Ge,El);return{referencedName:xt,name:pn}}const It=t.createTempVariable(i),jt=r().createPropKeyHelper(lt(fe.expression,Ge,vt)),Z=t.createAssignment(It,jt),ot=t.updateComputedPropertyName(fe,Zt(Z));return{referencedName:It,name:ot}}function Xe(fe,It,jt,Z){if(It=lt(It,Ge,vt),jt=lt(jt,Ge,vt),z8(Z)){const{readExpression:ot,initializeExpression:xt}=yt(It);It=xt||ot,jt=t.createBinaryExpression(Nn(fe,ot),xw(Z),jt)}switch(Xc(It,pb(It,-1)),fe.kind){case"a":return r().createClassPrivateFieldSetHelper(It,fe.brandCheckIdentifier,jt,fe.kind,fe.setterName);case"m":return r().createClassPrivateFieldSetHelper(It,fe.brandCheckIdentifier,jt,fe.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(It,fe.brandCheckIdentifier,jt,fe.kind,fe.isStatic?fe.variableName:void 0);case"untransformed":return D.fail("Access helpers should not be created for untransformed private elements");default:D.assertNever(fe,"Unknown private element type")}}function Ut(fe){return yn(fe.members,Tye)}function ln(fe){let It=0;const jt=Cl(fe);Bc(jt)&&F1(C,jt)&&(It|=1);let Z=!1,ot=!1,xt=!1,pn=!1;for(const Pr of fe.members)Ja(Pr)?(Pr.name&&(Oi(Pr.name)||_f(Pr))&&k&&(It|=2),(ro(Pr)||Rl(Pr))&&(V&&Pr.transformFlags&16384&&(It|=8,It&1||(It|=2)),H&&Pr.transformFlags&134217728&&(It&1||(It|=6)))):H1(Cl(Pr))||(_f(Pr)?(pn=!0,xt||(xt=ad(Pr))):ad(Pr)?xt=!0:ro(Pr)&&(Z=!0,ot||(ot=!!Pr.initializer)));return(I&&Z||L&&ot||k&&xt||k&&pn&&G===-1)&&(It|=16),It}function Sn(fe){var It;if((((It=W==null?void 0:W.data)==null?void 0:It.facts)||0)&4){const Z=t.createTempVariable(i,!0);return ca().superClassReference=Z,t.updateExpressionWithTypeArguments(fe,t.createAssignment(Z,lt(fe.expression,Ge,vt)),void 0)}return Gn(fe,Ge,e)}function Er(fe,It,jt){const Z=me,ot=be,xt=W;me=fe,be=void 0,So();const pn=z_(fe)&32;if(k||pn){const ba=Ia(fe);ba&&je(ba)&&(Wi().data.className=ba)}if(k){const ba=Ut(fe);kt(ba)&&(Wi().data.weakSetName=jl("instances",ba[0].name))}const wr=ln(fe);wr&&(ca().facts=wr),wr&8&&Ii();const Pr=jt(fe,wr,It);return oo(),D.assert(W===xt),me=Z,be=ot,Pr}function ue(fe){return Er(fe,void 0,mt)}function mt(fe,It){var jt,Z;let ot;if(It&2){if(k&&((jt=fe.emitNode)!=null&&jt.classThis))ca().classConstructor=fe.emitNode.classThis,ot=t.createAssignment(fe.emitNode.classThis,t.getInternalName(fe));else{const go=t.createTempVariable(i,!0);ca().classConstructor=t.cloneNode(go),ot=t.createAssignment(go,t.getInternalName(fe))}(Z=fe.emitNode)!=null&&Z.classThis&&(ca().classThis=fe.emitNode.classThis)}const xt=Kn(fe.modifiers,Ve,_o),pn=Kn(fe.heritageClauses,Ye,Kd),{members:wr,prologue:Pr}=Pe(fe),ba=t.updateClassDeclaration(fe,xt,fe.name,void 0,pn,wr),ls=[];if(Pr&&ls.push(t.createExpressionStatement(Pr)),ls.push(ba),ot&&Xr().unshift(ot),kt(be)&&ls.push(t.createExpressionStatement(t.inlineExpressions(be))),L||k||z_(fe)&32){const go=xF(fe);kt(go)&&Rt(ls,go,t.getInternalName(fe))}return ls}function Wt(fe,It){return Er(fe,It,it)}function it(fe,It,jt){var Z,ot,xt,pn,wr,Pr;const ba=!!(It&1),ls=xF(fe),go=d.getNodeCheckFlags(fe)&1048576;let Wo;function $a(){var ql;if(k&&((ql=fe.emitNode)!=null&&ql.classThis))return ca().classConstructor=fe.emitNode.classThis;const Hf=d.getNodeCheckFlags(fe),Ae=Hf&1048576,Dt=Hf&32768,On=t.createTempVariable(Dt?f:i,!!Ae);return ca().classConstructor=t.cloneNode(On),On}(Z=fe.emitNode)!=null&&Z.classThis&&(ca().classThis=fe.emitNode.classThis),It&2&&(Wo!=null||(Wo=$a()));const pl=Kn(fe.modifiers,Ve,_o),yc=Kn(fe.heritageClauses,Ye,Kd),{members:vd,prologue:Ts}=Pe(fe);let fs=t.updateClassExpression(fe,pl,fe.name,void 0,yc,vd);const ml=[];if(Ts&&ml.push(Ts),(k||z_(fe)&32)&&kt(ls,ql=>Rl(ql)||ad(ql)||O&&q8(ql))||kt(be)||jt)if(ba){if(D.assertIsDefined(ae,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),kt(be)&&Ai(ae,zt(be,t.createExpressionStatement)),jt)if(k){const ql=r().createSetFunctionNameHelper((xt=Wo!=null?Wo:(ot=fe.emitNode)==null?void 0:ot.classThis)!=null?xt:t.getInternalName(fe),jt);ae.push(t.createExpressionStatement(ql))}else{const ql=r().createSetFunctionNameHelper(t.createThis(),jt);fs=t.updateClassExpression(fs,fs.modifiers,fs.name,fs.typeParameters,fs.heritageClauses,[t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(ql)])),...fs.members])}kt(ls)&&Rt(ae,ls,(wr=(pn=fe.emitNode)==null?void 0:pn.classThis)!=null?wr:t.getInternalName(fe)),Wo?ml.push(t.createAssignment(Wo,fs)):k&&((Pr=fe.emitNode)!=null&&Pr.classThis)?ml.push(t.createAssignment(fe.emitNode.classThis,fs)):ml.push(fs)}else{if(Wo!=null||(Wo=$a()),go){li();const ql=t.cloneNode(Wo);ql.emitNode.autoGenerate.flags&=-9,re[Nl(fe)]=ql}ml.push(t.createAssignment(Wo,fs)),Ai(ml,be),jt&&ml.push(r().createSetFunctionNameHelper(Wo,jt)),Ai(ml,ft(ls,Wo)),ml.push(t.cloneNode(Wo))}else ml.push(fs);return ml.length>1&&(cm(fs,131072),ml.forEach(Ku)),t.inlineExpressions(ml)}function K(fe){if(!k)return Gn(fe,Ge,e)}function Pe(fe){const It=!!(z_(fe)&32);if(k||M){for(const pn of fe.members)if(ad(pn))if(Qi(pn))al(pn,pn.name,ss);else{const wr=Wi();QT(wr,pn.name,{kind:"untransformed"})}if(k&&kt(Ut(fe))&&ee(),cr()){for(const pn of fe.members)if(_f(pn)){const wr=t.getGeneratedPrivateNameForNode(pn.name,void 0,"_accessor_storage");if(k||It&&Sc(pn))al(pn,wr,hi);else{const Pr=Wi();QT(Pr,wr,{kind:"untransformed"})}}}}let jt=Kn(fe.members,Fe,qc),Z;kt(jt,Yl)||(Z=Re(void 0,fe));let ot,xt;if(!k&&kt(be)){let pn=t.createExpressionStatement(t.inlineExpressions(be));if(pn.transformFlags&134234112){const Pr=t.createTempVariable(i),ba=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([pn]));ot=t.createAssignment(Pr,ba),pn=t.createExpressionStatement(t.createCallExpression(Pr,void 0,[]))}const wr=t.createBlock([pn]);xt=t.createClassStaticBlockDeclaration(wr),be=void 0}if(Z||xt){let pn;pn=Bn(pn,Z),pn=Bn(pn,xt),pn=Ai(pn,jt),jt=ht(t.createNodeArray(pn),fe.members)}return{members:jt,prologue:ot}}function ee(){const{weakSetName:fe}=Wi().data;D.assert(fe,"weakSetName should be set in private identifier environment"),Xr().push(t.createAssignment(fe,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function Re(fe,It){if(fe=lt(fe,Ge,Yl),!(W!=null&&W.data)||!(W.data.facts&16))return fe;const jt=am(It),Z=!!(jt&&Cu(jt.expression).kind!==104),ot=Ql(fe?fe.parameters:void 0,Ge,e),xt=q(It,fe,Z);return xt?fe?(D.assert(ot),t.updateConstructorDeclaration(fe,void 0,ot,xt)):Ku(Wr(ht(t.createConstructorDeclaration(void 0,ot!=null?ot:[],xt),fe||It),fe)):fe}function q(fe,It,jt){var Z,ot;const xt=aY(fe,!1,!1);let pn=xt;E||(pn=yn(pn,Ts=>!!Ts.initializer||Oi(Ts.name)||Jm(Ts)));const wr=Ut(fe),Pr=kt(pn)||kt(wr);if(!It&&!Pr)return Uf(void 0,Ge,e);c();const ba=!It&&jt;let ls=0,go=0,Wo=-1,$a=[];(Z=It==null?void 0:It.body)!=null&&Z.statements&&(go=t.copyPrologue(It.body.statements,$a,!1,Ge),Wo=SF(It.body.statements,go),Wo>=0?(ls=Wo+1,$a=[...$a.slice(0,go),...Kn(It.body.statements,Ge,ka,go,ls-go),...$a.slice(go)]):go>=0&&(ls=go)),ba&&$a.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))])));let pl=0;if(It!=null&&It.body){for(let Ts=ls;Ts<It.body.statements.length;Ts++){const fs=It.body.statements[Ts];if(df(Cl(fs),It))pl++;else break}pl>0&&(ls+=pl)}const yc=t.createThis();if(ki($a,wr,yc),It){const Ts=yn(xt,ml=>df(Cl(ml),It)),fs=yn(pn,ml=>!df(Cl(ml),It));Rt($a,Ts,yc),Rt($a,fs,yc)}else Rt($a,pn,yc);if(It&&Ai($a,Kn(It.body.statements,Ge,ka,ls)),$a=t.mergeLexicalEnvironment($a,o()),$a.length===0&&!It)return;const vd=It!=null&&It.body&&It.body.statements.length>=$a.length&&(ot=It.body.multiLine)!=null?ot:$a.length>0;return ht(t.createBlock(ht(t.createNodeArray($a),It?It.body.statements:fe.members),vd),It?It.body:void 0)}function Rt(fe,It,jt){for(const Z of It){if(Ja(Z)&&!k)continue;const ot=gt(Z,jt);ot&&fe.push(ot)}}function gt(fe,It){const jt=Rl(fe)?pt(fe):fn(fe,It);if(!jt)return;const Z=t.createExpressionStatement(jt);Wr(Z,fe),cm(Z,bo(fe)&3072),Xc(Z,fe);const ot=Cl(fe);return Fa(ot)?(ps(Z,ot),BO(Z)):ps(Z,sm(fe)),K1(jt,void 0),DC(jt,void 0),Jm(ot)&&cm(Z,3072),Z}function ft(fe,It){const jt=[];for(const Z of fe){const ot=Rl(Z)?pt(Z):fn(Z,It);ot&&(Ku(ot),Wr(ot,Z),cm(ot,bo(Z)&3072),ps(ot,sm(Z)),Xc(ot,Z),jt.push(ot))}return jt}function fn(fe,It){var jt;const Z=Ee,ot=$n(fe,It);return ot&&Sc(fe)&&((jt=W==null?void 0:W.data)!=null&&jt.facts)&&(Wr(ot,fe),cm(ot,4),ps(ot,hb(fe.name)),ce.set(Cl(fe),W)),Ee=Z,ot}function $n(fe,It){const jt=!E;let Z;a_(fe,pe)&&(J_(fe.name)||Oi(fe.name)?Z=t.createStringLiteralFromNode(fe.name):J_(fe.name.expression)&&!je(fe.name.expression)?Z=t.createStringLiteralFromNode(fe.name.expression):Z=t.getGeneratedNameForNode(fe.name));const ot=Jm(fe)?t.getGeneratedPrivateNameForNode(fe.name):Cs(fe.name)&&!pm(fe.name.expression)?t.updateComputedPropertyName(fe.name,t.getGeneratedNameForNode(fe.name)):fe.name;Sc(fe)&&(Ee=fe);const xt=Z?Pr=>Oe(Pr,Z):Ge;if(Oi(ot)&&Qi(fe)){const Pr=Hl(ot);if(Pr)return Pr.kind==="f"?Pr.isStatic?sFe(Pr.variableName,lt(fe.initializer,xt,vt)):lFe(It,lt(fe.initializer,xt,vt),Pr.brandCheckIdentifier):void 0;D.fail("Undeclared private name for property declaration.")}if((Oi(ot)||Sc(fe))&&!fe.initializer)return;const pn=Cl(fe);if($r(pn,256))return;let wr=lt(fe.initializer,xt,vt);if(df(pn,pn.parent)&&je(ot)){const Pr=t.cloneNode(ot);wr?(Jd(wr)&&s8(wr.expression)&&Kk(wr.expression.left,"___runInitializers")&&Xx(wr.expression.right)&&L_(wr.expression.right.expression)&&(wr=wr.expression.left),wr=t.inlineExpressions([wr,Pr])):wr=Pr,sr(ot,3168),ps(Pr,pn.name),sr(Pr,3072)}else wr!=null||(wr=t.createVoidZero());if(jt||Oi(ot)){const Pr=JT(t,It,ot,ot);return cm(Pr,1024),t.createAssignment(Pr,wr)}else{const Pr=Cs(ot)?ot.expression:je(ot)?t.createStringLiteral(ra(ot.escapedText)):ot,ba=t.createPropertyDescriptor({value:wr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(It,Pr,ba)}}function li(){de&1||(de|=1,e.enableSubstitution(79),re=[])}function Ii(){de&2||(de|=2,e.enableSubstitution(108),e.enableEmitNotification(259),e.enableEmitNotification(215),e.enableEmitNotification(173),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(171),e.enableEmitNotification(169),e.enableEmitNotification(164))}function ki(fe,It,jt){if(!k||!kt(It))return;const{weakSetName:Z}=Wi().data;D.assert(Z,"weakSetName should be set in private identifier environment"),fe.push(t.createExpressionStatement(cFe(jt,Z)))}function Hi(fe){return Fr(fe)?t.updatePropertyAccessExpression(fe,t.createVoidZero(),fe.name):t.updateElementAccessExpression(fe,t.createVoidZero(),lt(fe.argumentExpression,Ge,vt))}function ho(fe,It,jt){if(Cs(fe)){const Z=D5(fe);let ot=lt(fe.expression,Ge,vt);const xt=W_(ot),pn=pm(xt);if(!(!!Z||ld(xt)&&Ll(xt.left))&&!pn&&It){const Pr=t.getGeneratedNameForNode(fe);return d.getNodeCheckFlags(fe)&32768?f(Pr):i(Pr),jt&&(ot=r().createPropKeyHelper(ot)),t.createAssignment(Pr,ot)}return pn||je(xt)?void 0:ot}}function So(){W={previous:W,data:void 0}}function oo(){W=W==null?void 0:W.previous}function ca(){var fe;return D.assert(W),(fe=W.data)!=null?fe:W.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function Wi(){var fe;return D.assert(W),(fe=W.privateEnv)!=null?fe:W.privateEnv=Aye({className:void 0,weakSetName:void 0})}function Xr(){return be!=null?be:be=[]}function ss(fe,It,jt,Z,ot,xt,pn){_f(fe)?ic(fe,It,jt,Z,ot,xt):ro(fe)?hi(fe,It,jt,Z,ot,xt):uc(fe)?ua(fe,It,jt,Z,ot,xt):Z_(fe)?Dn(fe,It,jt,Z,ot,xt,pn):c_(fe)&&fa(fe,It,jt,Z,ot,xt,pn)}function hi(fe,It,jt,Z,ot,xt,pn){var wr;if(ot){const Pr=D.checkDefined((wr=jt.classThis)!=null?wr:jt.classConstructor,"classConstructor should be set in private identifier environment"),ba=Zl(It);QT(Z,It,{kind:"f",isStatic:!0,brandCheckIdentifier:Pr,variableName:ba,isValid:xt})}else{const Pr=Zl(It);QT(Z,It,{kind:"f",isStatic:!1,brandCheckIdentifier:Pr,isValid:xt}),Xr().push(t.createAssignment(Pr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function ua(fe,It,jt,Z,ot,xt,pn){var wr;const Pr=Zl(It),ba=ot?D.checkDefined((wr=jt.classThis)!=null?wr:jt.classConstructor,"classConstructor should be set in private identifier environment"):D.checkDefined(Z.data.weakSetName,"weakSetName should be set in private identifier environment");QT(Z,It,{kind:"m",methodName:Pr,brandCheckIdentifier:ba,isStatic:ot,isValid:xt})}function Dn(fe,It,jt,Z,ot,xt,pn){var wr;const Pr=Zl(It,"_get"),ba=ot?D.checkDefined((wr=jt.classThis)!=null?wr:jt.classConstructor,"classConstructor should be set in private identifier environment"):D.checkDefined(Z.data.weakSetName,"weakSetName should be set in private identifier environment");(pn==null?void 0:pn.kind)==="a"&&pn.isStatic===ot&&!pn.getterName?pn.getterName=Pr:QT(Z,It,{kind:"a",getterName:Pr,setterName:void 0,brandCheckIdentifier:ba,isStatic:ot,isValid:xt})}function fa(fe,It,jt,Z,ot,xt,pn){var wr;const Pr=Zl(It,"_set"),ba=ot?D.checkDefined((wr=jt.classThis)!=null?wr:jt.classConstructor,"classConstructor should be set in private identifier environment"):D.checkDefined(Z.data.weakSetName,"weakSetName should be set in private identifier environment");(pn==null?void 0:pn.kind)==="a"&&pn.isStatic===ot&&!pn.setterName?pn.setterName=Pr:QT(Z,It,{kind:"a",getterName:void 0,setterName:Pr,brandCheckIdentifier:ba,isStatic:ot,isValid:xt})}function ic(fe,It,jt,Z,ot,xt,pn){var wr;const Pr=Zl(It,"_get"),ba=Zl(It,"_set"),ls=ot?D.checkDefined((wr=jt.classThis)!=null?wr:jt.classConstructor,"classConstructor should be set in private identifier environment"):D.checkDefined(Z.data.weakSetName,"weakSetName should be set in private identifier environment");QT(Z,It,{kind:"a",getterName:Pr,setterName:ba,brandCheckIdentifier:ls,isStatic:ot,isValid:xt})}function al(fe,It,jt){const Z=ca(),ot=Wi(),xt=lY(ot,It),pn=Sc(fe),wr=!uFe(It)&&xt===void 0;jt(fe,It,Z,ot,pn,wr,xt)}function jl(fe,It,jt){const{className:Z}=Wi().data,ot=Z?{prefix:"_",node:Z,suffix:"_"}:"_",xt=typeof fe=="object"?t.getGeneratedNameForNode(fe,24,ot,jt):typeof fe=="string"?t.createUniqueName(fe,16,ot,jt):t.createTempVariable(void 0,!0,ot,jt);return d.getNodeCheckFlags(It)&32768?f(xt):i(xt),xt}function Zl(fe,It){var jt;const Z=A3(fe);return jl((jt=Z==null?void 0:Z.substring(1))!=null?jt:fe,fe,It)}function Hl(fe){const It=Cye(W,fe);return(It==null?void 0:It.kind)==="untransformed"?void 0:It}function Lo(fe){const It=t.getGeneratedNameForNode(fe),jt=Hl(fe.name);if(!jt)return Gn(fe,Ge,e);let Z=fe.expression;return(wN(fe)||hd(fe)||!rE(fe.expression))&&(Z=t.createTempVariable(i,!0),Xr().push(t.createBinaryExpression(Z,63,lt(fe.expression,Ge,vt)))),t.createAssignmentTargetWrapper(It,Xe(jt,Z,It,63))}function Ca(fe){if(Is(fe)||zu(fe))return vl(fe);if(HA(fe))return Lo(fe);if(H&&hd(fe)&&Ee&&(W!=null&&W.data)){const{classConstructor:It,superClassReference:jt,facts:Z}=W.data;if(Z&1)return Hi(fe);if(It&&jt){const ot=fl(fe)?lt(fe.argumentExpression,Ge,vt):je(fe.name)?t.createStringLiteralFromNode(fe.name):void 0;if(ot){const xt=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(xt,t.createReflectSetCall(jt,ot,xt,It))}}}return Gn(fe,Ge,e)}function $o(fe){if(a_(fe,pe)){const It=Ca(fe.left),jt=on(fe.left,fe.right),Z=lt(fe.right,ot=>Oe(ot,jt),vt);return t.updateBinaryExpression(fe,It,fe.operatorToken,Z)}if(ld(fe,!0)){const It=Ca(fe.left),jt=lt(fe.right,Ge,vt);return t.updateBinaryExpression(fe,It,fe.operatorToken,jt)}return Ca(fe)}function Wl(fe){if(Id(fe.expression)){const It=Ca(fe.expression);return t.updateSpreadElement(fe,It)}return Gn(fe,Ge,e)}function ou(fe){return D.assertNode(fe,hN),Fh(fe)?Wl(fe):Fc(fe)?Gn(fe,Ge,e):$o(fe)}function Qd(fe){const It=lt(fe.name,Ge,El);if(ld(fe.initializer,!0)){const jt=$o(fe.initializer);return t.updatePropertyAssignment(fe,It,jt)}if(Id(fe.initializer)){const jt=Ca(fe.initializer);return t.updatePropertyAssignment(fe,It,jt)}return Gn(fe,Ge,e)}function dc(fe){if(a_(fe,pe)){const It=on(fe.name,fe.objectAssignmentInitializer),jt=lt(fe.objectAssignmentInitializer,Z=>Oe(Z,It),vt);return t.updateShorthandPropertyAssignment(fe,fe.name,jt)}return Gn(fe,Ge,e)}function Zc(fe){if(Id(fe.expression)){const It=Ca(fe.expression);return t.updateSpreadAssignment(fe,It)}return Gn(fe,Ge,e)}function Ns(fe){return D.assertNode(fe,mN),n2(fe)?Zc(fe):u_(fe)?dc(fe):$c(fe)?Qd(fe):Gn(fe,Ge,e)}function vl(fe){return zu(fe)?t.updateArrayLiteralExpression(fe,Kn(fe.elements,ou,vt)):t.updateObjectLiteralExpression(fe,Kn(fe.properties,Ns,Ly))}function nl(fe,It,jt){const Z=Cl(It),ot=ce.get(Z);if(ot){const xt=W,pn=te;W=ot,te=xe,xe=!Rl(Z)||!(z_(Z)&32),$(fe,It,jt),xe=te,te=pn,W=xt;return}switch(It.kind){case 215:if(Xs(Z)||bo(It)&524288)break;case 259:case 173:case 174:case 175:case 171:case 169:{const xt=W,pn=te;W=void 0,te=xe,xe=!1,$(fe,It,jt),xe=te,te=pn,W=xt;return}case 164:{const xt=W,pn=xe;W=W==null?void 0:W.previous,xe=te,$(fe,It,jt),xe=pn,W=xt;return}}$(fe,It,jt)}function Ys(fe,It){return It=Y(fe,It),fe===1?nn(It):It}function nn(fe){switch(fe.kind){case 79:return wu(fe);case 108:return zl(fe)}return fe}function zl(fe){if(de&2&&(W!=null&&W.data)){const{facts:It,classConstructor:jt,classThis:Z}=W.data;if(It&1&&C)return t.createParenthesizedExpression(t.createVoidZero());const ot=xe&&Z!=null?Z:jt;if(ot)return ht(Wr(t.cloneNode(ot),fe),fe)}return fe}function wu(fe){return $u(fe)||fe}function $u(fe){if(de&1&&d.getNodeCheckFlags(fe)&2097152){const It=d.getReferencedValueDeclaration(fe);if(It){const jt=re[It.id];if(jt){const Z=t.cloneNode(jt);return ps(Z,fe),Xc(Z,fe),Z}}}}}function sFe(e,t){return N.createAssignment(e,N.createObjectLiteralExpression([N.createPropertyAssignment("value",t||N.createVoidZero())]))}function lFe(e,t,r){return N.createCallExpression(N.createPropertyAccessExpression(r,"set"),void 0,[e,t||N.createVoidZero()])}function cFe(e,t){return N.createCallExpression(N.createPropertyAccessExpression(t,"add"),void 0,[e])}function uFe(e){return!hx(e)&&e.escapedText==="#constructor"}function dFe(e){return Oi(e.left)&&e.operatorToken.kind===101}var fFe=S({"src/compiler/transformers/classFields.ts"(){Na()}});function Dye(e){const{hoistVariableDeclaration:t}=e,r=e.getEmitResolver(),i=e.getCompilerOptions(),o=ts(i),s=C_(i,"strictNullChecks");let c,f;return{serializeTypeNode:(re,be)=>d(re,I,be),serializeTypeOfNode:(re,be)=>d(re,h,be),serializeParameterTypesOfNode:(re,be,ae)=>d(re,E,be,ae),serializeReturnTypeOfNode:(re,be)=>d(re,L,be)};function d(re,be,ae,W){const ce=c,me=f;c=re.currentLexicalScope,f=re.currentNameScope;const Ee=W===void 0?be(ae):be(ae,W);return c=ce,f=me,Ee}function v(re){const be=r.getAllAccessorDeclarations(re);return be.setAccessor&&u_e(be.setAccessor)||be.getAccessor&&Cp(be.getAccessor)}function h(re){switch(re.kind){case 169:case 166:return I(re.type);case 175:case 174:return I(v(re));case 260:case 228:case 171:return N.createIdentifier("Function");default:return N.createVoidZero()}}function E(re,be){const ae=_i(re)?Dh(re):Xa(re)&&E_(re.body)?re:void 0,W=[];if(ae){const ce=C(ae,be),me=ce.length;for(let Ee=0;Ee<me;Ee++){const xe=ce[Ee];Ee===0&&je(xe.name)&&xe.name.escapedText==="this"||(xe.dotDotDotToken?W.push(I(nq(xe.type))):W.push(h(xe)))}}return N.createArrayLiteralExpression(W)}function C(re,be){if(be&&re.kind===174){const{setAccessor:ae}=PT(be.members,re);if(ae)return ae.parameters}return re.parameters}function L(re){return Xa(re)&&re.type?I(re.type):mC(re)?N.createIdentifier("Promise"):N.createVoidZero()}function I(re){if(re===void 0)return N.createIdentifier("Object");switch(re=hq(re),re.kind){case 114:case 155:case 144:return N.createVoidZero();case 181:case 182:return N.createIdentifier("Function");case 185:case 186:return N.createIdentifier("Array");case 179:return re.assertsModifier?N.createVoidZero():N.createIdentifier("Boolean");case 134:return N.createIdentifier("Boolean");case 200:case 152:return N.createIdentifier("String");case 149:return N.createIdentifier("Object");case 198:return O(re.literal);case 148:return N.createIdentifier("Number");case 160:return de("BigInt",7);case 153:return de("Symbol",2);case 180:return V(re);case 190:return k(re.types,!0);case 189:return k(re.types,!1);case 191:return k([re.trueType,re.falseType],!1);case 195:if(re.operator===146)return I(re.type);break;case 183:case 196:case 197:case 184:case 131:case 157:case 194:case 202:break;case 315:case 316:case 320:case 321:case 322:break;case 317:case 318:case 319:return I(re.type);default:return D.failBadSyntaxKind(re)}return N.createIdentifier("Object")}function O(re){switch(re.kind){case 10:case 14:return N.createIdentifier("String");case 221:{const be=re.operand;switch(be.kind){case 8:case 9:return O(be);default:return D.failBadSyntaxKind(be)}}case 8:return N.createIdentifier("Number");case 9:return de("BigInt",7);case 110:case 95:return N.createIdentifier("Boolean");case 104:return N.createVoidZero();default:return D.failBadSyntaxKind(re)}}function k(re,be){let ae;for(let W of re){if(W=hq(W),W.kind===144){if(be)return N.createVoidZero();continue}if(W.kind===157){if(!be)return N.createIdentifier("Object");continue}if(W.kind===131)return N.createIdentifier("Object");if(!s&&(gb(W)&&W.literal.kind===104||W.kind===155))continue;const ce=I(W);if(je(ce)&&ce.escapedText==="Object")return ce;if(ae){if(!G(ae,ce))return N.createIdentifier("Object")}else ae=ce}return ae!=null?ae:N.createVoidZero()}function G(re,be){return Ll(re)?Ll(be):je(re)?je(be)&&re.escapedText===be.escapedText:Fr(re)?Fr(be)&&G(re.expression,be.expression)&&G(re.name,be.name):Xx(re)?Xx(be)&&L_(re.expression)&&re.expression.text==="0"&&L_(be.expression)&&be.expression.text==="0":Ho(re)?Ho(be)&&re.text===be.text:GC(re)?GC(be)&&G(re.expression,be.expression):Jd(re)?Jd(be)&&G(re.expression,be.expression):VC(re)?VC(be)&&G(re.condition,be.condition)&&G(re.whenTrue,be.whenTrue)&&G(re.whenFalse,be.whenFalse):br(re)?br(be)&&re.operatorToken.kind===be.operatorToken.kind&&G(re.left,be.left)&&G(re.right,be.right):!1}function V(re){const be=r.getTypeReferenceSerializationKind(re.typeName,f!=null?f:c);switch(be){case 0:if(rr(re,ce=>ce.parent&&MC(ce.parent)&&(ce.parent.trueType===ce||ce.parent.falseType===ce)))return N.createIdentifier("Object");const ae=ne(re.typeName),W=N.createTempVariable(t);return N.createConditionalExpression(N.createTypeCheck(N.createAssignment(W,ae),"function"),void 0,W,void 0,N.createIdentifier("Object"));case 1:return Y(re.typeName);case 2:return N.createVoidZero();case 4:return de("BigInt",7);case 6:return N.createIdentifier("Boolean");case 3:return N.createIdentifier("Number");case 5:return N.createIdentifier("String");case 7:return N.createIdentifier("Array");case 8:return de("Symbol",2);case 10:return N.createIdentifier("Function");case 9:return N.createIdentifier("Promise");case 11:return N.createIdentifier("Object");default:return D.assertNever(be)}}function H(re,be){return N.createLogicalAnd(N.createStrictInequality(N.createTypeOfExpression(re),N.createStringLiteral("undefined")),be)}function ne(re){if(re.kind===79){const W=Y(re);return H(W,W)}if(re.left.kind===79)return H(Y(re.left),Y(re));const be=ne(re.left),ae=N.createTempVariable(t);return N.createLogicalAnd(N.createLogicalAnd(be.left,N.createStrictInequality(N.createAssignment(ae,be.right),N.createVoidZero())),N.createPropertyAccessExpression(ae,re.right))}function Y(re){switch(re.kind){case 79:const be=jo(ht(nh.cloneNode(re),re),re.parent);return be.original=void 0,jo(be,va(c)),be;case 163:return $(re)}}function $(re){return N.createPropertyAccessExpression(Y(re.left),re.right)}function M(re){return N.createConditionalExpression(N.createTypeCheck(N.createIdentifier(re),"function"),void 0,N.createIdentifier(re),void 0,N.createIdentifier("Object"))}function de(re,be){return o<be?M(re):N.createIdentifier(re)}}var _Fe=S({"src/compiler/transformers/typeSerializer.ts"(){Na()}});function Rye(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),c=ts(s),f=e.onSubstituteNode;e.onSubstituteNode=st;let d;return rp(e,v);function v(tt){const at=Gn(tt,E,e);return Ny(at,e.readEmitHelpers()),at}function h(tt){return Wu(tt)?void 0:tt}function E(tt){if(!(tt.transformFlags&33554432))return tt;switch(tt.kind){case 167:return;case 260:return C(tt);case 228:return H(tt);case 173:return ne(tt);case 171:return $(tt);case 175:return de(tt);case 174:return M(tt);case 169:return re(tt);case 166:return be(tt);default:return Gn(tt,E,e)}}function C(tt){if(!(F1(!0,tt)||ck(!0,tt)))return Gn(tt,E,e);const at=F1(!0,tt)?V(tt,tt.name):G(tt,tt.name);return at.length>1&&(at.push(t.createEndOfDeclarationMarker(tt)),sr(at[0],bo(at[0])|8388608)),Pm(at)}function L(tt){return!!(tt.transformFlags&536870912)}function I(tt){return kt(tt,L)}function O(tt){for(const at of tt.members){if(!i2(at))continue;const on=AF(at,tt,!0);if(kt(on==null?void 0:on.decorators,L)||kt(on==null?void 0:on.parameters,I))return!0}return!1}function k(tt,at){let on=[];return ce(on,tt,!1),ce(on,tt,!0),O(tt)&&(at=ht(t.createNodeArray([...at,t.createClassStaticBlockDeclaration(t.createBlock(on,!0))]),at),on=void 0),{decorationStatements:on,members:at}}function G(tt,at){const on=Kn(tt.modifiers,h,_o),Qt=Kn(tt.heritageClauses,E,Kd);let Pn=Kn(tt.members,E,qc),Hn=[];({members:Pn,decorationStatements:Hn}=k(tt,Pn));const kn=t.updateClassDeclaration(tt,on,at,void 0,Qt,Pn);return Ai([kn],Hn)}function V(tt,at){const on=sm(tt),Qt=Ye(tt),Pn=c<=2?t.getInternalName(tt,!1,!0):t.getLocalName(tt,!1,!0),Hn=Kn(tt.heritageClauses,E,Kd);let kn=Kn(tt.members,E,qc),Zt=[];({members:kn,decorationStatements:Zt}=k(tt,kn));const _r=t.createClassExpression(void 0,at&&Ll(at)?void 0:at,void 0,Hn,kn);Wr(_r,tt),ht(_r,on);const wi=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Pn,void 0,void 0,Qt?t.createAssignment(Qt,_r):_r)],1));Wr(wi,tt),ht(wi,on),Xc(wi,tt);const Qi=[wi];return Ai(Qi,Zt),Qe(Qi,tt),Qi}function H(tt){return t.updateClassExpression(tt,Kn(tt.modifiers,h,_o),tt.name,void 0,Kn(tt.heritageClauses,E,Kd),Kn(tt.members,E,qc))}function ne(tt){return t.updateConstructorDeclaration(tt,Kn(tt.modifiers,h,_o),Kn(tt.parameters,E,Fa),lt(tt.body,E,uo))}function Y(tt,at){return tt!==at&&(Xc(tt,at),ps(tt,sm(at))),tt}function $(tt){return Y(t.updateMethodDeclaration(tt,Kn(tt.modifiers,h,_o),tt.asteriskToken,D.checkDefined(lt(tt.name,E,El)),void 0,void 0,Kn(tt.parameters,E,Fa),void 0,lt(tt.body,E,uo)),tt)}function M(tt){return Y(t.updateGetAccessorDeclaration(tt,Kn(tt.modifiers,h,_o),D.checkDefined(lt(tt.name,E,El)),Kn(tt.parameters,E,Fa),void 0,lt(tt.body,E,uo)),tt)}function de(tt){return Y(t.updateSetAccessorDeclaration(tt,Kn(tt.modifiers,h,_o),D.checkDefined(lt(tt.name,E,El)),Kn(tt.parameters,E,Fa),lt(tt.body,E,uo)),tt)}function re(tt){if(!(tt.flags&16777216||$r(tt,2)))return Y(t.updatePropertyDeclaration(tt,Kn(tt.modifiers,h,_o),D.checkDefined(lt(tt.name,E,El)),void 0,void 0,lt(tt.initializer,E,vt)),tt)}function be(tt){const at=t.updateParameterDeclaration(tt,zme(t,tt.modifiers),tt.dotDotDotToken,D.checkDefined(lt(tt.name,E,Ch)),void 0,void 0,lt(tt.initializer,E,vt));return at!==tt&&(Xc(at,tt),ht(at,sm(tt)),ps(at,sm(tt)),sr(at.name,64)),at}function ae(tt){return Kk(tt.expression,"___metadata")}function W(tt){if(!tt)return;const{false:at,true:on}=Jce(tt.decorators,ae),Qt=[];return Ai(Qt,zt(at,Ge)),Ai(Qt,Ga(tt.parameters,ze)),Ai(Qt,zt(on,Ge)),Qt}function ce(tt,at,on){Ai(tt,zt(xe(at,on),Qt=>t.createExpressionStatement(Qt)))}function me(tt,at,on){return RN(!0,tt,on)&&at===Ja(tt)}function Ee(tt,at){return yn(tt.members,on=>me(on,at,tt))}function xe(tt,at){const on=Ee(tt,at);let Qt;for(const Pn of on)Qt=Bn(Qt,te(tt,Pn));return Qt}function te(tt,at){const on=AF(at,tt,!0),Qt=W(on);if(!Qt)return;const Pn=Fe(tt,at),Hn=Oe(at,!$r(at,2)),kn=c>0?ro(at)&&!Jm(at)?t.createVoidZero():t.createNull():void 0,Zt=r().createDecorateHelper(Qt,Pn,Hn,kn);return sr(Zt,3072),ps(Zt,sm(at)),Zt}function Qe(tt,at){const on=Ve(at);on&&tt.push(Wr(t.createExpressionStatement(on),at))}function Ve(tt){const at=sY(tt),on=W(at);if(!on)return;const Qt=d&&d[Nl(tt)],Pn=c<=2?t.getInternalName(tt,!1,!0):t.getLocalName(tt,!1,!0),Hn=r().createDecorateHelper(on,Pn),kn=t.createAssignment(Pn,Qt?t.createAssignment(Qt,Hn):Hn);return sr(kn,3072),ps(kn,sm(tt)),kn}function Ge(tt){return D.checkDefined(lt(tt.expression,E,vt))}function ze(tt,at){let on;if(tt){on=[];for(const Qt of tt){const Pn=r().createParamHelper(Ge(Qt),at);ht(Pn,Qt.expression),sr(Pn,3072),on.push(Pn)}}return on}function Oe(tt,at){const on=tt.name;return Oi(on)?t.createIdentifier(""):Cs(on)?at&&!pm(on.expression)?t.getGeneratedNameForNode(on):on.expression:je(on)?t.createStringLiteral(Mr(on)):t.cloneNode(on)}function Me(){d||(e.enableSubstitution(79),d=[])}function Ye(tt){if(o.getNodeCheckFlags(tt)&1048576){Me();const at=t.createUniqueName(tt.name&&!Ll(tt.name)?Mr(tt.name):"default");return d[Nl(tt)]=at,i(at),at}}function We(tt){return t.createPropertyAccessExpression(t.getDeclarationName(tt),"prototype")}function Fe(tt,at){return Ja(at)?t.getDeclarationName(tt):We(tt)}function st(tt,at){return at=f(tt,at),tt===1?Ct(at):at}function Ct(tt){switch(tt.kind){case 79:return Et(tt)}return tt}function Et(tt){var at;return(at=Vt(tt))!=null?at:tt}function Vt(tt){if(d&&o.getNodeCheckFlags(tt)&2097152){const at=o.getReferencedValueDeclaration(tt);if(at){const on=d[at.id];if(on){const Qt=t.cloneNode(on);return ps(Qt,tt),Xc(Qt,tt),Qt}}}}}var pFe=S({"src/compiler/transformers/legacyDecorators.ts"(){Na()}});function Nye(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e;let c,f,d,v,h,E;return rp(e,C);function C(ue){c=void 0,E=!1;const mt=Gn(ue,M,e);return Ny(mt,e.readEmitHelpers()),E&&(Bx(mt,32),E=!1),mt}function L(){switch(f=void 0,d=void 0,v=void 0,c==null?void 0:c.kind){case"class":f=c.classInfo;break;case"class-element":f=c.next.classInfo,d=c.classThis,v=c.classSuper;break;case"name":const ue=c.next.next.next;(ue==null?void 0:ue.kind)==="class-element"&&(f=ue.next.classInfo,d=ue.classThis,v=ue.classSuper);break}}function I(ue){c={kind:"class",next:c,classInfo:ue,savedPendingExpressions:h},h=void 0,L()}function O(){D.assert((c==null?void 0:c.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${c==null?void 0:c.kind}' instead.`),h=c.savedPendingExpressions,c=c.next,L()}function k(ue){var mt,Wt;D.assert((c==null?void 0:c.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${c==null?void 0:c.kind}' instead.`),c={kind:"class-element",next:c},(Rl(ue)||ro(ue)&&Sc(ue))&&(c.classThis=(mt=c.next.classInfo)==null?void 0:mt.classThis,c.classSuper=(Wt=c.next.classInfo)==null?void 0:Wt.classSuper),L()}function G(){var ue;D.assert((c==null?void 0:c.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${c==null?void 0:c.kind}' instead.`),D.assert(((ue=c.next)==null?void 0:ue.kind)==="class","Incorrect value for top.next.kind.",()=>{var mt;return`Expected top.next.kind to be 'class' but got '${(mt=c.next)==null?void 0:mt.kind}' instead.`}),c=c.next,L()}function V(){D.assert((c==null?void 0:c.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${c==null?void 0:c.kind}' instead.`),c={kind:"name",next:c},L()}function H(){D.assert((c==null?void 0:c.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${c==null?void 0:c.kind}' instead.`),c=c.next,L()}function ne(){(c==null?void 0:c.kind)==="other"?(D.assert(!h),c.depth++):(c={kind:"other",next:c,depth:0,savedPendingExpressions:h},h=void 0,L())}function Y(){D.assert((c==null?void 0:c.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${c==null?void 0:c.kind}' instead.`),c.depth>0?(D.assert(!h),c.depth--):(h=c.savedPendingExpressions,c=c.next,L())}function $(ue){return!!(ue.transformFlags&33554432)||!!d&&!!(ue.transformFlags&16384)||!!d&&!!v&&!!(ue.transformFlags&134217728)}function M(ue){if(!$(ue))return ue;switch(ue.kind){case 167:return D.fail("Use `modifierVisitor` instead.");case 260:return Ge(ue);case 228:return ze(ue,void 0);case 173:case 169:case 172:return D.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 166:return Hn(ue);case 223:return wi(ue,!1);case 299:return Ht(ue);case 257:return un(ue);case 205:return ir(ue);case 274:return yt(ue);case 108:return tt(ue);case 245:return Zt(ue);case 241:return _r(ue);case 357:return Zi(ue,!1);case 214:return Nt(ue,!1,void 0);case 356:return Ce(ue,!1,void 0);case 210:return at(ue);case 212:return on(ue);case 221:case 222:return Qi(ue,!1);case 208:return Qt(ue);case 209:return Pn(ue);case 164:return vn(ue);case 171:case 175:case 174:case 215:case 259:{ne();const mt=Gn(ue,de,e);return Y(),mt}default:return Gn(ue,de,e)}}function de(ue){switch(ue.kind){case 167:return;default:return M(ue)}}function re(ue){switch(ue.kind){case 167:return;default:return ue}}function be(ue){switch(ue.kind){case 173:return Me(ue);case 171:return Fe(ue);case 174:return st(ue);case 175:return Ct(ue);case 169:return Vt(ue);case 172:return Et(ue);default:return M(ue)}}function ae(ue,mt){switch(ue.kind){case 356:return Ce(ue,!1,mt);case 214:return Nt(ue,!1,mt);case 228:return ze(ue,mt);default:return M(ue)}}function W(ue){switch(ue.kind){case 221:case 222:return Qi(ue,!0);case 223:return wi(ue,!0);case 357:return Zi(ue,!0);case 214:return Nt(ue,!0,void 0);default:return M(ue)}}function ce(ue){let mt=ue.name&&je(ue.name)&&!Ll(ue.name)?Mr(ue.name):ue.name&&Oi(ue.name)&&!Ll(ue.name)?Mr(ue.name).slice(1):ue.name&&Ho(ue.name)&&H_(ue.name.text,99)?ue.name.text:_i(ue)?"class":"member";return Gv(ue)&&(mt=`get_${mt}`),Iy(ue)&&(mt=`set_${mt}`),ue.name&&Oi(ue.name)&&(mt=`private_${mt}`),Ja(ue)&&(mt=`static_${mt}`),"_"+mt}function me(ue,mt){return t.createUniqueName(`${ce(ue)}_${mt}`,24)}function Ee(ue,mt){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ue,void 0,void 0,mt)],1))}function xe(ue){let mt,Wt,it=!1,K=!1,Pe=!1;for(const ee of ue.members)if(Fde(ee)&&RN(!1,ee,ue)&&(Sc(ee)?Wt!=null||(Wt=t.createUniqueName("_staticExtraInitializers",16)):mt!=null||(mt=t.createUniqueName("_instanceExtraInitializers",16))),Rl(ee)?it=!0:ro(ee)&&(Sc(ee)?it||(it=!!ee.initializer||o_(ee)):K||(K=!qz(ee))),(ad(ee)||_f(ee))&&Sc(ee)&&(Pe=!0),Wt&&mt&&it&&K&&Pe)break;return{class:ue,instanceExtraInitializersName:mt,staticExtraInitializersName:Wt,hasStaticInitializers:it,hasNonAmbientInstanceFields:K,hasStaticPrivateClassElements:Pe}}function te(ue){for(const mt of ue.members)if((Rl(mt)||ro(mt)&&Sc(mt))&&mt.transformFlags&134217728)return!0;return!1}function Qe(ue,mt){var Wt,it,K,Pe,ee;i();const Re=(Wt=ue.name)!=null?Wt:t.getGeneratedNameForNode(ue),q=xe(ue),Rt=[];let gt,ft,fn,$n,li=!1;const Ii=pe(sY(ue));if(Ii&&(q.classDecoratorsName=t.createUniqueName("_classDecorators",16),q.classDescriptorName=t.createUniqueName("_classDescriptor",16),q.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",16),q.classThis=t.createUniqueName("_classThis",16),Rt.push(Ee(q.classDecoratorsName,t.createArrayLiteralExpression(Ii)),Ee(q.classDescriptorName),Ee(q.classExtraInitializersName,t.createArrayLiteralExpression()),Ee(q.classThis)),q.hasStaticPrivateClassElements&&(li=!0,E=!0)),Ii&&te(ue)){const Wi=eO(ue.heritageClauses,94),Xr=Wi&&tu(Wi.types),ss=Xr&<(Xr.expression,M,vt);if(ss){q.classSuper=t.createUniqueName("_classSuper",16);const hi=Cu(ss),ua=qu(hi)&&!hi.name||Us(hi)&&!hi.name||Xs(hi)?t.createComma(t.createNumericLiteral(0),ss):ss;Rt.push(Ee(q.classSuper,ua));const Dn=t.updateExpressionWithTypeArguments(Xr,q.classSuper,void 0),fa=t.updateHeritageClause(Wi,[Dn]);$n=t.createNodeArray([fa])}}else $n=Kn(ue.heritageClauses,M,Kd);const ki=(it=q.classThis)!=null?it:t.createThis();if(!((K=Cl(ue,_i))!=null&&K.name)&&(Ii||!Ho(mt)||!aq(mt))){const Wi=r().createSetFunctionNameHelper(t.createThis(),mt);gt=Bn(gt,t.createExpressionStatement(Wi))}I(q);let ho=Kn(ue.members,be,qc);if(h){let Wi;for(let Xr of h){Xr=lt(Xr,function hi(ua){if(!(ua.transformFlags&16384))return ua;switch(ua.kind){case 108:return Wi||(Wi=t.createUniqueName("_outerThis",16),Rt.unshift(Ee(Wi,t.createThis()))),Wi;default:return Gn(ua,hi,e)}},vt);const ss=t.createExpressionStatement(Xr);gt=Bn(gt,ss)}h=void 0}if(O(),q.instanceExtraInitializersName&&!Dh(ue)){const Wi=Oe(ue,q);if(Wi){const Xr=am(ue),ss=!!(Xr&&Cu(Xr.expression).kind!==104),hi=[];if(ss){const Dn=t.createSpreadElement(t.createIdentifier("arguments")),fa=t.createCallExpression(t.createSuper(),void 0,[Dn]);hi.push(t.createExpressionStatement(fa))}Ai(hi,Wi);const ua=t.createBlock(hi,!0);fn=t.createConstructorDeclaration(void 0,[],ua)}}if(q.staticExtraInitializersName&&Rt.push(Ee(q.staticExtraInitializersName,t.createArrayLiteralExpression())),q.instanceExtraInitializersName&&Rt.push(Ee(q.instanceExtraInitializersName,t.createArrayLiteralExpression())),q.memberInfos&&pf(q.memberInfos,(Wi,Xr)=>{Ja(Xr)&&(Rt.push(Ee(Wi.memberDecoratorsName)),Wi.memberInitializersName&&Rt.push(Ee(Wi.memberInitializersName,t.createArrayLiteralExpression())),Wi.memberDescriptorName&&Rt.push(Ee(Wi.memberDescriptorName)))}),q.memberInfos&&pf(q.memberInfos,(Wi,Xr)=>{Ja(Xr)||(Rt.push(Ee(Wi.memberDecoratorsName)),Wi.memberInitializersName&&Rt.push(Ee(Wi.memberInitializersName,t.createArrayLiteralExpression())),Wi.memberDescriptorName&&Rt.push(Ee(Wi.memberDescriptorName)))}),gt=Ai(gt,q.staticNonFieldDecorationStatements),gt=Ai(gt,q.nonStaticNonFieldDecorationStatements),gt=Ai(gt,q.staticFieldDecorationStatements),gt=Ai(gt,q.nonStaticFieldDecorationStatements),q.classDescriptorName&&q.classDecoratorsName&&q.classExtraInitializersName&&q.classThis){gt!=null||(gt=[]);const Wi=t.createPropertyAssignment("value",t.createThis()),Xr=t.createObjectLiteralExpression([Wi]),ss=t.createAssignment(q.classDescriptorName,Xr),hi=t.createPropertyAccessExpression(t.createThis(),"name"),ua=r().createESDecorateHelper(t.createNull(),ss,q.classDecoratorsName,{kind:"class",name:hi},t.createNull(),q.classExtraInitializersName),Dn=t.createExpressionStatement(ua);ps(Dn,zv(ue)),gt.push(Dn);const fa=t.createPropertyAccessExpression(q.classDescriptorName,"value"),ic=t.createAssignment(q.classThis,fa),al=t.createAssignment(Re,ic);gt.push(t.createExpressionStatement(al))}if(q.staticExtraInitializersName){const Wi=r().createRunInitializersHelper(ki,q.staticExtraInitializersName),Xr=t.createExpressionStatement(Wi);ps(Xr,(Pe=ue.name)!=null?Pe:zv(ue)),gt=Bn(gt,Xr)}if(q.classExtraInitializersName){const Wi=r().createRunInitializersHelper(ki,q.classExtraInitializersName),Xr=t.createExpressionStatement(Wi);ps(Xr,(ee=ue.name)!=null?ee:zv(ue)),ft=Bn(ft,Xr)}gt&&ft&&!q.hasStaticInitializers&&(Ai(gt,ft),ft=void 0);let So=ho;if(gt){const Wi=t.createBlock(gt,!0),Xr=t.createClassStaticBlockDeclaration(Wi);li&&GO(Xr,32),So=[Xr,...So]}if(fn&&(So=[...So,fn]),ft){const Wi=t.createBlock(ft,!0),Xr=t.createClassStaticBlockDeclaration(Wi);So=[...So,Xr]}So!==ho&&(ho=ht(t.createNodeArray(So),ho));const oo=o();let ca;if(Ii){ca=t.createClassExpression(void 0,void 0,void 0,$n,ho);const Wi=t.createVariableDeclaration(Re,void 0,void 0,ca),Xr=t.createVariableDeclarationList([Wi]),ss=q.classThis?t.createAssignment(Re,q.classThis):Re;Rt.push(t.createVariableStatement(void 0,Xr),t.createReturnStatement(ss))}else ca=t.createClassExpression(void 0,ue.name,void 0,$n,ho),Rt.push(t.createReturnStatement(ca));if(li){Bx(ca,32);for(const Wi of ca.members)(ad(Wi)||_f(Wi))&&Sc(Wi)&&Bx(Wi,32)}return Wr(ca,ue),cd(ca).classThis=q.classThis,t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(Rt,oo))}function Ve(ue){return F1(!1,ue)||ck(!1,ue)}function Ge(ue){var mt;if(Ve(ue))if($r(ue,1)&&$r(ue,1024)){const Wt=(mt=Cl(ue,_i))!=null?mt:ue,it=Wt.name?t.createStringLiteralFromNode(Wt.name):t.createStringLiteral("default"),K=Qe(ue,it),Pe=t.createExportDefault(K);return Wr(Pe,ue),Xc(Pe,$m(ue)),ps(Pe,zv(ue)),Pe}else{D.assertIsDefined(ue.name,"A class declaration that is not a default export must have a name.");const Wt=Qe(ue,t.createStringLiteralFromNode(ue.name)),it=Kn(ue.modifiers,re,_o),K=t.createVariableDeclaration(ue.name,void 0,void 0,Wt),Pe=t.createVariableDeclarationList([K],1),ee=t.createVariableStatement(it,Pe);return Wr(ee,ue),Xc(ee,$m(ue)),ee}else{const Wt=Kn(ue.modifiers,re,_o),it=Kn(ue.heritageClauses,M,Kd);I(void 0);const K=Kn(ue.members,be,qc);return O(),t.updateClassDeclaration(ue,Wt,ue.name,void 0,it,K)}}function ze(ue,mt){if(Ve(ue)){const Wt=ue.name?t.createStringLiteralFromNode(ue.name):mt!=null?mt:t.createStringLiteral(""),it=Qe(ue,Wt);return Wr(it,ue),it}else{const Wt=Kn(ue.modifiers,re,_o),it=Kn(ue.heritageClauses,M,Kd);I(void 0);const K=Kn(ue.members,be,qc);return O(),t.updateClassExpression(ue,Wt,ue.name,void 0,it,K)}}function Oe(ue,mt){if(mt.instanceExtraInitializersName&&!mt.hasNonAmbientInstanceFields){const Wt=[];return Wt.push(t.createExpressionStatement(r().createRunInitializersHelper(t.createThis(),mt.instanceExtraInitializersName))),Wt}}function Me(ue){k(ue);const mt=Kn(ue.modifiers,re,_o),Wt=Kn(ue.parameters,M,Fa);let it;if(ue.body&&f){const K=Oe(f.class,f);if(K){const Pe=[],ee=t.copyPrologue(ue.body.statements,Pe,!1,M),Re=SF(ue.body.statements,ee),q=Re>=0?Re+1:void 0;Ai(Pe,Kn(ue.body.statements,M,ka,ee,q?q-ee:void 0)),Ai(Pe,K),Ai(Pe,Kn(ue.body.statements,M,ka,q)),it=t.createBlock(Pe,!0),Wr(it,ue.body),ht(it,ue.body)}}return it!=null||(it=lt(ue.body,M,uo)),G(),t.updateConstructorDeclaration(ue,mt,Wt,it)}function Ye(ue,mt){return ue!==mt&&(Xc(ue,mt),ps(ue,zv(mt))),ue}function We(ue,mt,Wt,it){var K,Pe,ee,Re,q,Rt,gt,ft;let fn,$n,li,Ii,ki;if(!Wt){const So=Kn(ue.modifiers,re,_o);return V(),mt?{referencedName:fn,name:$n}=Or(ue.name):$n=At(ue.name),H(),{modifiers:So,referencedName:fn,name:$n,initializersName:li,descriptorName:ki,thisArg:Ii}}const Hi=pe(AF(ue,Wt.class,!1)),ho=Kn(ue.modifiers,re,_o);if(Hi){const So=me(ue,"decorators"),oo=t.createArrayLiteralExpression(Hi),ca=t.createAssignment(So,oo),Wi={memberDecoratorsName:So};(K=Wt.memberInfos)!=null||(Wt.memberInfos=new Map),Wt.memberInfos.set(ue,Wi),h!=null||(h=[]),h.push(ca);const Xr=zA(ue)||_f(ue)?Ja(ue)?(Pe=Wt.staticNonFieldDecorationStatements)!=null?Pe:Wt.staticNonFieldDecorationStatements=[]:(ee=Wt.nonStaticNonFieldDecorationStatements)!=null?ee:Wt.nonStaticNonFieldDecorationStatements=[]:ro(ue)&&!_f(ue)?Ja(ue)?(Re=Wt.staticFieldDecorationStatements)!=null?Re:Wt.staticFieldDecorationStatements=[]:(q=Wt.nonStaticFieldDecorationStatements)!=null?q:Wt.nonStaticFieldDecorationStatements=[]:D.fail(),ss=Z_(ue)?"getter":c_(ue)?"setter":uc(ue)?"method":_f(ue)?"accessor":ro(ue)?"field":D.fail();let hi;if(je(ue.name)||Oi(ue.name))hi={computed:!1,name:ue.name};else if(J_(ue.name))hi={computed:!0,name:t.createStringLiteralFromNode(ue.name)};else{const fa=ue.name.expression;J_(fa)&&!je(fa)?hi={computed:!0,name:t.createStringLiteralFromNode(fa)}:(V(),{referencedName:fn,name:$n}=Or(ue.name),hi={computed:!0,name:fn},H())}const ua={kind:ss,name:hi,static:Ja(ue),private:Oi(ue.name),access:{get:ro(ue)||Z_(ue)||uc(ue),set:ro(ue)||c_(ue)}},Dn=Ja(ue)?(Rt=Wt.staticExtraInitializersName)!=null?Rt:Wt.staticExtraInitializersName=t.createUniqueName("_staticExtraInitializers",16):(gt=Wt.instanceExtraInitializersName)!=null?gt:Wt.instanceExtraInitializersName=t.createUniqueName("_instanceExtraInitializers",16);if(zA(ue)){let fa;ad(ue)&&it&&(fa=it(ue,Kn(ho,jl=>si(jl,Xk),_o)),Wi.memberDescriptorName=ki=me(ue,"descriptor"),fa=t.createAssignment(ki,fa));const ic=r().createESDecorateHelper(t.createThis(),fa!=null?fa:t.createNull(),So,ua,t.createNull(),Dn),al=t.createExpressionStatement(ic);ps(al,zv(ue)),Xr.push(al)}else if(ro(ue)){li=(ft=Wi.memberInitializersName)!=null?ft:Wi.memberInitializersName=me(ue,"initializers"),Ja(ue)&&(Ii=Wt.classThis);let fa;ad(ue)&&Jm(ue)&&it&&(fa=it(ue,void 0),Wi.memberDescriptorName=ki=me(ue,"descriptor"),fa=t.createAssignment(ki,fa));const ic=r().createESDecorateHelper(_f(ue)?t.createThis():t.createNull(),fa!=null?fa:t.createNull(),So,ua,li,Dn),al=t.createExpressionStatement(ic);ps(al,zv(ue)),Xr.push(al)}}return $n===void 0&&(V(),mt?{referencedName:fn,name:$n}=Or(ue.name):$n=At(ue.name),H()),!kt(ho)&&(uc(ue)||ro(ue))&&sr($n,1024),{modifiers:ho,referencedName:fn,name:$n,initializersName:li,descriptorName:ki,thisArg:Ii}}function Fe(ue){k(ue);const{modifiers:mt,name:Wt,descriptorName:it}=We(ue,!1,f,j);if(it)return G(),Ye(Ut(mt,Wt,it),ue);{const K=Kn(ue.parameters,M,Fa),Pe=lt(ue.body,M,uo);return G(),Ye(t.updateMethodDeclaration(ue,mt,ue.asteriskToken,Wt,void 0,void 0,K,void 0,Pe),ue)}}function st(ue){k(ue);const{modifiers:mt,name:Wt,descriptorName:it}=We(ue,!1,f,He);if(it)return G(),Ye(ln(mt,Wt,it),ue);{const K=Kn(ue.parameters,M,Fa),Pe=lt(ue.body,M,uo);return G(),Ye(t.updateGetAccessorDeclaration(ue,mt,Wt,K,void 0,Pe),ue)}}function Ct(ue){k(ue);const{modifiers:mt,name:Wt,descriptorName:it}=We(ue,!1,f,Ze);if(it)return G(),Ye(Sn(mt,Wt,it),ue);{const K=Kn(ue.parameters,M,Fa),Pe=lt(ue.body,M,uo);return G(),Ye(t.updateSetAccessorDeclaration(ue,mt,Wt,K,Pe),ue)}}function Et(ue){k(ue),f&&(f.hasStaticInitializers=!0);const mt=Gn(ue,M,e);return G(),mt}function Vt(ue){k(ue),D.assert(!qz(ue),"Not yet implemented.");const mt=a_(ue,kn),{modifiers:Wt,name:it,referencedName:K,initializersName:Pe,descriptorName:ee,thisArg:Re}=We(ue,mt,f,Jm(ue)?Xe:void 0);i();let q=K?lt(ue.initializer,gt=>ae(gt,K),vt):lt(ue.initializer,M,vt);Pe&&(q=r().createRunInitializersHelper(Re!=null?Re:t.createThis(),Pe,q!=null?q:t.createVoidZero())),!Ja(ue)&&(f!=null&&f.instanceExtraInitializersName)&&!(f!=null&&f.hasInjectedInstanceInitializers)&&(f.hasInjectedInstanceInitializers=!0,q!=null||(q=t.createVoidZero()),q=t.createParenthesizedExpression(t.createComma(r().createRunInitializersHelper(t.createThis(),f.instanceExtraInitializersName),q))),Ja(ue)&&f&&q&&(f.hasStaticInitializers=!0);const Rt=o();if(kt(Rt)&&(q=t.createImmediatelyInvokedArrowFunction([...Rt,t.createReturnStatement(q)])),G(),Jm(ue)&&ee){const gt=$m(ue),ft=hb(ue),fn=ue.name;let $n=fn,li=fn;if(Cs(fn)&&!pm(fn.expression)){const So=D5(fn);if(So)$n=t.updateComputedPropertyName(fn,lt(fn.expression,M,vt)),li=t.updateComputedPropertyName(fn,So.left);else{const oo=t.createTempVariable(s);ps(oo,fn.expression);const ca=lt(fn.expression,M,vt),Wi=t.createAssignment(oo,ca);ps(Wi,fn.expression),$n=t.updateComputedPropertyName(fn,Wi),li=t.updateComputedPropertyName(fn,oo)}}const Ii=Kn(Wt,So=>So.kind!==127?So:void 0,_o),ki=UK(t,ue,Ii,q);Wr(ki,ue),sr(ki,3072),ps(ki,ft),ps(ki.name,ue.name);const Hi=ln(Ii,$n,ee);Wr(Hi,ue),Xc(Hi,gt),ps(Hi,ft);const ho=Sn(Ii,li,ee);return Wr(ho,ue),sr(ho,3072),ps(ho,ft),[ki,Hi,ho]}return Ye(t.updatePropertyDeclaration(ue,Wt,it,void 0,void 0,q),ue)}function tt(ue){return d!=null?d:ue}function at(ue){if(hd(ue.expression)&&d){const mt=lt(ue.expression,M,vt),Wt=Kn(ue.arguments,M,vt),it=t.createFunctionCallCall(mt,d,Wt);return Wr(it,ue),ht(it,ue),it}return Gn(ue,M,e)}function on(ue){if(hd(ue.tag)&&d){const mt=lt(ue.tag,M,vt),Wt=t.createFunctionBindCall(mt,d,[]);Wr(Wt,ue),ht(Wt,ue);const it=lt(ue.template,M,qA);return t.updateTaggedTemplateExpression(ue,Wt,void 0,it)}return Gn(ue,M,e)}function Qt(ue){if(hd(ue)&&je(ue.name)&&d&&v){const mt=t.createStringLiteralFromNode(ue.name),Wt=t.createReflectGetCall(v,mt,d);return Wr(Wt,ue.expression),ht(Wt,ue.expression),Wt}return Gn(ue,M,e)}function Pn(ue){if(hd(ue)&&d&&v){const mt=lt(ue.argumentExpression,M,vt),Wt=t.createReflectGetCall(v,mt,d);return Wr(Wt,ue.expression),ht(Wt,ue.expression),Wt}return Gn(ue,M,e)}function Hn(ue){let mt;if(a_(ue,kn)){const Wt=Er(ue.name,ue.initializer),it=lt(ue.name,M,Ch),K=lt(ue.initializer,Pe=>ae(Pe,Wt),vt);mt=t.updateParameterDeclaration(ue,void 0,void 0,it,void 0,void 0,K)}else mt=t.updateParameterDeclaration(ue,void 0,ue.dotDotDotToken,lt(ue.name,M,Ch),void 0,void 0,lt(ue.initializer,M,vt));return mt!==ue&&(Xc(mt,ue),ht(mt,sm(ue)),ps(mt,sm(ue)),sr(mt.name,64)),mt}function kn(ue){return qu(ue)&&!ue.name&&Ve(ue)}function Zt(ue){return t.updateForStatement(ue,lt(ue.initializer,W,rm),lt(ue.condition,M,vt),lt(ue.incrementor,W,vt),I_(ue.statement,M,e))}function _r(ue){return Gn(ue,W,e)}function wi(ue,mt){if(Dy(ue)){const Wt=we(ue.left),it=lt(ue.right,M,vt);return t.updateBinaryExpression(ue,Wt,ue.operatorToken,it)}if(ld(ue)){if(a_(ue,kn)){const Wt=Er(ue.left,ue.right),it=lt(ue.left,M,vt),K=lt(ue.right,Pe=>ae(Pe,Wt),vt);return t.updateBinaryExpression(ue,it,ue.operatorToken,K)}if(hd(ue.left)&&d&&v){let Wt=fl(ue.left)?lt(ue.left.argumentExpression,M,vt):je(ue.left.name)?t.createStringLiteralFromNode(ue.left.name):void 0;if(Wt){let it=lt(ue.right,M,vt);if(z8(ue.operatorToken.kind)){let Pe=Wt;pm(Wt)||(Pe=t.createTempVariable(s),Wt=t.createAssignment(Pe,Wt));const ee=t.createReflectGetCall(v,Pe,d);Wr(ee,ue.left),ht(ee,ue.left),it=t.createBinaryExpression(ee,xw(ue.operatorToken.kind),it),ht(it,ue)}const K=mt?void 0:t.createTempVariable(s);return K&&(it=t.createAssignment(K,it),ht(K,ue)),it=t.createReflectSetCall(v,Wt,it,d),Wr(it,ue),ht(it,ue),K&&(it=t.createComma(it,K),ht(it,ue)),it}}}if(ue.operatorToken.kind===27){const Wt=lt(ue.left,W,vt),it=lt(ue.right,mt?W:M,vt);return t.updateBinaryExpression(ue,Wt,ue.operatorToken,it)}return Gn(ue,M,e)}function Qi(ue,mt){if(ue.operator===45||ue.operator===46){const Wt=Ws(ue.operand);if(hd(Wt)&&d&&v){let it=fl(Wt)?lt(Wt.argumentExpression,M,vt):je(Wt.name)?t.createStringLiteralFromNode(Wt.name):void 0;if(it){let K=it;pm(it)||(K=t.createTempVariable(s),it=t.createAssignment(K,it));let Pe=t.createReflectGetCall(v,K,d);Wr(Pe,ue),ht(Pe,ue);const ee=mt?void 0:t.createTempVariable(s);return Pe=S5(t,ue,Pe,s,ee),Pe=t.createReflectSetCall(v,it,Pe,d),Wr(Pe,ue),ht(Pe,ue),ee&&(Pe=t.createComma(Pe,ee),ht(Pe,ue)),Pe}}}return Gn(ue,M,e)}function Zi(ue,mt){const Wt=mt?W8(ue.elements,W):W8(ue.elements,M,W);return t.updateCommaListExpression(ue,Wt)}function Or(ue){if(J_(ue)||Oi(ue)){const Pe=t.createStringLiteralFromNode(ue),ee=lt(ue,M,El);return{referencedName:Pe,name:ee}}if(J_(ue.expression)&&!je(ue.expression)){const Pe=t.createStringLiteralFromNode(ue.expression),ee=lt(ue,M,El);return{referencedName:Pe,name:ee}}const mt=t.getGeneratedNameForNode(ue);s(mt);const Wt=r().createPropKeyHelper(lt(ue.expression,M,vt)),it=t.createAssignment(mt,Wt),K=t.updateComputedPropertyName(ue,pt(it));return{referencedName:mt,name:K}}function At(ue){return Cs(ue)?vn(ue):lt(ue,M,El)}function vn(ue){let mt=lt(ue.expression,M,vt);return pm(mt)||(mt=pt(mt)),t.updateComputedPropertyName(ue,mt)}function Ht(ue){if(a_(ue,kn)){const{referencedName:mt,name:Wt}=Or(ue.name),it=lt(ue.initializer,K=>ae(K,mt),vt);return t.updatePropertyAssignment(ue,Wt,it)}return Gn(ue,M,e)}function un(ue){if(a_(ue,kn)){const mt=Er(ue.name,ue.initializer),Wt=lt(ue.name,M,Ch),it=lt(ue.initializer,K=>ae(K,mt),vt);return t.updateVariableDeclaration(ue,Wt,void 0,void 0,it)}return Gn(ue,M,e)}function ir(ue){if(a_(ue,kn)){const mt=Er(ue.name,ue.initializer),Wt=lt(ue.propertyName,M,El),it=lt(ue.name,M,Ch),K=lt(ue.initializer,Pe=>ae(Pe,mt),vt);return t.updateBindingElement(ue,void 0,Wt,it,K)}return Gn(ue,M,e)}function cr(ue){if(Is(ue)||zu(ue))return we(ue);if(hd(ue)&&d&&v){const mt=fl(ue)?lt(ue.argumentExpression,M,vt):je(ue.name)?t.createStringLiteralFromNode(ue.name):void 0;if(mt){const Wt=t.createTempVariable(void 0),it=t.createAssignmentTargetWrapper(Wt,t.createReflectSetCall(v,mt,Wt,d));return Wr(it,ue),ht(it,ue),it}}return Gn(ue,M,e)}function Mi(ue){if(ld(ue,!0)){const mt=cr(ue.left);let Wt;if(a_(ue,kn)){const it=Er(ue.left,ue.right);Wt=lt(ue.right,K=>ae(K,it),vt)}else Wt=lt(ue.right,M,vt);return t.updateBinaryExpression(ue,mt,ue.operatorToken,Wt)}else return cr(ue)}function vi(ue){if(Id(ue.expression)){const mt=cr(ue.expression);return t.updateSpreadElement(ue,mt)}return Gn(ue,M,e)}function Nn(ue){return D.assertNode(ue,hN),Fh(ue)?vi(ue):Fc(ue)?Gn(ue,M,e):Mi(ue)}function rn(ue){const mt=lt(ue.name,M,El);if(ld(ue.initializer,!0)){const Wt=Mi(ue.initializer);return t.updatePropertyAssignment(ue,mt,Wt)}if(Id(ue.initializer)){const Wt=cr(ue.initializer);return t.updatePropertyAssignment(ue,mt,Wt)}return Gn(ue,M,e)}function Mn(ue){if(a_(ue,kn)){const mt=Er(ue.name,ue.objectAssignmentInitializer),Wt=lt(ue.name,M,je),it=lt(ue.objectAssignmentInitializer,K=>ae(K,mt),vt);return t.updateShorthandPropertyAssignment(ue,Wt,it)}return Gn(ue,M,e)}function Ar(ue){if(Id(ue.expression)){const mt=cr(ue.expression);return t.updateSpreadAssignment(ue,mt)}return Gn(ue,M,e)}function Hr(ue){return D.assertNode(ue,mN),n2(ue)?Ar(ue):u_(ue)?Mn(ue):$c(ue)?rn(ue):Gn(ue,M,e)}function we(ue){if(zu(ue)){const mt=Kn(ue.elements,Nn,vt);return t.updateArrayLiteralExpression(ue,mt)}else{const mt=Kn(ue.properties,Hr,Ly);return t.updateObjectLiteralExpression(ue,mt)}}function yt(ue){if(a_(ue,kn)){const mt=t.createStringLiteral(ue.isExportEquals?"":"default"),Wt=Kn(ue.modifiers,re,_o),it=lt(ue.expression,K=>ae(K,mt),vt);return t.updateExportAssignment(ue,Wt,it)}return Gn(ue,M,e)}function Nt(ue,mt,Wt){const it=mt?W:Wt?Pe=>ae(Pe,Wt):M,K=lt(ue.expression,it,vt);return t.updateParenthesizedExpression(ue,K)}function Ce(ue,mt,Wt){const it=mt?W:Wt?Pe=>ae(Pe,Wt):M,K=lt(ue.expression,it,vt);return t.updatePartiallyEmittedExpression(ue,K)}function pt(ue){return kt(h)&&(Jd(ue)?(h.push(ue.expression),ue=t.updateParenthesizedExpression(ue,t.inlineExpressions(h))):(h.push(ue),ue=t.inlineExpressions(h)),h=void 0),ue}function pe(ue){if(!ue)return;const mt=[];return Ai(mt,zt(ue.decorators,ie)),mt}function ie(ue){const mt=lt(ue.expression,M,vt);return sr(mt,3072),mt}function he(ue,mt,Wt,it,K,Pe,ee){const Re=t.createFunctionExpression(Wt,it,void 0,void 0,Pe,void 0,ee!=null?ee:t.createBlock([]));Wr(Re,ue),ps(Re,zv(ue)),sr(Re,3072);const q=K==="get"||K==="set"?K:void 0,Rt=t.createStringLiteralFromNode(mt,void 0),gt=r().createSetFunctionNameHelper(Re,Rt,q),ft=t.createPropertyAssignment(t.createIdentifier(K),gt);return Wr(ft,ue),ps(ft,zv(ue)),sr(ft,3072),ft}function j(ue,mt){return t.createObjectLiteralExpression([he(ue,ue.name,mt,ue.asteriskToken,"value",Kn(ue.parameters,M,Fa),lt(ue.body,M,uo))])}function He(ue,mt){return t.createObjectLiteralExpression([he(ue,ue.name,mt,void 0,"get",[],lt(ue.body,M,uo))])}function Ze(ue,mt){return t.createObjectLiteralExpression([he(ue,ue.name,mt,void 0,"set",Kn(ue.parameters,M,Fa),lt(ue.body,M,uo))])}function Xe(ue,mt){return t.createObjectLiteralExpression([he(ue,ue.name,mt,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(ue.name)))])),he(ue,ue.name,mt,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(ue.name)),t.createIdentifier("value")))]))])}function Ut(ue,mt,Wt){return ue=Kn(ue,it=>Hx(it)?it:void 0,_o),t.createGetAccessorDeclaration(ue,mt,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(Wt,t.createIdentifier("value")))]))}function ln(ue,mt,Wt){return ue=Kn(ue,it=>Hx(it)?it:void 0,_o),t.createGetAccessorDeclaration(ue,mt,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(Wt,t.createIdentifier("get")),t.createThis(),[]))]))}function Sn(ue,mt,Wt){return ue=Kn(ue,it=>Hx(it)?it:void 0,_o),t.createSetAccessorDeclaration(ue,mt,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(Wt,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Er(ue,mt){const Wt=Cl(mt,_i);return Wt&&!Wt.name&&$r(Wt,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(ue)}}var mFe=S({"src/compiler/transformers/esDecorators.ts"(){Na()}});function Oye(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,c=e.getEmitResolver(),f=e.getCompilerOptions(),d=ts(f);let v,h=0,E,C,L;const I=[];let O=0;const k=e.onEmitNode,G=e.onSubstituteNode;return e.onEmitNode=Hn,e.onSubstituteNode=kn,rp(e,V);function V(At){if(At.isDeclarationFile)return At;H(1,!1),H(2,!zz(At,f));const vn=Gn(At,re,e);return Ny(vn,e.readEmitHelpers()),vn}function H(At,vn){O=vn?O|At:O&~At}function ne(At){return(O&At)!==0}function Y(){return!ne(1)}function $(){return ne(2)}function M(At,vn,Ht){const un=At&~O;if(un){H(un,!0);const ir=vn(Ht);return H(un,!1),ir}return vn(Ht)}function de(At){return Gn(At,re,e)}function re(At){if(!(At.transformFlags&256))return At;switch(At.kind){case 132:return;case 220:return xe(At);case 171:return M(3,Qe,At);case 259:return M(3,ze,At);case 215:return M(3,Oe,At);case 216:return M(1,Me,At);case 208:return C&&Fr(At)&&At.expression.kind===106&&C.add(At.name.escapedText),Gn(At,re,e);case 209:return C&&At.expression.kind===106&&(L=!0),Gn(At,re,e);case 174:return M(3,Ve,At);case 175:return M(3,Ge,At);case 173:return M(3,te,At);case 260:case 228:return M(3,de,At);default:return Gn(At,re,e)}}function be(At){if(Kfe(At))switch(At.kind){case 240:return W(At);case 245:return Ee(At);case 246:return ce(At);case 247:return me(At);case 295:return ae(At);case 238:case 252:case 266:case 292:case 293:case 255:case 243:case 244:case 242:case 251:case 253:return Gn(At,be,e);default:return D.assertNever(At,"Unhandled node.")}return re(At)}function ae(At){const vn=new Set;Ye(At.variableDeclaration,vn);let Ht;if(vn.forEach((un,ir)=>{E.has(ir)&&(Ht||(Ht=new Set(E)),Ht.delete(ir))}),Ht){const un=E;E=Ht;const ir=Gn(At,be,e);return E=un,ir}else return Gn(At,be,e)}function W(At){if(We(At.declarationList)){const vn=Fe(At.declarationList,!1);return vn?t.createExpressionStatement(vn):void 0}return Gn(At,re,e)}function ce(At){return t.updateForInStatement(At,We(At.initializer)?Fe(At.initializer,!0):D.checkDefined(lt(At.initializer,re,rm)),D.checkDefined(lt(At.expression,re,vt)),I_(At.statement,be,e))}function me(At){return t.updateForOfStatement(At,lt(At.awaitModifier,re,cK),We(At.initializer)?Fe(At.initializer,!0):D.checkDefined(lt(At.initializer,re,rm)),D.checkDefined(lt(At.expression,re,vt)),I_(At.statement,be,e))}function Ee(At){const vn=At.initializer;return t.updateForStatement(At,We(vn)?Fe(vn,!1):lt(At.initializer,re,rm),lt(At.condition,re,vt),lt(At.incrementor,re,vt),I_(At.statement,be,e))}function xe(At){return Y()?Gn(At,re,e):Wr(ht(t.createYieldExpression(void 0,lt(At.expression,re,vt)),At),At)}function te(At){return t.updateConstructorDeclaration(At,Kn(At.modifiers,re,_o),Ql(At.parameters,re,e),tt(At))}function Qe(At){return t.updateMethodDeclaration(At,Kn(At.modifiers,re,il),At.asteriskToken,At.name,void 0,void 0,Ql(At.parameters,re,e),void 0,Jc(At)&2?at(At):tt(At))}function Ve(At){return t.updateGetAccessorDeclaration(At,Kn(At.modifiers,re,il),At.name,Ql(At.parameters,re,e),void 0,tt(At))}function Ge(At){return t.updateSetAccessorDeclaration(At,Kn(At.modifiers,re,il),At.name,Ql(At.parameters,re,e),tt(At))}function ze(At){return t.updateFunctionDeclaration(At,Kn(At.modifiers,re,il),At.asteriskToken,At.name,void 0,Ql(At.parameters,re,e),void 0,Jc(At)&2?at(At):Uf(At.body,re,e))}function Oe(At){return t.updateFunctionExpression(At,Kn(At.modifiers,re,_o),At.asteriskToken,At.name,void 0,Ql(At.parameters,re,e),void 0,Jc(At)&2?at(At):Uf(At.body,re,e))}function Me(At){return t.updateArrowFunction(At,Kn(At.modifiers,re,_o),void 0,Ql(At.parameters,re,e),void 0,At.equalsGreaterThanToken,Jc(At)&2?at(At):Uf(At.body,re,e))}function Ye({name:At},vn){if(je(At))vn.add(At.escapedText);else for(const Ht of At.elements)Fc(Ht)||Ye(Ht,vn)}function We(At){return!!At&&Ju(At)&&!(At.flags&3)&&At.declarations.some(Vt)}function Fe(At,vn){st(At);const Ht=Ik(At);return Ht.length===0?vn?lt(t.converters.convertToAssignmentElementTarget(At.declarations[0].name),re,vt):void 0:t.inlineExpressions(zt(Ht,Et))}function st(At){Je(At.declarations,Ct)}function Ct({name:At}){if(je(At))s(At);else for(const vn of At.elements)Fc(vn)||Ct(vn)}function Et(At){const vn=ps(t.createAssignment(t.converters.convertToAssignmentElementTarget(At.name),At.initializer),At);return D.checkDefined(lt(vn,re,vt))}function Vt({name:At}){if(je(At))return E.has(At.escapedText);for(const vn of At.elements)if(!Fc(vn)&&Vt(vn))return!0;return!1}function tt(At){D.assertIsDefined(At.body);const vn=C,Ht=L;C=new Set,L=!1;let un=Uf(At.body,re,e);const ir=Cl(At,el);if(d>=2&&c.getNodeCheckFlags(At)&384&&(Jc(ir)&3)!==3){if(Pn(),C.size){const Mi=CF(t,c,At,C);I[hs(Mi)]=!0;const vi=un.statements.slice();Wm(vi,[Mi]),un=t.updateBlock(un,vi)}L&&(c.getNodeCheckFlags(At)&256?Gx(un,qO):c.getNodeCheckFlags(At)&128&&Gx(un,zO))}return C=vn,L=Ht,un}function at(At){i();const Ht=Cl(At,Xa).type,un=d<2?Qt(Ht):void 0,ir=At.kind===216,cr=(c.getNodeCheckFlags(At)&512)!==0,Mi=E;E=new Set;for(const Mn of At.parameters)Ye(Mn,E);const vi=C,Nn=L;ir||(C=new Set,L=!1);let rn;if(ir){const Mn=r().createAwaiterHelper($(),cr,un,on(At.body)),Ar=o();if(kt(Ar)){const Hr=t.converters.convertToFunctionBlock(Mn);rn=t.updateBlock(Hr,ht(t.createNodeArray(ya(Ar,Hr.statements)),Hr.statements))}else rn=Mn}else{const Mn=[],Ar=t.copyPrologue(At.body.statements,Mn,!1,re);Mn.push(t.createReturnStatement(r().createAwaiterHelper($(),cr,un,on(At.body,Ar)))),Wm(Mn,o());const Hr=d>=2&&c.getNodeCheckFlags(At)&384;if(Hr&&(Pn(),C.size)){const yt=CF(t,c,At,C);I[hs(yt)]=!0,Wm(Mn,[yt])}const we=t.createBlock(Mn,!0);ht(we,At.body),Hr&&L&&(c.getNodeCheckFlags(At)&256?Gx(we,qO):c.getNodeCheckFlags(At)&128&&Gx(we,zO)),rn=we}return E=Mi,ir||(C=vi,L=Nn),rn}function on(At,vn){return uo(At)?t.updateBlock(At,Kn(At.statements,be,ka,vn)):t.converters.convertToFunctionBlock(D.checkDefined(lt(At,be,_3)))}function Qt(At){const vn=At&&DN(At);if(vn&&ff(vn)){const Ht=c.getTypeReferenceSerializationKind(vn);if(Ht===1||Ht===0)return vn}}function Pn(){v&1||(v|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240))}function Hn(At,vn,Ht){if(v&1&&Zi(vn)){const un=c.getNodeCheckFlags(vn)&384;if(un!==h){const ir=h;h=un,k(At,vn,Ht),h=ir;return}}else if(v&&I[hs(vn)]){const un=h;h=0,k(At,vn,Ht),h=un;return}k(At,vn,Ht)}function kn(At,vn){return vn=G(At,vn),At===1&&h?Zt(vn):vn}function Zt(At){switch(At.kind){case 208:return _r(At);case 209:return wi(At);case 210:return Qi(At)}return At}function _r(At){return At.expression.kind===106?ht(t.createPropertyAccessExpression(t.createUniqueName("_super",48),At.name),At):At}function wi(At){return At.expression.kind===106?Or(At.argumentExpression,At):At}function Qi(At){const vn=At.expression;if(hd(vn)){const Ht=Fr(vn)?_r(vn):wi(vn);return t.createCallExpression(t.createPropertyAccessExpression(Ht,"call"),void 0,[t.createThis(),...At.arguments])}return At}function Zi(At){const vn=At.kind;return vn===260||vn===173||vn===171||vn===174||vn===175}function Or(At,vn){return h&256?ht(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[At]),"value"),vn):ht(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[At]),vn)}}function CF(e,t,r,i){const o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((c,f)=>{const d=ra(f),v=[];v.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,sr(e.createPropertyAccessExpression(sr(e.createSuper(),8),d),8)))),o&&v.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(sr(e.createPropertyAccessExpression(sr(e.createSuper(),8),d),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(d,e.createObjectLiteralExpression(v)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(s,!0)]))],2))}var hFe=S({"src/compiler/transformers/es2017.ts"(){Na()}});function Pye(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,c=e.getEmitResolver(),f=e.getCompilerOptions(),d=ts(f),v=e.onEmitNode;e.onEmitNode=Mn;const h=e.onSubstituteNode;e.onSubstituteNode=Ar;let E=!1,C,L,I,O=0,k=0,G,V,H,ne;const Y=[];return rp(e,be);function $(pe,ie){return k!==(k&~pe|ie)}function M(pe,ie){const he=k;return k=(k&~pe|ie)&3,he}function de(pe){k=pe}function re(pe){V=Bn(V,t.createVariableDeclaration(pe))}function be(pe){if(pe.isDeclarationFile)return pe;G=pe;const ie=We(pe);return Ny(ie,e.readEmitHelpers()),G=void 0,V=void 0,ie}function ae(pe){return xe(pe,!1)}function W(pe){return xe(pe,!0)}function ce(pe){if(pe.kind!==132)return pe}function me(pe,ie,he,j){if($(he,j)){const He=M(he,j),Ze=pe(ie);return de(He),Ze}return pe(ie)}function Ee(pe){return Gn(pe,ae,e)}function xe(pe,ie){if(!(pe.transformFlags&128))return pe;switch(pe.kind){case 220:return te(pe);case 226:return Qe(pe);case 250:return Ve(pe);case 253:return Ge(pe);case 207:return Oe(pe);case 223:return st(pe,ie);case 357:return Ct(pe,ie);case 295:return Et(pe);case 240:return Vt(pe);case 257:return tt(pe);case 243:case 244:case 246:return me(Ee,pe,0,2);case 247:return Pn(pe,void 0);case 245:return me(on,pe,0,2);case 219:return Qt(pe);case 173:return me(Or,pe,2,1);case 171:return me(Ht,pe,2,1);case 174:return me(At,pe,2,1);case 175:return me(vn,pe,2,1);case 259:return me(un,pe,2,1);case 215:return me(cr,pe,2,1);case 216:return me(ir,pe,2,0);case 166:return Qi(pe);case 241:return Me(pe);case 214:return Ye(pe,ie);case 212:return Fe(pe);case 208:return H&&Fr(pe)&&pe.expression.kind===106&&H.add(pe.name.escapedText),Gn(pe,ae,e);case 209:return H&&pe.expression.kind===106&&(ne=!0),Gn(pe,ae,e);case 260:case 228:return me(Ee,pe,2,1);default:return Gn(pe,ae,e)}}function te(pe){return L&2&&L&1?Wr(ht(t.createYieldExpression(void 0,r().createAwaitHelper(lt(pe.expression,ae,vt))),pe),pe):Gn(pe,ae,e)}function Qe(pe){if(L&2&&L&1){if(pe.asteriskToken){const ie=lt(D.checkDefined(pe.expression),ae,vt);return Wr(ht(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(pe,pe.asteriskToken,ht(r().createAsyncDelegatorHelper(ht(r().createAsyncValuesHelper(ie),ie)),ie)))),pe),pe)}return Wr(ht(t.createYieldExpression(void 0,Zt(pe.expression?lt(pe.expression,ae,vt):t.createVoidZero())),pe),pe)}return Gn(pe,ae,e)}function Ve(pe){return L&2&&L&1?t.updateReturnStatement(pe,Zt(pe.expression?lt(pe.expression,ae,vt):t.createVoidZero())):Gn(pe,ae,e)}function Ge(pe){if(L&2){const ie=rq(pe);return ie.kind===247&&ie.awaitModifier?Pn(ie,pe):t.restoreEnclosingLabel(lt(ie,ae,ka,t.liftToBlock),pe)}return Gn(pe,ae,e)}function ze(pe){let ie;const he=[];for(const j of pe)if(j.kind===301){ie&&(he.push(t.createObjectLiteralExpression(ie)),ie=void 0);const He=j.expression;he.push(lt(He,ae,vt))}else ie=Bn(ie,j.kind===299?t.createPropertyAssignment(j.name,lt(j.initializer,ae,vt)):lt(j,ae,Ly));return ie&&he.push(t.createObjectLiteralExpression(ie)),he}function Oe(pe){if(pe.transformFlags&65536){const ie=ze(pe.properties);ie.length&&ie[0].kind!==207&&ie.unshift(t.createObjectLiteralExpression());let he=ie[0];if(ie.length>1){for(let j=1;j<ie.length;j++)he=r().createAssignHelper([he,ie[j]]);return he}else return r().createAssignHelper(ie)}return Gn(pe,ae,e)}function Me(pe){return Gn(pe,W,e)}function Ye(pe,ie){return Gn(pe,ie?W:ae,e)}function We(pe){const ie=M(2,zz(pe,f)?0:1);E=!1;const he=Gn(pe,ae,e),j=ya(he.statements,V&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(V))]),He=t.updateSourceFile(he,ht(t.createNodeArray(j),pe.statements));return de(ie),He}function Fe(pe){return fY(e,pe,ae,G,re,0)}function st(pe,ie){return Dy(pe)&&f8(pe.left)?ZT(pe,ae,e,1,!ie):pe.operatorToken.kind===27?t.updateBinaryExpression(pe,lt(pe.left,W,vt),pe.operatorToken,lt(pe.right,ie?W:ae,vt)):Gn(pe,ae,e)}function Ct(pe,ie){if(ie)return Gn(pe,W,e);let he;for(let He=0;He<pe.elements.length;He++){const Ze=pe.elements[He],Xe=lt(Ze,He<pe.elements.length-1?W:ae,vt);(he||Xe!==Ze)&&(he||(he=pe.elements.slice(0,He)),he.push(Xe))}const j=he?ht(t.createNodeArray(he),pe.elements):pe.elements;return t.updateCommaListExpression(pe,j)}function Et(pe){if(pe.variableDeclaration&&Ya(pe.variableDeclaration.name)&&pe.variableDeclaration.name.transformFlags&65536){const ie=t.getGeneratedNameForNode(pe.variableDeclaration.name),he=t.updateVariableDeclaration(pe.variableDeclaration,pe.variableDeclaration.name,void 0,void 0,ie),j=iE(he,ae,e,1);let He=lt(pe.block,ae,uo);return kt(j)&&(He=t.updateBlock(He,[t.createVariableStatement(void 0,j),...He.statements])),t.updateCatchClause(pe,t.updateVariableDeclaration(pe.variableDeclaration,ie,void 0,void 0,void 0),He)}return Gn(pe,ae,e)}function Vt(pe){if($r(pe,1)){const ie=E;E=!0;const he=Gn(pe,ae,e);return E=ie,he}return Gn(pe,ae,e)}function tt(pe){if(E){const ie=E;E=!1;const he=at(pe,!0);return E=ie,he}return at(pe,!1)}function at(pe,ie){return Ya(pe.name)&&pe.name.transformFlags&65536?iE(pe,ae,e,1,void 0,ie):Gn(pe,ae,e)}function on(pe){return t.updateForStatement(pe,lt(pe.initializer,W,rm),lt(pe.condition,ae,vt),lt(pe.incrementor,W,vt),I_(pe.statement,ae,e))}function Qt(pe){return Gn(pe,W,e)}function Pn(pe,ie){const he=M(0,2);(pe.initializer.transformFlags&65536||ZI(pe.initializer)&&f8(pe.initializer))&&(pe=Hn(pe));const j=pe.awaitModifier?_r(pe,ie,he):t.restoreEnclosingLabel(Gn(pe,ae,e),ie);return de(he),j}function Hn(pe){const ie=Ws(pe.initializer);if(Ju(ie)||ZI(ie)){let he,j;const He=t.createTempVariable(void 0),Ze=[DK(t,ie,He)];return uo(pe.statement)?(Ai(Ze,pe.statement.statements),he=pe.statement,j=pe.statement.statements):pe.statement&&(Bn(Ze,pe.statement),he=pe.statement,j=pe.statement),t.updateForOfStatement(pe,pe.awaitModifier,ht(t.createVariableDeclarationList([ht(t.createVariableDeclaration(He),pe.initializer)],1),pe.initializer),pe.expression,ht(t.createBlock(ht(t.createNodeArray(Ze),j),!0),he))}return pe}function kn(pe,ie,he){const j=t.createTempVariable(s),He=t.createAssignment(j,ie),Ze=t.createExpressionStatement(He);ps(Ze,pe.expression);const Xe=t.createAssignment(he,t.createFalse()),Ut=t.createExpressionStatement(Xe);ps(Ut,pe.expression);const ln=t.createAssignment(he,t.createTrue()),Sn=t.createExpressionStatement(ln);ps(Ut,pe.expression);const Er=[],ue=DK(t,pe.initializer,j);Er.push(lt(ue,ae,ka));let mt,Wt;const it=I_(pe.statement,ae,e);uo(it)?(Ai(Er,it.statements),mt=it,Wt=it.statements):Er.push(it);const K=sr(ht(t.createBlock(ht(t.createNodeArray(Er),Wt),!0),mt),864);return t.createBlock([Ze,Ut,t.createTryStatement(K,void 0,t.createBlock([Sn]))])}function Zt(pe){return L&1?t.createYieldExpression(void 0,r().createAwaitHelper(pe)):t.createAwaitExpression(pe)}function _r(pe,ie,he){const j=lt(pe.expression,ae,vt),He=je(j)?t.getGeneratedNameForNode(j):t.createTempVariable(void 0),Ze=je(j)?t.getGeneratedNameForNode(He):t.createTempVariable(void 0),Xe=t.createTempVariable(void 0),Ut=t.createTempVariable(s),ln=t.createUniqueName("e"),Sn=t.getGeneratedNameForNode(ln),Er=t.createTempVariable(void 0),ue=ht(r().createAsyncValuesHelper(j),pe.expression),mt=t.createCallExpression(t.createPropertyAccessExpression(He,"next"),void 0,[]),Wt=t.createPropertyAccessExpression(Ze,"done"),it=t.createPropertyAccessExpression(Ze,"value"),K=t.createFunctionCallCall(Er,He,[]);s(ln),s(Er);const Pe=he&2?t.inlineExpressions([t.createAssignment(ln,t.createVoidZero()),ue]):ue,ee=sr(ht(t.createForStatement(sr(ht(t.createVariableDeclarationList([t.createVariableDeclaration(Xe,void 0,void 0,t.createTrue()),ht(t.createVariableDeclaration(He,void 0,void 0,Pe),pe.expression),t.createVariableDeclaration(Ze)]),pe.expression),4194304),t.inlineExpressions([t.createAssignment(Ze,Zt(mt)),t.createAssignment(Ut,Wt),t.createLogicalNot(Ut)]),void 0,kn(pe,it,Xe)),pe),512);return Wr(ee,pe),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(ee,ie)]),t.createCatchClause(t.createVariableDeclaration(Sn),sr(t.createBlock([t.createExpressionStatement(t.createAssignment(ln,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Sn)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([sr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(Xe),t.createLogicalNot(Ut)),t.createAssignment(Er,t.createPropertyAccessExpression(He,"return"))),t.createExpressionStatement(Zt(K))),1)]),void 0,sr(t.createBlock([sr(t.createIfStatement(ln,t.createThrowStatement(t.createPropertyAccessExpression(ln,"error"))),1)]),1))]))}function wi(pe){return D.assertNode(pe,Fa),Qi(pe)}function Qi(pe){return I!=null&&I.has(pe)?t.updateParameterDeclaration(pe,void 0,pe.dotDotDotToken,Ya(pe.name)?t.getGeneratedNameForNode(pe):pe.name,void 0,void 0,void 0):pe.transformFlags&65536?t.updateParameterDeclaration(pe,void 0,pe.dotDotDotToken,t.getGeneratedNameForNode(pe),void 0,void 0,lt(pe.initializer,ae,vt)):Gn(pe,ae,e)}function Zi(pe){let ie;for(const he of pe.parameters)ie?ie.add(he):he.transformFlags&65536&&(ie=new Set);return ie}function Or(pe){const ie=L,he=I;L=Jc(pe),I=Zi(pe);const j=t.updateConstructorDeclaration(pe,pe.modifiers,Ql(pe.parameters,wi,e),vi(pe));return L=ie,I=he,j}function At(pe){const ie=L,he=I;L=Jc(pe),I=Zi(pe);const j=t.updateGetAccessorDeclaration(pe,pe.modifiers,lt(pe.name,ae,El),Ql(pe.parameters,wi,e),void 0,vi(pe));return L=ie,I=he,j}function vn(pe){const ie=L,he=I;L=Jc(pe),I=Zi(pe);const j=t.updateSetAccessorDeclaration(pe,pe.modifiers,lt(pe.name,ae,El),Ql(pe.parameters,wi,e),vi(pe));return L=ie,I=he,j}function Ht(pe){const ie=L,he=I;L=Jc(pe),I=Zi(pe);const j=t.updateMethodDeclaration(pe,L&1?Kn(pe.modifiers,ce,il):pe.modifiers,L&2?void 0:pe.asteriskToken,lt(pe.name,ae,El),lt(void 0,ae,Kv),void 0,Ql(pe.parameters,wi,e),void 0,L&2&&L&1?Mi(pe):vi(pe));return L=ie,I=he,j}function un(pe){const ie=L,he=I;L=Jc(pe),I=Zi(pe);const j=t.updateFunctionDeclaration(pe,L&1?Kn(pe.modifiers,ce,_o):pe.modifiers,L&2?void 0:pe.asteriskToken,pe.name,void 0,Ql(pe.parameters,wi,e),void 0,L&2&&L&1?Mi(pe):vi(pe));return L=ie,I=he,j}function ir(pe){const ie=L,he=I;L=Jc(pe),I=Zi(pe);const j=t.updateArrowFunction(pe,pe.modifiers,void 0,Ql(pe.parameters,wi,e),void 0,pe.equalsGreaterThanToken,vi(pe));return L=ie,I=he,j}function cr(pe){const ie=L,he=I;L=Jc(pe),I=Zi(pe);const j=t.updateFunctionExpression(pe,L&1?Kn(pe.modifiers,ce,_o):pe.modifiers,L&2?void 0:pe.asteriskToken,pe.name,void 0,Ql(pe.parameters,wi,e),void 0,L&2&&L&1?Mi(pe):vi(pe));return L=ie,I=he,j}function Mi(pe){i();const ie=[],he=t.copyPrologue(pe.body.statements,ie,!1,ae);Nn(ie,pe);const j=H,He=ne;H=new Set,ne=!1;const Ze=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(41),pe.name&&t.getGeneratedNameForNode(pe.name),void 0,[],void 0,t.updateBlock(pe.body,yF(pe.body.statements,ae,e,he))),!!(k&1))),Xe=d>=2&&c.getNodeCheckFlags(pe)&384;if(Xe){rn();const ln=CF(t,c,pe,H);Y[hs(ln)]=!0,Wm(ie,[ln])}ie.push(Ze),Wm(ie,o());const Ut=t.updateBlock(pe.body,ie);return Xe&&ne&&(c.getNodeCheckFlags(pe)&256?Gx(Ut,qO):c.getNodeCheckFlags(pe)&128&&Gx(Ut,zO)),H=j,ne=He,Ut}function vi(pe){var ie;i();let he=0;const j=[],He=(ie=lt(pe.body,ae,_3))!=null?ie:t.createBlock([]);uo(He)&&(he=t.copyPrologue(He.statements,j,!1,ae)),Ai(j,Nn(void 0,pe));const Ze=o();if(he>0||kt(j)||kt(Ze)){const Xe=t.converters.convertToFunctionBlock(He,!0);return Wm(j,Ze),Ai(j,Xe.statements.slice(he)),t.updateBlock(Xe,ht(t.createNodeArray(j),Xe.statements))}return He}function Nn(pe,ie){let he=!1;for(const j of ie.parameters)if(he){if(Ya(j.name)){if(j.name.elements.length>0){const He=iE(j,ae,e,0,t.getGeneratedNameForNode(j));if(kt(He)){const Ze=t.createVariableDeclarationList(He),Xe=t.createVariableStatement(void 0,Ze);sr(Xe,2097152),pe=Bn(pe,Xe)}}else if(j.initializer){const He=t.getGeneratedNameForNode(j),Ze=lt(j.initializer,ae,vt),Xe=t.createAssignment(He,Ze),Ut=t.createExpressionStatement(Xe);sr(Ut,2097152),pe=Bn(pe,Ut)}}else if(j.initializer){const He=t.cloneNode(j.name);ht(He,j.name),sr(He,96);const Ze=lt(j.initializer,ae,vt);cm(Ze,3168);const Xe=t.createAssignment(He,Ze);ht(Xe,j),sr(Xe,3072);const Ut=t.createBlock([t.createExpressionStatement(Xe)]);ht(Ut,j),sr(Ut,3905);const ln=t.createTypeCheck(t.cloneNode(j.name),"undefined"),Sn=t.createIfStatement(ln,Ut);Ku(Sn),ht(Sn,j),sr(Sn,2101056),pe=Bn(pe,Sn)}}else if(j.transformFlags&65536){he=!0;const He=iE(j,ae,e,1,t.getGeneratedNameForNode(j),!1,!0);if(kt(He)){const Ze=t.createVariableDeclarationList(He),Xe=t.createVariableStatement(void 0,Ze);sr(Xe,2097152),pe=Bn(pe,Xe)}}return pe}function rn(){C&1||(C|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240))}function Mn(pe,ie,he){if(C&1&&Ce(ie)){const j=c.getNodeCheckFlags(ie)&384;if(j!==O){const He=O;O=j,v(pe,ie,he),O=He;return}}else if(C&&Y[hs(ie)]){const j=O;O=0,v(pe,ie,he),O=j;return}v(pe,ie,he)}function Ar(pe,ie){return ie=h(pe,ie),pe===1&&O?Hr(ie):ie}function Hr(pe){switch(pe.kind){case 208:return we(pe);case 209:return yt(pe);case 210:return Nt(pe)}return pe}function we(pe){return pe.expression.kind===106?ht(t.createPropertyAccessExpression(t.createUniqueName("_super",48),pe.name),pe):pe}function yt(pe){return pe.expression.kind===106?pt(pe.argumentExpression,pe):pe}function Nt(pe){const ie=pe.expression;if(hd(ie)){const he=Fr(ie)?we(ie):yt(ie);return t.createCallExpression(t.createPropertyAccessExpression(he,"call"),void 0,[t.createThis(),...pe.arguments])}return pe}function Ce(pe){const ie=pe.kind;return ie===260||ie===173||ie===171||ie===174||ie===175}function pt(pe,ie){return O&256?ht(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[pe]),"value"),ie):ht(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[pe]),ie)}}var gFe=S({"src/compiler/transformers/es2018.ts"(){Na()}});function Mye(e){const t=e.factory;return rp(e,r);function r(s){return s.isDeclarationFile?s:Gn(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 295:return o(s);default:return Gn(s,i,e)}}function o(s){return s.variableDeclaration?Gn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),lt(s.block,i,uo))}}var yFe=S({"src/compiler/transformers/es2019.ts"(){Na()}});function Fye(e){const{factory:t,hoistVariableDeclaration:r}=e;return rp(e,i);function i(I){return I.isDeclarationFile?I:Gn(I,o,e)}function o(I){if(!(I.transformFlags&32))return I;switch(I.kind){case 210:{const O=d(I,!1);return D.assertNotNode(O,$x),O}case 208:case 209:if(xu(I)){const O=h(I,!1,!1);return D.assertNotNode(O,$x),O}return Gn(I,o,e);case 223:return I.operatorToken.kind===60?C(I):Gn(I,o,e);case 217:return L(I);default:return Gn(I,o,e)}}function s(I){D.assertNotNode(I,s3);const O=[I];for(;!I.questionDotToken&&!VT(I);)I=so(W_(I.expression),xu),D.assertNotNode(I,s3),O.unshift(I);return{expression:I.expression,chain:O}}function c(I,O,k){const G=v(I.expression,O,k);return $x(G)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(I,G.expression),G.thisArg):t.updateParenthesizedExpression(I,G)}function f(I,O,k){if(xu(I))return h(I,O,k);let G=lt(I.expression,o,vt);D.assertNotNode(G,$x);let V;return O&&(rE(G)?V=G:(V=t.createTempVariable(r),G=t.createAssignment(V,G))),G=I.kind===208?t.updatePropertyAccessExpression(I,G,lt(I.name,o,je)):t.updateElementAccessExpression(I,G,lt(I.argumentExpression,o,vt)),V?t.createSyntheticReferenceExpression(G,V):G}function d(I,O){if(xu(I))return h(I,O,!1);if(Jd(I.expression)&&xu(Ws(I.expression))){const k=c(I.expression,!0,!1),G=Kn(I.arguments,o,vt);return $x(k)?ht(t.createFunctionCallCall(k.expression,k.thisArg,G),I):t.updateCallExpression(I,k,void 0,G)}return Gn(I,o,e)}function v(I,O,k){switch(I.kind){case 214:return c(I,O,k);case 208:case 209:return f(I,O,k);case 210:return d(I,O);default:return lt(I,o,vt)}}function h(I,O,k){const{expression:G,chain:V}=s(I),H=v(W_(G),gT(V[0]),!1);let ne=$x(H)?H.thisArg:void 0,Y=$x(H)?H.expression:H,$=t.restoreOuterExpressions(G,Y,8);rE(Y)||(Y=t.createTempVariable(r),$=t.createAssignment(Y,$));let M=Y,de;for(let be=0;be<V.length;be++){const ae=V[be];switch(ae.kind){case 208:case 209:be===V.length-1&&O&&(rE(M)?de=M:(de=t.createTempVariable(r),M=t.createAssignment(de,M))),M=ae.kind===208?t.createPropertyAccessExpression(M,lt(ae.name,o,je)):t.createElementAccessExpression(M,lt(ae.argumentExpression,o,vt));break;case 210:be===0&&ne?(Ll(ne)||(ne=t.cloneNode(ne),cm(ne,3072)),M=t.createFunctionCallCall(M,ne.kind===106?t.createThis():ne,Kn(ae.arguments,o,vt))):M=t.createCallExpression(M,void 0,Kn(ae.arguments,o,vt));break}Wr(M,ae)}const re=k?t.createConditionalExpression(E($,Y,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(M)):t.createConditionalExpression(E($,Y,!0),void 0,t.createVoidZero(),void 0,M);return ht(re,I),de?t.createSyntheticReferenceExpression(re,de):re}function E(I,O,k){return t.createBinaryExpression(t.createBinaryExpression(I,t.createToken(k?36:37),t.createNull()),t.createToken(k?56:55),t.createBinaryExpression(O,t.createToken(k?36:37),t.createVoidZero()))}function C(I){let O=lt(I.left,o,vt),k=O;return rE(O)||(k=t.createTempVariable(r),O=t.createAssignment(k,O)),ht(t.createConditionalExpression(E(O,k),void 0,k,void 0,lt(I.right,o,vt)),I)}function L(I){return xu(Ws(I.expression))?Wr(v(I.expression,!1,!0),I):t.updateDeleteExpression(I,lt(I.expression,o,vt))}}var vFe=S({"src/compiler/transformers/es2020.ts"(){Na()}});function Bye(e){const{hoistVariableDeclaration:t,factory:r}=e;return rp(e,i);function i(c){return c.isDeclarationFile?c:Gn(c,o,e)}function o(c){return c.transformFlags&16?Vq(c)?s(c):Gn(c,o,e):c}function s(c){const f=c.operatorToken,d=xw(f.kind);let v=Ws(lt(c.left,o,Id)),h=v;const E=Ws(lt(c.right,o,vt));if(dl(v)){const C=rE(v.expression),L=C?v.expression:r.createTempVariable(t),I=C?v.expression:r.createAssignment(L,v.expression);if(Fr(v))h=r.createPropertyAccessExpression(L,v.name),v=r.createPropertyAccessExpression(I,v.name);else{const O=rE(v.argumentExpression),k=O?v.argumentExpression:r.createTempVariable(t);h=r.createElementAccessExpression(L,k),v=r.createElementAccessExpression(I,O?v.argumentExpression:r.createAssignment(k,v.argumentExpression))}}return r.createBinaryExpression(v,d,r.createParenthesizedExpression(r.createAssignment(h,E)))}}var bFe=S({"src/compiler/transformers/es2021.ts"(){Na()}});function Gye(e){return rp(e,t);function t(i){return i.isDeclarationFile?i:Gn(i,r,e)}function r(i){if(!(i.transformFlags&4))return i;switch(i.kind){default:return Gn(i,r,e)}}}var EFe=S({"src/compiler/transformers/esnext.ts"(){Na()}});function Uye(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let o,s;return rp(e,E);function c(){if(s.filenameDeclaration)return s.filenameDeclaration.name;const Fe=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=Fe,s.filenameDeclaration.name}function f(Fe){return i.jsx===5?"jsxDEV":Fe?"jsxs":"jsx"}function d(Fe){const st=f(Fe);return h(st)}function v(){return h("Fragment")}function h(Fe){var st,Ct;const Et=Fe==="createElement"?s.importSpecifier:g7(s.importSpecifier,i),Vt=(Ct=(st=s.utilizedImplicitRuntimeImports)==null?void 0:st.get(Et))==null?void 0:Ct.get(Fe);if(Vt)return Vt.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let tt=s.utilizedImplicitRuntimeImports.get(Et);tt||(tt=new Map,s.utilizedImplicitRuntimeImports.set(Et,tt));const at=t.createUniqueName(`_${Fe}`,112),on=t.createImportSpecifier(!1,t.createIdentifier(Fe),at);return Xpe(at,on),tt.set(Fe,on),at}function E(Fe){if(Fe.isDeclarationFile)return Fe;o=Fe,s={},s.importSpecifier=h7(i,Fe);let st=Gn(Fe,C,e);Ny(st,e.readEmitHelpers());let Ct=st.statements;if(s.filenameDeclaration&&(Ct=R1(Ct.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(const[Et,Vt]of No(s.utilizedImplicitRuntimeImports.entries()))if(rc(Fe)){const tt=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(No(Vt.values()))),t.createStringLiteral(Et),void 0);Jv(tt,!1),Ct=R1(Ct.slice(),tt)}else if(mf(Fe)){const tt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(No(Vt.values(),at=>t.createBindingElement(void 0,at.propertyName,at.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Et)]))],2));Jv(tt,!1),Ct=R1(Ct.slice(),tt)}}return Ct!==st.statements&&(st=t.updateSourceFile(st,Ct)),s=void 0,st}function C(Fe){return Fe.transformFlags&2?L(Fe):Fe}function L(Fe){switch(Fe.kind){case 281:return G(Fe,!1);case 282:return V(Fe,!1);case 285:return H(Fe,!1);case 291:return We(Fe);default:return Gn(Fe,C,e)}}function I(Fe){switch(Fe.kind){case 11:return Qe(Fe);case 291:return We(Fe);case 281:return G(Fe,!0);case 282:return V(Fe,!0);case 285:return H(Fe,!0);default:return D.failBadSyntaxKind(Fe)}}function O(Fe){let st=!1;for(const Ct of Fe.attributes.properties)if(WT(Ct))st=!0;else if(st&&fm(Ct)&&Ct.name.escapedText==="key")return!0;return!1}function k(Fe){return s.importSpecifier===void 0||O(Fe)}function G(Fe,st){return(k(Fe.openingElement)?de:$)(Fe.openingElement,Fe.children,st,Fe)}function V(Fe,st){return(k(Fe)?de:$)(Fe,void 0,st,Fe)}function H(Fe,st){return(s.importSpecifier===void 0?be:re)(Fe.openingFragment,Fe.children,st,Fe)}function ne(Fe){const st=Y(Fe);return st&&t.createObjectLiteralExpression([st])}function Y(Fe){const st=aO(Fe);if(Le(st)===1&&!st[0].dotDotDotToken){const Et=I(st[0]);return Et&&t.createPropertyAssignment("children",Et)}const Ct=pa(Fe,I);return Le(Ct)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(Ct)):void 0}function $(Fe,st,Ct,Et){const Vt=Me(Fe),tt=st&&st.length?Y(st):void 0,at=In(Fe.attributes.properties,Pn=>!!Pn.name&&je(Pn.name)&&Pn.name.escapedText==="key"),on=at?yn(Fe.attributes.properties,Pn=>Pn!==at):Fe.attributes.properties,Qt=Le(on)?W(on,tt):t.createObjectLiteralExpression(tt?[tt]:rt);return M(Vt,Qt,at,st||rt,Ct,Et)}function M(Fe,st,Ct,Et,Vt,tt){var at;const on=aO(Et),Qt=Le(on)>1||!!((at=on[0])!=null&&at.dotDotDotToken),Pn=[Fe,st];if(Ct&&Pn.push(te(Ct.initializer)),i.jsx===5){const kn=Cl(o);if(kn&&Ji(kn)){Ct===void 0&&Pn.push(t.createVoidZero()),Pn.push(Qt?t.createTrue():t.createFalse());const Zt=cl(kn,tt.pos);Pn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",c()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Zt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Zt.character+1))])),Pn.push(t.createThis())}}const Hn=ht(t.createCallExpression(d(Qt),void 0,Pn),tt);return Vt&&Ku(Hn),Hn}function de(Fe,st,Ct,Et){const Vt=Me(Fe),tt=Fe.attributes.properties,at=Le(tt)?W(tt):t.createNull(),on=s.importSpecifier===void 0?wK(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,Fe):h("createElement"),Qt=Lme(t,on,Vt,at,pa(st,I),Et);return Ct&&Ku(Qt),Qt}function re(Fe,st,Ct,Et){let Vt;if(st&&st.length){const tt=ne(st);tt&&(Vt=tt)}return M(v(),Vt||t.createObjectLiteralExpression([]),void 0,st,Ct,Et)}function be(Fe,st,Ct,Et){const Vt=Ime(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,pa(st,I),Fe,Et);return Ct&&Ku(Vt),Vt}function ae(Fe){return t.createSpreadAssignment(D.checkDefined(lt(Fe.expression,C,vt)))}function W(Fe,st){const Ct=ts(i);return Ct&&Ct>=5?t.createObjectLiteralExpression(ce(Fe,st)):me(Fe,st)}function ce(Fe,st){const Ct=Ds(dM(Fe,WT,(Et,Vt)=>zt(Et,tt=>Vt?ae(tt):xe(tt))));return st&&Ct.push(st),Ct}function me(Fe,st){const Ct=Ds(dM(Fe,WT,(Et,Vt)=>Vt?zt(Et,Ee):t.createObjectLiteralExpression(zt(Et,xe))));return WT(Fe[0])&&Ct.unshift(t.createObjectLiteralExpression()),st&&Ct.push(t.createObjectLiteralExpression([st])),Om(Ct)||r().createAssignHelper(Ct)}function Ee(Fe){return D.checkDefined(lt(Fe.expression,C,vt))}function xe(Fe){const st=Ye(Fe),Ct=te(Fe.initializer);return t.createPropertyAssignment(st,Ct)}function te(Fe){if(Fe===void 0)return t.createTrue();if(Fe.kind===10){const st=Fe.singleQuote!==void 0?Fe.singleQuote:!W3(Fe,o),Ct=t.createStringLiteral(Oe(Fe.text)||Fe.text,st);return ht(Ct,Fe)}return Fe.kind===291?Fe.expression===void 0?t.createTrue():D.checkDefined(lt(Fe.expression,C,vt)):Fy(Fe)?G(Fe,!1):Qx(Fe)?V(Fe,!1):e2(Fe)?H(Fe,!1):D.failBadSyntaxKind(Fe)}function Qe(Fe){const st=Ve(Fe.text);return st===void 0?void 0:t.createStringLiteral(st)}function Ve(Fe){let st,Ct=0,Et=-1;for(let Vt=0;Vt<Fe.length;Vt++){const tt=Fe.charCodeAt(Vt);Tu(tt)?(Ct!==-1&&Et!==-1&&(st=Ge(st,Fe.substr(Ct,Et-Ct+1))),Ct=-1):Um(tt)||(Et=Vt,Ct===-1&&(Ct=Vt))}return Ct!==-1?Ge(st,Fe.substr(Ct)):st}function Ge(Fe,st){const Ct=ze(st);return Fe===void 0?Ct:Fe+" "+Ct}function ze(Fe){return Fe.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(st,Ct,Et,Vt,tt,at,on)=>{if(tt)return HI(parseInt(tt,10));if(at)return HI(parseInt(at,16));{const Qt=Vye.get(on);return Qt?HI(Qt):st}})}function Oe(Fe){const st=ze(Fe);return st===Fe?void 0:st}function Me(Fe){if(Fe.kind===281)return Me(Fe.openingElement);{const st=Fe.tagName;return je(st)&&yk(st.escapedText)?t.createStringLiteral(Mr(st)):o8(t,st)}}function Ye(Fe){const st=Fe.name,Ct=Mr(st);return/^[A-Za-z_]\w*$/.test(Ct)?st:t.createStringLiteral(Ct)}function We(Fe){const st=lt(Fe.expression,C,vt);return Fe.dotDotDotToken?t.createSpreadElement(st):st}}var Vye,TFe=S({"src/compiler/transformers/jsx.ts"(){Na(),Vye=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function jye(e){const{factory:t,hoistVariableDeclaration:r}=e;return rp(e,i);function i(d){return d.isDeclarationFile?d:Gn(d,o,e)}function o(d){if(!(d.transformFlags&512))return d;switch(d.kind){case 223:return s(d);default:return Gn(d,o,e)}}function s(d){switch(d.operatorToken.kind){case 67:return c(d);case 42:return f(d);default:return Gn(d,o,e)}}function c(d){let v,h;const E=lt(d.left,o,vt),C=lt(d.right,o,vt);if(fl(E)){const L=t.createTempVariable(r),I=t.createTempVariable(r);v=ht(t.createElementAccessExpression(ht(t.createAssignment(L,E.expression),E.expression),ht(t.createAssignment(I,E.argumentExpression),E.argumentExpression)),E),h=ht(t.createElementAccessExpression(L,I),E)}else if(Fr(E)){const L=t.createTempVariable(r);v=ht(t.createPropertyAccessExpression(ht(t.createAssignment(L,E.expression),E.expression),E.name),E),h=ht(t.createPropertyAccessExpression(L,E.name),E)}else v=E,h=E;return ht(t.createAssignment(v,ht(t.createGlobalMethodCall("Math","pow",[h,C]),d)),d)}function f(d){const v=lt(d.left,o,vt),h=lt(d.right,o,vt);return ht(t.createGlobalMethodCall("Math","pow",[v,h]),d)}}var SFe=S({"src/compiler/transformers/es2016.ts"(){Na()}});function Hye(e,t){return{kind:e,expression:t}}function Wye(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:c}=e,f=e.getCompilerOptions(),d=e.getEmitResolver(),v=e.onSubstituteNode,h=e.onEmitNode;e.onEmitNode=vd,e.onSubstituteNode=ml;let E,C,L,I;function O(oe){I=Bn(I,t.createVariableDeclaration(oe))}let k,G;return rp(e,V);function V(oe){if(oe.isDeclarationFile)return oe;E=oe,C=oe.text;const ut=ce(oe);return Ny(ut,e.readEmitHelpers()),E=void 0,C=void 0,I=void 0,L=0,ut}function H(oe,ut){const Mt=L;return L=(L&~oe|ut)&32767,Mt}function ne(oe,ut,Mt){L=(L&~ut|Mt)&-32768|oe}function Y(oe){return(L&8192)!==0&&oe.kind===250&&!oe.expression}function $(oe){return oe.transformFlags&4194304&&(Ip(oe)||jT(oe)||mme(oe)||ZO(oe)||t8(oe)||ow(oe)||r8(oe)||e8(oe)||jC(oe)||Y1(oe)||Bv(oe,!1)||uo(oe))}function M(oe){return(oe.transformFlags&1024)!==0||k!==void 0||L&8192&&$(oe)||Bv(oe,!1)&&li(oe)||(z_(oe)&1)!==0}function de(oe){return M(oe)?W(oe,!1):oe}function re(oe){return M(oe)?W(oe,!0):oe}function be(oe){if(M(oe)){const ut=Cl(oe);if(ro(ut)&&Sc(ut)){const Mt=H(32670,16449),Pt=W(oe,!1);return ne(Mt,98304,0),Pt}return W(oe,!1)}return oe}function ae(oe){return oe.kind===106?pl(!0):de(oe)}function W(oe,ut){switch(oe.kind){case 124:return;case 260:return Oe(oe);case 228:return Me(oe);case 166:return Pn(oe);case 259:return rn(oe);case 216:return vi(oe);case 215:return Nn(oe);case 257:return Ze(oe);case 79:return Ge(oe);case 258:return ie(oe);case 252:return me(oe);case 266:return Ee(oe);case 238:return Hr(oe,!1);case 249:case 248:return ze(oe);case 253:return ln(oe);case 243:case 244:return ue(oe,void 0);case 245:return mt(oe,void 0);case 246:return it(oe,void 0);case 247:return K(oe,void 0);case 241:return we(oe);case 207:return Rt(oe);case 295:return dc(oe);case 300:return nl(oe);case 164:return Ys(oe);case 206:return zl(oe);case 210:return wu(oe);case 211:return jt(oe);case 214:return yt(oe,ut);case 223:return Nt(oe,ut);case 357:return Ce(oe,ut);case 14:case 15:case 16:case 17:return ba(oe);case 10:return ls(oe);case 8:return go(oe);case 212:return Wo(oe);case 225:return $a(oe);case 226:return nn(oe);case 227:return Pr(oe);case 106:return pl(!1);case 108:return Qe(oe);case 233:return yc(oe);case 171:return Ns(oe);case 174:case 175:return vl(oe);case 240:return pe(oe);case 250:return te(oe);case 219:return Ve(oe);default:return Gn(oe,de,e)}}function ce(oe){const ut=H(8064,64),Mt=[],Pt=[];i();const cn=t.copyPrologue(oe.statements,Mt,!1,de);return Ai(Pt,Kn(oe.statements,de,ka,cn)),I&&Pt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(I))),t.mergeLexicalEnvironment(Mt,s()),Zi(Mt,oe),ne(ut,0,0),t.updateSourceFile(oe,ht(t.createNodeArray(ya(Mt,Pt)),oe.statements))}function me(oe){if(k!==void 0){const ut=k.allowedNonLabeledJumps;k.allowedNonLabeledJumps|=2;const Mt=Gn(oe,de,e);return k.allowedNonLabeledJumps=ut,Mt}return Gn(oe,de,e)}function Ee(oe){const ut=H(7104,0),Mt=Gn(oe,de,e);return ne(ut,0,0),Mt}function xe(oe){return Wr(t.createReturnStatement(t.createUniqueName("_this",48)),oe)}function te(oe){return k?(k.nonLocalJumps|=8,Y(oe)&&(oe=xe(oe)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),oe.expression?D.checkDefined(lt(oe.expression,de,vt)):t.createVoidZero())]))):Y(oe)?xe(oe):Gn(oe,de,e)}function Qe(oe){return L&2&&!(L&16384)&&(L|=65536),k?L&2?(k.containsLexicalThis=!0,oe):k.thisName||(k.thisName=t.createUniqueName("this")):oe}function Ve(oe){return Gn(oe,re,e)}function Ge(oe){return k&&d.isArgumentsLocalBinding(oe)?k.argumentsName||(k.argumentsName=t.createUniqueName("arguments")):oe.flags&128?Wr(ht(t.createIdentifier(ra(oe.escapedText)),oe),oe):oe}function ze(oe){if(k){const ut=oe.kind===249?2:4;if(!(oe.label&&k.labels&&k.labels.get(Mr(oe.label))||!oe.label&&k.allowedNonLabeledJumps&ut)){let Pt;const cn=oe.label;cn?oe.kind===249?(Pt=`break-${cn.escapedText}`,Hl(k,!0,Mr(cn),Pt)):(Pt=`continue-${cn.escapedText}`,Hl(k,!1,Mr(cn),Pt)):oe.kind===249?(k.nonLocalJumps|=2,Pt="break"):(k.nonLocalJumps|=4,Pt="continue");let jn=t.createStringLiteral(Pt);if(k.loopOutParameters.length){const Dr=k.loopOutParameters;let ii;for(let Fi=0;Fi<Dr.length;Fi++){const ja=ic(Dr[Fi],1);Fi===0?ii=ja:ii=t.createBinaryExpression(ii,27,ja)}jn=t.createBinaryExpression(ii,27,jn)}return t.createReturnStatement(jn)}}return Gn(oe,de,e)}function Oe(oe){const ut=t.createVariableDeclaration(t.getLocalName(oe,!0),void 0,void 0,Ye(oe));Wr(ut,oe);const Mt=[],Pt=t.createVariableStatement(void 0,t.createVariableDeclarationList([ut]));if(Wr(Pt,oe),ht(Pt,oe),Ku(Pt),Mt.push(Pt),$r(oe,1)){const jn=$r(oe,1024)?t.createExportDefault(t.getLocalName(oe)):t.createExternalModuleExport(t.getLocalName(oe));Wr(jn,Pt),Mt.push(jn)}const cn=bo(oe);return cn&8388608||(Mt.push(t.createEndOfDeclarationMarker(oe)),sr(Pt,cn|8388608)),Pm(Mt)}function Me(oe){return Ye(oe)}function Ye(oe){oe.name&&Ts();const ut=G1(oe),Mt=t.createFunctionExpression(void 0,void 0,void 0,void 0,ut?[t.createParameterDeclaration(void 0,void 0,t.createUniqueName("_super",48))]:[],void 0,We(oe,ut));sr(Mt,bo(oe)&131072|1048576);const Pt=t.createPartiallyEmittedExpression(Mt);xC(Pt,oe.end),sr(Pt,3072);const cn=t.createPartiallyEmittedExpression(Pt);xC(cn,Xo(C,oe.pos)),sr(cn,3072);const jn=t.createParenthesizedExpression(t.createCallExpression(cn,void 0,ut?[D.checkDefined(lt(ut.expression,de,vt))]:[]));return VO(jn,3,"* @class "),jn}function We(oe,ut){const Mt=[],Pt=t.getInternalName(oe),cn=$3(Pt)?t.getGeneratedNameForNode(Pt):Pt;i(),Fe(Mt,oe,ut),st(Mt,oe,cn,ut),Ht(Mt,oe);const jn=qq(Xo(C,oe.members.end),19),Dr=t.createPartiallyEmittedExpression(cn);xC(Dr,jn.end),sr(Dr,3072);const ii=t.createReturnStatement(Dr);Gk(ii,jn.pos),sr(ii,3840),Mt.push(ii),Wm(Mt,s());const Fi=t.createBlock(ht(t.createNodeArray(Mt),oe.members),!0);return sr(Fi,3072),Fi}function Fe(oe,ut,Mt){Mt&&oe.push(ht(t.createExpressionStatement(r().createExtendsHelper(t.getInternalName(ut))),Mt))}function st(oe,ut,Mt,Pt){const cn=k;k=void 0;const jn=H(32662,73),Dr=Dh(ut),ii=Io(Dr,Pt!==void 0),Fi=t.createFunctionDeclaration(void 0,void 0,Mt,void 0,Ct(Dr,ii),void 0,Vt(Dr,ut,Pt,ii));ht(Fi,Dr||ut),Pt&&sr(Fi,16),oe.push(Fi),ne(jn,98304,0),k=cn}function Ct(oe,ut){return Ql(oe&&!ut?oe.parameters:void 0,de,e)||[]}function Et(oe,ut){const Mt=[];o(),t.mergeLexicalEnvironment(Mt,s()),ut&&Mt.push(t.createReturnStatement(Qt()));const Pt=t.createNodeArray(Mt);ht(Pt,oe.members);const cn=t.createBlock(Pt,!0);return ht(cn,oe),sr(cn,3072),cn}function Vt(oe,ut,Mt,Pt){const cn=!!Mt&&Cu(Mt.expression).kind!==104;if(!oe)return Et(ut,cn);const jn=[],Dr=[];o();const ii=TM(oe.body.statements,Ap),{superCall:Fi,superStatementIndex:ja}=tt(oe.body.statements,ii),zo=ja===-1?ii.length:ja+1;let Ss=zo;Pt||(Ss=t.copyStandardPrologue(oe.body.statements,jn,Ss,!1)),Pt||(Ss=t.copyCustomPrologue(oe.body.statements,Dr,Ss,de,void 0));let $s;if(Pt?$s=Qt():Fi&&($s=fe(Fi)),$s&&(L|=8192),kn(jn,oe),Qi(jn,oe,Pt),Ai(Dr,Kn(oe.body.statements,de,ka,Ss)),t.mergeLexicalEnvironment(jn,s()),vn(jn,oe,!1),cn||$s)if($s&&zo===oe.body.statements.length&&!(oe.body.transformFlags&16384)){const Ef=so(so($s,br).left,io),ac=t.createReturnStatement($s);Xc(ac,$m(Ef)),sr(Ef,3072),Dr.push(ac)}else ja<=ii.length?At(Dr,oe,$s||on()):(At(jn,oe,on()),$s&&Or(Dr,$s)),at(oe.body)||Dr.push(t.createReturnStatement(t.createUniqueName("_this",48)));else Zi(jn,oe);const bd=t.createBlock(ht(t.createNodeArray([...ii,...jn,...ja<=ii.length?rt:Kn(oe.body.statements,de,ka,ii.length,ja-ii.length),...Dr]),oe.body.statements),!0);return ht(bd,oe.body),bd}function tt(oe,ut){for(let Mt=ut.length;Mt<oe.length;Mt+=1){const Pt=iY(oe[Mt]);if(Pt)return{superCall:Pt,superStatementIndex:Mt}}return{superStatementIndex:-1}}function at(oe){if(oe.kind===250)return!0;if(oe.kind===242){const ut=oe;if(ut.elseStatement)return at(ut.thenStatement)&&at(ut.elseStatement)}else if(oe.kind===238){const ut=rl(oe.statements);if(ut&&at(ut))return!0}return!1}function on(){return sr(t.createThis(),8)}function Qt(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(t.createUniqueName("_super",48),t.createNull()),t.createFunctionApplyCall(t.createUniqueName("_super",48),on(),t.createIdentifier("arguments"))),on())}function Pn(oe){if(!oe.dotDotDotToken)return Ya(oe.name)?Wr(ht(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(oe),void 0,void 0,void 0),oe),oe):oe.initializer?Wr(ht(t.createParameterDeclaration(void 0,void 0,oe.name,void 0,void 0,void 0),oe),oe):oe}function Hn(oe){return oe.initializer!==void 0||Ya(oe.name)}function kn(oe,ut){if(!kt(ut.parameters,Hn))return!1;let Mt=!1;for(const Pt of ut.parameters){const{name:cn,initializer:jn,dotDotDotToken:Dr}=Pt;Dr||(Ya(cn)?Mt=Zt(oe,Pt,cn,jn)||Mt:jn&&(_r(oe,Pt,cn,jn),Mt=!0))}return Mt}function Zt(oe,ut,Mt,Pt){return Mt.elements.length>0?(R1(oe,sr(t.createVariableStatement(void 0,t.createVariableDeclarationList(iE(ut,de,e,0,t.getGeneratedNameForNode(ut)))),2097152)),!0):Pt?(R1(oe,sr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(ut),D.checkDefined(lt(Pt,de,vt)))),2097152)),!0):!1}function _r(oe,ut,Mt,Pt){Pt=D.checkDefined(lt(Pt,de,vt));const cn=t.createIfStatement(t.createTypeCheck(t.cloneNode(Mt),"undefined"),sr(ht(t.createBlock([t.createExpressionStatement(sr(ht(t.createAssignment(sr(jo(ht(t.cloneNode(Mt),Mt),Mt.parent),96),sr(Pt,96|bo(Pt)|3072)),ut),3072))]),ut),3905));Ku(cn),ht(cn,ut),sr(cn,2101056),R1(oe,cn)}function wi(oe,ut){return!!(oe&&oe.dotDotDotToken&&!ut)}function Qi(oe,ut,Mt){const Pt=[],cn=rl(ut.parameters);if(!wi(cn,Mt))return!1;const jn=cn.name.kind===79?jo(ht(t.cloneNode(cn.name),cn.name),cn.name.parent):t.createTempVariable(void 0);sr(jn,96);const Dr=cn.name.kind===79?t.cloneNode(cn.name):jn,ii=ut.parameters.length-1,Fi=t.createLoopVariable();Pt.push(sr(ht(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(jn,void 0,void 0,t.createArrayLiteralExpression([]))])),cn),2097152));const ja=t.createForStatement(ht(t.createVariableDeclarationList([t.createVariableDeclaration(Fi,void 0,void 0,t.createNumericLiteral(ii))]),cn),ht(t.createLessThan(Fi,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),cn),ht(t.createPostfixIncrement(Fi),cn),t.createBlock([Ku(ht(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Dr,ii===0?Fi:t.createSubtract(Fi,t.createNumericLiteral(ii))),t.createElementAccessExpression(t.createIdentifier("arguments"),Fi))),cn))]));return sr(ja,2097152),Ku(ja),Pt.push(ja),cn.name.kind!==79&&Pt.push(sr(ht(t.createVariableStatement(void 0,t.createVariableDeclarationList(iE(cn,de,e,0,Dr))),cn),2097152)),Mz(oe,Pt),!0}function Zi(oe,ut){return L&65536&&ut.kind!==216?(At(oe,ut,t.createThis()),!0):!1}function Or(oe,ut){fs();const Mt=t.createExpressionStatement(t.createBinaryExpression(t.createThis(),63,ut));R1(oe,Mt),Xc(Mt,Cl(ut).parent)}function At(oe,ut,Mt){fs();const Pt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_this",48),void 0,void 0,Mt)]));sr(Pt,2100224),ps(Pt,ut),R1(oe,Pt)}function vn(oe,ut,Mt){if(L&32768){let Pt;switch(ut.kind){case 216:return oe;case 171:case 174:case 175:Pt=t.createVoidZero();break;case 173:Pt=t.createPropertyAccessExpression(sr(t.createThis(),8),"constructor");break;case 259:case 215:Pt=t.createConditionalExpression(t.createLogicalAnd(sr(t.createThis(),8),t.createBinaryExpression(sr(t.createThis(),8),102,t.getLocalName(ut))),void 0,t.createPropertyAccessExpression(sr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return D.failBadSyntaxKind(ut)}const cn=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Pt)]));sr(cn,2100224),Mt&&(oe=oe.slice()),R1(oe,cn)}return oe}function Ht(oe,ut){for(const Mt of ut.members)switch(Mt.kind){case 237:oe.push(un(Mt));break;case 171:oe.push(ir(Yi(ut,Mt),Mt,ut));break;case 174:case 175:const Pt=PT(ut.members,Mt);Mt===Pt.firstAccessor&&oe.push(cr(Yi(ut,Mt),Pt,ut));break;case 173:case 172:break;default:D.failBadSyntaxKind(Mt,E&&E.fileName);break}}function un(oe){return ht(t.createEmptyStatement(),oe)}function ir(oe,ut,Mt){const Pt=$m(ut),cn=hb(ut),jn=Mn(ut,ut,void 0,Mt),Dr=lt(ut.name,de,El);D.assert(Dr);let ii;if(!Oi(Dr)&&EO(e.getCompilerOptions())){const ja=Cs(Dr)?Dr.expression:je(Dr)?t.createStringLiteral(ra(Dr.escapedText)):Dr;ii=t.createObjectDefinePropertyCall(oe,ja,t.createPropertyDescriptor({value:jn,enumerable:!1,writable:!0,configurable:!0}))}else{const ja=JT(t,oe,Dr,ut.name);ii=t.createAssignment(ja,jn)}sr(jn,3072),ps(jn,cn);const Fi=ht(t.createExpressionStatement(ii),ut);return Wr(Fi,ut),Xc(Fi,Pt),sr(Fi,96),Fi}function cr(oe,ut,Mt){const Pt=t.createExpressionStatement(Mi(oe,ut,Mt,!1));return sr(Pt,3072),ps(Pt,hb(ut.firstAccessor)),Pt}function Mi(oe,{firstAccessor:ut,getAccessor:Mt,setAccessor:Pt},cn,jn){const Dr=jo(ht(t.cloneNode(oe),oe),oe.parent);sr(Dr,3136),ps(Dr,ut.name);const ii=lt(ut.name,de,El);if(D.assert(ii),Oi(ii))return D.failBadSyntaxKind(ii,"Encountered unhandled private identifier while transforming ES2015.");const Fi=RK(t,ii);sr(Fi,3104),ps(Fi,ut.name);const ja=[];if(Mt){const Ss=Mn(Mt,void 0,void 0,cn);ps(Ss,hb(Mt)),sr(Ss,1024);const $s=t.createPropertyAssignment("get",Ss);Xc($s,$m(Mt)),ja.push($s)}if(Pt){const Ss=Mn(Pt,void 0,void 0,cn);ps(Ss,hb(Pt)),sr(Ss,1024);const $s=t.createPropertyAssignment("set",Ss);Xc($s,$m(Pt)),ja.push($s)}ja.push(t.createPropertyAssignment("enumerable",Mt||Pt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const zo=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[Dr,Fi,t.createObjectLiteralExpression(ja,!0)]);return jn&&Ku(zo),zo}function vi(oe){oe.transformFlags&16384&&!(L&16384)&&(L|=65536);const ut=k;k=void 0;const Mt=H(15232,66),Pt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Ql(oe.parameters,de,e),void 0,Ar(oe));return ht(Pt,oe),Wr(Pt,oe),sr(Pt,16),ne(Mt,0,0),k=ut,Pt}function Nn(oe){const ut=bo(oe)&524288?H(32662,69):H(32670,65),Mt=k;k=void 0;const Pt=Ql(oe.parameters,de,e),cn=Ar(oe),jn=L&32768?t.getLocalName(oe):oe.name;return ne(ut,98304,0),k=Mt,t.updateFunctionExpression(oe,void 0,oe.asteriskToken,jn,void 0,Pt,void 0,cn)}function rn(oe){const ut=k;k=void 0;const Mt=H(32670,65),Pt=Ql(oe.parameters,de,e),cn=Ar(oe),jn=L&32768?t.getLocalName(oe):oe.name;return ne(Mt,98304,0),k=ut,t.updateFunctionDeclaration(oe,Kn(oe.modifiers,de,_o),oe.asteriskToken,jn,void 0,Pt,void 0,cn)}function Mn(oe,ut,Mt,Pt){const cn=k;k=void 0;const jn=Pt&&_i(Pt)&&!Ja(oe)?H(32670,73):H(32670,65),Dr=Ql(oe.parameters,de,e),ii=Ar(oe);return L&32768&&!Mt&&(oe.kind===259||oe.kind===215)&&(Mt=t.getGeneratedNameForNode(oe)),ne(jn,98304,0),k=cn,Wr(ht(t.createFunctionExpression(void 0,oe.asteriskToken,Mt,void 0,Dr,void 0,ii),ut),oe)}function Ar(oe){let ut=!1,Mt=!1,Pt,cn;const jn=[],Dr=[],ii=oe.body;let Fi;if(o(),uo(ii)&&(Fi=t.copyStandardPrologue(ii.statements,jn,0,!1),Fi=t.copyCustomPrologue(ii.statements,Dr,Fi,de,k3),Fi=t.copyCustomPrologue(ii.statements,Dr,Fi,de,w3)),ut=kn(Dr,oe)||ut,ut=Qi(Dr,oe,!1)||ut,uo(ii))Fi=t.copyCustomPrologue(ii.statements,Dr,Fi,de),Pt=ii.statements,Ai(Dr,Kn(ii.statements,de,ka,Fi)),!ut&&ii.multiLine&&(ut=!0);else{D.assert(oe.kind===216),Pt=s7(ii,-1);const zo=oe.equalsGreaterThanToken;!tl(zo)&&!tl(ii)&&(mO(zo,ii,E)?Mt=!0:ut=!0);const Ss=lt(ii,de,vt),$s=t.createReturnStatement(Ss);ht($s,ii),Hpe($s,ii),sr($s,2880),Dr.push($s),cn=ii}if(t.mergeLexicalEnvironment(jn,s()),vn(jn,oe,!1),Zi(jn,oe),kt(jn)&&(ut=!0),Dr.unshift(...jn),uo(ii)&&Zp(Dr,ii.statements))return ii;const ja=t.createBlock(ht(t.createNodeArray(Dr),Pt),ut);return ht(ja,oe.body),!ut&&Mt&&sr(ja,1),cn&&jpe(ja,19,cn),Wr(ja,oe.body),ja}function Hr(oe,ut){if(ut)return Gn(oe,de,e);const Mt=L&256?H(7104,512):H(6976,128),Pt=Gn(oe,de,e);return ne(Mt,0,0),Pt}function we(oe){return Gn(oe,re,e)}function yt(oe,ut){return Gn(oe,ut?re:de,e)}function Nt(oe,ut){return Dy(oe)?ZT(oe,de,e,0,!ut):oe.operatorToken.kind===27?t.updateBinaryExpression(oe,D.checkDefined(lt(oe.left,re,vt)),oe.operatorToken,D.checkDefined(lt(oe.right,ut?re:de,vt))):Gn(oe,de,e)}function Ce(oe,ut){if(ut)return Gn(oe,re,e);let Mt;for(let cn=0;cn<oe.elements.length;cn++){const jn=oe.elements[cn],Dr=lt(jn,cn<oe.elements.length-1?re:de,vt);(Mt||Dr!==jn)&&(Mt||(Mt=oe.elements.slice(0,cn)),D.assert(Dr),Mt.push(Dr))}const Pt=Mt?ht(t.createNodeArray(Mt),oe.elements):oe.elements;return t.updateCommaListExpression(oe,Pt)}function pt(oe){return oe.declarationList.declarations.length===1&&!!oe.declarationList.declarations[0].initializer&&!!(z_(oe.declarationList.declarations[0].initializer)&1)}function pe(oe){const ut=H(0,$r(oe,1)?32:0);let Mt;if(k&&!(oe.declarationList.flags&3)&&!pt(oe)){let Pt;for(const cn of oe.declarationList.declarations)if(ki(k,cn),cn.initializer){let jn;Ya(cn.name)?jn=ZT(cn,de,e,0):(jn=t.createBinaryExpression(cn.name,63,D.checkDefined(lt(cn.initializer,de,vt))),ht(jn,cn)),Pt=Bn(Pt,jn)}Pt?Mt=ht(t.createExpressionStatement(t.inlineExpressions(Pt)),oe):Mt=void 0}else Mt=Gn(oe,de,e);return ne(ut,0,0),Mt}function ie(oe){if(oe.flags&3||oe.transformFlags&524288){oe.flags&3&&Ts();const ut=Kn(oe.declarations,oe.flags&1?He:Ze,Xi),Mt=t.createVariableDeclarationList(ut);return Wr(Mt,oe),ht(Mt,oe),Xc(Mt,oe),oe.transformFlags&524288&&(Ya(oe.declarations[0].name)||Ya(Jo(oe.declarations).name))&&ps(Mt,he(ut)),Mt}return Gn(oe,de,e)}function he(oe){let ut=-1,Mt=-1;for(const Pt of oe)ut=ut===-1?Pt.pos:Pt.pos===-1?ut:Math.min(ut,Pt.pos),Mt=Math.max(Mt,Pt.end);return x_(ut,Mt)}function j(oe){const ut=d.getNodeCheckFlags(oe),Mt=ut&16384,Pt=ut&32768;return!((L&64)!==0||Mt&&Pt&&(L&512)!==0)&&(L&4096)===0&&(!d.isDeclarationWithCollidingName(oe)||Pt&&!Mt&&(L&6144)===0)}function He(oe){const ut=oe.name;return Ya(ut)?Ze(oe):!oe.initializer&&j(oe)?t.updateVariableDeclaration(oe,oe.name,void 0,void 0,t.createVoidZero()):Gn(oe,de,e)}function Ze(oe){const ut=H(32,0);let Mt;return Ya(oe.name)?Mt=iE(oe,de,e,0,void 0,(ut&32)!==0):Mt=Gn(oe,de,e),ne(ut,0,0),Mt}function Xe(oe){k.labels.set(Mr(oe.label),!0)}function Ut(oe){k.labels.set(Mr(oe.label),!1)}function ln(oe){k&&!k.labels&&(k.labels=new Map);const ut=rq(oe,k&&Xe);return Bv(ut,!1)?Sn(ut,oe):t.restoreEnclosingLabel(D.checkDefined(lt(ut,de,ka,t.liftToBlock)),oe,k&&Ut)}function Sn(oe,ut){switch(oe.kind){case 243:case 244:return ue(oe,ut);case 245:return mt(oe,ut);case 246:return it(oe,ut);case 247:return K(oe,ut)}}function Er(oe,ut,Mt,Pt,cn){const jn=H(oe,ut),Dr=Hi(Mt,Pt,jn,cn);return ne(jn,0,0),Dr}function ue(oe,ut){return Er(0,1280,oe,ut)}function mt(oe,ut){return Er(5056,3328,oe,ut)}function Wt(oe){return t.updateForStatement(oe,lt(oe.initializer,re,rm),lt(oe.condition,de,vt),lt(oe.incrementor,re,vt),D.checkDefined(lt(oe.statement,de,ka,t.liftToBlock)))}function it(oe,ut){return Er(3008,5376,oe,ut)}function K(oe,ut){return Er(3008,5376,oe,ut,f.downlevelIteration?q:Re)}function Pe(oe,ut,Mt){const Pt=[],cn=oe.initializer;if(Ju(cn)){oe.initializer.flags&3&&Ts();const jn=tu(cn.declarations);if(jn&&Ya(jn.name)){const Dr=iE(jn,de,e,0,ut),ii=ht(t.createVariableDeclarationList(Dr),oe.initializer);Wr(ii,oe.initializer),ps(ii,x_(Dr[0].pos,Jo(Dr).end)),Pt.push(t.createVariableStatement(void 0,ii))}else Pt.push(ht(t.createVariableStatement(void 0,Wr(ht(t.createVariableDeclarationList([t.createVariableDeclaration(jn?jn.name:t.createTempVariable(void 0),void 0,void 0,ut)]),pb(cn,-1)),cn)),s7(cn,-1)))}else{const jn=t.createAssignment(cn,ut);Dy(jn)?Pt.push(t.createExpressionStatement(Nt(jn,!0))):(xC(jn,cn.end),Pt.push(ht(t.createExpressionStatement(D.checkDefined(lt(jn,de,vt))),s7(cn,-1))))}if(Mt)return ee(Ai(Pt,Mt));{const jn=lt(oe.statement,de,ka,t.liftToBlock);return D.assert(jn),uo(jn)?t.updateBlock(jn,ht(t.createNodeArray(ya(Pt,jn.statements)),jn.statements)):(Pt.push(jn),ee(Pt))}}function ee(oe){return sr(t.createBlock(t.createNodeArray(oe),!0),864)}function Re(oe,ut,Mt){const Pt=lt(oe.expression,de,vt);D.assert(Pt);const cn=t.createLoopVariable(),jn=je(Pt)?t.getGeneratedNameForNode(Pt):t.createTempVariable(void 0);sr(Pt,96|bo(Pt));const Dr=ht(t.createForStatement(sr(ht(t.createVariableDeclarationList([ht(t.createVariableDeclaration(cn,void 0,void 0,t.createNumericLiteral(0)),pb(oe.expression,-1)),ht(t.createVariableDeclaration(jn,void 0,void 0,Pt),oe.expression)]),oe.expression),4194304),ht(t.createLessThan(cn,t.createPropertyAccessExpression(jn,"length")),oe.expression),ht(t.createPostfixIncrement(cn),oe.expression),Pe(oe,t.createElementAccessExpression(jn,cn),Mt)),oe);return sr(Dr,512),ht(Dr,oe),t.restoreEnclosingLabel(Dr,ut,k&&Ut)}function q(oe,ut,Mt,Pt){const cn=lt(oe.expression,de,vt);D.assert(cn);const jn=je(cn)?t.getGeneratedNameForNode(cn):t.createTempVariable(void 0),Dr=je(cn)?t.getGeneratedNameForNode(jn):t.createTempVariable(void 0),ii=t.createUniqueName("e"),Fi=t.getGeneratedNameForNode(ii),ja=t.createTempVariable(void 0),zo=ht(r().createValuesHelper(cn),oe.expression),Ss=t.createCallExpression(t.createPropertyAccessExpression(jn,"next"),void 0,[]);c(ii),c(ja);const $s=Pt&1024?t.inlineExpressions([t.createAssignment(ii,t.createVoidZero()),zo]):zo,bd=sr(ht(t.createForStatement(sr(ht(t.createVariableDeclarationList([ht(t.createVariableDeclaration(jn,void 0,void 0,$s),oe.expression),t.createVariableDeclaration(Dr,void 0,void 0,Ss)]),oe.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(Dr,"done")),t.createAssignment(Dr,Ss),Pe(oe,t.createPropertyAccessExpression(Dr,"value"),Mt)),oe),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(bd,ut,k&&Ut)]),t.createCatchClause(t.createVariableDeclaration(Fi),sr(t.createBlock([t.createExpressionStatement(t.createAssignment(ii,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Fi)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([sr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(Dr,t.createLogicalNot(t.createPropertyAccessExpression(Dr,"done"))),t.createAssignment(ja,t.createPropertyAccessExpression(jn,"return"))),t.createExpressionStatement(t.createFunctionCallCall(ja,jn,[]))),1)]),void 0,sr(t.createBlock([sr(t.createIfStatement(ii,t.createThrowStatement(t.createPropertyAccessExpression(ii,"error"))),1)]),1))]))}function Rt(oe){const ut=oe.properties;let Mt=-1,Pt=!1;for(let ii=0;ii<ut.length;ii++){const Fi=ut[ii];if(Fi.transformFlags&1048576&&L&4||(Pt=D.checkDefined(Fi.name).kind===164)){Mt=ii;break}}if(Mt<0)return Gn(oe,de,e);const cn=t.createTempVariable(c),jn=[],Dr=t.createAssignment(cn,sr(t.createObjectLiteralExpression(Kn(ut,de,Ly,0,Mt),oe.multiLine),Pt?131072:0));return oe.multiLine&&Ku(Dr),jn.push(Dr),$o(jn,oe,cn,Mt),jn.push(oe.multiLine?Ku(jo(ht(t.cloneNode(cn),cn),cn.parent)):cn),t.inlineExpressions(jn)}function gt(oe){return(d.getNodeCheckFlags(oe)&8192)!==0}function ft(oe){return HT(oe)&&!!oe.initializer&>(oe.initializer)}function fn(oe){return HT(oe)&&!!oe.condition&>(oe.condition)}function $n(oe){return HT(oe)&&!!oe.incrementor&>(oe.incrementor)}function li(oe){return Ii(oe)||ft(oe)}function Ii(oe){return(d.getNodeCheckFlags(oe)&4096)!==0}function ki(oe,ut){oe.hoistedLocalVariables||(oe.hoistedLocalVariables=[]),Mt(ut.name);function Mt(Pt){if(Pt.kind===79)oe.hoistedLocalVariables.push(Pt);else for(const cn of Pt.elements)Fc(cn)||Mt(cn.name)}}function Hi(oe,ut,Mt,Pt){if(!li(oe)){let zo;k&&(zo=k.allowedNonLabeledJumps,k.allowedNonLabeledJumps=6);const Ss=Pt?Pt(oe,ut,void 0,Mt):t.restoreEnclosingLabel(HT(oe)?Wt(oe):Gn(oe,de,e),ut,k&&Ut);return k&&(k.allowedNonLabeledJumps=zo),Ss}const cn=ss(oe),jn=[],Dr=k;k=cn;const ii=ft(oe)?Dn(oe,cn):void 0,Fi=Ii(oe)?fa(oe,cn,Dr):void 0;k=Dr,ii&&jn.push(ii.functionDeclaration),Fi&&jn.push(Fi.functionDeclaration),hi(jn,cn,Dr),ii&&jn.push(jl(ii.functionName,ii.containsYield));let ja;if(Fi)if(Pt)ja=Pt(oe,ut,Fi.part,Mt);else{const zo=ho(oe,ii,t.createBlock(Fi.part,!0));ja=t.restoreEnclosingLabel(zo,ut,k&&Ut)}else{const zo=ho(oe,ii,D.checkDefined(lt(oe.statement,de,ka,t.liftToBlock)));ja=t.restoreEnclosingLabel(zo,ut,k&&Ut)}return jn.push(ja),jn}function ho(oe,ut,Mt){switch(oe.kind){case 245:return So(oe,ut,Mt);case 246:return ca(oe,Mt);case 247:return oo(oe,Mt);case 243:return Wi(oe,Mt);case 244:return Xr(oe,Mt);default:return D.failBadSyntaxKind(oe,"IterationStatement expected")}}function So(oe,ut,Mt){const Pt=oe.condition&>(oe.condition),cn=Pt||oe.incrementor&>(oe.incrementor);return t.updateForStatement(oe,lt(ut?ut.part:oe.initializer,re,rm),lt(Pt?void 0:oe.condition,de,vt),lt(cn?void 0:oe.incrementor,re,vt),Mt)}function oo(oe,ut){return t.updateForOfStatement(oe,void 0,D.checkDefined(lt(oe.initializer,de,rm)),D.checkDefined(lt(oe.expression,de,vt)),ut)}function ca(oe,ut){return t.updateForInStatement(oe,D.checkDefined(lt(oe.initializer,de,rm)),D.checkDefined(lt(oe.expression,de,vt)),ut)}function Wi(oe,ut){return t.updateDoStatement(oe,ut,D.checkDefined(lt(oe.expression,de,vt)))}function Xr(oe,ut){return t.updateWhileStatement(oe,D.checkDefined(lt(oe.expression,de,vt)),ut)}function ss(oe){let ut;switch(oe.kind){case 245:case 246:case 247:const jn=oe.initializer;jn&&jn.kind===258&&(ut=jn);break}const Mt=[],Pt=[];if(ut&&xp(ut)&3){const jn=ft(oe)||fn(oe)||$n(oe);for(const Dr of ut.declarations)Ca(oe,Dr,Mt,Pt,jn)}const cn={loopParameters:Mt,loopOutParameters:Pt};return k&&(k.argumentsName&&(cn.argumentsName=k.argumentsName),k.thisName&&(cn.thisName=k.thisName),k.hoistedLocalVariables&&(cn.hoistedLocalVariables=k.hoistedLocalVariables)),cn}function hi(oe,ut,Mt){let Pt;if(ut.argumentsName&&(Mt?Mt.argumentsName=ut.argumentsName:(Pt||(Pt=[])).push(t.createVariableDeclaration(ut.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),ut.thisName&&(Mt?Mt.thisName=ut.thisName:(Pt||(Pt=[])).push(t.createVariableDeclaration(ut.thisName,void 0,void 0,t.createIdentifier("this")))),ut.hoistedLocalVariables)if(Mt)Mt.hoistedLocalVariables=ut.hoistedLocalVariables;else{Pt||(Pt=[]);for(const cn of ut.hoistedLocalVariables)Pt.push(t.createVariableDeclaration(cn))}if(ut.loopOutParameters.length){Pt||(Pt=[]);for(const cn of ut.loopOutParameters)Pt.push(t.createVariableDeclaration(cn.outParamName))}ut.conditionVariable&&(Pt||(Pt=[]),Pt.push(t.createVariableDeclaration(ut.conditionVariable,void 0,void 0,t.createFalse()))),Pt&&oe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(Pt)))}function ua(oe){return t.createVariableDeclaration(oe.originalName,void 0,void 0,oe.outParamName)}function Dn(oe,ut){const Mt=t.createUniqueName("_loop_init"),Pt=(oe.initializer.transformFlags&1048576)!==0;let cn=0;ut.containsLexicalThis&&(cn|=16),Pt&&L&4&&(cn|=524288);const jn=[];jn.push(t.createVariableStatement(void 0,oe.initializer)),al(ut.loopOutParameters,2,1,jn);const Dr=t.createVariableStatement(void 0,sr(t.createVariableDeclarationList([t.createVariableDeclaration(Mt,void 0,void 0,sr(t.createFunctionExpression(void 0,Pt?t.createToken(41):void 0,void 0,void 0,void 0,void 0,D.checkDefined(lt(t.createBlock(jn,!0),de,uo))),cn))]),4194304)),ii=t.createVariableDeclarationList(zt(ut.loopOutParameters,ua));return{functionName:Mt,containsYield:Pt,functionDeclaration:Dr,part:ii}}function fa(oe,ut,Mt){const Pt=t.createUniqueName("_loop");i();const cn=lt(oe.statement,de,ka,t.liftToBlock),jn=s(),Dr=[];(fn(oe)||$n(oe))&&(ut.conditionVariable=t.createUniqueName("inc"),oe.incrementor?Dr.push(t.createIfStatement(ut.conditionVariable,t.createExpressionStatement(D.checkDefined(lt(oe.incrementor,de,vt))),t.createExpressionStatement(t.createAssignment(ut.conditionVariable,t.createTrue())))):Dr.push(t.createIfStatement(t.createLogicalNot(ut.conditionVariable),t.createExpressionStatement(t.createAssignment(ut.conditionVariable,t.createTrue())))),fn(oe)&&Dr.push(t.createIfStatement(t.createPrefixUnaryExpression(53,D.checkDefined(lt(oe.condition,de,vt))),D.checkDefined(lt(t.createBreakStatement(),de,ka))))),D.assert(cn),uo(cn)?Ai(Dr,cn.statements):Dr.push(cn),al(ut.loopOutParameters,1,1,Dr),Wm(Dr,jn);const ii=t.createBlock(Dr,!0);uo(cn)&&Wr(ii,cn);const Fi=(oe.statement.transformFlags&1048576)!==0;let ja=1048576;ut.containsLexicalThis&&(ja|=16),Fi&&L&4&&(ja|=524288);const zo=t.createVariableStatement(void 0,sr(t.createVariableDeclarationList([t.createVariableDeclaration(Pt,void 0,void 0,sr(t.createFunctionExpression(void 0,Fi?t.createToken(41):void 0,void 0,void 0,ut.loopParameters,void 0,ii),ja))]),4194304)),Ss=Zl(Pt,ut,Mt,Fi);return{functionName:Pt,containsYield:Fi,functionDeclaration:zo,part:Ss}}function ic(oe,ut){const Mt=ut===0?oe.outParamName:oe.originalName,Pt=ut===0?oe.originalName:oe.outParamName;return t.createBinaryExpression(Pt,63,Mt)}function al(oe,ut,Mt,Pt){for(const cn of oe)cn.flags&ut&&Pt.push(t.createExpressionStatement(ic(cn,Mt)))}function jl(oe,ut){const Mt=t.createCallExpression(oe,void 0,[]),Pt=ut?t.createYieldExpression(t.createToken(41),sr(Mt,16777216)):Mt;return t.createExpressionStatement(Pt)}function Zl(oe,ut,Mt,Pt){const cn=[],jn=!(ut.nonLocalJumps&-5)&&!ut.labeledNonLocalBreaks&&!ut.labeledNonLocalContinues,Dr=t.createCallExpression(oe,void 0,zt(ut.loopParameters,Fi=>Fi.name)),ii=Pt?t.createYieldExpression(t.createToken(41),sr(Dr,16777216)):Dr;if(jn)cn.push(t.createExpressionStatement(ii)),al(ut.loopOutParameters,1,0,cn);else{const Fi=t.createUniqueName("state"),ja=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Fi,void 0,void 0,ii)]));if(cn.push(ja),al(ut.loopOutParameters,1,0,cn),ut.nonLocalJumps&8){let zo;Mt?(Mt.nonLocalJumps|=8,zo=t.createReturnStatement(Fi)):zo=t.createReturnStatement(t.createPropertyAccessExpression(Fi,"value")),cn.push(t.createIfStatement(t.createTypeCheck(Fi,"object"),zo))}if(ut.nonLocalJumps&2&&cn.push(t.createIfStatement(t.createStrictEquality(Fi,t.createStringLiteral("break")),t.createBreakStatement())),ut.labeledNonLocalBreaks||ut.labeledNonLocalContinues){const zo=[];Lo(ut.labeledNonLocalBreaks,!0,Fi,Mt,zo),Lo(ut.labeledNonLocalContinues,!1,Fi,Mt,zo),cn.push(t.createSwitchStatement(Fi,t.createCaseBlock(zo)))}}return cn}function Hl(oe,ut,Mt,Pt){ut?(oe.labeledNonLocalBreaks||(oe.labeledNonLocalBreaks=new Map),oe.labeledNonLocalBreaks.set(Mt,Pt)):(oe.labeledNonLocalContinues||(oe.labeledNonLocalContinues=new Map),oe.labeledNonLocalContinues.set(Mt,Pt))}function Lo(oe,ut,Mt,Pt,cn){oe&&oe.forEach((jn,Dr)=>{const ii=[];if(!Pt||Pt.labels&&Pt.labels.get(Dr)){const Fi=t.createIdentifier(Dr);ii.push(ut?t.createBreakStatement(Fi):t.createContinueStatement(Fi))}else Hl(Pt,ut,Dr,jn),ii.push(t.createReturnStatement(Mt));cn.push(t.createCaseClause(t.createStringLiteral(jn),ii))})}function Ca(oe,ut,Mt,Pt,cn){const jn=ut.name;if(Ya(jn))for(const Dr of jn.elements)Fc(Dr)||Ca(oe,Dr,Mt,Pt,cn);else{Mt.push(t.createParameterDeclaration(void 0,void 0,jn));const Dr=d.getNodeCheckFlags(ut);if(Dr&262144||cn){const ii=t.createUniqueName("out_"+Mr(jn));let Fi=0;Dr&262144&&(Fi|=1),HT(oe)&&(oe.initializer&&d.isBindingCapturedByNode(oe.initializer,ut)&&(Fi|=2),(oe.condition&&d.isBindingCapturedByNode(oe.condition,ut)||oe.incrementor&&d.isBindingCapturedByNode(oe.incrementor,ut))&&(Fi|=1)),Pt.push({flags:Fi,originalName:jn,outParamName:ii})}}}function $o(oe,ut,Mt,Pt){const cn=ut.properties,jn=cn.length;for(let Dr=Pt;Dr<jn;Dr++){const ii=cn[Dr];switch(ii.kind){case 174:case 175:const Fi=PT(ut.properties,ii);ii===Fi.firstAccessor&&oe.push(Mi(Mt,Fi,ut,!!ut.multiLine));break;case 171:oe.push(Qd(ii,Mt,ut,ut.multiLine));break;case 299:oe.push(Wl(ii,Mt,ut.multiLine));break;case 300:oe.push(ou(ii,Mt,ut.multiLine));break;default:D.failBadSyntaxKind(ut);break}}}function Wl(oe,ut,Mt){const Pt=t.createAssignment(JT(t,ut,D.checkDefined(lt(oe.name,de,El))),D.checkDefined(lt(oe.initializer,de,vt)));return ht(Pt,oe),Mt&&Ku(Pt),Pt}function ou(oe,ut,Mt){const Pt=t.createAssignment(JT(t,ut,D.checkDefined(lt(oe.name,de,El))),t.cloneNode(oe.name));return ht(Pt,oe),Mt&&Ku(Pt),Pt}function Qd(oe,ut,Mt,Pt){const cn=t.createAssignment(JT(t,ut,D.checkDefined(lt(oe.name,de,El))),Mn(oe,oe,void 0,Mt));return ht(cn,oe),Pt&&Ku(cn),cn}function dc(oe){const ut=H(7104,0);let Mt;if(D.assert(!!oe.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),Ya(oe.variableDeclaration.name)){const Pt=t.createTempVariable(void 0),cn=t.createVariableDeclaration(Pt);ht(cn,oe.variableDeclaration);const jn=iE(oe.variableDeclaration,de,e,0,Pt),Dr=t.createVariableDeclarationList(jn);ht(Dr,oe.variableDeclaration);const ii=t.createVariableStatement(void 0,Dr);Mt=t.updateCatchClause(oe,cn,Zc(oe.block,ii))}else Mt=Gn(oe,de,e);return ne(ut,0,0),Mt}function Zc(oe,ut){const Mt=Kn(oe.statements,de,ka);return t.updateBlock(oe,[ut,...Mt])}function Ns(oe){D.assert(!Cs(oe.name));const ut=Mn(oe,pb(oe,-1),void 0,void 0);return sr(ut,1024|bo(ut)),ht(t.createPropertyAssignment(oe.name,ut),oe)}function vl(oe){D.assert(!Cs(oe.name));const ut=k;k=void 0;const Mt=H(32670,65);let Pt;const cn=Ql(oe.parameters,de,e),jn=Ar(oe);return oe.kind===174?Pt=t.updateGetAccessorDeclaration(oe,oe.modifiers,oe.name,cn,oe.type,jn):Pt=t.updateSetAccessorDeclaration(oe,oe.modifiers,oe.name,cn,jn),ne(Mt,98304,0),k=ut,Pt}function nl(oe){return ht(t.createPropertyAssignment(oe.name,Ge(t.cloneNode(oe.name))),oe)}function Ys(oe){return Gn(oe,de,e)}function nn(oe){return Gn(oe,de,e)}function zl(oe){return kt(oe.elements,Fh)?Z(oe.elements,!1,!!oe.multiLine,!!oe.elements.hasTrailingComma):Gn(oe,de,e)}function wu(oe){if(z_(oe)&1)return $u(oe);const ut=Cu(oe.expression);return ut.kind===106||hd(ut)||kt(oe.arguments,Fh)?It(oe,!0):t.updateCallExpression(oe,D.checkDefined(lt(oe.expression,ae,vt)),void 0,Kn(oe.arguments,de,vt))}function $u(oe){const ut=so(so(Cu(oe.expression),Xs).body,uo),Mt=Tf=>gc(Tf)&&!!ds(Tf.declarationList.declarations).initializer,Pt=k;k=void 0;const cn=Kn(ut.statements,be,ka);k=Pt;const jn=yn(cn,Mt),Dr=yn(cn,Tf=>!Mt(Tf)),Fi=so(ds(jn),gc).declarationList.declarations[0],ja=Cu(Fi.initializer);let zo=si(ja,ld);!zo&&br(ja)&&ja.operatorToken.kind===27&&(zo=si(ja.left,ld));const Ss=so(zo?Cu(zo.right):ja,io),$s=so(Cu(Ss.expression),Us),bd=$s.body.statements;let Ef=0,ac=-1;const ef=[];if(zo){const Tf=si(bd[Ef],fu);Tf&&(ef.push(Tf),Ef++),ef.push(bd[Ef]),Ef++,ef.push(t.createExpressionStatement(t.createAssignment(zo.left,so(Fi.name,je))))}for(;!Ip(Ey(bd,ac));)ac--;Ai(ef,bd,Ef,ac),ac<-1&&Ai(ef,bd,ac+1);const Du=si(Ey(bd,ac),Ip);for(const Tf of Dr)Ip(Tf)&&(Du!=null&&Du.expression)&&!je(Du.expression)?ef.push(Du):ef.push(Tf);return Ai(ef,jn,1),t.restoreOuterExpressions(oe.expression,t.restoreOuterExpressions(Fi.initializer,t.restoreOuterExpressions(zo&&zo.right,t.updateCallExpression(Ss,t.restoreOuterExpressions(Ss.expression,t.updateFunctionExpression($s,void 0,void 0,void 0,void 0,$s.parameters,void 0,t.updateBlock($s.body,ef))),void 0,Ss.arguments))))}function fe(oe){return It(oe,!1)}function It(oe,ut){if(oe.transformFlags&32768||oe.expression.kind===106||hd(Cu(oe.expression))){const{target:Mt,thisArg:Pt}=t.createCallBinding(oe.expression,c);oe.expression.kind===106&&sr(Pt,8);let cn;if(oe.transformFlags&32768?cn=t.createFunctionApplyCall(D.checkDefined(lt(Mt,ae,vt)),oe.expression.kind===106?Pt:D.checkDefined(lt(Pt,de,vt)),Z(oe.arguments,!0,!1,!1)):cn=ht(t.createFunctionCallCall(D.checkDefined(lt(Mt,ae,vt)),oe.expression.kind===106?Pt:D.checkDefined(lt(Pt,de,vt)),Kn(oe.arguments,de,vt)),oe),oe.expression.kind===106){const jn=t.createLogicalOr(cn,on());cn=ut?t.createAssignment(t.createUniqueName("_this",48),jn):jn}return Wr(cn,oe)}return Gn(oe,de,e)}function jt(oe){if(kt(oe.arguments,Fh)){const{target:ut,thisArg:Mt}=t.createCallBinding(t.createPropertyAccessExpression(oe.expression,"bind"),c);return t.createNewExpression(t.createFunctionApplyCall(D.checkDefined(lt(ut,de,vt)),Mt,Z(t.createNodeArray([t.createVoidZero(),...oe.arguments]),!0,!1,!1)),void 0,[])}return Gn(oe,de,e)}function Z(oe,ut,Mt,Pt){const cn=oe.length,jn=Ds(dM(oe,ot,(ja,zo,Ss,$s)=>zo(ja,Mt,Pt&&$s===cn)));if(jn.length===1){const ja=jn[0];if(ut&&!f.downlevelIteration||vJ(ja.expression)||Kk(ja.expression,"___spreadArray"))return ja.expression}const Dr=r(),ii=jn[0].kind!==0;let Fi=ii?t.createArrayLiteralExpression():jn[0].expression;for(let ja=ii?0:1;ja<jn.length;ja++){const zo=jn[ja];Fi=Dr.createSpreadArrayHelper(Fi,zo.expression,zo.kind===1&&!ut)}return Fi}function ot(oe){return Fh(oe)?xt:wr}function xt(oe){return zt(oe,pn)}function pn(oe){D.assertNode(oe,Fh);let ut=lt(oe.expression,de,vt);D.assert(ut);const Mt=Kk(ut,"___read");let Pt=Mt||vJ(ut)?2:1;return f.downlevelIteration&&Pt===1&&!zu(ut)&&!Mt&&(ut=r().createReadHelper(ut,void 0),Pt=2),Hye(Pt,ut)}function wr(oe,ut,Mt){const Pt=t.createArrayLiteralExpression(Kn(t.createNodeArray(oe,Mt),de,vt),ut);return Hye(0,Pt)}function Pr(oe){return lt(oe.expression,de,vt)}function ba(oe){return ht(t.createStringLiteral(oe.text),oe)}function ls(oe){return oe.hasExtendedUnicodeEscape?ht(t.createStringLiteral(oe.text),oe):oe}function go(oe){return oe.numericLiteralFlags&384?ht(t.createNumericLiteral(oe.text),oe):oe}function Wo(oe){return fY(e,oe,de,E,O,1)}function $a(oe){let ut=t.createStringLiteral(oe.head.text);for(const Mt of oe.templateSpans){const Pt=[D.checkDefined(lt(Mt.expression,de,vt))];Mt.literal.text.length>0&&Pt.push(t.createStringLiteral(Mt.literal.text)),ut=t.createCallExpression(t.createPropertyAccessExpression(ut,"concat"),void 0,Pt)}return ht(ut,oe)}function pl(oe){return L&8&&!oe?t.createPropertyAccessExpression(t.createUniqueName("_super",48),"prototype"):t.createUniqueName("_super",48)}function yc(oe){return oe.keywordToken===103&&oe.name.escapedText==="target"?(L|=32768,t.createUniqueName("_newTarget",48)):oe}function vd(oe,ut,Mt){if(G&1&&Xa(ut)){const Pt=H(32670,bo(ut)&16?81:65);h(oe,ut,Mt),ne(Pt,0,0);return}h(oe,ut,Mt)}function Ts(){G&2||(G|=2,e.enableSubstitution(79))}function fs(){G&1||(G|=1,e.enableSubstitution(108),e.enableEmitNotification(173),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(216),e.enableEmitNotification(215),e.enableEmitNotification(259))}function ml(oe,ut){return ut=v(oe,ut),oe===1?Hf(ut):je(ut)?Zd(ut):ut}function Zd(oe){if(G&2&&!NK(oe)){const ut=va(oe,je);if(ut&&ql(ut))return ht(t.getGeneratedNameForNode(ut),oe)}return oe}function ql(oe){switch(oe.parent.kind){case 205:case 260:case 263:case 257:return oe.parent.name===oe&&d.isDeclarationWithCollidingName(oe.parent)}return!1}function Hf(oe){switch(oe.kind){case 79:return Ae(oe);case 108:return On(oe)}return oe}function Ae(oe){if(G&2&&!NK(oe)){const ut=d.getReferencedDeclarationWithCollidingName(oe);if(ut&&!(_i(ut)&&Dt(ut,oe)))return ht(t.getGeneratedNameForNode(Ia(ut)),oe)}return oe}function Dt(oe,ut){let Mt=va(ut);if(!Mt||Mt===oe||Mt.end<=oe.pos||Mt.pos>=oe.end)return!1;const Pt=zm(oe);for(;Mt;){if(Mt===Pt||Mt===oe)return!1;if(qc(Mt)&&Mt.parent===oe)return!0;Mt=Mt.parent}return!1}function On(oe){return G&1&&L&16?ht(t.createUniqueName("_this",48),oe):oe}function Yi(oe,ut){return Ja(ut)?t.getInternalName(oe):t.createPropertyAccessExpression(t.getInternalName(oe),"prototype")}function Io(oe,ut){if(!oe||!ut||kt(oe.parameters))return!1;const Mt=tu(oe.body.statements);if(!Mt||!tl(Mt)||Mt.kind!==241)return!1;const Pt=Mt.expression;if(!tl(Pt)||Pt.kind!==210)return!1;const cn=Pt.expression;if(!tl(cn)||cn.kind!==106)return!1;const jn=Om(Pt.arguments);if(!jn||!tl(jn)||jn.kind!==227)return!1;const Dr=jn.expression;return je(Dr)&&Dr.escapedText==="arguments"}}var xFe=S({"src/compiler/transformers/es2015.ts"(){Na()}});function zye(e){const{factory:t}=e,r=e.getCompilerOptions();let i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=f,e.enableEmitNotification(283),e.enableEmitNotification(284),e.enableEmitNotification(282),o=[]);const s=e.onSubstituteNode;return e.onSubstituteNode=d,e.enableSubstitution(208),e.enableSubstitution(299),rp(e,c);function c(C){return C}function f(C,L,I){switch(L.kind){case 283:case 284:case 282:const O=L.tagName;o[Nl(O)]=!0;break}i(C,L,I)}function d(C,L){return L.id&&o&&o[L.id]?s(C,L):(L=s(C,L),Fr(L)?v(L):$c(L)?h(L):L)}function v(C){if(Oi(C.name))return C;const L=E(C.name);return L?ht(t.createElementAccessExpression(C.expression,L),C):C}function h(C){const L=je(C.name)&&E(C.name);return L?t.updatePropertyAssignment(C,L,C.initializer):C}function E(C){const L=ib(C);if(L!==void 0&&L>=81&&L<=116)return ht(t.createStringLiteralFromNode(C),C)}}var AFe=S({"src/compiler/transformers/es5.ts"(){Na()}});function CFe(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function qye(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:c}=e,f=e.getCompilerOptions(),d=ts(f),v=e.getEmitResolver(),h=e.onSubstituteNode;e.onSubstituteNode=K;let E,C,L,I,O,k,G,V,H,ne,Y=1,$,M,de,re,be=0,ae=0,W,ce,me,Ee,xe,te,Qe,Ve;return rp(e,Ge);function Ge(Ae){if(Ae.isDeclarationFile||!(Ae.transformFlags&2048))return Ae;const Dt=Gn(Ae,ze,e);return Ny(Dt,e.readEmitHelpers()),Dt}function ze(Ae){const Dt=Ae.transformFlags;return I?Oe(Ae):L?Me(Ae):el(Ae)&&Ae.asteriskToken?We(Ae):Dt&2048?Gn(Ae,ze,e):Ae}function Oe(Ae){switch(Ae.kind){case 243:return Ar(Ae);case 244:return we(Ae);case 252:return ln(Ae);case 253:return Er(Ae);default:return Me(Ae)}}function Me(Ae){switch(Ae.kind){case 259:return Fe(Ae);case 215:return st(Ae);case 174:case 175:return Ct(Ae);case 240:return Vt(Ae);case 245:return Nt(Ae);case 246:return pt(Ae);case 249:return j(Ae);case 248:return ie(Ae);case 250:return Ze(Ae);default:return Ae.transformFlags&1048576?Ye(Ae):Ae.transformFlags&4196352?Gn(Ae,ze,e):Ae}}function Ye(Ae){switch(Ae.kind){case 223:return tt(Ae);case 357:return Pn(Ae);case 224:return kn(Ae);case 226:return Zt(Ae);case 206:return _r(Ae);case 207:return Qi(Ae);case 209:return Zi(Ae);case 210:return Or(Ae);case 211:return At(Ae);default:return Gn(Ae,ze,e)}}function We(Ae){switch(Ae.kind){case 259:return Fe(Ae);case 215:return st(Ae);default:return D.failBadSyntaxKind(Ae)}}function Fe(Ae){if(Ae.asteriskToken)Ae=Wr(ht(t.createFunctionDeclaration(Ae.modifiers,void 0,Ae.name,void 0,Ql(Ae.parameters,ze,e),void 0,Et(Ae.body)),Ae),Ae);else{const Dt=L,On=I;L=!1,I=!1,Ae=Gn(Ae,ze,e),L=Dt,I=On}if(L){s(Ae);return}else return Ae}function st(Ae){if(Ae.asteriskToken)Ae=Wr(ht(t.createFunctionExpression(void 0,void 0,Ae.name,void 0,Ql(Ae.parameters,ze,e),void 0,Et(Ae.body)),Ae),Ae);else{const Dt=L,On=I;L=!1,I=!1,Ae=Gn(Ae,ze,e),L=Dt,I=On}return Ae}function Ct(Ae){const Dt=L,On=I;return L=!1,I=!1,Ae=Gn(Ae,ze,e),L=Dt,I=On,Ae}function Et(Ae){const Dt=[],On=L,Yi=I,Io=O,oe=k,ut=G,Mt=V,Pt=H,cn=ne,jn=Y,Dr=$,ii=M,Fi=de,ja=re;L=!0,I=!1,O=void 0,k=void 0,G=void 0,V=void 0,H=void 0,ne=void 0,Y=1,$=void 0,M=void 0,de=void 0,re=t.createTempVariable(void 0),i();const zo=t.copyPrologue(Ae.statements,Dt,!1,ze);vn(Ae.statements,zo);const Ss=Z();return Wm(Dt,o()),Dt.push(t.createReturnStatement(Ss)),L=On,I=Yi,O=Io,k=oe,G=ut,V=Mt,H=Pt,ne=cn,Y=jn,$=Dr,M=ii,de=Fi,re=ja,ht(t.createBlock(Dt,Ae.multiLine),Ae)}function Vt(Ae){if(Ae.transformFlags&1048576){vi(Ae.declarationList);return}else{if(bo(Ae)&2097152)return Ae;for(const On of Ae.declarationList.declarations)c(On.name);const Dt=Ik(Ae.declarationList);return Dt.length===0?void 0:ps(t.createExpressionStatement(t.inlineExpressions(zt(Dt,Nn))),Ae)}}function tt(Ae){const Dt=Sq(Ae);switch(Dt){case 0:return on(Ae);case 1:return at(Ae);default:return D.assertNever(Dt)}}function at(Ae){const{left:Dt,right:On}=Ae;if(Wt(On)){let Yi;switch(Dt.kind){case 208:Yi=t.updatePropertyAccessExpression(Dt,Re(D.checkDefined(lt(Dt.expression,ze,Id))),Dt.name);break;case 209:Yi=t.updateElementAccessExpression(Dt,Re(D.checkDefined(lt(Dt.expression,ze,Id))),Re(D.checkDefined(lt(Dt.argumentExpression,ze,vt))));break;default:Yi=D.checkDefined(lt(Dt,ze,vt));break}const Io=Ae.operatorToken.kind;return z8(Io)?ht(t.createAssignment(Yi,ht(t.createBinaryExpression(Re(Yi),xw(Io),D.checkDefined(lt(On,ze,vt))),Ae)),Ae):t.updateBinaryExpression(Ae,Yi,Ae.operatorToken,D.checkDefined(lt(On,ze,vt)))}return Gn(Ae,ze,e)}function on(Ae){return Wt(Ae.right)?A_e(Ae.operatorToken.kind)?Hn(Ae):Ae.operatorToken.kind===27?Qt(Ae):t.updateBinaryExpression(Ae,Re(D.checkDefined(lt(Ae.left,ze,vt))),Ae.operatorToken,D.checkDefined(lt(Ae.right,ze,vt))):Gn(Ae,ze,e)}function Qt(Ae){let Dt=[];return On(Ae.left),On(Ae.right),t.inlineExpressions(Dt);function On(Yi){br(Yi)&&Yi.operatorToken.kind===27?(On(Yi.left),On(Yi.right)):(Wt(Yi)&&Dt.length>0&&(jt(1,[t.createExpressionStatement(t.inlineExpressions(Dt))]),Dt=[]),Dt.push(D.checkDefined(lt(Yi,ze,vt))))}}function Pn(Ae){let Dt=[];for(const On of Ae.elements)br(On)&&On.operatorToken.kind===27?Dt.push(Qt(On)):(Wt(On)&&Dt.length>0&&(jt(1,[t.createExpressionStatement(t.inlineExpressions(Dt))]),Dt=[]),Dt.push(D.checkDefined(lt(On,ze,vt))));return t.inlineExpressions(Dt)}function Hn(Ae){const Dt=Rt(),On=q();return vl(On,D.checkDefined(lt(Ae.left,ze,vt)),Ae.left),Ae.operatorToken.kind===55?nn(Dt,On,Ae.left):Ys(Dt,On,Ae.left),vl(On,D.checkDefined(lt(Ae.right,ze,vt)),Ae.right),gt(Dt),On}function kn(Ae){if(Wt(Ae.whenTrue)||Wt(Ae.whenFalse)){const Dt=Rt(),On=Rt(),Yi=q();return nn(Dt,D.checkDefined(lt(Ae.condition,ze,vt)),Ae.condition),vl(Yi,D.checkDefined(lt(Ae.whenTrue,ze,vt)),Ae.whenTrue),nl(On),gt(Dt),vl(Yi,D.checkDefined(lt(Ae.whenFalse,ze,vt)),Ae.whenFalse),gt(On),Yi}return Gn(Ae,ze,e)}function Zt(Ae){const Dt=Rt(),On=lt(Ae.expression,ze,vt);if(Ae.asteriskToken){const Yi=bo(Ae.expression)&16777216?On:ht(r().createValuesHelper(On),Ae);zl(Yi,Ae)}else wu(On,Ae);return gt(Dt),dc(Ae)}function _r(Ae){return wi(Ae.elements,void 0,void 0,Ae.multiLine)}function wi(Ae,Dt,On,Yi){const Io=it(Ae);let oe;if(Io>0){oe=q();const Pt=Kn(Ae,ze,vt,0,Io);vl(oe,t.createArrayLiteralExpression(Dt?[Dt,...Pt]:Pt)),Dt=void 0}const ut=Gu(Ae,Mt,[],Io);return oe?t.createArrayConcatCall(oe,[t.createArrayLiteralExpression(ut,Yi)]):ht(t.createArrayLiteralExpression(Dt?[Dt,...ut]:ut,Yi),On);function Mt(Pt,cn){if(Wt(cn)&&Pt.length>0){const jn=oe!==void 0;oe||(oe=q()),vl(oe,jn?t.createArrayConcatCall(oe,[t.createArrayLiteralExpression(Pt,Yi)]):t.createArrayLiteralExpression(Dt?[Dt,...Pt]:Pt,Yi)),Dt=void 0,Pt=[]}return Pt.push(D.checkDefined(lt(cn,ze,vt))),Pt}}function Qi(Ae){const Dt=Ae.properties,On=Ae.multiLine,Yi=it(Dt),Io=q();vl(Io,t.createObjectLiteralExpression(Kn(Dt,ze,Ly,0,Yi),On));const oe=Gu(Dt,ut,[],Yi);return oe.push(On?Ku(jo(ht(t.cloneNode(Io),Io),Io.parent)):Io),t.inlineExpressions(oe);function ut(Mt,Pt){Wt(Pt)&&Mt.length>0&&(Ns(t.createExpressionStatement(t.inlineExpressions(Mt))),Mt=[]);const cn=kme(t,Ae,Pt,Io),jn=lt(cn,ze,vt);return jn&&(On&&Ku(jn),Mt.push(jn)),Mt}}function Zi(Ae){return Wt(Ae.argumentExpression)?t.updateElementAccessExpression(Ae,Re(D.checkDefined(lt(Ae.expression,ze,Id))),D.checkDefined(lt(Ae.argumentExpression,ze,vt))):Gn(Ae,ze,e)}function Or(Ae){if(!hf(Ae)&&Je(Ae.arguments,Wt)){const{target:Dt,thisArg:On}=t.createCallBinding(Ae.expression,c,d,!0);return Wr(ht(t.createFunctionApplyCall(Re(D.checkDefined(lt(Dt,ze,Id))),On,wi(Ae.arguments)),Ae),Ae)}return Gn(Ae,ze,e)}function At(Ae){if(Je(Ae.arguments,Wt)){const{target:Dt,thisArg:On}=t.createCallBinding(t.createPropertyAccessExpression(Ae.expression,"bind"),c);return Wr(ht(t.createNewExpression(t.createFunctionApplyCall(Re(D.checkDefined(lt(Dt,ze,vt))),On,wi(Ae.arguments,t.createVoidZero())),void 0,[]),Ae),Ae)}return Gn(Ae,ze,e)}function vn(Ae,Dt=0){const On=Ae.length;for(let Yi=Dt;Yi<On;Yi++)un(Ae[Yi])}function Ht(Ae){uo(Ae)?vn(Ae.statements):un(Ae)}function un(Ae){const Dt=I;I||(I=Wt(Ae)),ir(Ae),I=Dt}function ir(Ae){switch(Ae.kind){case 238:return cr(Ae);case 241:return Mi(Ae);case 242:return rn(Ae);case 243:return Mn(Ae);case 244:return Hr(Ae);case 245:return yt(Ae);case 246:return Ce(Ae);case 248:return pe(Ae);case 249:return he(Ae);case 250:return He(Ae);case 251:return Xe(Ae);case 252:return Ut(Ae);case 253:return Sn(Ae);case 254:return ue(Ae);case 255:return mt(Ae);default:return Ns(lt(Ae,ze,ka))}}function cr(Ae){Wt(Ae)?vn(Ae.statements):Ns(lt(Ae,ze,ka))}function Mi(Ae){Ns(lt(Ae,ze,ka))}function vi(Ae){for(const oe of Ae.declarations){const ut=t.cloneNode(oe.name);Xc(ut,oe.name),c(ut)}const Dt=Ik(Ae),On=Dt.length;let Yi=0,Io=[];for(;Yi<On;){for(let oe=Yi;oe<On;oe++){const ut=Dt[oe];if(Wt(ut.initializer)&&Io.length>0)break;Io.push(Nn(ut))}Io.length&&(Ns(t.createExpressionStatement(t.inlineExpressions(Io))),Yi+=Io.length,Io=[])}}function Nn(Ae){return ps(t.createAssignment(ps(t.cloneNode(Ae.name),Ae.name),D.checkDefined(lt(Ae.initializer,ze,vt))),Ae)}function rn(Ae){if(Wt(Ae))if(Wt(Ae.thenStatement)||Wt(Ae.elseStatement)){const Dt=Rt(),On=Ae.elseStatement?Rt():void 0;nn(Ae.elseStatement?On:Dt,D.checkDefined(lt(Ae.expression,ze,vt)),Ae.expression),Ht(Ae.thenStatement),Ae.elseStatement&&(nl(Dt),gt(On),Ht(Ae.elseStatement)),gt(Dt)}else Ns(lt(Ae,ze,ka));else Ns(lt(Ae,ze,ka))}function Mn(Ae){if(Wt(Ae)){const Dt=Rt(),On=Rt();Wi(Dt),gt(On),Ht(Ae.statement),gt(Dt),Ys(On,D.checkDefined(lt(Ae.expression,ze,vt))),Xr()}else Ns(lt(Ae,ze,ka))}function Ar(Ae){return I?(ca(),Ae=Gn(Ae,ze,e),Xr(),Ae):Gn(Ae,ze,e)}function Hr(Ae){if(Wt(Ae)){const Dt=Rt(),On=Wi(Dt);gt(Dt),nn(On,D.checkDefined(lt(Ae.expression,ze,vt))),Ht(Ae.statement),nl(Dt),Xr()}else Ns(lt(Ae,ze,ka))}function we(Ae){return I?(ca(),Ae=Gn(Ae,ze,e),Xr(),Ae):Gn(Ae,ze,e)}function yt(Ae){if(Wt(Ae)){const Dt=Rt(),On=Rt(),Yi=Wi(On);if(Ae.initializer){const Io=Ae.initializer;Ju(Io)?vi(Io):Ns(ht(t.createExpressionStatement(D.checkDefined(lt(Io,ze,vt))),Io))}gt(Dt),Ae.condition&&nn(Yi,D.checkDefined(lt(Ae.condition,ze,vt))),Ht(Ae.statement),gt(On),Ae.incrementor&&Ns(ht(t.createExpressionStatement(D.checkDefined(lt(Ae.incrementor,ze,vt))),Ae.incrementor)),nl(Dt),Xr()}else Ns(lt(Ae,ze,ka))}function Nt(Ae){I&&ca();const Dt=Ae.initializer;if(Dt&&Ju(Dt)){for(const Yi of Dt.declarations)c(Yi.name);const On=Ik(Dt);Ae=t.updateForStatement(Ae,On.length>0?t.inlineExpressions(zt(On,Nn)):void 0,lt(Ae.condition,ze,vt),lt(Ae.incrementor,ze,vt),I_(Ae.statement,ze,e))}else Ae=Gn(Ae,ze,e);return I&&Xr(),Ae}function Ce(Ae){if(Wt(Ae)){const Dt=q(),On=q(),Yi=q(),Io=t.createLoopVariable(),oe=Ae.initializer;c(Io),vl(Dt,D.checkDefined(lt(Ae.expression,ze,vt))),vl(On,t.createArrayLiteralExpression()),Ns(t.createForInStatement(Yi,Dt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(On,"push"),void 0,[Yi])))),vl(Io,t.createNumericLiteral(0));const ut=Rt(),Mt=Rt(),Pt=Wi(Mt);gt(ut),nn(Pt,t.createLessThan(Io,t.createPropertyAccessExpression(On,"length"))),vl(Yi,t.createElementAccessExpression(On,Io)),nn(Mt,t.createBinaryExpression(Yi,101,Dt));let cn;if(Ju(oe)){for(const jn of oe.declarations)c(jn.name);cn=t.cloneNode(oe.declarations[0].name)}else cn=D.checkDefined(lt(oe,ze,vt)),D.assert(Id(cn));vl(cn,Yi),Ht(Ae.statement),gt(Mt),Ns(t.createExpressionStatement(t.createPostfixIncrement(Io))),nl(ut),Xr()}else Ns(lt(Ae,ze,ka))}function pt(Ae){I&&ca();const Dt=Ae.initializer;if(Ju(Dt)){for(const On of Dt.declarations)c(On.name);Ae=t.updateForInStatement(Ae,Dt.declarations[0].name,D.checkDefined(lt(Ae.expression,ze,vt)),D.checkDefined(lt(Ae.statement,ze,ka,t.liftToBlock)))}else Ae=Gn(Ae,ze,e);return I&&Xr(),Ae}function pe(Ae){const Dt=Ca(Ae.label?Mr(Ae.label):void 0);Dt>0?nl(Dt,Ae):Ns(Ae)}function ie(Ae){if(I){const Dt=Ca(Ae.label&&Mr(Ae.label));if(Dt>0)return ou(Dt,Ae)}return Gn(Ae,ze,e)}function he(Ae){const Dt=Lo(Ae.label?Mr(Ae.label):void 0);Dt>0?nl(Dt,Ae):Ns(Ae)}function j(Ae){if(I){const Dt=Lo(Ae.label&&Mr(Ae.label));if(Dt>0)return ou(Dt,Ae)}return Gn(Ae,ze,e)}function He(Ae){$u(lt(Ae.expression,ze,vt),Ae)}function Ze(Ae){return Qd(lt(Ae.expression,ze,vt),Ae)}function Xe(Ae){Wt(Ae)?(Ii(Re(D.checkDefined(lt(Ae.expression,ze,vt)))),Ht(Ae.statement),ki()):Ns(lt(Ae,ze,ka))}function Ut(Ae){if(Wt(Ae.caseBlock)){const Dt=Ae.caseBlock,On=Dt.clauses.length,Yi=hi(),Io=Re(D.checkDefined(lt(Ae.expression,ze,vt))),oe=[];let ut=-1;for(let cn=0;cn<On;cn++){const jn=Dt.clauses[cn];oe.push(Rt()),jn.kind===293&&ut===-1&&(ut=cn)}let Mt=0,Pt=[];for(;Mt<On;){let cn=0;for(let jn=Mt;jn<On;jn++){const Dr=Dt.clauses[jn];if(Dr.kind===292){if(Wt(Dr.expression)&&Pt.length>0)break;Pt.push(t.createCaseClause(D.checkDefined(lt(Dr.expression,ze,vt)),[ou(oe[jn],Dr.expression)]))}else cn++}Pt.length&&(Ns(t.createSwitchStatement(Io,t.createCaseBlock(Pt))),Mt+=Pt.length,Pt=[]),cn>0&&(Mt+=cn,cn=0)}ut>=0?nl(oe[ut]):nl(Yi);for(let cn=0;cn<On;cn++)gt(oe[cn]),vn(Dt.clauses[cn].statements);ua()}else Ns(lt(Ae,ze,ka))}function ln(Ae){return I&&ss(),Ae=Gn(Ae,ze,e),I&&ua(),Ae}function Sn(Ae){Wt(Ae)?(fa(Mr(Ae.label)),Ht(Ae.statement),ic()):Ns(lt(Ae,ze,ka))}function Er(Ae){return I&&Dn(Mr(Ae.label)),Ae=Gn(Ae,ze,e),I&&ic(),Ae}function ue(Ae){var Dt;fe(D.checkDefined(lt((Dt=Ae.expression)!=null?Dt:t.createVoidZero(),ze,vt)),Ae)}function mt(Ae){Wt(Ae)?(Hi(),Ht(Ae.tryBlock),Ae.catchClause&&(ho(Ae.catchClause.variableDeclaration),Ht(Ae.catchClause.block)),Ae.finallyBlock&&(So(),Ht(Ae.finallyBlock)),oo()):Ns(Gn(Ae,ze,e))}function Wt(Ae){return!!Ae&&(Ae.transformFlags&1048576)!==0}function it(Ae){const Dt=Ae.length;for(let On=0;On<Dt;On++)if(Wt(Ae[On]))return On;return-1}function K(Ae,Dt){return Dt=h(Ae,Dt),Ae===1?Pe(Dt):Dt}function Pe(Ae){return je(Ae)?ee(Ae):Ae}function ee(Ae){if(!Ll(Ae)&&E&&E.has(Mr(Ae))){const Dt=Cl(Ae);if(je(Dt)&&Dt.parent){const On=v.getReferencedValueDeclaration(Dt);if(On){const Yi=C[Nl(On)];if(Yi){const Io=jo(ht(t.cloneNode(Yi),Yi),Yi.parent);return ps(Io,Ae),Xc(Io,Ae),Io}}}}return Ae}function Re(Ae){if(Ll(Ae)||bo(Ae)&8192)return Ae;const Dt=t.createTempVariable(c);return vl(Dt,Ae,Ae),Dt}function q(Ae){const Dt=Ae?t.createUniqueName(Ae):t.createTempVariable(void 0);return c(Dt),Dt}function Rt(){H||(H=[]);const Ae=Y;return Y++,H[Ae]=-1,Ae}function gt(Ae){D.assert(H!==void 0,"No labels were defined."),H[Ae]=$?$.length:0}function ft(Ae){O||(O=[],G=[],k=[],V=[]);const Dt=G.length;return G[Dt]=0,k[Dt]=$?$.length:0,O[Dt]=Ae,V.push(Ae),Dt}function fn(){const Ae=$n();if(Ae===void 0)return D.fail("beginBlock was never called.");const Dt=G.length;return G[Dt]=1,k[Dt]=$?$.length:0,O[Dt]=Ae,V.pop(),Ae}function $n(){return rl(V)}function li(){const Ae=$n();return Ae&&Ae.kind}function Ii(Ae){const Dt=Rt(),On=Rt();gt(Dt),ft({kind:1,expression:Ae,startLabel:Dt,endLabel:On})}function ki(){D.assert(li()===1);const Ae=fn();gt(Ae.endLabel)}function Hi(){const Ae=Rt(),Dt=Rt();return gt(Ae),ft({kind:0,state:0,startLabel:Ae,endLabel:Dt}),Zc(),Dt}function ho(Ae){D.assert(li()===0);let Dt;if(Ll(Ae.name))Dt=Ae.name,c(Ae.name);else{const oe=Mr(Ae.name);Dt=q(oe),E||(E=new Map,C=[],e.enableSubstitution(79)),E.set(oe,!0),C[Nl(Ae)]=Dt}const On=$n();D.assert(On.state<1);const Yi=On.endLabel;nl(Yi);const Io=Rt();gt(Io),On.state=1,On.catchVariable=Dt,On.catchLabel=Io,vl(Dt,t.createCallExpression(t.createPropertyAccessExpression(re,"sent"),void 0,[])),Zc()}function So(){D.assert(li()===0);const Ae=$n();D.assert(Ae.state<2);const Dt=Ae.endLabel;nl(Dt);const On=Rt();gt(On),Ae.state=2,Ae.finallyLabel=On}function oo(){D.assert(li()===0);const Ae=fn();Ae.state<2?nl(Ae.endLabel):It(),gt(Ae.endLabel),Zc(),Ae.state=3}function ca(){ft({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function Wi(Ae){const Dt=Rt();return ft({kind:3,isScript:!1,breakLabel:Dt,continueLabel:Ae}),Dt}function Xr(){D.assert(li()===3);const Ae=fn(),Dt=Ae.breakLabel;Ae.isScript||gt(Dt)}function ss(){ft({kind:2,isScript:!0,breakLabel:-1})}function hi(){const Ae=Rt();return ft({kind:2,isScript:!1,breakLabel:Ae}),Ae}function ua(){D.assert(li()===2);const Ae=fn(),Dt=Ae.breakLabel;Ae.isScript||gt(Dt)}function Dn(Ae){ft({kind:4,isScript:!0,labelText:Ae,breakLabel:-1})}function fa(Ae){const Dt=Rt();ft({kind:4,isScript:!1,labelText:Ae,breakLabel:Dt})}function ic(){D.assert(li()===4);const Ae=fn();Ae.isScript||gt(Ae.breakLabel)}function al(Ae){return Ae.kind===2||Ae.kind===3}function jl(Ae){return Ae.kind===4}function Zl(Ae){return Ae.kind===3}function Hl(Ae,Dt){for(let On=Dt;On>=0;On--){const Yi=V[On];if(jl(Yi)){if(Yi.labelText===Ae)return!0}else break}return!1}function Lo(Ae){if(V)if(Ae)for(let Dt=V.length-1;Dt>=0;Dt--){const On=V[Dt];if(jl(On)&&On.labelText===Ae)return On.breakLabel;if(al(On)&&Hl(Ae,Dt-1))return On.breakLabel}else for(let Dt=V.length-1;Dt>=0;Dt--){const On=V[Dt];if(al(On))return On.breakLabel}return 0}function Ca(Ae){if(V)if(Ae)for(let Dt=V.length-1;Dt>=0;Dt--){const On=V[Dt];if(Zl(On)&&Hl(Ae,Dt-1))return On.continueLabel}else for(let Dt=V.length-1;Dt>=0;Dt--){const On=V[Dt];if(Zl(On))return On.continueLabel}return 0}function $o(Ae){if(Ae!==void 0&&Ae>0){ne===void 0&&(ne=[]);const Dt=t.createNumericLiteral(-1);return ne[Ae]===void 0?ne[Ae]=[Dt]:ne[Ae].push(Dt),Dt}return t.createOmittedExpression()}function Wl(Ae){const Dt=t.createNumericLiteral(Ae);return P7(Dt,3,CFe(Ae)),Dt}function ou(Ae,Dt){return D.assertLessThan(0,Ae,"Invalid label"),ht(t.createReturnStatement(t.createArrayLiteralExpression([Wl(3),$o(Ae)])),Dt)}function Qd(Ae,Dt){return ht(t.createReturnStatement(t.createArrayLiteralExpression(Ae?[Wl(2),Ae]:[Wl(2)])),Dt)}function dc(Ae){return ht(t.createCallExpression(t.createPropertyAccessExpression(re,"sent"),void 0,[]),Ae)}function Zc(){jt(0)}function Ns(Ae){Ae?jt(1,[Ae]):Zc()}function vl(Ae,Dt,On){jt(2,[Ae,Dt],On)}function nl(Ae,Dt){jt(3,[Ae],Dt)}function Ys(Ae,Dt,On){jt(4,[Ae,Dt],On)}function nn(Ae,Dt,On){jt(5,[Ae,Dt],On)}function zl(Ae,Dt){jt(7,[Ae],Dt)}function wu(Ae,Dt){jt(6,[Ae],Dt)}function $u(Ae,Dt){jt(8,[Ae],Dt)}function fe(Ae,Dt){jt(9,[Ae],Dt)}function It(){jt(10)}function jt(Ae,Dt,On){$===void 0&&($=[],M=[],de=[]),H===void 0&>(Rt());const Yi=$.length;$[Yi]=Ae,M[Yi]=Dt,de[Yi]=On}function Z(){be=0,ae=0,W=void 0,ce=!1,me=!1,Ee=void 0,xe=void 0,te=void 0,Qe=void 0,Ve=void 0;const Ae=ot();return r().createGeneratorHelper(sr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,re)],void 0,t.createBlock(Ae,Ae.length>0)),1048576))}function ot(){if($){for(let Ae=0;Ae<$.length;Ae++)Wo(Ae);pn($.length)}else pn(0);if(Ee){const Ae=t.createPropertyAccessExpression(re,"label"),Dt=t.createSwitchStatement(Ae,t.createCaseBlock(Ee));return[Ku(Dt)]}return xe||[]}function xt(){xe&&(Pr(!ce),ce=!1,me=!1,ae++)}function pn(Ae){wr(Ae)&&(ba(Ae),Ve=void 0,vd(void 0,void 0)),xe&&Ee&&Pr(!1),ls()}function wr(Ae){if(!me)return!0;if(!H||!ne)return!1;for(let Dt=0;Dt<H.length;Dt++)if(H[Dt]===Ae&&ne[Dt])return!0;return!1}function Pr(Ae){if(Ee||(Ee=[]),xe){if(Ve)for(let Dt=Ve.length-1;Dt>=0;Dt--){const On=Ve[Dt];xe=[t.createWithStatement(On.expression,t.createBlock(xe))]}if(Qe){const{startLabel:Dt,catchLabel:On,finallyLabel:Yi,endLabel:Io}=Qe;xe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(re,"trys"),"push"),void 0,[t.createArrayLiteralExpression([$o(Dt),$o(On),$o(Yi),$o(Io)])]))),Qe=void 0}Ae&&xe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(re,"label"),t.createNumericLiteral(ae+1))))}Ee.push(t.createCaseClause(t.createNumericLiteral(ae),xe||[])),xe=void 0}function ba(Ae){if(H)for(let Dt=0;Dt<H.length;Dt++)H[Dt]===Ae&&(xt(),W===void 0&&(W=[]),W[ae]===void 0?W[ae]=[Dt]:W[ae].push(Dt))}function ls(){if(ne!==void 0&&W!==void 0)for(let Ae=0;Ae<W.length;Ae++){const Dt=W[Ae];if(Dt!==void 0)for(const On of Dt){const Yi=ne[On];if(Yi!==void 0)for(const Io of Yi)Io.text=String(Ae)}}}function go(Ae){if(O)for(;be<G.length&&k[be]<=Ae;be++){const Dt=O[be],On=G[be];switch(Dt.kind){case 0:On===0?(te||(te=[]),xe||(xe=[]),te.push(Qe),Qe=Dt):On===1&&(Qe=te.pop());break;case 1:On===0?(Ve||(Ve=[]),Ve.push(Dt)):On===1&&Ve.pop();break}}}function Wo(Ae){if(ba(Ae),go(Ae),ce)return;ce=!1,me=!1;const Dt=$[Ae];if(Dt===0)return;if(Dt===10)return Hf();const On=M[Ae];if(Dt===1)return $a(On[0]);const Yi=de[Ae];switch(Dt){case 2:return pl(On[0],On[1],Yi);case 3:return Ts(On[0],Yi);case 4:return fs(On[0],On[1],Yi);case 5:return ml(On[0],On[1],Yi);case 6:return Zd(On[0],Yi);case 7:return ql(On[0],Yi);case 8:return vd(On[0],Yi);case 9:return yc(On[0],Yi)}}function $a(Ae){Ae&&(xe?xe.push(Ae):xe=[Ae])}function pl(Ae,Dt,On){$a(ht(t.createExpressionStatement(t.createAssignment(Ae,Dt)),On))}function yc(Ae,Dt){ce=!0,me=!0,$a(ht(t.createThrowStatement(Ae),Dt))}function vd(Ae,Dt){ce=!0,me=!0,$a(sr(ht(t.createReturnStatement(t.createArrayLiteralExpression(Ae?[Wl(2),Ae]:[Wl(2)])),Dt),768))}function Ts(Ae,Dt){ce=!0,$a(sr(ht(t.createReturnStatement(t.createArrayLiteralExpression([Wl(3),$o(Ae)])),Dt),768))}function fs(Ae,Dt,On){$a(sr(t.createIfStatement(Dt,sr(ht(t.createReturnStatement(t.createArrayLiteralExpression([Wl(3),$o(Ae)])),On),768)),1))}function ml(Ae,Dt,On){$a(sr(t.createIfStatement(t.createLogicalNot(Dt),sr(ht(t.createReturnStatement(t.createArrayLiteralExpression([Wl(3),$o(Ae)])),On),768)),1))}function Zd(Ae,Dt){ce=!0,$a(sr(ht(t.createReturnStatement(t.createArrayLiteralExpression(Ae?[Wl(4),Ae]:[Wl(4)])),Dt),768))}function ql(Ae,Dt){ce=!0,$a(sr(ht(t.createReturnStatement(t.createArrayLiteralExpression([Wl(5),Ae])),Dt),768))}function Hf(){ce=!0,$a(t.createReturnStatement(t.createArrayLiteralExpression([Wl(7)])))}}var LFe=S({"src/compiler/transformers/generators.ts"(){Na()}});function hY(e){function t(ie){switch(ie){case 2:return M;case 3:return de;default:return $}}const{factory:r,getEmitHelperFactory:i,startLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:c}=e,f=e.getCompilerOptions(),d=e.getEmitResolver(),v=e.getEmitHost(),h=ts(f),E=du(f),C=e.onSubstituteNode,L=e.onEmitNode;e.onSubstituteNode=Ar,e.onEmitNode=Mn,e.enableSubstitution(210),e.enableSubstitution(212),e.enableSubstitution(79),e.enableSubstitution(223),e.enableSubstitution(300),e.enableEmitNotification(308);const I=[],O=[];let k,G;const V=[];let H;return rp(e,ne);function ne(ie){if(ie.isDeclarationFile||!(bx(ie,f)||ie.transformFlags&8388608||T_(ie)&&f7(f)&&Ks(f)))return ie;k=ie,G=rY(e,ie,d,f),I[Nl(ie)]=G;const j=t(E)(ie);return k=void 0,G=void 0,H=!1,j}function Y(){return!!(!G.exportEquals&&rc(k))}function $(ie){o();const he=[],j=C_(f,"alwaysStrict")||!f.noImplicitUseStrict&&rc(k),He=r.copyPrologue(ie.statements,he,j&&!T_(ie),ce);if(Y()&&Bn(he,Mi()),Le(G.exportedNames))for(let Ut=0;Ut<G.exportedNames.length;Ut+=50)Bn(he,r.createExpressionStatement(Gu(G.exportedNames.slice(Ut,Ut+50),(ln,Sn)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Mr(Sn))),ln),r.createVoidZero())));Bn(he,lt(G.externalHelpersImportDeclaration,ce,ka)),Ai(he,Kn(ie.statements,ce,ka,He)),W(he,!1),Wm(he,s());const Ze=r.updateSourceFile(ie,ht(r.createNodeArray(he),ie.statements));return Ny(Ze,e.readEmitHelpers()),Ze}function M(ie){const he=r.createIdentifier("define"),j=c8(r,ie,v,f),He=T_(ie)&&ie,{aliasedModuleNames:Ze,unaliasedModuleNames:Xe,importAliasNames:Ut}=re(ie,!0),ln=r.updateSourceFile(ie,ht(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(he,void 0,[...j?[j]:[],r.createArrayLiteralExpression(He?rt:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...Ze,...Xe]),He?He.statements.length?He.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...Ut],void 0,ae(ie))]))]),ie.statements));return Ny(ln,e.readEmitHelpers()),ln}function de(ie){const{aliasedModuleNames:he,unaliasedModuleNames:j,importAliasNames:He}=re(ie,!1),Ze=c8(r,ie,v,f),Xe=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,ht(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),sr(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...Ze?[Ze]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...he,...j]),r.createIdentifier("factory")]))])))],!0),void 0)),Ut=r.updateSourceFile(ie,ht(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Xe,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...He],void 0,ae(ie))]))]),ie.statements));return Ny(Ut,e.readEmitHelpers()),Ut}function re(ie,he){const j=[],He=[],Ze=[];for(const Xe of ie.amdDependencies)Xe.name?(j.push(r.createStringLiteral(Xe.path)),Ze.push(r.createParameterDeclaration(void 0,void 0,Xe.name))):He.push(r.createStringLiteral(Xe.path));for(const Xe of G.externalImports){const Ut=r2(r,Xe,k,v,d,f),ln=JC(r,Xe,k);Ut&&(he&&ln?(sr(ln,8),j.push(Ut),Ze.push(r.createParameterDeclaration(void 0,void 0,ln))):He.push(Ut))}return{aliasedModuleNames:j,unaliasedModuleNames:He,importAliasNames:Ze}}function be(ie){if(_u(ie)||au(ie)||!r2(r,ie,k,v,d,f))return;const he=JC(r,ie,k),j=Et(ie,he);if(j!==he)return r.createExpressionStatement(r.createAssignment(he,j))}function ae(ie){o();const he=[],j=r.copyPrologue(ie.statements,he,!f.noImplicitUseStrict,ce);Y()&&Bn(he,Mi()),Le(G.exportedNames)&&Bn(he,r.createExpressionStatement(Gu(G.exportedNames,(Ze,Xe)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Mr(Xe))),Ze),r.createVoidZero()))),Bn(he,lt(G.externalHelpersImportDeclaration,ce,ka)),E===2&&Ai(he,pa(G.externalImports,be)),Ai(he,Kn(ie.statements,ce,ka,j)),W(he,!0),Wm(he,s());const He=r.createBlock(he,!0);return H&&Gx(He,Jye),He}function W(ie,he){if(G.exportEquals){const j=lt(G.exportEquals.expression,Ee,vt);if(j)if(he){const He=r.createReturnStatement(j);ht(He,G.exportEquals),sr(He,3840),ie.push(He)}else{const He=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),j));ht(He,G.exportEquals),sr(He,3072),ie.push(He)}}}function ce(ie){switch(ie.kind){case 269:return Vt(ie);case 268:return at(ie);case 275:return on(ie);case 274:return Qt(ie);case 240:return kn(ie);case 259:return Pn(ie);case 260:return Hn(ie);case 358:return wi(ie);case 359:return Zi(ie);default:return Ee(ie)}}function me(ie,he){if(!(ie.transformFlags&276828160))return ie;switch(ie.kind){case 245:return Ve(ie);case 241:return Ge(ie);case 214:return ze(ie,he);case 356:return Oe(ie,he);case 210:if(hf(ie)&&k.impliedNodeFormat===void 0)return Ye(ie);break;case 223:if(Dy(ie))return Qe(ie,he);break;case 221:case 222:return Me(ie,he)}return Gn(ie,Ee,e)}function Ee(ie){return me(ie,!1)}function xe(ie){return me(ie,!0)}function te(ie){if(Is(ie))for(const he of ie.properties)switch(he.kind){case 299:if(te(he.initializer))return!0;break;case 300:if(te(he.name))return!0;break;case 301:if(te(he.expression))return!0;break;case 171:case 174:case 175:return!1;default:D.assertNever(he,"Unhandled object member kind")}else if(zu(ie)){for(const he of ie.elements)if(Fh(he)){if(te(he.expression))return!0}else if(te(he))return!0}else if(je(ie))return Le(pe(ie))>(x5(ie)?1:0);return!1}function Qe(ie,he){return te(ie.left)?ZT(ie,Ee,e,0,!he,Zt):Gn(ie,Ee,e)}function Ve(ie){return r.updateForStatement(ie,lt(ie.initializer,xe,rm),lt(ie.condition,Ee,vt),lt(ie.incrementor,xe,vt),I_(ie.statement,Ee,e))}function Ge(ie){return r.updateExpressionStatement(ie,lt(ie.expression,xe,vt))}function ze(ie,he){return r.updateParenthesizedExpression(ie,lt(ie.expression,he?xe:Ee,vt))}function Oe(ie,he){return r.updatePartiallyEmittedExpression(ie,lt(ie.expression,he?xe:Ee,vt))}function Me(ie,he){if((ie.operator===45||ie.operator===46)&&je(ie.operand)&&!Ll(ie.operand)&&!$v(ie.operand)&&!hO(ie.operand)){const j=pe(ie.operand);if(j){let He,Ze=lt(ie.operand,Ee,vt);Xv(ie)?Ze=r.updatePrefixUnaryExpression(ie,Ze):(Ze=r.updatePostfixUnaryExpression(ie,Ze),he||(He=r.createTempVariable(c),Ze=r.createAssignment(He,Ze),ht(Ze,ie)),Ze=r.createComma(Ze,r.cloneNode(ie.operand)),ht(Ze,ie));for(const Xe of j)V[hs(Ze)]=!0,Ze=Nn(Xe,Ze),ht(Ze,ie);return He&&(V[hs(Ze)]=!0,Ze=r.createComma(Ze,He),ht(Ze,ie)),Ze}}return Gn(ie,Ee,e)}function Ye(ie){if(E===0&&h>=7)return Gn(ie,Ee,e);const he=r2(r,ie,k,v,d,f),j=lt(tu(ie.arguments),Ee,vt),He=he&&(!j||!Ho(j)||j.text!==he.text)?he:j,Ze=!!(ie.transformFlags&16384);switch(f.module){case 2:return Fe(He,Ze);case 3:return We(He!=null?He:r.createVoidZero(),Ze);case 1:default:return st(He)}}function We(ie,he){if(H=!0,rE(ie)){const j=Ll(ie)?ie:Ho(ie)?r.createStringLiteralFromNode(ie):sr(ht(r.cloneNode(ie),ie),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,st(ie),void 0,Fe(j,he))}else{const j=r.createTempVariable(c);return r.createComma(r.createAssignment(j,ie),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,st(j,!0),void 0,Fe(j,he)))}}function Fe(ie,he){const j=r.createUniqueName("resolve"),He=r.createUniqueName("reject"),Ze=[r.createParameterDeclaration(void 0,void 0,j),r.createParameterDeclaration(void 0,void 0,He)],Xe=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([ie||r.createOmittedExpression()]),j,He]))]);let Ut;h>=2?Ut=r.createArrowFunction(void 0,void 0,Ze,void 0,void 0,Xe):(Ut=r.createFunctionExpression(void 0,void 0,void 0,void 0,Ze,void 0,Xe),he&&sr(Ut,16));const ln=r.createNewExpression(r.createIdentifier("Promise"),void 0,[Ut]);return $_(f)?r.createCallExpression(r.createPropertyAccessExpression(ln,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):ln}function st(ie,he){const j=ie&&!pm(ie)&&!he,He=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,j?h>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(ie,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[ie])]:[]);let Ze=r.createCallExpression(r.createIdentifier("require"),void 0,j?[r.createIdentifier("s")]:ie?[ie]:[]);$_(f)&&(Ze=i().createImportStarHelper(Ze));const Xe=j?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let Ut;return h>=2?Ut=r.createArrowFunction(void 0,void 0,Xe,void 0,void 0,Ze):Ut=r.createFunctionExpression(void 0,void 0,void 0,void 0,Xe,void 0,r.createBlock([r.createReturnStatement(Ze)])),r.createCallExpression(r.createPropertyAccessExpression(He,"then"),void 0,[Ut])}function Ct(ie,he){return!$_(f)||z_(ie)&2?he:bye(ie)?i().createImportStarHelper(he):he}function Et(ie,he){return!$_(f)||z_(ie)&2?he:TF(ie)?i().createImportStarHelper(he):nY(ie)?i().createImportDefaultHelper(he):he}function Vt(ie){let he;const j=lC(ie);if(E!==2)if(ie.importClause){const He=[];j&&!xx(ie)?He.push(r.createVariableDeclaration(r.cloneNode(j.name),void 0,void 0,Et(ie,tt(ie)))):(He.push(r.createVariableDeclaration(r.getGeneratedNameForNode(ie),void 0,void 0,Et(ie,tt(ie)))),j&&xx(ie)&&He.push(r.createVariableDeclaration(r.cloneNode(j.name),void 0,void 0,r.getGeneratedNameForNode(ie)))),he=Bn(he,Wr(ht(r.createVariableStatement(void 0,r.createVariableDeclarationList(He,h>=2?2:0)),ie),ie))}else return Wr(ht(r.createExpressionStatement(tt(ie)),ie),ie);else j&&xx(ie)&&(he=Bn(he,r.createVariableStatement(void 0,r.createVariableDeclarationList([Wr(ht(r.createVariableDeclaration(r.cloneNode(j.name),void 0,void 0,r.getGeneratedNameForNode(ie)),ie),ie)],h>=2?2:0))));if(Qi(ie)){const He=Nl(ie);O[He]=Or(O[He],ie)}else he=Or(he,ie);return Pm(he)}function tt(ie){const he=r2(r,ie,k,v,d,f),j=[];return he&&j.push(he),r.createCallExpression(r.createIdentifier("require"),void 0,j)}function at(ie){D.assert(sb(ie),"import= for internal module references should be handled in an earlier transformer.");let he;if(E!==2?$r(ie,1)?he=Bn(he,Wr(ht(r.createExpressionStatement(Nn(ie.name,tt(ie))),ie),ie)):he=Bn(he,Wr(ht(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(ie.name),void 0,void 0,tt(ie))],h>=2?2:0)),ie),ie)):$r(ie,1)&&(he=Bn(he,Wr(ht(r.createExpressionStatement(Nn(r.getExportName(ie),r.getLocalName(ie))),ie),ie))),Qi(ie)){const j=Nl(ie);O[j]=At(O[j],ie)}else he=At(he,ie);return Pm(he)}function on(ie){if(!ie.moduleSpecifier)return;const he=r.getGeneratedNameForNode(ie);if(ie.exportClause&&tp(ie.exportClause)){const j=[];E!==2&&j.push(Wr(ht(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(he,void 0,void 0,tt(ie))])),ie),ie));for(const He of ie.exportClause.elements)if(h===0)j.push(Wr(ht(r.createExpressionStatement(i().createCreateBindingHelper(he,r.createStringLiteralFromNode(He.propertyName||He.name),He.propertyName?r.createStringLiteralFromNode(He.name):void 0)),He),He));else{const Ze=!!$_(f)&&!(z_(ie)&2)&&Mr(He.propertyName||He.name)==="default",Xe=r.createPropertyAccessExpression(Ze?i().createImportDefaultHelper(he):he,He.propertyName||He.name);j.push(Wr(ht(r.createExpressionStatement(Nn(r.getExportName(He),Xe,void 0,!0)),He),He))}return Pm(j)}else if(ie.exportClause){const j=[];return j.push(Wr(ht(r.createExpressionStatement(Nn(r.cloneNode(ie.exportClause.name),Ct(ie,E!==2?tt(ie):T3(ie)?he:r.createIdentifier(Mr(ie.exportClause.name))))),ie),ie)),Pm(j)}else return Wr(ht(r.createExpressionStatement(i().createExportStarHelper(E!==2?tt(ie):he)),ie),ie)}function Qt(ie){if(ie.isExportEquals)return;let he;const j=ie.original;if(j&&Qi(j)){const He=Nl(ie);O[He]=cr(O[He],r.createIdentifier("default"),lt(ie.expression,Ee,vt),ie,!0)}else he=cr(he,r.createIdentifier("default"),lt(ie.expression,Ee,vt),ie,!0);return Pm(he)}function Pn(ie){let he;if($r(ie,1)?he=Bn(he,Wr(ht(r.createFunctionDeclaration(Kn(ie.modifiers,rn,_o),ie.asteriskToken,r.getDeclarationName(ie,!0,!0),void 0,Kn(ie.parameters,Ee,Fa),void 0,Gn(ie.body,Ee,e)),ie),ie)):he=Bn(he,Gn(ie,Ee,e)),Qi(ie)){const j=Nl(ie);O[j]=un(O[j],ie)}else he=un(he,ie);return Pm(he)}function Hn(ie){let he;if($r(ie,1)?he=Bn(he,Wr(ht(r.createClassDeclaration(Kn(ie.modifiers,rn,il),r.getDeclarationName(ie,!0,!0),void 0,Kn(ie.heritageClauses,Ee,Kd),Kn(ie.members,Ee,qc)),ie),ie)):he=Bn(he,Gn(ie,Ee,e)),Qi(ie)){const j=Nl(ie);O[j]=un(O[j],ie)}else he=un(he,ie);return Pm(he)}function kn(ie){let he,j,He;if($r(ie,1)){let Ze,Xe=!1;for(const Ut of ie.declarationList.declarations)if(je(Ut.name)&&$v(Ut.name))if(Ze||(Ze=Kn(ie.modifiers,rn,_o)),Ut.initializer){const ln=r.updateVariableDeclaration(Ut,Ut.name,void 0,void 0,Nn(Ut.name,lt(Ut.initializer,Ee,vt)));j=Bn(j,ln)}else j=Bn(j,Ut);else if(Ut.initializer)if(!Ya(Ut.name)&&(Xs(Ut.initializer)||Us(Ut.initializer)||qu(Ut.initializer))){const ln=r.createAssignment(ht(r.createPropertyAccessExpression(r.createIdentifier("exports"),Ut.name),Ut.name),r.createIdentifier(K_(Ut.name))),Sn=r.createVariableDeclaration(Ut.name,Ut.exclamationToken,Ut.type,lt(Ut.initializer,Ee,vt));j=Bn(j,Sn),He=Bn(He,ln),Xe=!0}else He=Bn(He,_r(Ut));if(j&&(he=Bn(he,r.updateVariableStatement(ie,Ze,r.updateVariableDeclarationList(ie.declarationList,j)))),He){const Ut=Wr(ht(r.createExpressionStatement(r.inlineExpressions(He)),ie),ie);Xe&&BO(Ut),he=Bn(he,Ut)}}else he=Bn(he,Gn(ie,Ee,e));if(Qi(ie)){const Ze=Nl(ie);O[Ze]=vn(O[Ze],ie)}else he=vn(he,ie);return Pm(he)}function Zt(ie,he,j){const He=pe(ie);if(He){let Ze=x5(ie)?he:r.createAssignment(ie,he);for(const Xe of He)sr(Ze,8),Ze=Nn(Xe,Ze,j);return Ze}return r.createAssignment(ie,he)}function _r(ie){return Ya(ie.name)?ZT(lt(ie,Ee,Kq),Ee,e,0,!1,Zt):r.createAssignment(ht(r.createPropertyAccessExpression(r.createIdentifier("exports"),ie.name),ie.name),ie.initializer?lt(ie.initializer,Ee,vt):r.createVoidZero())}function wi(ie){if(Qi(ie)&&ie.original.kind===240){const he=Nl(ie);O[he]=vn(O[he],ie.original)}return ie}function Qi(ie){return(bo(ie)&8388608)!==0}function Zi(ie){const he=Nl(ie),j=O[he];return j?(delete O[he],Bn(j,ie)):ie}function Or(ie,he){if(G.exportEquals)return ie;const j=he.importClause;if(!j)return ie;j.name&&(ie=ir(ie,j));const He=j.namedBindings;if(He)switch(He.kind){case 271:ie=ir(ie,He);break;case 272:for(const Ze of He.elements)ie=ir(ie,Ze,!0);break}return ie}function At(ie,he){return G.exportEquals?ie:ir(ie,he)}function vn(ie,he){if(G.exportEquals)return ie;for(const j of he.declarationList.declarations)ie=Ht(ie,j);return ie}function Ht(ie,he){if(G.exportEquals)return ie;if(Ya(he.name))for(const j of he.name.elements)Fc(j)||(ie=Ht(ie,j));else Ll(he.name)||(ie=ir(ie,he));return ie}function un(ie,he){if(G.exportEquals)return ie;if($r(he,1)){const j=$r(he,1024)?r.createIdentifier("default"):r.getDeclarationName(he);ie=cr(ie,j,r.getLocalName(he),he)}return he.name&&(ie=ir(ie,he)),ie}function ir(ie,he,j){const He=r.getDeclarationName(he),Ze=G.exportSpecifiers.get(Mr(He));if(Ze)for(const Xe of Ze)ie=cr(ie,Xe.name,He,Xe.name,void 0,j);return ie}function cr(ie,he,j,He,Ze,Xe){return ie=Bn(ie,vi(he,j,He,Ze,Xe)),ie}function Mi(){let ie;return h===0?ie=r.createExpressionStatement(Nn(r.createIdentifier("__esModule"),r.createTrue())):ie=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),sr(ie,2097152),ie}function vi(ie,he,j,He,Ze){const Xe=ht(r.createExpressionStatement(Nn(ie,he,void 0,Ze)),j);return Ku(Xe),He||sr(Xe,3072),Xe}function Nn(ie,he,j,He){return ht(He&&h!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(ie),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(he)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(ie)),he),j)}function rn(ie){switch(ie.kind){case 93:case 88:return}return ie}function Mn(ie,he,j){he.kind===308?(k=he,G=I[Nl(k)],L(ie,he,j),k=void 0,G=void 0):L(ie,he,j)}function Ar(ie,he){return he=C(ie,he),he.id&&V[he.id]?he:ie===1?we(he):u_(he)?Hr(he):he}function Hr(ie){const he=ie.name,j=Ce(he);if(j!==he){if(ie.objectAssignmentInitializer){const He=r.createAssignment(j,ie.objectAssignmentInitializer);return ht(r.createPropertyAssignment(he,He),ie)}return ht(r.createPropertyAssignment(he,j),ie)}return ie}function we(ie){switch(ie.kind){case 79:return Ce(ie);case 210:return yt(ie);case 212:return Nt(ie);case 223:return pt(ie)}return ie}function yt(ie){if(je(ie.expression)){const he=Ce(ie.expression);if(V[hs(he)]=!0,!je(he)&&!(bo(ie.expression)&8192))return Bx(r.updateCallExpression(ie,he,void 0,ie.arguments),16)}return ie}function Nt(ie){if(je(ie.tag)){const he=Ce(ie.tag);if(V[hs(he)]=!0,!je(he)&&!(bo(ie.tag)&8192))return Bx(r.updateTaggedTemplateExpression(ie,he,void 0,ie.template),16)}return ie}function Ce(ie){var he,j;if(bo(ie)&8192){const He=l8(k);return He?r.createPropertyAccessExpression(He,ie):ie}else if(!(Ll(ie)&&!(ie.emitNode.autoGenerate.flags&64))&&!$v(ie)){const He=d.getReferencedExportContainer(ie,x5(ie));if(He&&He.kind===308)return ht(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(ie)),ie);const Ze=d.getReferencedImportDeclaration(ie);if(Ze){if(Zm(Ze))return ht(r.createPropertyAccessExpression(r.getGeneratedNameForNode(Ze.parent),r.createIdentifier("default")),ie);if(Nd(Ze)){const Xe=Ze.propertyName||Ze.name;return ht(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((j=(he=Ze.parent)==null?void 0:he.parent)==null?void 0:j.parent)||Ze),r.cloneNode(Xe)),ie)}}}return ie}function pt(ie){if(wy(ie.operatorToken.kind)&&je(ie.left)&&!Ll(ie.left)&&!$v(ie.left)&&!hO(ie.left)){const he=pe(ie.left);if(he){let j=ie;for(const He of he)V[hs(j)]=!0,j=Nn(He,j,ie);return j}}return ie}function pe(ie){if(!Ll(ie)){const he=d.getReferencedImportDeclaration(ie)||d.getReferencedValueDeclaration(ie);if(he)return G&&G.exportedBindings[Nl(he)]}}}var Jye,IFe=S({"src/compiler/transformers/module/module.ts"(){Na(),Jye={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
- var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Kye(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),f=e.getEmitHost(),d=e.onSubstituteNode,v=e.onEmitNode;e.onSubstituteNode=Ze,e.onEmitNode=He,e.enableSubstitution(79),e.enableSubstitution(300),e.enableSubstitution(223),e.enableSubstitution(233),e.enableEmitNotification(308);const h=[],E=[],C=[],L=[],I=[];let O,k,G,V,H,ne,Y;return rp(e,$);function $(K){if(K.isDeclarationFile||!(bx(K,s)||K.transformFlags&8388608))return K;const Pe=Nl(K);O=K,ne=K,k=h[Pe]=rY(e,K,c,s),G=t.createUniqueName("exports"),C[Pe]=G,V=I[Pe]=t.createUniqueName("context");const ee=M(k.externalImports),Re=de(K,ee),q=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,G),t.createParameterDeclaration(void 0,void 0,V)],void 0,Re),Rt=c8(t,K,f,s),gt=t.createArrayLiteralExpression(zt(ee,fn=>fn.name)),ft=sr(t.updateSourceFile(K,ht(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,Rt?[Rt,gt,q]:[gt,q]))]),K.statements)),2048);return Ks(s)||qpe(ft,Re,fn=>!fn.scoped),Y&&(L[Pe]=Y,Y=void 0),O=void 0,k=void 0,G=void 0,V=void 0,H=void 0,ne=void 0,ft}function M(K){const Pe=new Map,ee=[];for(const Re of K){const q=r2(t,Re,O,f,c,s);if(q){const Rt=q.text,gt=Pe.get(Rt);gt!==void 0?ee[gt].externalImports.push(Re):(Pe.set(Rt,ee.length),ee.push({name:q,externalImports:[Re]}))}}return ee}function de(K,Pe){const ee=[];r();const Re=C_(s,"alwaysStrict")||!s.noImplicitUseStrict&&rc(O),q=t.copyPrologue(K.statements,ee,Re,W);ee.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(V,t.createPropertyAccessExpression(V,"id")))]))),lt(k.externalHelpersImportDeclaration,W,ka);const Rt=Kn(K.statements,W,ka,q);Ai(ee,H),Wm(ee,i());const gt=re(ee),ft=K.transformFlags&2097152?t.createModifiersFromModifierFlags(512):void 0,fn=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ae(gt,Pe)),t.createPropertyAssignment("execute",t.createFunctionExpression(ft,void 0,void 0,void 0,[],void 0,t.createBlock(Rt,!0)))],!0);return ee.push(t.createReturnStatement(fn)),t.createBlock(ee,!0)}function re(K){if(!k.hasExportStarsToExportValues)return;if(!k.exportedNames&&k.exportSpecifiers.size===0){let q=!1;for(const Rt of k.externalImports)if(Rt.kind===275&&Rt.exportClause){q=!0;break}if(!q){const Rt=be(void 0);return K.push(Rt),Rt.name}}const Pe=[];if(k.exportedNames)for(const q of k.exportedNames)q.escapedText!=="default"&&Pe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(q),t.createTrue()));const ee=t.createUniqueName("exportedNames");K.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ee,void 0,void 0,t.createObjectLiteralExpression(Pe,!0))])));const Re=be(ee);return K.push(Re),Re.name}function be(K){const Pe=t.createUniqueName("exportStar"),ee=t.createIdentifier("m"),Re=t.createIdentifier("n"),q=t.createIdentifier("exports");let Rt=t.createStrictInequality(Re,t.createStringLiteral("default"));return K&&(Rt=t.createLogicalAnd(Rt,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(K,"hasOwnProperty"),void 0,[Re])))),t.createFunctionDeclaration(void 0,void 0,Pe,void 0,[t.createParameterDeclaration(void 0,void 0,ee)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(q,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(Re)]),ee,t.createBlock([sr(t.createIfStatement(Rt,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(q,Re),t.createElementAccessExpression(ee,Re)))),1)])),t.createExpressionStatement(t.createCallExpression(G,void 0,[q]))],!0))}function ae(K,Pe){const ee=[];for(const Re of Pe){const q=Je(Re.externalImports,ft=>JC(t,ft,O)),Rt=q?t.getGeneratedNameForNode(q):t.createUniqueName(""),gt=[];for(const ft of Re.externalImports){const fn=JC(t,ft,O);switch(ft.kind){case 269:if(!ft.importClause)break;case 268:D.assert(fn!==void 0),gt.push(t.createExpressionStatement(t.createAssignment(fn,Rt))),$r(ft,1)&>.push(t.createExpressionStatement(t.createCallExpression(G,void 0,[t.createStringLiteral(Mr(fn)),Rt])));break;case 275:if(D.assert(fn!==void 0),ft.exportClause)if(tp(ft.exportClause)){const $n=[];for(const li of ft.exportClause.elements)$n.push(t.createPropertyAssignment(t.createStringLiteral(Mr(li.name)),t.createElementAccessExpression(Rt,t.createStringLiteral(Mr(li.propertyName||li.name)))));gt.push(t.createExpressionStatement(t.createCallExpression(G,void 0,[t.createObjectLiteralExpression($n,!0)])))}else gt.push(t.createExpressionStatement(t.createCallExpression(G,void 0,[t.createStringLiteral(Mr(ft.exportClause.name)),Rt])));else gt.push(t.createExpressionStatement(t.createCallExpression(K,void 0,[Rt])));break}}ee.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Rt)],void 0,t.createBlock(gt,!0)))}return t.createArrayLiteralExpression(ee,!0)}function W(K){switch(K.kind){case 269:return ce(K);case 268:return Ee(K);case 275:return me(K);case 274:return xe(K);default:return Zt(K)}}function ce(K){let Pe;if(K.importClause&&o(JC(t,K,O)),st(K)){const ee=Nl(K);E[ee]=Et(E[ee],K)}else Pe=Et(Pe,K);return Pm(Pe)}function me(K){D.assertIsDefined(K)}function Ee(K){D.assert(sb(K),"import= for internal module references should be handled in an earlier transformer.");let Pe;if(o(JC(t,K,O)),st(K)){const ee=Nl(K);E[ee]=Vt(E[ee],K)}else Pe=Vt(Pe,K);return Pm(Pe)}function xe(K){if(K.isExportEquals)return;const Pe=lt(K.expression,Hr,vt),ee=K.original;if(ee&&st(ee)){const Re=Nl(K);E[Re]=Pn(E[Re],t.createIdentifier("default"),Pe,!0)}else return Hn(t.createIdentifier("default"),Pe,!0)}function te(K){if($r(K,1)?H=Bn(H,t.updateFunctionDeclaration(K,Kn(K.modifiers,j,il),K.asteriskToken,t.getDeclarationName(K,!0,!0),void 0,Kn(K.parameters,Hr,Fa),void 0,lt(K.body,Hr,uo))):H=Bn(H,Gn(K,Hr,e)),st(K)){const Pe=Nl(K);E[Pe]=on(E[Pe],K)}else H=on(H,K)}function Qe(K){let Pe;const ee=t.getLocalName(K);if(o(ee),Pe=Bn(Pe,ht(t.createExpressionStatement(t.createAssignment(ee,ht(t.createClassExpression(Kn(K.modifiers,j,il),K.name,void 0,Kn(K.heritageClauses,Hr,Kd),Kn(K.members,Hr,qc)),K))),K)),st(K)){const Re=Nl(K);E[Re]=on(E[Re],K)}else Pe=on(Pe,K);return Pm(Pe)}function Ve(K){if(!ze(K.declarationList))return lt(K,Hr,ka);let Pe;const ee=$r(K,1),Re=st(K);for(const Rt of K.declarationList.declarations)Rt.initializer?Pe=Bn(Pe,Oe(Rt,ee&&!Re)):Ge(Rt);let q;if(Pe&&(q=Bn(q,ht(t.createExpressionStatement(t.inlineExpressions(Pe)),K))),Re){const Rt=Nl(K);E[Rt]=tt(E[Rt],K,ee)}else q=tt(q,K,!1);return Pm(q)}function Ge(K){if(Ya(K.name))for(const Pe of K.name.elements)Fc(Pe)||Ge(Pe);else o(t.cloneNode(K.name))}function ze(K){return(bo(K)&4194304)===0&&(ne.kind===308||(Cl(K).flags&3)===0)}function Oe(K,Pe){const ee=Pe?Me:Ye;return Ya(K.name)?ZT(K,Hr,e,0,!1,ee):K.initializer?ee(K.name,lt(K.initializer,Hr,vt)):K.name}function Me(K,Pe,ee){return We(K,Pe,ee,!0)}function Ye(K,Pe,ee){return We(K,Pe,ee,!1)}function We(K,Pe,ee,Re){return o(t.cloneNode(K)),Re?kn(K,Wt(ht(t.createAssignment(K,Pe),ee))):Wt(ht(t.createAssignment(K,Pe),ee))}function Fe(K){if(st(K)&&K.original.kind===240){const Pe=Nl(K),ee=$r(K.original,1);E[Pe]=tt(E[Pe],K.original,ee)}return K}function st(K){return(bo(K)&8388608)!==0}function Ct(K){const Pe=Nl(K),ee=E[Pe];if(ee)return delete E[Pe],Bn(ee,K);{const Re=Cl(K);if(yN(Re))return Bn(Qt(ee,Re),K)}return K}function Et(K,Pe){if(k.exportEquals)return K;const ee=Pe.importClause;if(!ee)return K;ee.name&&(K=Qt(K,ee));const Re=ee.namedBindings;if(Re)switch(Re.kind){case 271:K=Qt(K,Re);break;case 272:for(const q of Re.elements)K=Qt(K,q);break}return K}function Vt(K,Pe){return k.exportEquals?K:Qt(K,Pe)}function tt(K,Pe,ee){if(k.exportEquals)return K;for(const Re of Pe.declarationList.declarations)(Re.initializer||ee)&&(K=at(K,Re,ee));return K}function at(K,Pe,ee){if(k.exportEquals)return K;if(Ya(Pe.name))for(const Re of Pe.name.elements)Fc(Re)||(K=at(K,Re,ee));else if(!Ll(Pe.name)){let Re;ee&&(K=Pn(K,Pe.name,t.getLocalName(Pe)),Re=Mr(Pe.name)),K=Qt(K,Pe,Re)}return K}function on(K,Pe){if(k.exportEquals)return K;let ee;if($r(Pe,1)){const Re=$r(Pe,1024)?t.createStringLiteral("default"):Pe.name;K=Pn(K,Re,t.getLocalName(Pe)),ee=K_(Re)}return Pe.name&&(K=Qt(K,Pe,ee)),K}function Qt(K,Pe,ee){if(k.exportEquals)return K;const Re=t.getDeclarationName(Pe),q=k.exportSpecifiers.get(Mr(Re));if(q)for(const Rt of q)Rt.name.escapedText!==ee&&(K=Pn(K,Rt.name,Re));return K}function Pn(K,Pe,ee,Re){return K=Bn(K,Hn(Pe,ee,Re)),K}function Hn(K,Pe,ee){const Re=t.createExpressionStatement(kn(K,Pe));return Ku(Re),ee||sr(Re,3072),Re}function kn(K,Pe){const ee=je(K)?t.createStringLiteralFromNode(K):K;return sr(Pe,bo(Pe)|3072),Xc(t.createCallExpression(G,void 0,[ee,Pe]),Pe)}function Zt(K){switch(K.kind){case 240:return Ve(K);case 259:return te(K);case 260:return Qe(K);case 245:return _r(K,!0);case 246:return wi(K);case 247:return Qi(K);case 243:return At(K);case 244:return vn(K);case 253:return Ht(K);case 251:return un(K);case 252:return ir(K);case 266:return cr(K);case 292:return Mi(K);case 293:return vi(K);case 255:return Nn(K);case 295:return rn(K);case 238:return Mn(K);case 358:return Fe(K);case 359:return Ct(K);default:return Hr(K)}}function _r(K,Pe){const ee=ne;return ne=K,K=t.updateForStatement(K,lt(K.initializer,Pe?Or:we,rm),lt(K.condition,Hr,vt),lt(K.incrementor,we,vt),I_(K.statement,Pe?Zt:Hr,e)),ne=ee,K}function wi(K){const Pe=ne;return ne=K,K=t.updateForInStatement(K,Or(K.initializer),lt(K.expression,Hr,vt),I_(K.statement,Zt,e)),ne=Pe,K}function Qi(K){const Pe=ne;return ne=K,K=t.updateForOfStatement(K,K.awaitModifier,Or(K.initializer),lt(K.expression,Hr,vt),I_(K.statement,Zt,e)),ne=Pe,K}function Zi(K){return Ju(K)&&ze(K)}function Or(K){if(Zi(K)){let Pe;for(const ee of K.declarations)Pe=Bn(Pe,Oe(ee,!1)),ee.initializer||Ge(ee);return Pe?t.inlineExpressions(Pe):t.createOmittedExpression()}else return lt(K,we,rm)}function At(K){return t.updateDoStatement(K,I_(K.statement,Zt,e),lt(K.expression,Hr,vt))}function vn(K){return t.updateWhileStatement(K,lt(K.expression,Hr,vt),I_(K.statement,Zt,e))}function Ht(K){return t.updateLabeledStatement(K,K.label,D.checkDefined(lt(K.statement,Zt,ka,t.liftToBlock)))}function un(K){return t.updateWithStatement(K,lt(K.expression,Hr,vt),D.checkDefined(lt(K.statement,Zt,ka,t.liftToBlock)))}function ir(K){return t.updateSwitchStatement(K,lt(K.expression,Hr,vt),D.checkDefined(lt(K.caseBlock,Zt,t8)))}function cr(K){const Pe=ne;return ne=K,K=t.updateCaseBlock(K,Kn(K.clauses,Zt,Cz)),ne=Pe,K}function Mi(K){return t.updateCaseClause(K,lt(K.expression,Hr,vt),Kn(K.statements,Zt,ka))}function vi(K){return Gn(K,Zt,e)}function Nn(K){return Gn(K,Zt,e)}function rn(K){const Pe=ne;return ne=K,K=t.updateCatchClause(K,K.variableDeclaration,D.checkDefined(lt(K.block,Zt,uo))),ne=Pe,K}function Mn(K){const Pe=ne;return ne=K,K=Gn(K,Zt,e),ne=Pe,K}function Ar(K,Pe){if(!(K.transformFlags&276828160))return K;switch(K.kind){case 245:return _r(K,!1);case 241:return yt(K);case 214:return Nt(K,Pe);case 356:return Ce(K,Pe);case 223:if(Dy(K))return pe(K,Pe);break;case 210:if(hf(K))return pt(K);break;case 221:case 222:return he(K,Pe)}return Gn(K,Hr,e)}function Hr(K){return Ar(K,!1)}function we(K){return Ar(K,!0)}function yt(K){return t.updateExpressionStatement(K,lt(K.expression,we,vt))}function Nt(K,Pe){return t.updateParenthesizedExpression(K,lt(K.expression,Pe?we:Hr,vt))}function Ce(K,Pe){return t.updatePartiallyEmittedExpression(K,lt(K.expression,Pe?we:Hr,vt))}function pt(K){const Pe=r2(t,K,O,f,c,s),ee=lt(tu(K.arguments),Hr,vt),Re=Pe&&(!ee||!Ho(ee)||ee.text!==Pe.text)?Pe:ee;return t.createCallExpression(t.createPropertyAccessExpression(V,t.createIdentifier("import")),void 0,Re?[Re]:[])}function pe(K,Pe){return ie(K.left)?ZT(K,Hr,e,0,!Pe):Gn(K,Hr,e)}function ie(K){if(ld(K,!0))return ie(K.left);if(Fh(K))return ie(K.expression);if(Is(K))return kt(K.properties,ie);if(zu(K))return kt(K.elements,ie);if(u_(K))return ie(K.name);if($c(K))return ie(K.initializer);if(je(K)){const Pe=c.getReferencedExportContainer(K);return Pe!==void 0&&Pe.kind===308}else return!1}function he(K,Pe){if((K.operator===45||K.operator===46)&&je(K.operand)&&!Ll(K.operand)&&!$v(K.operand)&&!hO(K.operand)){const ee=mt(K.operand);if(ee){let Re,q=lt(K.operand,Hr,vt);Xv(K)?q=t.updatePrefixUnaryExpression(K,q):(q=t.updatePostfixUnaryExpression(K,q),Pe||(Re=t.createTempVariable(o),q=t.createAssignment(Re,q),ht(q,K)),q=t.createComma(q,t.cloneNode(K.operand)),ht(q,K));for(const Rt of ee)q=kn(Rt,Wt(q));return Re&&(q=t.createComma(q,Re),ht(q,K)),q}}return Gn(K,Hr,e)}function j(K){switch(K.kind){case 93:case 88:return}return K}function He(K,Pe,ee){if(Pe.kind===308){const Re=Nl(Pe);O=Pe,k=h[Re],G=C[Re],Y=L[Re],V=I[Re],Y&&delete L[Re],v(K,Pe,ee),O=void 0,k=void 0,G=void 0,V=void 0,Y=void 0}else v(K,Pe,ee)}function Ze(K,Pe){return Pe=d(K,Pe),it(Pe)?Pe:K===1?ln(Pe):K===4?Xe(Pe):Pe}function Xe(K){switch(K.kind){case 300:return Ut(K)}return K}function Ut(K){var Pe,ee;const Re=K.name;if(!Ll(Re)&&!$v(Re)){const q=c.getReferencedImportDeclaration(Re);if(q){if(Zm(q))return ht(t.createPropertyAssignment(t.cloneNode(Re),t.createPropertyAccessExpression(t.getGeneratedNameForNode(q.parent),t.createIdentifier("default"))),K);if(Nd(q))return ht(t.createPropertyAssignment(t.cloneNode(Re),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((ee=(Pe=q.parent)==null?void 0:Pe.parent)==null?void 0:ee.parent)||q),t.cloneNode(q.propertyName||q.name))),K)}}return K}function ln(K){switch(K.kind){case 79:return Sn(K);case 223:return Er(K);case 233:return ue(K)}return K}function Sn(K){var Pe,ee;if(bo(K)&8192){const Re=l8(O);return Re?t.createPropertyAccessExpression(Re,K):K}if(!Ll(K)&&!$v(K)){const Re=c.getReferencedImportDeclaration(K);if(Re){if(Zm(Re))return ht(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Re.parent),t.createIdentifier("default")),K);if(Nd(Re))return ht(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((ee=(Pe=Re.parent)==null?void 0:Pe.parent)==null?void 0:ee.parent)||Re),t.cloneNode(Re.propertyName||Re.name)),K)}}return K}function Er(K){if(wy(K.operatorToken.kind)&&je(K.left)&&!Ll(K.left)&&!$v(K.left)&&!hO(K.left)){const Pe=mt(K.left);if(Pe){let ee=K;for(const Re of Pe)ee=kn(Re,Wt(ee));return ee}}return K}function ue(K){return tC(K)?t.createPropertyAccessExpression(V,t.createIdentifier("meta")):K}function mt(K){let Pe;if(!Ll(K)){const ee=c.getReferencedImportDeclaration(K)||c.getReferencedValueDeclaration(K);if(ee){const Re=c.getReferencedExportContainer(K,!1);Re&&Re.kind===308&&(Pe=Bn(Pe,t.getDeclarationName(ee))),Pe=Ai(Pe,k&&k.exportedBindings[Nl(ee)])}}return Pe}function Wt(K){return Y===void 0&&(Y=[]),Y[hs(K)]=!0,K}function it(K){return Y&&K.id&&Y[K.id]}}var kFe=S({"src/compiler/transformers/module/system.ts"(){Na()}});function gY(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),c=ts(s),f=e.onEmitNode,d=e.onSubstituteNode;e.onEmitNode=ne,e.onSubstituteNode=Y,e.enableEmitNotification(308),e.enableSubstitution(79);let v,h,E;return rp(e,C);function C(M){if(M.isDeclarationFile)return M;if(rc(M)||Y_(s)){h=M,E=void 0;let de=L(M);return h=void 0,E&&(de=t.updateSourceFile(de,ht(t.createNodeArray(Mz(de.statements.slice(),E)),de.statements))),!rc(M)||kt(de.statements,gN)?de:t.updateSourceFile(de,ht(t.createNodeArray([...de.statements,a8(t)]),de.statements))}return M}function L(M){const de=PK(t,r(),M,s);if(de){const re=[],be=t.copyPrologue(M.statements,re);return Bn(re,de),Ai(re,Kn(M.statements,I,ka,be)),t.updateSourceFile(M,ht(t.createNodeArray(re),M.statements))}else return Gn(M,I,e)}function I(M){switch(M.kind){case 268:return du(s)>=100?k(M):void 0;case 274:return V(M);case 275:return H(M)}return M}function O(M){const de=r2(t,M,D.checkDefined(h),i,o,s),re=[];if(de&&re.push(de),!E){const ae=t.createUniqueName("_createRequire",48),W=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),ae)])),t.createStringLiteral("module")),ce=t.createUniqueName("__require",48),me=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ce,void 0,void 0,t.createCallExpression(t.cloneNode(ae),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(100,t.createIdentifier("meta")),t.createIdentifier("url"))]))],c>=2?2:0));E=[W,me]}const be=E[1].declarationList.declarations[0].name;return D.assertNode(be,je),t.createCallExpression(t.cloneNode(be),void 0,re)}function k(M){D.assert(sb(M),"import= for internal module references should be handled in an earlier transformer.");let de;return de=Bn(de,Wr(ht(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(M.name),void 0,void 0,O(M))],c>=2?2:0)),M),M)),de=G(de,M),Pm(de)}function G(M,de){return $r(de,1)&&(M=Bn(M,t.createExportDeclaration(void 0,de.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Mr(de.name))])))),M}function V(M){return M.isExportEquals?void 0:M}function H(M){if(s.module!==void 0&&s.module>5||!M.exportClause||!Bh(M.exportClause)||!M.moduleSpecifier)return M;const de=M.exportClause.name,re=t.getGeneratedNameForNode(de),be=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(re)),M.moduleSpecifier,M.assertClause);Wr(be,M.exportClause);const ae=T3(M)?t.createExportDefault(re):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,re,de)]));return Wr(ae,M),[be,ae]}function ne(M,de,re){Ji(de)?((rc(de)||Y_(s))&&s.importHelpers&&(v=new Map),f(M,de,re),v=void 0):f(M,de,re)}function Y(M,de){return de=d(M,de),v&&je(de)&&bo(de)&8192?$(de):de}function $(M){const de=Mr(M);let re=v.get(de);return re||v.set(de,re=t.createUniqueName(de,48)),re}}var wFe=S({"src/compiler/transformers/module/esnextAnd2015.ts"(){Na()}});function Xye(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=gY(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const c=hY(e),f=e.onSubstituteNode,d=e.onEmitNode;e.onSubstituteNode=h,e.onEmitNode=E,e.enableSubstitution(308),e.enableEmitNotification(308);let v;return I;function h(k,G){return Ji(G)?(v=G,t(k,G)):v?v.impliedNodeFormat===99?o(k,G):f(k,G):t(k,G)}function E(k,G,V){return Ji(G)&&(v=G),v?v.impliedNodeFormat===99?s(k,G,V):d(k,G,V):r(k,G,V)}function C(k){return k.impliedNodeFormat===99?i:c}function L(k){if(k.isDeclarationFile)return k;v=k;const G=C(k)(k);return v=void 0,D.assert(Ji(G)),G}function I(k){return k.kind===308?L(k):O(k)}function O(k){return e.factory.createBundle(zt(k.sourceFiles,L),k.prepends)}}var DFe=S({"src/compiler/transformers/module/node.ts"(){Na()}});function LF(e){return Xi(e)||ro(e)||Bf(e)||ms(e)||Iy(e)||Gv(e)||XO(e)||OC(e)||uc(e)||Ph(e)||xc(e)||Fa(e)||Ul(e)||Py(e)||_u(e)||um(e)||Yl(e)||Wx(e)||Fr(e)||S_(e)}function Yye(e){if(Iy(e)||Gv(e))return t;return Ph(e)||uc(e)?i:Gy(e);function t(s){const c=r(s);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function r(s){return Ja(e)?s.errorModuleName?s.accessibility===2?_.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===260?s.errorModuleName?s.accessibility===2?_.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?_.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){const c=o(s);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function o(s){return Ja(e)?s.errorModuleName?s.accessibility===2?_.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===260?s.errorModuleName?s.accessibility===2?_.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?_.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function Gy(e){if(Xi(e)||ro(e)||Bf(e)||Fr(e)||ms(e)||Yl(e))return r;return Iy(e)||Gv(e)?i:XO(e)||OC(e)||uc(e)||Ph(e)||xc(e)||Wx(e)?o:Fa(e)?df(e,e.parent)&&$r(e.parent,8)?r:s:Ul(e)?f:Py(e)?d:_u(e)?v:um(e)||S_(e)?h:D.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${D.formatSyntaxKind(e.kind)}`);function t(E){if(e.kind===257||e.kind===205)return E.errorModuleName?E.accessibility===2?_.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:_.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===169||e.kind===208||e.kind===168||e.kind===166&&$r(e.parent,8))return Ja(e)?E.errorModuleName?E.accessibility===2?_.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===260||e.kind===166?E.errorModuleName?E.accessibility===2?_.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_property_0_of_exported_class_has_or_is_using_private_name_1:E.errorModuleName?_.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(E){const C=t(E);return C!==void 0?{diagnosticMessage:C,errorNode:e,typeName:e.name}:void 0}function i(E){let C;return e.kind===175?Ja(e)?C=E.errorModuleName?_.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:C=E.errorModuleName?_.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Ja(e)?C=E.errorModuleName?E.accessibility===2?_.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:C=E.errorModuleName?E.accessibility===2?_.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:C,errorNode:e.name,typeName:e.name}}function o(E){let C;switch(e.kind){case 177:C=E.errorModuleName?_.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 176:C=E.errorModuleName?_.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 178:C=E.errorModuleName?_.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 171:case 170:Ja(e)?C=E.errorModuleName?E.accessibility===2?_.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===260?C=E.errorModuleName?E.accessibility===2?_.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:C=E.errorModuleName?_.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 259:C=E.errorModuleName?E.accessibility===2?_.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return D.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:C,errorNode:e.name||e}}function s(E){const C=c(E);return C!==void 0?{diagnosticMessage:C,errorNode:e,typeName:e.name}:void 0}function c(E){switch(e.parent.kind){case 173:return E.errorModuleName?E.accessibility===2?_.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 177:case 182:return E.errorModuleName?_.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 176:return E.errorModuleName?_.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 178:return E.errorModuleName?_.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 171:case 170:return Ja(e.parent)?E.errorModuleName?E.accessibility===2?_.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===260?E.errorModuleName?E.accessibility===2?_.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:E.errorModuleName?_.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 259:case 181:return E.errorModuleName?E.accessibility===2?_.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 175:case 174:return E.errorModuleName?E.accessibility===2?_.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return D.fail(`Unknown parent for parameter: ${D.formatSyntaxKind(e.parent.kind)}`)}}function f(){let E;switch(e.parent.kind){case 260:E=_.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 261:E=_.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 197:E=_.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 182:case 177:E=_.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 176:E=_.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 171:case 170:Ja(e.parent)?E=_.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===260?E=_.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:E=_.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 181:case 259:E=_.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 192:E=_.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 262:E=_.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return D.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:E,errorNode:e,typeName:e.name}}function d(){let E;return Bc(e.parent.parent)?E=Kd(e.parent)&&e.parent.token===117?_.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?_.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:_.extends_clause_of_exported_class_has_or_is_using_private_name_0:E=_.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:E,errorNode:e,typeName:Ia(e.parent.parent)}}function v(){return{diagnosticMessage:_.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function h(E){return{diagnosticMessage:E.errorModuleName?_.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:_.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:S_(e)?D.checkDefined(e.typeExpression):e.type,typeName:S_(e)?Ia(e):e.name}}}var RFe=S({"src/compiler/transformers/declarations/diagnostics.ts"(){Na()}});function $ye(e,t,r){const i=e.getCompilerOptions();return K8(t,e,N,i,r?[r]:yn(e.getSourceFiles(),sq),[vY],!1).diagnostics}function Qye(e,t){const r=t.text.substring(e.pos,e.end);return bu(r,"@internal")}function yY(e,t){const r=va(e);if(r&&r.kind===166){const o=r.parent.parameters.indexOf(r),s=o>0?r.parent.parameters[o-1]:void 0,c=t.text,f=s?ya(nb(c,Xo(c,s.end+1,!1,!0)),xh(c,e.pos)):nb(c,Xo(c,e.pos,!1,!0));return f&&f.length&&Qye(Jo(f),t)}const i=r&&Zz(r,t);return!!Je(i,o=>Qye(o,t))}function vY(e){const t=()=>D.fail("Diagnostic emitted without context");let r=t,i=!0,o=!1,s=!1,c=!1,f=!1,d,v,h,E,C,L;const{factory:I}=e,O=e.getEmitHost(),k={trackSymbol:Ee,reportInaccessibleThisError:Ge,reportInaccessibleUniqueSymbolError:Qe,reportCyclicStructureError:Ve,reportPrivateInBaseOfClassExpression:xe,reportLikelyUnsafeImportRequiredError:ze,reportTruncationError:Oe,moduleResolverHost:O,trackReferencedAmbientModule:W,trackExternalModuleSymbolOfImportTypeNode:me,reportNonlocalAugmentation:Me,reportNonSerializableProperty:Ye,reportImportTypeNodeResolutionModeOverride:We};let G,V,H,ne,Y,$;const M=e.getEmitResolver(),de=e.getCompilerOptions(),{noResolve:re,stripInternal:be}=de;return st;function ae(j){if(j){v=v||new Set;for(const He of j)v.add(He)}}function W(j,He){const Ze=M.getTypeReferenceDirectivesForSymbol(He,67108863);if(Le(Ze))return ae(Ze);const Xe=er(j);ne.set(Nl(Xe),Xe)}function ce(j){if(j.accessibility===0){if(j&&j.aliasesToMakeVisible)if(!h)h=j.aliasesToMakeVisible;else for(const He of j.aliasesToMakeVisible)v_(h,He)}else{const He=r(j);if(He)return He.typeName?e.addDiagnostic(Nr(j.errorNode||He.errorNode,He.diagnosticMessage,kc(He.typeName),j.errorSymbolName,j.errorModuleName)):e.addDiagnostic(Nr(j.errorNode||He.errorNode,He.diagnosticMessage,j.errorSymbolName,j.errorModuleName)),!0}return!1}function me(j){o||(L||(L=[])).push(j)}function Ee(j,He,Ze){if(j.flags&262144)return!1;const Xe=ce(M.isSymbolAccessible(j,He,Ze,!0));return ae(M.getTypeReferenceDirectivesForSymbol(j,Ze)),Xe}function xe(j){(G||V)&&e.addDiagnostic(Nr(G||V,_.Property_0_of_exported_class_expression_may_not_be_private_or_protected,j))}function te(){return G?Rs(G):V&&Ia(V)?Rs(Ia(V)):V&&Vl(V)?V.isExportEquals?"export=":"default":"(Missing)"}function Qe(){(G||V)&&e.addDiagnostic(Nr(G||V,_.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,te(),"unique symbol"))}function Ve(){(G||V)&&e.addDiagnostic(Nr(G||V,_.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,te()))}function Ge(){(G||V)&&e.addDiagnostic(Nr(G||V,_.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,te(),"this"))}function ze(j){(G||V)&&e.addDiagnostic(Nr(G||V,_.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,te(),j))}function Oe(){(G||V)&&e.addDiagnostic(Nr(G||V,_.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Me(j,He,Ze){var Xe;const Ut=(Xe=He.declarations)==null?void 0:Xe.find(Sn=>er(Sn)===j),ln=yn(Ze.declarations,Sn=>er(Sn)!==j);if(Ut&&ln)for(const Sn of ln)e.addDiagnostic(Yo(Nr(Sn,_.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Nr(Ut,_.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Ye(j){(G||V)&&e.addDiagnostic(Nr(G||V,_.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,j))}function We(){!sO()&&(G||V)&&e.addDiagnostic(Nr(G||V,_.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}function Fe(j,He){const Ze=r;r=Ut=>Ut.errorNode&&LF(Ut.errorNode)?Gy(Ut.errorNode)(Ut):{diagnosticMessage:Ut.errorModuleName?_.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:_.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Ut.errorNode||j};const Xe=M.getDeclarationStatementsForSourceFile(j,aE,k,He);return r=Ze,Xe}function st(j){if(j.kind===308&&j.isDeclarationFile)return j;if(j.kind===309){o=!0,ne=new Map,Y=new Map;let Wt=!1;const it=I.createBundle(zt(j.sourceFiles,ee=>{if(ee.isDeclarationFile)return;if(Wt=Wt||ee.hasNoDefaultLib,H=ee,d=ee,h=void 0,C=!1,E=new Map,r=t,c=!1,f=!1,Ct(ee,ne),Et(ee,Y),mf(ee)||T_(ee)){s=!1,i=!1;const q=sd(ee)?I.createNodeArray(Fe(ee,!0)):Kn(ee.statements,vi,ka);return I.updateSourceFile(ee,[I.createModuleDeclaration([I.createModifier(136)],I.createStringLiteral(n7(e.getEmitHost(),ee)),I.createModuleBlock(ht(I.createNodeArray(ir(q)),ee.statements)))],!0,[],[],!1,[])}i=!0;const Re=sd(ee)?I.createNodeArray(Fe(ee)):Kn(ee.statements,vi,ka);return I.updateSourceFile(ee,ir(Re),!0,[],[],!1,[])}),pa(j.prepends,ee=>{if(ee.kind===311){const Re=zJ(ee,"dts",be);return Wt=Wt||!!Re.hasNoDefaultLib,Ct(Re,ne),ae(zt(Re.typeReferenceDirectives,q=>[q.fileName,q.resolutionMode])),Et(Re,Y),Re}return ee}));it.syntheticFileReferences=[],it.syntheticTypeReferences=Er(),it.syntheticLibReferences=Sn(),it.hasNoDefaultLib=Wt;const K=yi(ru(Lw(j,O,!0).declarationFilePath)),Pe=mt(it.syntheticFileReferences,K);return ne.forEach(Pe),it}i=!0,c=!1,f=!1,d=j,H=j,r=t,o=!1,s=!1,C=!1,h=void 0,E=new Map,v=void 0,ne=Ct(H,new Map),Y=Et(H,new Map);const He=[],Ze=yi(ru(Lw(j,O,!0).declarationFilePath)),Xe=mt(He,Ze);let Ut;if(sd(H))Ut=I.createNodeArray(Fe(j)),ne.forEach(Xe),$=yn(Ut,xT);else{const Wt=Kn(j.statements,vi,ka);Ut=ht(I.createNodeArray(ir(Wt)),j.statements),ne.forEach(Xe),$=yn(Ut,xT),rc(j)&&(!s||c&&!f)&&(Ut=ht(I.createNodeArray([...Ut,a8(I)]),Ut))}const ln=I.updateSourceFile(j,Ut,!0,He,Er(),j.hasNoDefaultLib,Sn());return ln.exportedModulesFromDeclarationEmit=L,ln;function Sn(){return No(Y.keys(),Wt=>({fileName:Wt,pos:-1,end:-1}))}function Er(){return v?pa(No(v.keys()),ue):[]}function ue([Wt,it]){if($){for(const K of $)if(_u(K)&&eh(K.moduleReference)){const Pe=K.moduleReference.expression;if(As(Pe)&&Pe.text===Wt)return}else if(Yc(K)&&Ho(K.moduleSpecifier)&&K.moduleSpecifier.text===Wt)return}return Ti({fileName:Wt,pos:-1,end:-1},it?{resolutionMode:it}:void 0)}function mt(Wt,it){return K=>{let Pe;if(K.isDeclarationFile)Pe=K.fileName;else{if(o&&Ur(j.sourceFiles,K))return;const ee=Lw(K,O,!0);Pe=ee.declarationFilePath||ee.jsFilePath||K.fileName}if(Pe){const ee=uF(de,H,Js(it,O.getCurrentDirectory(),O.getCanonicalFileName),Js(Pe,O.getCurrentDirectory(),O.getCanonicalFileName),O);if(!Nf(ee)){ae([[ee,void 0]]);return}let Re=_x(it,Pe,O.getCurrentDirectory(),O.getCanonicalFileName,!1);if(Ta(Re,"./")&&BA(Re)&&(Re=Re.substring(2)),Ta(Re,"node_modules/")||s2(Re))return;Wt.push({pos:-1,end:-1,fileName:Re})}}}}function Ct(j,He){return re||!zT(j)&&sd(j)||Je(j.referencedFiles,Ze=>{const Xe=O.getSourceFileFromReference(j,Ze);Xe&&He.set(Nl(Xe),Xe)}),He}function Et(j,He){return Je(j.libReferenceDirectives,Ze=>{O.getLibFileFromReference(Ze)&&He.set(V_(Ze.fileName),!0)}),He}function Vt(j){if(j.kind===79)return j;return j.kind===204?I.updateArrayBindingPattern(j,Kn(j.elements,He,d3)):I.updateObjectBindingPattern(j,Kn(j.elements,He,ms));function He(Ze){return Ze.kind===229?Ze:Ze.propertyName&&je(Ze.propertyName)&&je(Ze.name)&&!Ze.symbol.isReferenced&&!$3(Ze.propertyName)?I.updateBindingElement(Ze,Ze.dotDotDotToken,void 0,Ze.propertyName,at(Ze)?Ze.initializer:void 0):I.updateBindingElement(Ze,Ze.dotDotDotToken,Ze.propertyName,Vt(Ze.name),at(Ze)?Ze.initializer:void 0)}}function tt(j,He,Ze){let Xe;C||(Xe=r,r=Gy(j));const Ut=I.updateParameterDeclaration(j,OFe(j,He),j.dotDotDotToken,Vt(j.name),M.isOptionalParameter(j)?j.questionToken||I.createToken(57):void 0,Qt(j,Ze||j.type,!0),on(j));return C||(r=Xe),Ut}function at(j){return PFe(j)&&M.isLiteralConstDeclaration(va(j))}function on(j){if(at(j))return M.createLiteralConstValue(va(j),k)}function Qt(j,He,Ze){if(!Ze&&zd(j,8)||at(j))return;const Xe=j.kind===166&&(M.isRequiredInitializedParameter(j)||M.isOptionalUninitializedParameterProperty(j));if(He&&!Xe)return lt(He,cr,Gi);if(!va(j))return He?lt(He,cr,Gi):I.createKeywordTypeNode(131);if(j.kind===175)return I.createKeywordTypeNode(131);G=j.name;let Ut;if(C||(Ut=r,r=Gy(j)),j.kind===257||j.kind===205)return ln(M.createTypeOfDeclaration(j,d,aE,k));if(j.kind===166||j.kind===169||j.kind===168)return Bf(j)||!j.initializer?ln(M.createTypeOfDeclaration(j,d,aE,k,Xe)):ln(M.createTypeOfDeclaration(j,d,aE,k,Xe)||M.createTypeOfExpression(j.initializer,d,aE,k));return ln(M.createReturnTypeOfSignatureDeclaration(j,d,aE,k));function ln(Sn){return G=void 0,C||(r=Ut),Sn||I.createKeywordTypeNode(131)}}function Pn(j){switch(j=va(j),j.kind){case 259:case 264:case 261:case 260:case 262:case 263:return!M.isDeclarationVisible(j);case 257:return!kn(j);case 268:case 269:case 275:case 274:return!1;case 172:return!0}return!1}function Hn(j){var He;if(j.body)return!0;const Ze=(He=j.symbol.declarations)==null?void 0:He.filter(Xe=>xc(Xe)&&!Xe.body);return!Ze||Ze.indexOf(j)===Ze.length-1}function kn(j){return Fc(j)?!1:Ya(j.name)?kt(j.name.elements,kn):M.isDeclarationVisible(j)}function Zt(j,He,Ze){if(zd(j,8))return I.createNodeArray();const Xe=zt(He,Ut=>tt(Ut,Ze));return Xe?I.createNodeArray(Xe,He.hasTrailingComma):I.createNodeArray()}function _r(j,He){let Ze;if(!He){const Xe=V1(j);Xe&&(Ze=[tt(Xe)])}if(c_(j)){let Xe;if(!He){const Ut=Ek(j);if(Ut){const ln=ie(j,M.getAllAccessorDeclarations(j));Xe=tt(Ut,void 0,ln)}}Xe||(Xe=I.createParameterDeclaration(void 0,void 0,"value")),Ze=Bn(Ze,Xe)}return I.createNodeArray(Ze||rt)}function wi(j,He){return zd(j,8)?void 0:Kn(He,cr,Ul)}function Qi(j){return Ji(j)||um(j)||$l(j)||Bc(j)||ud(j)||Xa(j)||Wx(j)||tw(j)}function Zi(j,He){const Ze=M.isEntityNameVisible(j,He);ce(Ze),ae(M.getTypeReferenceDirectivesForEntityName(j))}function Or(j,He){return Of(j)&&Of(He)&&(j.jsDoc=He.jsDoc),Xc(j,$m(He))}function At(j,He){if(He){if(s=s||j.kind!==264&&j.kind!==202,As(He))if(o){const Ze=a_e(e.getEmitHost(),M,j);if(Ze)return I.createStringLiteral(Ze)}else{const Ze=M.getSymbolOfExternalModuleSpecifier(He);Ze&&(L||(L=[])).push(Ze)}return He}}function vn(j){if(M.isDeclarationVisible(j))if(j.moduleReference.kind===280){const He=dk(j);return I.updateImportEqualsDeclaration(j,j.modifiers,j.isTypeOnly,j.name,I.updateExternalModuleReference(j.moduleReference,At(j,He)))}else{const He=r;return r=Gy(j),Zi(j.moduleReference,d),r=He,j}}function Ht(j){if(!j.importClause)return I.updateImportDeclaration(j,j.modifiers,j.importClause,At(j,j.moduleSpecifier),un(j.assertClause));const He=j.importClause&&j.importClause.name&&M.isDeclarationVisible(j.importClause)?j.importClause.name:void 0;if(!j.importClause.namedBindings)return He&&I.updateImportDeclaration(j,j.modifiers,I.updateImportClause(j.importClause,j.importClause.isTypeOnly,He,void 0),At(j,j.moduleSpecifier),un(j.assertClause));if(j.importClause.namedBindings.kind===271){const Xe=M.isDeclarationVisible(j.importClause.namedBindings)?j.importClause.namedBindings:void 0;return He||Xe?I.updateImportDeclaration(j,j.modifiers,I.updateImportClause(j.importClause,j.importClause.isTypeOnly,He,Xe),At(j,j.moduleSpecifier),un(j.assertClause)):void 0}const Ze=pa(j.importClause.namedBindings.elements,Xe=>M.isDeclarationVisible(Xe)?Xe:void 0);if(Ze&&Ze.length||He)return I.updateImportDeclaration(j,j.modifiers,I.updateImportClause(j.importClause,j.importClause.isTypeOnly,He,Ze&&Ze.length?I.updateNamedImports(j.importClause.namedBindings,Ze):void 0),At(j,j.moduleSpecifier),un(j.assertClause));if(M.isImportRequiredByAugmentation(j))return I.updateImportDeclaration(j,j.modifiers,void 0,At(j,j.moduleSpecifier),un(j.assertClause))}function un(j){if(c2(j)!==void 0)return sO()||e.addDiagnostic(Nr(j,_.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),j}function ir(j){for(;Le(h);){const Ze=h.shift();if(!x3(Ze))return D.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${D.formatSyntaxKind(Ze.kind)}`);const Xe=i;i=Ze.parent&&Ji(Ze.parent)&&!(rc(Ze.parent)&&o);const Ut=rn(Ze);i=Xe,E.set(Nl(Ze),Ut)}return Kn(j,He,ka);function He(Ze){if(x3(Ze)){const Xe=Nl(Ze);if(E.has(Xe)){const Ut=E.get(Xe);return E.delete(Xe),Ut&&((Va(Ut)?kt(Ut,f3):f3(Ut))&&(c=!0),Ji(Ze.parent)&&(Va(Ut)?kt(Ut,gN):gN(Ut))&&(s=!0)),Ut}}return Ze}}function cr(j){if(yt(j)||Au(j)&&(Pn(j)||Hv(j)&&!M.isLateBound(va(j)))||Xa(j)&&M.isImplementationOfOverload(j)||pme(j))return;let He;Qi(j)&&(He=d,d=j);const Ze=r,Xe=LF(j),Ut=C;let ln=(j.kind===184||j.kind===197)&&j.parent.kind!==262;if((uc(j)||Ph(j))&&zd(j,8))return j.symbol&&j.symbol.declarations&&j.symbol.declarations[0]!==j?void 0:Sn(I.createPropertyDeclaration(pt(j),j.name,void 0,void 0,void 0));if(Xe&&!C&&(r=Gy(j)),Zk(j)&&Zi(j.exprName,d),ln&&(C=!0),FFe(j))switch(j.kind){case 230:{(ff(j.expression)||Xl(j.expression))&&Zi(j.expression,d);const Er=Gn(j,cr,e);return Sn(I.updateExpressionWithTypeArguments(Er,Er.expression,Er.typeArguments))}case 180:{Zi(j.typeName,d);const Er=Gn(j,cr,e);return Sn(I.updateTypeReferenceNode(Er,Er.typeName,Er.typeArguments))}case 177:return Sn(I.updateConstructSignature(j,wi(j,j.typeParameters),Zt(j,j.parameters),Qt(j,j.type)));case 173:{const Er=I.createConstructorDeclaration(pt(j),Zt(j,j.parameters,0),void 0);return Sn(Er)}case 171:{if(Oi(j.name))return Sn(void 0);const Er=I.createMethodDeclaration(pt(j),void 0,j.name,j.questionToken,wi(j,j.typeParameters),Zt(j,j.parameters),Qt(j,j.type),void 0);return Sn(Er)}case 174:{if(Oi(j.name))return Sn(void 0);const Er=ie(j,M.getAllAccessorDeclarations(j));return Sn(I.updateGetAccessorDeclaration(j,pt(j),j.name,_r(j,zd(j,8)),Qt(j,Er),void 0))}case 175:return Oi(j.name)?Sn(void 0):Sn(I.updateSetAccessorDeclaration(j,pt(j),j.name,_r(j,zd(j,8)),void 0));case 169:return Oi(j.name)?Sn(void 0):Sn(I.updatePropertyDeclaration(j,pt(j),j.name,j.questionToken,Qt(j,j.type),on(j)));case 168:return Oi(j.name)?Sn(void 0):Sn(I.updatePropertySignature(j,pt(j),j.name,j.questionToken,Qt(j,j.type)));case 170:return Oi(j.name)?Sn(void 0):Sn(I.updateMethodSignature(j,pt(j),j.name,j.questionToken,wi(j,j.typeParameters),Zt(j,j.parameters),Qt(j,j.type)));case 176:return Sn(I.updateCallSignature(j,wi(j,j.typeParameters),Zt(j,j.parameters),Qt(j,j.type)));case 178:return Sn(I.updateIndexSignature(j,pt(j),Zt(j,j.parameters),lt(j.type,cr,Gi)||I.createKeywordTypeNode(131)));case 257:return Ya(j.name)?Ar(j.name):(ln=!0,C=!0,Sn(I.updateVariableDeclaration(j,j.name,void 0,Qt(j,j.type),on(j))));case 165:return Mi(j)&&(j.default||j.constraint)?Sn(I.updateTypeParameterDeclaration(j,j.modifiers,j.name,void 0,void 0)):Sn(Gn(j,cr,e));case 191:{const Er=lt(j.checkType,cr,Gi),ue=lt(j.extendsType,cr,Gi),mt=d;d=j.trueType;const Wt=lt(j.trueType,cr,Gi);d=mt;const it=lt(j.falseType,cr,Gi);return D.assert(Er),D.assert(ue),D.assert(Wt),D.assert(it),Sn(I.updateConditionalTypeNode(j,Er,ue,Wt,it))}case 181:return Sn(I.updateFunctionTypeNode(j,Kn(j.typeParameters,cr,Ul),Zt(j,j.parameters),D.checkDefined(lt(j.type,cr,Gi))));case 182:return Sn(I.updateConstructorTypeNode(j,pt(j),Kn(j.typeParameters,cr,Ul),Zt(j,j.parameters),D.checkDefined(lt(j.type,cr,Gi))));case 202:return ob(j)?Sn(I.updateImportTypeNode(j,I.updateLiteralTypeNode(j.argument,At(j,j.argument.literal)),j.assertions,j.qualifier,Kn(j.typeArguments,cr,Gi),j.isTypeOf)):Sn(j);default:D.assertNever(j,`Attempted to process unhandled node kind: ${D.formatSyntaxKind(j.kind)}`)}return PC(j)&&cl(H,j.pos).line===cl(H,j.end).line&&sr(j,1),Sn(Gn(j,cr,e));function Sn(Er){return Er&&Xe&&Hv(j)&&we(j),Qi(j)&&(d=He),Xe&&!C&&(r=Ze),ln&&(C=Ut),Er===j?Er:Er&&Wr(Or(Er,j),j)}}function Mi(j){return j.parent.kind===171&&zd(j.parent,8)}function vi(j){if(!MFe(j)||yt(j))return;switch(j.kind){case 275:return Ji(j.parent)&&(s=!0),f=!0,I.updateExportDeclaration(j,j.modifiers,j.isTypeOnly,j.exportClause,At(j,j.moduleSpecifier),c2(j.assertClause)?j.assertClause:void 0);case 274:{if(Ji(j.parent)&&(s=!0),f=!0,j.expression.kind===79)return j;{const Ze=I.createUniqueName("_default",16);r=()=>({diagnosticMessage:_.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:j}),V=j;const Xe=I.createVariableDeclaration(Ze,void 0,M.createTypeOfExpression(j.expression,j,aE,k),void 0);V=void 0;const Ut=I.createVariableStatement(i?[I.createModifier(136)]:[],I.createVariableDeclarationList([Xe],2));return Or(Ut,j),BO(j),[Ut,I.updateExportAssignment(j,j.modifiers,Ze)]}}}const He=rn(j);return E.set(Nl(j),He),j}function Nn(j){if(_u(j)||zd(j,1024)||!np(j))return j;const He=I.createModifiersFromModifierFlags(Hu(j)&258046);return I.updateModifiers(j,He)}function rn(j){if(h)for(;yM(h,j););if(yt(j))return;switch(j.kind){case 268:return vn(j);case 269:return Ht(j)}if(Au(j)&&Pn(j)||Xa(j)&&M.isImplementationOfOverload(j))return;let He;Qi(j)&&(He=d,d=j);const Ze=LF(j),Xe=r;Ze&&(r=Gy(j));const Ut=i;switch(j.kind){case 262:{i=!1;const Sn=ln(I.updateTypeAliasDeclaration(j,pt(j),j.name,Kn(j.typeParameters,cr,Ul),D.checkDefined(lt(j.type,cr,Gi))));return i=Ut,Sn}case 261:return ln(I.updateInterfaceDeclaration(j,pt(j),j.name,wi(j,j.typeParameters),he(j.heritageClauses),Kn(j.members,cr,vT)));case 259:{const Sn=ln(I.updateFunctionDeclaration(j,pt(j),void 0,j.name,wi(j,j.typeParameters),Zt(j,j.parameters),Qt(j,j.type),void 0));if(Sn&&M.isExpandoFunctionDeclaration(j)&&Hn(j)){const Er=M.getPropertiesOfContainerFunction(j),ue=nh.createModuleDeclaration(void 0,Sn.name||I.createIdentifier("_default"),I.createModuleBlock([]),16);jo(ue,d),ue.locals=co(Er),ue.symbol=Er[0].parent;const mt=[];let Wt=pa(Er,q=>{if(!q.valueDeclaration||!Fr(q.valueDeclaration))return;r=Gy(q.valueDeclaration);const Rt=M.createTypeOfDeclaration(q.valueDeclaration,ue,aE,k);r=Xe;const gt=ra(q.escapedName),ft=Lx(gt),fn=ft?I.getGeneratedNameForNode(q.valueDeclaration):I.createIdentifier(gt);ft&&mt.push([fn,gt]);const $n=I.createVariableDeclaration(fn,void 0,Rt,void 0);return I.createVariableStatement(ft?void 0:[I.createToken(93)],I.createVariableDeclarationList([$n]))});mt.length?Wt.push(I.createExportDeclaration(void 0,!1,I.createNamedExports(zt(mt,([q,Rt])=>I.createExportSpecifier(!1,q,Rt))))):Wt=pa(Wt,q=>I.updateModifiers(q,0));const it=I.createModuleDeclaration(pt(j),j.name,I.createModuleBlock(Wt),16);if(!zd(Sn,1024))return[Sn,it];const K=I.createModifiersFromModifierFlags(Hu(Sn)&-1026|2),Pe=I.updateFunctionDeclaration(Sn,K,void 0,Sn.name,Sn.typeParameters,Sn.parameters,Sn.type,void 0),ee=I.updateModuleDeclaration(it,K,it.name,it.body),Re=I.createExportAssignment(void 0,!1,it.name);return Ji(j.parent)&&(s=!0),f=!0,[Pe,ee,Re]}else return Sn}case 264:{i=!1;const Sn=j.body;if(Sn&&Sn.kind===265){const Er=c,ue=f;f=!1,c=!1;const mt=Kn(Sn.statements,vi,ka);let Wt=ir(mt);j.flags&16777216&&(c=!1),!im(j)&&!Ce(Wt)&&!f&&(c?Wt=I.createNodeArray([...Wt,a8(I)]):Wt=Kn(Wt,Nn,ka));const it=I.updateModuleBlock(Sn,Wt);i=Ut,c=Er,f=ue;const K=pt(j);return ln(I.updateModuleDeclaration(j,K,O1(j)?At(j,j.name):j.name,it))}else{i=Ut;const Er=pt(j);i=!1,lt(Sn,vi);const ue=Nl(Sn),mt=E.get(ue);return E.delete(ue),ln(I.updateModuleDeclaration(j,Er,j.name,mt))}}case 260:{G=j.name,V=j;const Sn=I.createNodeArray(pt(j)),Er=wi(j,j.typeParameters),ue=Dh(j);let mt;if(ue){const Re=r;mt=kR(Ga(ue.parameters,q=>{if(!$r(q,16476)||yt(q))return;if(r=Gy(q),q.name.kind===79)return Or(I.createPropertyDeclaration(pt(q),q.name,q.questionToken,Qt(q,q.type),on(q)),q);return Rt(q.name);function Rt(gt){let ft;for(const fn of gt.elements)Fc(fn)||(Ya(fn.name)&&(ft=ya(ft,Rt(fn.name))),ft=ft||[],ft.push(I.createPropertyDeclaration(pt(q),fn.name,void 0,Qt(fn,void 0),void 0)));return ft}})),r=Re}const it=kt(j.members,Re=>!!Re.name&&Oi(Re.name))?[I.createPropertyDeclaration(void 0,I.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,K=ya(ya(it,mt),Kn(j.members,cr,qc)),Pe=I.createNodeArray(K),ee=am(j);if(ee&&!Xl(ee.expression)&&ee.expression.kind!==104){const Re=j.name?ra(j.name.escapedText):"default",q=I.createUniqueName(`${Re}_base`,16);r=()=>({diagnosticMessage:_.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:ee,typeName:j.name});const Rt=I.createVariableDeclaration(q,void 0,M.createTypeOfExpression(ee.expression,j,aE,k),void 0),gt=I.createVariableStatement(i?[I.createModifier(136)]:[],I.createVariableDeclarationList([Rt],2)),ft=I.createNodeArray(zt(j.heritageClauses,fn=>{if(fn.token===94){const $n=r;r=Gy(fn.types[0]);const li=I.updateHeritageClause(fn,zt(fn.types,Ii=>I.updateExpressionWithTypeArguments(Ii,q,Kn(Ii.typeArguments,cr,Gi))));return r=$n,li}return I.updateHeritageClause(fn,Kn(I.createNodeArray(yn(fn.types,$n=>Xl($n.expression)||$n.expression.kind===104)),cr,Py))}));return[gt,ln(I.updateClassDeclaration(j,Sn,j.name,Er,ft,Pe))]}else{const Re=he(j.heritageClauses);return ln(I.updateClassDeclaration(j,Sn,j.name,Er,Re,Pe))}}case 240:return ln(Mn(j));case 263:return ln(I.updateEnumDeclaration(j,I.createNodeArray(pt(j)),j.name,I.createNodeArray(pa(j.members,Sn=>{if(yt(Sn))return;const Er=M.getConstantValue(Sn);return Or(I.updateEnumMember(Sn,Sn.name,Er!==void 0?typeof Er=="string"?I.createStringLiteral(Er):I.createNumericLiteral(Er):void 0),Sn)}))))}return D.assertNever(j,`Unhandled top-level node in declaration emit: ${D.formatSyntaxKind(j.kind)}`);function ln(Sn){return Qi(j)&&(d=He),Ze&&(r=Xe),j.kind===264&&(i=Ut),Sn===j?Sn:(V=void 0,G=void 0,Sn&&Wr(Or(Sn,j),j))}}function Mn(j){if(!Je(j.declarationList.declarations,kn))return;const He=Kn(j.declarationList.declarations,cr,Xi);if(Le(He))return I.updateVariableStatement(j,I.createNodeArray(pt(j)),I.updateVariableDeclarationList(j.declarationList,He))}function Ar(j){return Ds(pa(j.elements,He=>Hr(He)))}function Hr(j){if(j.kind!==229&&j.name)return kn(j)?Ya(j.name)?Ar(j.name):I.createVariableDeclaration(j.name,void 0,Qt(j,void 0),void 0):void 0}function we(j){let He;C||(He=r,r=Yye(j)),G=j.name,D.assert(M.isLateBound(va(j)));const Xe=j.name.expression;Zi(Xe,d),C||(r=He),G=void 0}function yt(j){return!!be&&!!j&&yY(j,H)}function Nt(j){return Vl(j)||au(j)}function Ce(j){return kt(j,Nt)}function pt(j){const He=Hu(j),Ze=pe(j);return He===Ze?QX(j.modifiers,Xe=>si(Xe,_o),_o):I.createModifiersFromModifierFlags(Ze)}function pe(j){let He=241147,Ze=i&&!NFe(j)?2:0;const Xe=j.parent.kind===308;return(!Xe||o&&Xe&&rc(j.parent))&&(He^=2,Ze=0),Zye(j,He,Ze)}function ie(j,He){let Ze=bY(j);return!Ze&&j!==He.firstAccessor&&(Ze=bY(He.firstAccessor),r=Gy(He.firstAccessor)),!Ze&&He.secondAccessor&&j!==He.secondAccessor&&(Ze=bY(He.secondAccessor),r=Gy(He.secondAccessor)),Ze}function he(j){return I.createNodeArray(yn(zt(j,He=>I.updateHeritageClause(He,Kn(I.createNodeArray(yn(He.types,Ze=>Xl(Ze.expression)||He.token===94&&Ze.expression.kind===104)),cr,Py))),He=>He.types&&!!He.types.length))}}function NFe(e){return e.kind===261}function OFe(e,t,r){return N.createModifiersFromModifierFlags(Zye(e,t,r))}function Zye(e,t=258043,r=0){let i=Hu(e)&t|r;return i&1024&&!(i&1)&&(i^=1),i&1024&&i&2&&(i^=2),i}function bY(e){if(e)return e.kind===174?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function PFe(e){switch(e.kind){case 169:case 168:return!zd(e,8);case 166:case 257:return!0}return!1}function MFe(e){switch(e.kind){case 259:case 264:case 268:case 261:case 260:case 262:case 263:case 240:case 269:case 275:case 274:return!0}return!1}function FFe(e){switch(e.kind){case 177:case 173:case 171:case 174:case 175:case 169:case 168:case 170:case 176:case 178:case 257:case 165:case 230:case 180:case 191:case 181:case 182:case 202:return!0}return!1}var aE,BFe=S({"src/compiler/transformers/declarations.ts"(){Na(),WX(),aE=531469}});function GFe(e){switch(e){case 99:case 7:case 6:case 5:return gY;case 4:return Kye;case 100:case 199:return Xye;default:return hY}}function EY(e,t,r){return{scriptTransformers:UFe(e,t,r),declarationTransformers:VFe(t)}}function UFe(e,t,r){if(r)return rt;const i=ts(e),o=du(e),s=EO(e),c=[];return Ai(c,t&&zt(t.before,tve)),c.push(Iye),e.experimentalDecorators?c.push(Rye):(i<99||!s)&&c.push(Nye),c.push(wye),iJ(e)&&c.push(Uye),i<99&&c.push(Gye),i<8&&c.push(Bye),i<7&&c.push(Fye),i<6&&c.push(Mye),i<5&&c.push(Pye),i<4&&c.push(Oye),i<3&&c.push(jye),i<2&&(c.push(Wye),c.push(qye)),c.push(GFe(o)),i<1&&c.push(zye),Ai(c,t&&zt(t.after,tve)),c}function VFe(e){const t=[];return t.push(vY),Ai(t,e&&zt(e.afterDeclarations,HFe)),t}function jFe(e){return t=>yK(t)?e.transformBundle(t):e.transformSourceFile(t)}function eve(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):jFe(i)}}function tve(e){return eve(e,rp)}function HFe(e){return eve(e,(t,r)=>r)}function Aw(e,t){return t}function J8(e,t,r){r(e,t)}function K8(e,t,r,i,o,s,c){var f,d;const v=new Array(361);let h,E,C,L=0,I=[],O=[],k=[],G=[],V=0,H=!1,ne=[],Y=0,$,M,de=Aw,re=J8,be=0;const ae=[],W={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Ld(()=>$pe(W)),startLexicalEnvironment:Fe,suspendLexicalEnvironment:st,resumeLexicalEnvironment:Ct,endLexicalEnvironment:Et,setLexicalEnvironmentFlags:Vt,getLexicalEnvironmentFlags:tt,hoistVariableDeclaration:Me,hoistFunctionDeclaration:Ye,addInitializationStatement:We,startBlockScope:at,endBlockScope:on,addBlockScopedVariable:Qt,requestEmitHelper:Pn,readEmitHelpers:Hn,enableSubstitution:te,enableEmitNotification:Ge,isSubstitutionEnabled:Qe,isEmitNotificationEnabled:ze,get onSubstituteNode(){return de},set onSubstituteNode(Zt){D.assert(be<1,"Cannot modify transformation hooks after initialization has completed."),D.assert(Zt!==void 0,"Value must not be 'undefined'"),de=Zt},get onEmitNode(){return re},set onEmitNode(Zt){D.assert(be<1,"Cannot modify transformation hooks after initialization has completed."),D.assert(Zt!==void 0,"Value must not be 'undefined'"),re=Zt},addDiagnostic(Zt){ae.push(Zt)}};for(const Zt of o)$J(er(va(Zt)));ll("beforeTransform");const ce=s.map(Zt=>Zt(W)),me=Zt=>{for(const _r of ce)Zt=_r(Zt);return Zt};be=1;const Ee=[];for(const Zt of o)(f=Si)==null||f.push(Si.Phase.Emit,"transformNodes",Zt.kind===308?{path:Zt.path}:{kind:Zt.kind,pos:Zt.pos,end:Zt.end}),Ee.push((c?me:xe)(Zt)),(d=Si)==null||d.pop();return be=2,ll("afterTransform"),n_("transformTime","beforeTransform","afterTransform"),{transformed:Ee,substituteNode:Ve,emitNodeWithNotification:Oe,isEmitNotificationEnabled:ze,dispose:kn,diagnostics:ae};function xe(Zt){return Zt&&(!Ji(Zt)||!Zt.isDeclarationFile)?me(Zt):Zt}function te(Zt){D.assert(be<2,"Cannot modify the transformation context after transformation has completed."),v[Zt]|=1}function Qe(Zt){return(v[Zt.kind]&1)!==0&&(bo(Zt)&8)===0}function Ve(Zt,_r){return D.assert(be<3,"Cannot substitute a node after the result is disposed."),_r&&Qe(_r)&&de(Zt,_r)||_r}function Ge(Zt){D.assert(be<2,"Cannot modify the transformation context after transformation has completed."),v[Zt]|=2}function ze(Zt){return(v[Zt.kind]&2)!==0||(bo(Zt)&4)!==0}function Oe(Zt,_r,wi){D.assert(be<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),_r&&(ze(_r)?re(Zt,_r,wi):wi(Zt,_r))}function Me(Zt){D.assert(be>0,"Cannot modify the lexical environment during initialization."),D.assert(be<2,"Cannot modify the lexical environment after transformation has completed.");const _r=sr(r.createVariableDeclaration(Zt),128);h?h.push(_r):h=[_r],L&1&&(L|=2)}function Ye(Zt){D.assert(be>0,"Cannot modify the lexical environment during initialization."),D.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),sr(Zt,2097152),E?E.push(Zt):E=[Zt]}function We(Zt){D.assert(be>0,"Cannot modify the lexical environment during initialization."),D.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),sr(Zt,2097152),C?C.push(Zt):C=[Zt]}function Fe(){D.assert(be>0,"Cannot modify the lexical environment during initialization."),D.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),D.assert(!H,"Lexical environment is suspended."),I[V]=h,O[V]=E,k[V]=C,G[V]=L,V++,h=void 0,E=void 0,C=void 0,L=0}function st(){D.assert(be>0,"Cannot modify the lexical environment during initialization."),D.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),D.assert(!H,"Lexical environment is already suspended."),H=!0}function Ct(){D.assert(be>0,"Cannot modify the lexical environment during initialization."),D.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),D.assert(H,"Lexical environment is not suspended."),H=!1}function Et(){D.assert(be>0,"Cannot modify the lexical environment during initialization."),D.assert(be<2,"Cannot modify the lexical environment after transformation has completed."),D.assert(!H,"Lexical environment is suspended.");let Zt;if(h||E||C){if(E&&(Zt=[...E]),h){const _r=r.createVariableStatement(void 0,r.createVariableDeclarationList(h));sr(_r,2097152),Zt?Zt.push(_r):Zt=[_r]}C&&(Zt?Zt=[...Zt,...C]:Zt=[...C])}return V--,h=I[V],E=O[V],C=k[V],L=G[V],V===0&&(I=[],O=[],k=[],G=[]),Zt}function Vt(Zt,_r){L=_r?L|Zt:L&~Zt}function tt(){return L}function at(){D.assert(be>0,"Cannot start a block scope during initialization."),D.assert(be<2,"Cannot start a block scope after transformation has completed."),ne[Y]=$,Y++,$=void 0}function on(){D.assert(be>0,"Cannot end a block scope during initialization."),D.assert(be<2,"Cannot end a block scope after transformation has completed.");const Zt=kt($)?[r.createVariableStatement(void 0,r.createVariableDeclarationList($.map(_r=>r.createVariableDeclaration(_r)),1))]:void 0;return Y--,$=ne[Y],Y===0&&(ne=[]),Zt}function Qt(Zt){D.assert(Y>0,"Cannot add a block scoped variable outside of an iteration body."),($||($=[])).push(Zt)}function Pn(Zt){if(D.assert(be>0,"Cannot modify the transformation context during initialization."),D.assert(be<2,"Cannot modify the transformation context after transformation has completed."),D.assert(!Zt.scoped,"Cannot request a scoped emit helper."),Zt.dependencies)for(const _r of Zt.dependencies)Pn(_r);M=Bn(M,Zt)}function Hn(){D.assert(be>0,"Cannot modify the transformation context during initialization."),D.assert(be<2,"Cannot modify the transformation context after transformation has completed.");const Zt=M;return M=void 0,Zt}function kn(){if(be<3){for(const Zt of o)$J(er(va(Zt)));h=void 0,I=void 0,E=void 0,O=void 0,de=void 0,re=void 0,M=void 0,be=3}}}var TY,Rg,WFe=S({"src/compiler/transformer.ts"(){Na(),A1(),TY={scriptTransformers:rt,declarationTransformers:rt},Rg={factory:N,getCompilerOptions:()=>({}),getEmitResolver:Wa,getEmitHost:Wa,getEmitHelperFactory:Wa,startLexicalEnvironment:lo,resumeLexicalEnvironment:lo,suspendLexicalEnvironment:lo,endLexicalEnvironment:eb,setLexicalEnvironmentFlags:lo,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:lo,hoistFunctionDeclaration:lo,addInitializationStatement:lo,startBlockScope:lo,endBlockScope:eb,addBlockScopedVariable:lo,requestEmitHelper:lo,readEmitHelpers:Wa,enableSubstitution:lo,enableEmitNotification:lo,isSubstitutionEnabled:Wa,isEmitNotificationEnabled:Wa,onSubstituteNode:Aw,onEmitNode:J8,addDiagnostic:lo}}});function nve(e){return hc(e,".tsbuildinfo")}function SY(e,t,r,i=!1,o,s){const c=Va(r)?r:Nq(e,r,i),f=e.getCompilerOptions();if(Ks(f)){const d=e.getPrependNodes();if(c.length||d.length){const v=N.createBundle(c,d),h=t(Lw(v,e,i),v);if(h)return h}}else{if(!o)for(const d of c){const v=t(Lw(d,e,i),d);if(v)return v}if(s){const d=Uy(f);if(d)return t({buildInfoPath:d},void 0)}}}function Uy(e){const t=e.configFilePath;if(!vO(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=Ks(e);let i;if(r)i=qd(r);else{if(!t)return;const o=qd(t);i=e.outDir?e.rootDir?Dv(e.outDir,Gm(e.rootDir,o,!0)):Bi(e.outDir,Eu(o)):o}return i+".tsbuildinfo"}function Cw(e,t){const r=Ks(e),i=e.emitDeclarationOnly?void 0:r,o=i&&rve(i,e),s=t||Q_(e)?qd(r)+".d.ts":void 0,c=s&&p7(e)?s+".map":void 0,f=Uy(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:c,buildInfoPath:f}}function Lw(e,t,r){const i=t.getCompilerOptions();if(e.kind===309)return Cw(i,r);{const o=o_e(e.fileName,t,xY(e.fileName,i)),s=T_(e),c=s&&pT(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,f=i.emitDeclarationOnly||c?void 0:o,d=!f||T_(e)?void 0:rve(f,i),v=r||Q_(i)&&!s?s_e(e.fileName,t):void 0,h=v&&p7(i)?v+".map":void 0;return{jsFilePath:f,sourceMapFilePath:d,declarationFilePath:v,declarationMapPath:h,buildInfoPath:void 0}}}function rve(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function xY(e,t){return hc(e,".json")?".json":t.jsx===1&&Ic(e,[".jsx",".tsx"])?".jsx":Ic(e,[".mts",".mjs"])?".mjs":Ic(e,[".cts",".cjs"])?".cjs":".js"}function ive(e,t,r,i,o){return i?Dv(i,Gm(o?o():kw(t,r),e,r)):e}function Iw(e,t,r,i){return z1(ive(e,t,r,t.options.declarationDir||t.options.outDir,i),Dq(e))}function ave(e,t,r,i){if(t.options.emitDeclarationOnly)return;const o=hc(e,".json"),s=z1(ive(e,t,r,t.options.outDir,i),xY(e,t.options));return!o||pT(e,s,D.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function ove(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||rt}}function sve(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:c}=Cw(e.options,!1);t(r),t(i),t(o),t(s),t(c)}function lve(e,t,r,i,o){if(yd(t))return;const s=ave(t,e,r,o);if(i(s),!hc(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Q_(e.options))){const c=Iw(t,e,r,o);i(c),e.options.declarationMap&&i(`${c}.map`)}}function X8(e,t,r,i,o){let s;return e.rootDir?(s=Oa(e.rootDir,r),o==null||o(e.rootDir)):e.composite&&e.configFilePath?(s=yi(ru(e.configFilePath)),o==null||o(s)):s=gve(t(),r,i),s&&s[s.length-1]!==Bs&&(s+=Bs),s}function kw({options:e,fileNames:t},r){return X8(e,()=>yn(t,i=>!(e.noEmitForJsFiles&&Ic(i,zk))&&!yd(i)),yi(ru(D.checkDefined(e.configFilePath))),cu(!r))}function IF(e,t){const{addOutput:r,getOutputs:i}=ove();if(Ks(e.options))sve(e,r);else{const o=Ld(()=>kw(e,t));for(const s of e.fileNames)lve(e,s,t,r,o);r(Uy(e.options))}return i()}function zFe(e,t,r){t=Ko(t),D.assert(Ur(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:o}=ove();return Ks(e.options)?sve(e,i):lve(e,t,r,i),o()}function AY(e,t){if(Ks(e.options)){const{jsFilePath:o,declarationFilePath:s}=Cw(e.options,!1);return D.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}const r=Ld(()=>kw(e,t));for(const o of e.fileNames){if(yd(o))continue;const s=ave(o,e,t,r);if(s)return s;if(!hc(o,".json")&&Q_(e.options))return Iw(o,e,t,r)}const i=Uy(e.options);return i||D.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function kF(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,c,f){var d=t.getCompilerOptions(),v=d.sourceMap||d.inlineSourceMap||p7(d)?[]:void 0,h=d.listEmittedFiles?[]:void 0,E=hC(),C=_b(d),L=lO(C),{enter:I,exit:O}=LM("printTime","beforePrint","afterPrint"),k,G=!1;return I(),SY(t,V,Nq(t,r,f),f,c,!r),O(),{emitSkipped:G,diagnostics:E.getDiagnostics(),emittedFiles:h,sourceMaps:v};function V({jsFilePath:W,sourceMapFilePath:ce,declarationFilePath:me,declarationMapPath:Ee,buildInfoPath:xe},te){var Qe,Ve,Ge,ze,Oe,Me;let Ye;xe&&te&&yK(te)&&(Ye=yi(Oa(xe,t.getCurrentDirectory())),k={commonSourceDirectory:We(t.getCommonSourceDirectory()),sourceFiles:te.sourceFiles.map(Fe=>We(Oa(Fe.fileName,t.getCurrentDirectory())))}),(Qe=Si)==null||Qe.push(Si.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:W}),ne(te,W,ce,We),(Ve=Si)==null||Ve.pop(),(Ge=Si)==null||Ge.push(Si.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:me}),Y(te,me,Ee,We),(ze=Si)==null||ze.pop(),(Oe=Si)==null||Oe.push(Si.Phase.Emit,"emitBuildInfo",{buildInfoPath:xe}),H(k,xe),(Me=Si)==null||Me.pop(),!G&&h&&(s||(W&&h.push(W),ce&&h.push(ce),xe&&h.push(xe)),s!==0&&(me&&h.push(me),Ee&&h.push(Ee)));function We(Fe){return L1(Gm(Ye,Fe,t.getCanonicalFileName))}}function H(W,ce){if(!ce||r||G)return;if(t.isEmitBlocked(ce)){G=!0;return}const me=t.getBuildInfo(W)||Y8(void 0,W);vk(t,E,ce,cve(me),!1,void 0,{buildInfo:me})}function ne(W,ce,me,Ee){if(!W||s||!ce)return;if(t.isEmitBlocked(ce)||d.noEmit){G=!0;return}const xe=K8(e,t,N,d,[W],i,!1),te={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:d.noEmitHelpers,module:d.module,target:d.target,sourceMap:d.sourceMap,inlineSourceMap:d.inlineSourceMap,inlineSources:d.inlineSources,extendedDiagnostics:d.extendedDiagnostics,writeBundleFileInfo:!!k,relativeToBuildInfo:Ee},Qe=oE(te,{hasGlobalName:e.hasGlobalName,onEmitNode:xe.emitNodeWithNotification,isEmitNotificationEnabled:xe.isEmitNotificationEnabled,substituteNode:xe.substituteNode});D.assert(xe.transformed.length===1,"Should only see one output from the transform"),M(ce,me,xe,Qe,d),xe.dispose(),k&&(k.js=Qe.bundleFileInfo)}function Y(W,ce,me,Ee){if(!W||s===0)return;if(!ce){(s||d.emitDeclarationOnly)&&(G=!0);return}const xe=Ji(W)?[W]:W.sourceFiles,te=f?xe:yn(xe,sq),Qe=Ks(d)?[N.createBundle(te,Ji(W)?void 0:W.prepends)]:te;s&&!Q_(d)&&te.forEach($);const Ve=K8(e,t,N,d,Qe,o,!1);if(Le(Ve.diagnostics))for(const Me of Ve.diagnostics)E.add(Me);const Ge={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:!0,module:d.module,target:d.target,sourceMap:!f&&d.declarationMap,inlineSourceMap:d.inlineSourceMap,extendedDiagnostics:d.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!k,recordInternalSection:!!k,relativeToBuildInfo:Ee},ze=oE(Ge,{hasGlobalName:e.hasGlobalName,onEmitNode:Ve.emitNodeWithNotification,isEmitNotificationEnabled:Ve.isEmitNotificationEnabled,substituteNode:Ve.substituteNode}),Oe=!!Ve.diagnostics&&!!Ve.diagnostics.length||!!t.isEmitBlocked(ce)||!!d.noEmit;G=G||Oe,(!Oe||f)&&(D.assert(Ve.transformed.length===1,"Should only see one output from the decl transform"),M(ce,me,Ve,ze,{sourceMap:Ge.sourceMap,sourceRoot:d.sourceRoot,mapRoot:d.mapRoot,extendedDiagnostics:d.extendedDiagnostics})),Ve.dispose(),k&&(k.dts=ze.bundleFileInfo)}function $(W){if(Vl(W)){W.expression.kind===79&&e.collectLinkedAliases(W.expression,!0);return}else if(gd(W)){e.collectLinkedAliases(W.propertyName||W.name,!0);return}Pa(W,$)}function M(W,ce,me,Ee,xe){const te=me.transformed[0],Qe=te.kind===309?te:void 0,Ve=te.kind===308?te:void 0,Ge=Qe?Qe.sourceFiles:[Ve];let ze;de(xe,te)&&(ze=dye(t,Eu(ru(W)),re(xe),be(xe,W,Ve),xe)),Qe?Ee.writeBundle(Qe,L,ze):Ee.writeFile(Ve,L,ze);let Oe;if(ze){v&&v.push({inputSourceFileNames:ze.getSources(),sourceMap:ze.toJSON()});const Ye=ae(xe,ze,W,ce,Ve);if(Ye&&(L.isAtStartOfLine()||L.rawWrite(C),Oe=L.getTextPos(),L.writeComment(`//# sourceMappingURL=${Ye}`)),ce){const We=ze.toString();vk(t,E,ce,We,!1,Ge),Ee.bundleFileInfo&&(Ee.bundleFileInfo.mapHash=nS(We,t))}}else L.writeLine();const Me=L.getText();vk(t,E,W,Me,!!d.emitBOM,Ge,{sourceMapUrlPos:Oe,diagnostics:me.diagnostics}),Ee.bundleFileInfo&&(Ee.bundleFileInfo.hash=nS(Me,t)),L.clear()}function de(W,ce){return(W.sourceMap||W.inlineSourceMap)&&(ce.kind!==308||!hc(ce.fileName,".json"))}function re(W){const ce=ru(W.sourceRoot||"");return ce&&Vu(ce)}function be(W,ce,me){if(W.sourceRoot)return t.getCommonSourceDirectory();if(W.mapRoot){let Ee=ru(W.mapRoot);return me&&(Ee=yi(r7(me.fileName,t,Ee))),nm(Ee)===0&&(Ee=Bi(t.getCommonSourceDirectory(),Ee)),Ee}return yi(Ko(ce))}function ae(W,ce,me,Ee,xe){if(W.inlineSourceMap){const Qe=ce.toString();return`data:application/json;base64,${w_e(nu,Qe)}`}const te=Eu(ru(D.checkDefined(Ee)));if(W.mapRoot){let Qe=ru(W.mapRoot);return xe&&(Qe=yi(r7(xe.fileName,t,Qe))),nm(Qe)===0?(Qe=Bi(t.getCommonSourceDirectory(),Qe),encodeURI(_x(yi(Ko(me)),Bi(Qe,te),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Bi(Qe,te))}return encodeURI(te)}}function Y8(e,t){return{bundle:t,program:e,version:ve}}function cve(e){return JSON.stringify(e)}function wF(e,t){return zq(e,t)}function qFe(e,t,r){var i;const o=D.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&y1(o.sources.prologues,c=>c.file);return e.sourceFiles.map((c,f)=>{var d,v;const h=s==null?void 0:s.get(f),E=h==null?void 0:h.directives.map(I=>{const O=ht(N.createStringLiteral(I.expression.text),I.expression),k=ht(N.createExpressionStatement(O),I);return jo(O,k),k}),C=N.createToken(1),L=N.createSourceFile(E!=null?E:[],C,0);return L.fileName=Gm(r.getCurrentDirectory(),Oa(c,t),!r.useCaseSensitiveFileNames()),L.text=(d=h==null?void 0:h.text)!=null?d:"",Uk(L,0,(v=h==null?void 0:h.text.length)!=null?v:0),AC(L.statements,L),Uk(C,L.end,0),jo(C,L),L})}function uve(e,t,r,i){var o,s;(o=Si)==null||o.push(Si.Phase.Emit,"emitUsingBuildInfo",{},!0),BR.mark("beforeEmit");const c=JFe(e,t,r,i);return BR.mark("afterEmit"),BR.measure("Emit","beforeEmit","afterEmit"),(s=Si)==null||s.pop(),c}function JFe(e,t,r,i){const{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:c,declarationFilePath:f,declarationMapPath:d}=Cw(e.options,!1),v=t.getBuildInfo(o,e.options.configFilePath);if(!v||!v.bundle||!v.bundle.js||f&&!v.bundle.dts)return o;const h=t.readFile(D.checkDefined(s));if(!h||nS(h,t)!==v.bundle.js.hash)return s;const E=c&&t.readFile(c);if(c&&!E||e.options.inlineSourceMap)return c||"inline sourcemap decoding";if(c&&nS(E,t)!==v.bundle.js.mapHash)return c;const C=f&&t.readFile(f);if(f&&!C||f&&nS(C,t)!==v.bundle.dts.hash)return f;const L=d&&t.readFile(d);if(d&&!L||e.options.inlineSourceMap)return d||"inline sourcemap decoding";if(d&&nS(L,t)!==v.bundle.dts.mapHash)return d;const I=yi(Oa(o,t.getCurrentDirectory())),O=JJ(s,h,c,E,f,C,d,L,o,v,!0),k=[],G=zY(e.projectReferences,r,$=>t.readFile($),t),V=qFe(v.bundle,I,t);let H,ne;const Y={getPrependNodes:Ld(()=>[...G,O]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>Oa(v.bundle.commonSourceDirectory,I),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:eb,getSourceFileByPath:eb,getSourceFiles:()=>V,getLibFileFromReference:Wa,isSourceFileFromExternalLibrary:v1,getResolvedProjectReferenceToRedirect:eb,getProjectReferenceRedirect:eb,isSourceOfProjectReferenceRedirect:v1,writeFile:($,M,de,re,be,ae)=>{switch($){case s:if(h===M)return;break;case c:if(E===M)return;break;case o:break;case f:if(C===M)return;H=M,ne=ae;break;case d:if(L===M)return;break;default:D.fail(`Unexpected path: ${$}`)}k.push({name:$,text:M,writeByteOrderMark:de,data:ae})},isEmitBlocked:v1,readFile:$=>t.readFile($),fileExists:$=>t.fileExists($),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:$=>{const M=v.program;M&&H!==void 0&&e.options.composite&&(M.outSignature=nS(H,t,ne));const{js:de,dts:re,sourceFiles:be}=v.bundle;return $.js.sources=de.sources,re&&($.dts.sources=re.sources),$.sourceFiles=be,Y8(M,$)},getSourceFileFromReference:eb,redirectTargetsMap:b_(),getFileIncludeReasons:Wa,createHash:Vo(t,t.createHash)};return kF(DF,Y,void 0,EY(e.options,i)),k}function oE(e={},t={}){var{hasGlobalName:r,onEmitNode:i=J8,isEmitNotificationEnabled:o,substituteNode:s=Aw,onBeforeEmitNode:c,onAfterEmitNode:f,onBeforeEmitNodeArray:d,onAfterEmitNodeArray:v,onBeforeEmitToken:h,onAfterEmitToken:E}=t,C=!!e.extendedDiagnostics,L=_b(e),I=du(e),O=new Map,k,G,V,H,ne,Y,$,M,de,re,be,ae,W,ce,me,Ee=e.preserveSourceNewlines,xe,te,Qe,Ve=DL,Ge,ze=e.writeBundleFileInfo?{sections:[]}:void 0,Oe=ze?D.checkDefined(e.relativeToBuildInfo):void 0,Me=e.recordInternalSection,Ye=0,We="text",Fe=!0,st,Ct,Et=-1,Vt,tt=-1,at=-1,on=-1,Qt=-1,Pn,Hn,kn=!1,Zt=!!e.removeComments,_r,wi,{enter:Qi,exit:Zi}=Iue(C,"commentTime","beforeComment","afterComment"),Or=N.parenthesizer,At={select:x=>x===0?Or.parenthesizeLeadingTypeArgument:void 0},vn=ac();return He(),{printNode:Ht,printList:un,printFile:cr,printBundle:ir,writeNode:vi,writeList:Nn,writeFile:Ce,writeBundle:yt,bundleFileInfo:ze};function Ht(x,le,ke){switch(x){case 0:D.assert(Ji(le),"Expected a SourceFile node.");break;case 2:D.assert(je(le),"Expected an Identifier node.");break;case 1:D.assert(vt(le),"Expected an Expression node.");break}switch(le.kind){case 308:return cr(le);case 309:return ir(le);case 310:return Mi(le)}return vi(x,le,ke,pt()),pe()}function un(x,le,ke){return Nn(x,le,ke,pt()),pe()}function ir(x){return yt(x,pt(),void 0),pe()}function cr(x){return Ce(x,pt(),void 0),pe()}function Mi(x){return Nt(x,pt()),pe()}function vi(x,le,ke,an){const Cr=te;j(an,void 0),ie(x,le,ke),He(),te=Cr}function Nn(x,le,ke,an){const Cr=te;j(an,void 0),ke&&he(ke),Os(void 0,le,x),He(),te=Cr}function rn(){return te.getTextPosWithWriteLine?te.getTextPosWithWriteLine():te.getTextPos()}function Mn(x,le,ke){const an=rl(ze.sections);an&&an.kind===ke?an.end=le:ze.sections.push({pos:x,end:le,kind:ke})}function Ar(x){if(Me&&ze&&k&&(Au(x)||gc(x))&&yY(x,k)&&We!=="internal"){const le=We;return we(te.getTextPos()),Ye=rn(),We="internal",le}}function Hr(x){x&&(we(te.getTextPos()),Ye=rn(),We=x)}function we(x){return Ye<x?(Mn(Ye,x,We),!0):!1}function yt(x,le,ke){Ge=!1;const an=te;j(le,ke),Vb(x),IS(x),fn(x),AS(x);for(const Cr of x.prepends){Nc();const Ci=te.getTextPos(),ui=ze&&ze.sections;if(ui&&(ze.sections=[]),ie(4,Cr,void 0),ze){const Vi=ze.sections;ze.sections=ui,Cr.oldFileOfCurrentEmit?ze.sections.push(...Vi):(Vi.forEach(po=>D.assert(U_e(po))),ze.sections.push({pos:Ci,end:te.getTextPos(),kind:"prepend",data:Oe(Cr.fileName),texts:Vi}))}}Ye=rn();for(const Cr of x.sourceFiles)ie(0,Cr,Cr);if(ze&&x.sourceFiles.length){const Cr=te.getTextPos();if(we(Cr)){const Ci=G2(x);Ci&&(ze.sources||(ze.sources={}),ze.sources.prologues=Ci);const ui=ft(x);ui&&(ze.sources||(ze.sources={}),ze.sources.helpers=ui)}}He(),te=an}function Nt(x,le){const ke=te;j(le,void 0),ie(4,x,void 0),He(),te=ke}function Ce(x,le,ke){Ge=!0;const an=te;j(le,ke),Vb(x),IS(x),ie(0,x,x),He(),te=an}function pt(){return Qe||(Qe=lO(L))}function pe(){const x=Qe.getText();return Qe.clear(),x}function ie(x,le,ke){ke&&he(ke),mt(x,le,void 0)}function he(x){k=x,Pn=void 0,Hn=void 0,x&&ey(x)}function j(x,le){x&&e.omitTrailingSemicolon&&(x=Iq(x)),te=x,st=le,Fe=!te||!st}function He(){G=[],V=[],H=[],ne=new Set,Y=[],$=new Map,M=[],de=0,re=[],be=0,ae=[],W=void 0,ce=[],me=void 0,k=void 0,Pn=void 0,Hn=void 0,j(void 0,void 0)}function Ze(){return Pn||(Pn=hg(D.checkDefined(k)))}function Xe(x,le){if(x===void 0)return;const ke=Ar(x);mt(4,x,le),Hr(ke)}function Ut(x){x!==void 0&&mt(2,x,void 0)}function ln(x,le){x!==void 0&&mt(1,x,le)}function Sn(x){mt(Ho(x)?6:4,x)}function Er(x){Ee&&z_(x)&4&&(Ee=!1)}function ue(x){Ee=x}function mt(x,le,ke){wi=ke,K(0,x,le)(x,le),wi=void 0}function Wt(x){return!Zt&&!Ji(x)}function it(x){return!Fe&&!Ji(x)&&!j3(x)&&!zT(x)&&!vme(x)}function K(x,le,ke){switch(x){case 0:if(i!==J8&&(!o||o(ke)))return ee;case 1:if(s!==Aw&&(_r=s(le,ke)||ke)!==ke)return wi&&(_r=wi(_r)),gt;case 2:if(Wt(ke))return nf;case 3:if(it(ke))return FE;case 4:return Re;default:return D.assertNever(x)}}function Pe(x,le,ke){return K(x+1,le,ke)}function ee(x,le){const ke=Pe(0,x,le);i(x,le,ke)}function Re(x,le){if(c==null||c(le),Ee){const ke=Ee;Er(le),q(x,le),ue(ke)}else q(x,le);f==null||f(le),wi=void 0}function q(x,le,ke=!0){if(ke){const an=ZJ(le);if(an)return oo(x,le,an)}if(x===0)return Gb(so(le,Ji));if(x===2)return Xr(so(le,je));if(x===6)return Ii(so(le,Ho),!0);if(x===3)return Rt(so(le,Ul));if(x===5)return D.assertNode(le,pK),La(!0);if(x===4){switch(le.kind){case 15:case 16:case 17:return Ii(le,!1);case 79:return Xr(le);case 80:return ss(le);case 163:return hi(le);case 164:return Dn(le);case 165:return fa(le);case 166:return ic(le);case 167:return al(le);case 168:return jl(le);case 169:return Zl(le);case 170:return Hl(le);case 171:return Lo(le);case 172:return Ca(le);case 173:return $o(le);case 174:case 175:return Wl(le);case 176:return ou(le);case 177:return Qd(le);case 178:return dc(le);case 179:return vl(le);case 180:return nl(le);case 181:return Ys(le);case 182:return fe(le);case 183:return It(le);case 184:return jt(le);case 185:return Z(le);case 186:return xt(le);case 187:return wr(le);case 189:return Pr(le);case 190:return ba(le);case 191:return ls(le);case 192:return go(le);case 193:return Wo(le);case 230:return R_(le);case 194:return $a();case 195:return pl(le);case 196:return yc(le);case 197:return vd(le);case 198:return Ts(le);case 199:return pn(le);case 200:return fs(le);case 201:return Zc(le);case 202:return ml(le);case 203:return Zd(le);case 204:return ql(le);case 205:return Hf(le);case 236:return et(le);case 237:return Ns();case 238:return qt(le);case 240:return wa(le);case 239:return La(!1);case 241:return Ie(le);case 242:return Ue(le);case 243:return Ot(le);case 244:return mn(le);case 245:return bn(le);case 246:return Tn(le);case 247:return Wn(le);case 248:return Ki(le);case 249:return nr(le);case 250:return ah(le);case 251:return Mg(le);case 252:return sp(le);case 253:return Ib(le);case 254:return c0(le);case 255:return R2(le);case 256:return vS(le);case 257:return N2(le);case 258:return Fg(le);case 259:return lp(le);case 260:return bS(le);case 261:return mE(le);case 262:return hE(le);case 263:return f0(le);case 264:return O2(le);case 265:return gE(le);case 266:return yE(le);case 267:return cp(le);case 268:return _0(le);case 269:return p0(le);case 270:return ES(le);case 271:return Gg(le);case 277:return Pd(le);case 272:return Zo(le);case 273:return vE(le);case 274:return IL(le);case 275:return Jy(le);case 276:return Md(le);case 278:return Fd(le);case 296:return Ug(le);case 297:return oh(le);case 279:return;case 280:return P2(le);case 11:return Pb(le);case 283:case 286:return TS(le);case 284:case 287:return kL(le);case 288:return m0(le);case 289:return M2(le);case 290:return bE(le);case 291:return h0(le);case 292:return g0(le);case 293:return jg(le);case 294:return ns(le);case 295:return up(le);case 299:return EE(le);case 300:return Ac(le);case 301:return zh(le);case 302:return Fb(le);case 303:return Hi(le);case 310:case 304:return ki(le);case 305:case 306:return ho(le);case 307:return So(le);case 308:return Gb(le);case 309:return D.fail("Bundles should be printed using printBundle");case 311:return D.fail("InputFiles should not be printed");case 312:return hl(le);case 313:return Hg(le);case 315:return pr("*");case 316:return pr("?");case 317:return zl(le);case 318:return wu(le);case 319:return $u(le);case 320:return nn(le);case 188:case 321:return ot(le);case 322:return;case 323:return dp(le);case 325:return tf(le);case 326:return TE(le);case 330:case 335:case 340:return sh(le);case 331:case 332:return Uc(le);case 333:case 334:return;case 336:case 337:case 338:case 339:return;case 341:return zi(le);case 342:return Jr(le);case 344:case 351:return Wg(le);case 343:case 345:case 346:case 347:case 352:case 353:return Bb(le);case 348:return xS(le);case 349:return wL(le);case 350:return mu(le);case 355:case 359:case 358:return}if(vt(le)&&(x=1,s!==Aw)){const an=s(x,le)||le;an!==le&&(le=an,wi&&(le=wi(le)))}}if(x===1)switch(le.kind){case 8:case 9:return li(le);case 10:case 13:case 14:return Ii(le,!1);case 79:return Xr(le);case 80:return ss(le);case 206:return Ae(le);case 207:return Dt(le);case 208:return On(le);case 209:return Io(le);case 210:return oe(le);case 211:return ut(le);case 212:return Mt(le);case 213:return Pt(le);case 214:return cn(le);case 215:return jn(le);case 216:return Dr(le);case 217:return Fi(le);case 218:return ja(le);case 219:return zo(le);case 220:return Ss(le);case 221:return $s(le);case 222:return Ef(le);case 223:return vn(le);case 224:return ef(le);case 225:return Du(le);case 226:return Tf(le);case 227:return D_(le);case 228:return Qo(le);case 229:return;case 231:return Sf(le);case 232:return op(le);case 230:return R_(le);case 235:return Mp(le);case 233:return U(le);case 234:return D.fail("SyntheticExpression should never be printed.");case 279:return;case 281:return Nb(le);case 282:return Vg(le);case 285:return Ob(le);case 354:return D.fail("SyntaxList should not be printed");case 355:return;case 356:return F2(le);case 357:return B2(le);case 358:case 359:return;case 360:return D.fail("SyntheticReferenceExpression should not be printed")}if(Dd(le.kind))return AE(le,da);if(_z(le.kind))return AE(le,pr);D.fail(`Unhandled SyntaxKind: ${D.formatSyntaxKind(le.kind)}.`)}function Rt(x){Xe(x.name),ar(),da("in"),ar(),Xe(x.constraint)}function gt(x,le){const ke=Pe(1,x,le);D.assertIsDefined(_r),le=_r,_r=void 0,ke(x,le)}function ft(x){let le;if(I===0||e.noEmitHelpers)return;const ke=new Map;for(const an of x.sourceFiles){const Cr=l8(an)!==void 0,Ci=$n(an);if(Ci)for(const ui of Ci)!ui.scoped&&!Cr&&!ke.get(ui.name)&&(ke.set(ui.name,!0),(le||(le=[])).push(ui.name))}return le}function fn(x){let le=!1;const ke=x.kind===309?x:void 0;if(ke&&I===0)return;const an=ke?ke.prepends.length:0,Cr=ke?ke.sourceFiles.length+an:1;for(let Ci=0;Ci<Cr;Ci++){const ui=ke?Ci<an?ke.prepends[Ci]:ke.sourceFiles[Ci-an]:x,Vi=Ji(ui)?ui:zT(ui)?void 0:k,po=e.noEmitHelpers||!!Vi&&Nme(Vi),su=(Ji(ui)||zT(ui))&&!Ge,af=zT(ui)?ui.helpers:$n(ui);if(af)for(const Cf of af){if(Cf.scoped){if(ke)continue}else{if(po)continue;if(su){if(O.get(Cf.name))continue;O.set(Cf.name,!0)}}const ov=rn();typeof Cf.text=="string"?ec(Cf.text):ec(Cf.text(qf)),ze&&ze.sections.push({pos:ov,end:te.getTextPos(),kind:"emitHelpers",data:Cf.name}),le=!0}}return le}function $n(x){const le=M7(x);return le&&vy(le,Qpe)}function li(x){Ii(x,!1)}function Ii(x,le){const ke=Ml(x,e.neverAsciiEscape,le);(e.sourceMap||e.inlineSourceMap)&&(x.kind===10||Fv(x.kind))?Wb(ke):j2(ke)}function ki(x){for(const le of x.texts)Nc(),Xe(le)}function Hi(x){te.rawWrite(x.parent.text.substring(x.pos,x.end))}function ho(x){const le=rn();Hi(x),ze&&Mn(le,te.getTextPos(),x.kind===305?"text":"internal")}function So(x){const le=rn();if(Hi(x),ze){const ke=bH(x.section);ke.pos=le,ke.end=te.getTextPos(),ze.sections.push(ke)}}function oo(x,le,ke){switch(ke.kind){case 1:ca(x,le,ke);break;case 0:Wi(x,le,ke);break}}function ca(x,le,ke){$y(`\${${ke.order}:`),q(x,le,!1),$y("}")}function Wi(x,le,ke){D.assert(le.kind===239,`A tab stop cannot be attached to a node of kind ${D.formatSyntaxKind(le.kind)}.`),D.assert(x!==5,"A tab stop cannot be attached to an embedded statement."),$y(`$${ke.order}`)}function Xr(x){(x.symbol?H2:Ve)(ev(x,!1),x.symbol),Os(x,UT(x),53776)}function ss(x){Ve(ev(x,!1))}function hi(x){ua(x.left),pr("."),Xe(x.right)}function ua(x){x.kind===79?ln(x):Xe(x)}function Dn(x){const le=de,ke=me;gu(),pr("["),ln(x.expression,Or.parenthesizeExpressionOfComputedPropertyName),pr("]"),E0(le,ke)}function fa(x){zg(x,x.modifiers),Xe(x.name),x.constraint&&(ar(),da("extends"),ar(),Xe(x.constraint)),x.default&&(ar(),zf("="),ar(),Xe(x.default))}function ic(x){Wf(x,x.modifiers,!0),Xe(x.dotDotDotToken),kS(x.name,v0),Xe(x.questionToken),x.parent&&x.parent.kind===320&&!x.name?Xe(x.type):Bp(x.type),fp(x.initializer,x.type?x.type.end:x.questionToken?x.questionToken.end:x.name?x.name.end:x.modifiers?x.modifiers.end:x.pos,x,Or.parenthesizeExpressionForDisallowedComma)}function al(x){pr("@"),ln(x.expression,Or.parenthesizeLeftSideOfAccess)}function jl(x){zg(x,x.modifiers),kS(x.name,W2),Xe(x.questionToken),Bp(x.type),Pl()}function Zl(x){Wf(x,x.modifiers,!0),Xe(x.name),Xe(x.questionToken),Xe(x.exclamationToken),Bp(x.type),fp(x.initializer,x.type?x.type.end:x.questionToken?x.questionToken.end:x.name.end,x),Pl()}function Hl(x){Xg(x),zg(x,x.modifiers),Xe(x.name),Xe(x.questionToken),vm(x,x.typeParameters),Jg(x,x.parameters),Bp(x.type),Pl(),Kh(x)}function Lo(x){Wf(x,x.modifiers,!0),Xe(x.asteriskToken),Xe(x.name),Xe(x.questionToken),Wh(x,Fp)}function Ca(x){da("static"),_E(x.body)}function $o(x){Wf(x,x.modifiers,!1),da("constructor"),Wh(x,Fp)}function Wl(x){const le=Wf(x,x.modifiers,!0),ke=x.kind===174?137:151;_n(ke,le,da,x),ar(),Xe(x.name),Wh(x,Fp)}function ou(x){Xg(x),vm(x,x.typeParameters),Jg(x,x.parameters),Bp(x.type),Pl(),Kh(x)}function Qd(x){Xg(x),da("new"),ar(),vm(x,x.typeParameters),Jg(x,x.parameters),Bp(x.type),Pl(),Kh(x)}function dc(x){Wf(x,x.modifiers,!1),Xy(x,x.parameters),Bp(x.type),Pl()}function Zc(x){Xe(x.type),Xe(x.literal)}function Ns(){Pl()}function vl(x){x.assertsModifier&&(Xe(x.assertsModifier),ar()),Xe(x.parameterName),x.type&&(ar(),da("is"),ar(),Xe(x.type))}function nl(x){Xe(x.typeName),ym(x,x.typeArguments)}function Ys(x){Xg(x),vm(x,x.typeParameters),DS(x,x.parameters),ar(),pr("=>"),ar(),Xe(x.type),Kh(x)}function nn(x){da("function"),Jg(x,x.parameters),pr(":"),Xe(x.type)}function zl(x){pr("?"),Xe(x.type)}function wu(x){pr("!"),Xe(x.type)}function $u(x){Xe(x.type),pr("=")}function fe(x){Xg(x),zg(x,x.modifiers),da("new"),ar(),vm(x,x.typeParameters),Jg(x,x.parameters),ar(),pr("=>"),ar(),Xe(x.type),Kh(x)}function It(x){da("typeof"),ar(),Xe(x.exprName),ym(x,x.typeArguments)}function jt(x){E0(0,void 0),pr("{");const le=bo(x)&1?768:32897;Os(x,x.members,le|524288),pr("}"),gu()}function Z(x){Xe(x.elementType,Or.parenthesizeNonArrayTypeOfPostfixType),pr("["),pr("]")}function ot(x){pr("..."),Xe(x.type)}function xt(x){_n(22,x.pos,pr,x);const le=bo(x)&1?528:657;Os(x,x.elements,le|524288,Or.parenthesizeElementTypeOfTupleType),_n(23,x.elements.end,pr,x)}function pn(x){Xe(x.dotDotDotToken),Xe(x.name),Xe(x.questionToken),_n(58,x.name.end,pr,x),ar(),Xe(x.type)}function wr(x){Xe(x.type,Or.parenthesizeTypeOfOptionalType),pr("?")}function Pr(x){Os(x,x.types,516,Or.parenthesizeConstituentTypeOfUnionType)}function ba(x){Os(x,x.types,520,Or.parenthesizeConstituentTypeOfIntersectionType)}function ls(x){Xe(x.checkType,Or.parenthesizeCheckTypeOfConditionalType),ar(),da("extends"),ar(),Xe(x.extendsType,Or.parenthesizeExtendsTypeOfConditionalType),ar(),pr("?"),ar(),Xe(x.trueType),ar(),pr(":"),ar(),Xe(x.falseType)}function go(x){da("infer"),ar(),Xe(x.typeParameter)}function Wo(x){pr("("),Xe(x.type),pr(")")}function $a(){da("this")}function pl(x){_p(x.operator,da),ar();const le=x.operator===146?Or.parenthesizeOperandOfReadonlyTypeOperator:Or.parenthesizeOperandOfTypeOperator;Xe(x.type,le)}function yc(x){Xe(x.objectType,Or.parenthesizeNonArrayTypeOfPostfixType),pr("["),Xe(x.indexType),pr("]")}function vd(x){const le=bo(x);pr("{"),le&1?ar():(Nc(),N_()),x.readonlyToken&&(Xe(x.readonlyToken),x.readonlyToken.kind!==146&&da("readonly"),ar()),pr("["),mt(3,x.typeParameter),x.nameType&&(ar(),da("as"),ar(),Xe(x.nameType)),pr("]"),x.questionToken&&(Xe(x.questionToken),x.questionToken.kind!==57&&pr("?")),pr(":"),ar(),Xe(x.type),Pl(),le&1?ar():(Nc(),Gp()),Os(x,x.members,2),pr("}")}function Ts(x){ln(x.literal)}function fs(x){Xe(x.head),Os(x,x.templateSpans,262144)}function ml(x){if(x.isTypeOf&&(da("typeof"),ar()),da("import"),pr("("),Xe(x.argument),x.assertions){pr(","),ar(),pr("{"),ar(),da("assert"),pr(":"),ar();const le=x.assertions.assertClause.elements;Os(x.assertions.assertClause,le,526226),ar(),pr("}")}pr(")"),x.qualifier&&(pr("."),Xe(x.qualifier)),ym(x,x.typeArguments)}function Zd(x){pr("{"),Os(x,x.elements,525136),pr("}")}function ql(x){pr("["),Os(x,x.elements,524880),pr("]")}function Hf(x){Xe(x.dotDotDotToken),x.propertyName&&(Xe(x.propertyName),pr(":"),ar()),Xe(x.name),fp(x.initializer,x.name.end,x,Or.parenthesizeExpressionForDisallowedComma)}function Ae(x){const le=x.elements,ke=x.multiLine?65536:0;Yy(x,le,8914|ke,Or.parenthesizeExpressionForDisallowedComma)}function Dt(x){E0(0,void 0),Je(x.properties,IE);const le=bo(x)&131072;le&&N_();const ke=x.multiLine?65536:0,an=k&&k.languageVersion>=1&&!T_(k)?64:0;Os(x,x.properties,526226|an|ke),le&&Gp(),gu()}function On(x){ln(x.expression,Or.parenthesizeLeftSideOfAccess);const le=x.questionDotToken||Ym(N.createToken(24),x.expression.end,x.name.pos),ke=Up(x,x.expression,le),an=Up(x,le,x.name);oc(ke,!1),le.kind!==28&&Yi(x.expression)&&!te.hasTrailingComment()&&!te.hasTrailingWhitespace()&&pr("."),x.questionDotToken?Xe(le):_n(le.kind,x.expression.end,pr,x),oc(an,!1),Xe(x.name),Kg(ke,an)}function Yi(x){if(x=W_(x),L_(x)){const le=Ml(x,!0,!1);return!x.numericLiteralFlags&&!bu(le,vo(24))}else if(dl(x)){const le=Wpe(x);return typeof le=="number"&&isFinite(le)&&Math.floor(le)===le}}function Io(x){ln(x.expression,Or.parenthesizeLeftSideOfAccess),Xe(x.questionDotToken),_n(22,x.expression.end,pr,x),ln(x.argumentExpression),_n(23,x.argumentExpression.end,pr,x)}function oe(x){const le=z_(x)&16;le&&(pr("("),Wb("0"),pr(","),ar()),ln(x.expression,Or.parenthesizeLeftSideOfAccess),le&&pr(")"),Xe(x.questionDotToken),ym(x,x.typeArguments),Yy(x,x.arguments,2576,Or.parenthesizeExpressionForDisallowedComma)}function ut(x){_n(103,x.pos,da,x),ar(),ln(x.expression,Or.parenthesizeExpressionOfNew),ym(x,x.typeArguments),Yy(x,x.arguments,18960,Or.parenthesizeExpressionForDisallowedComma)}function Mt(x){const le=z_(x)&16;le&&(pr("("),Wb("0"),pr(","),ar()),ln(x.tag,Or.parenthesizeLeftSideOfAccess),le&&pr(")"),ym(x,x.typeArguments),ar(),ln(x.template)}function Pt(x){pr("<"),Xe(x.type),pr(">"),ln(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function cn(x){const le=_n(20,x.pos,pr,x),ke=CE(x.expression,x);ln(x.expression,void 0),zb(x.expression,x),Kg(ke),_n(21,x.expression?x.expression.end:le,pr,x)}function jn(x){Yh(x.name),u0(x)}function Dr(x){zg(x,x.modifiers),Wh(x,ii)}function ii(x){vm(x,x.typeParameters),DS(x,x.parameters),Bp(x.type),ar(),Xe(x.equalsGreaterThanToken)}function Fi(x){_n(89,x.pos,da,x),ar(),ln(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function ja(x){_n(112,x.pos,da,x),ar(),ln(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function zo(x){_n(114,x.pos,da,x),ar(),ln(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function Ss(x){_n(133,x.pos,da,x),ar(),ln(x.expression,Or.parenthesizeOperandOfPrefixUnary)}function $s(x){_p(x.operator,zf),bd(x)&&ar(),ln(x.operand,Or.parenthesizeOperandOfPrefixUnary)}function bd(x){const le=x.operand;return le.kind===221&&(x.operator===39&&(le.operator===39||le.operator===45)||x.operator===40&&(le.operator===40||le.operator===46))}function Ef(x){ln(x.operand,Or.parenthesizeOperandOfPostfixUnary),_p(x.operator,zf)}function ac(){return k5(x,le,ke,an,Cr,void 0);function x(ui,Vi){if(Vi){Vi.stackIndex++,Vi.preserveSourceNewlinesStack[Vi.stackIndex]=Ee,Vi.containerPosStack[Vi.stackIndex]=at,Vi.containerEndStack[Vi.stackIndex]=on,Vi.declarationListContainerEndStack[Vi.stackIndex]=Qt;const po=Vi.shouldEmitCommentsStack[Vi.stackIndex]=Wt(ui),su=Vi.shouldEmitSourceMapsStack[Vi.stackIndex]=it(ui);c==null||c(ui),po&&Sd(ui),su&&BE(ui),Er(ui)}else Vi={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Vi}function le(ui,Vi,po){return Ci(ui,po,"left")}function ke(ui,Vi,po){const su=ui.kind!==27,af=Up(po,po.left,ui),Cf=Up(po,ui,po.right);oc(af,su),Gd(ui.pos),AE(ui,ui.kind===101?da:zf),Qg(ui.end,!0),oc(Cf,!0)}function an(ui,Vi,po){return Ci(ui,po,"right")}function Cr(ui,Vi){const po=Up(ui,ui.left,ui.operatorToken),su=Up(ui,ui.operatorToken,ui.right);if(Kg(po,su),Vi.stackIndex>0){const af=Vi.preserveSourceNewlinesStack[Vi.stackIndex],Cf=Vi.containerPosStack[Vi.stackIndex],ov=Vi.containerEndStack[Vi.stackIndex],of=Vi.declarationListContainerEndStack[Vi.stackIndex],L0=Vi.shouldEmitCommentsStack[Vi.stackIndex],I0=Vi.shouldEmitSourceMapsStack[Vi.stackIndex];ue(af),I0&&GE(ui),L0&&NS(ui,Cf,ov,of),f==null||f(ui),Vi.stackIndex--}}function Ci(ui,Vi,po){const su=po==="left"?Or.getParenthesizeLeftSideOfBinaryForOperator(Vi.operatorToken.kind):Or.getParenthesizeRightSideOfBinaryForOperator(Vi.operatorToken.kind);let af=K(0,1,ui);if(af===gt&&(D.assertIsDefined(_r),ui=su(so(_r,vt)),af=Pe(1,1,ui),_r=void 0),(af===nf||af===FE||af===Re)&&br(ui))return ui;wi=su,af(1,ui)}}function ef(x){const le=Up(x,x.condition,x.questionToken),ke=Up(x,x.questionToken,x.whenTrue),an=Up(x,x.whenTrue,x.colonToken),Cr=Up(x,x.colonToken,x.whenFalse);ln(x.condition,Or.parenthesizeConditionOfConditionalExpression),oc(le,!0),Xe(x.questionToken),oc(ke,!0),ln(x.whenTrue,Or.parenthesizeBranchOfConditionalExpression),Kg(le,ke),oc(an,!0),Xe(x.colonToken),oc(Cr,!0),ln(x.whenFalse,Or.parenthesizeBranchOfConditionalExpression),Kg(an,Cr)}function Du(x){Xe(x.head),Os(x,x.templateSpans,262144)}function Tf(x){_n(125,x.pos,da,x),Xe(x.asteriskToken),gm(x.expression&&Qs(x.expression),fc)}function D_(x){_n(25,x.pos,pr,x),ln(x.expression,Or.parenthesizeExpressionForDisallowedComma)}function Qo(x){Yh(x.name),pE(x)}function R_(x){ln(x.expression,Or.parenthesizeLeftSideOfAccess),ym(x,x.typeArguments)}function Sf(x){ln(x.expression,void 0),x.type&&(ar(),da("as"),ar(),Xe(x.type))}function op(x){ln(x.expression,Or.parenthesizeLeftSideOfAccess),zf("!")}function Mp(x){ln(x.expression,void 0),x.type&&(ar(),da("satisfies"),ar(),Xe(x.type))}function U(x){Qy(x.keywordToken,x.pos,pr),pr("."),Xe(x.name)}function et(x){ln(x.expression),Xe(x.literal)}function qt(x){Yn(x,!x.multiLine&&Jh(x))}function Yn(x,le){_n(18,x.pos,pr,x);const ke=le||bo(x)&1?768:129;Os(x,x.statements,ke),_n(19,x.statements.end,pr,x,!!(ke&1))}function wa(x){Wf(x,x.modifiers,!1),Xe(x.declarationList),Pl()}function La(x){x?pr(";"):Pl()}function Ie(x){ln(x.expression,Or.parenthesizeExpressionOfExpressionStatement),(!k||!T_(k)||tl(x.expression))&&Pl()}function Ue(x){const le=_n(99,x.pos,da,x);ar(),_n(20,le,pr,x),ln(x.expression),_n(21,x.expression.end,pr,x),Ed(x,x.thenStatement),x.elseStatement&&(Zy(x,x.thenStatement,x.elseStatement),_n(91,x.thenStatement.end,da,x),x.elseStatement.kind===242?(ar(),Xe(x.elseStatement)):Ed(x,x.elseStatement))}function Lt(x,le){const ke=_n(115,le,da,x);ar(),_n(20,ke,pr,x),ln(x.expression),_n(21,x.expression.end,pr,x)}function Ot(x){_n(90,x.pos,da,x),Ed(x,x.statement),uo(x.statement)&&!Ee?ar():Zy(x,x.statement,x.expression),Lt(x,x.statement.end),Pl()}function mn(x){Lt(x,x.pos),Ed(x,x.statement)}function bn(x){const le=_n(97,x.pos,da,x);ar();let ke=_n(20,le,pr,x);qr(x.initializer),ke=_n(26,x.initializer?x.initializer.end:ke,pr,x),gm(x.condition),ke=_n(26,x.condition?x.condition.end:ke,pr,x),gm(x.incrementor),_n(21,x.incrementor?x.incrementor.end:ke,pr,x),Ed(x,x.statement)}function Tn(x){const le=_n(97,x.pos,da,x);ar(),_n(20,le,pr,x),qr(x.initializer),ar(),_n(101,x.initializer.end,da,x),ar(),ln(x.expression),_n(21,x.expression.end,pr,x),Ed(x,x.statement)}function Wn(x){const le=_n(97,x.pos,da,x);ar(),wS(x.awaitModifier),_n(20,le,pr,x),qr(x.initializer),ar(),_n(162,x.initializer.end,da,x),ar(),ln(x.expression),_n(21,x.expression.end,pr,x),Ed(x,x.statement)}function qr(x){x!==void 0&&(x.kind===258?Xe(x):ln(x))}function Ki(x){_n(86,x.pos,da,x),jb(x.label),Pl()}function nr(x){_n(81,x.pos,da,x),jb(x.label),Pl()}function _n(x,le,ke,an,Cr){const Ci=va(an),ui=Ci&&Ci.kind===an.kind,Vi=le;if(ui&&k&&(le=Xo(k.text,le)),ui&&an.pos!==Vi){const po=Cr&&k&&!A_(Vi,le,k);po&&N_(),Gd(Vi),po&&Gp()}if(le=_p(x,ke,le),ui&&an.end!==le){const po=an.kind===291;Qg(le,!po,po)}return le}function dr(x){return x.kind===2||!!x.hasTrailingNewLine}function Sa(x){return k?kt(xh(k.text,x.pos),dr)||kt(wC(x),dr)?!0:h5(x)?x.pos!==x.expression.pos&&kt(nb(k.text,x.expression.pos),dr)?!0:Sa(x.expression):!1:!1}function Qs(x){if(!Zt&&h5(x)&&Sa(x)){const le=va(x);if(le&&Jd(le)){const ke=N.createParenthesizedExpression(x.expression);return Wr(ke,x),ht(ke,le),ke}return N.createParenthesizedExpression(x)}return x}function fc(x){return Qs(Or.parenthesizeExpressionForDisallowedComma(x))}function ah(x){_n(105,x.pos,da,x),gm(x.expression&&Qs(x.expression),Qs),Pl()}function Mg(x){const le=_n(116,x.pos,da,x);ar(),_n(20,le,pr,x),ln(x.expression),_n(21,x.expression.end,pr,x),Ed(x,x.statement)}function sp(x){const le=_n(107,x.pos,da,x);ar(),_n(20,le,pr,x),ln(x.expression),_n(21,x.expression.end,pr,x),ar(),Xe(x.caseBlock)}function Ib(x){Xe(x.label),_n(58,x.label.end,pr,x),ar(),Xe(x.statement)}function c0(x){_n(109,x.pos,da,x),gm(Qs(x.expression),Qs),Pl()}function R2(x){_n(111,x.pos,da,x),ar(),Xe(x.tryBlock),x.catchClause&&(Zy(x,x.tryBlock,x.catchClause),Xe(x.catchClause)),x.finallyBlock&&(Zy(x,x.catchClause||x.tryBlock,x.finallyBlock),_n(96,(x.catchClause||x.tryBlock).end,da,x),ar(),Xe(x.finallyBlock))}function vS(x){Qy(87,x.pos,da),Pl()}function N2(x){var le,ke,an,Cr,Ci;Xe(x.name),Xe(x.exclamationToken),Bp(x.type),fp(x.initializer,(Ci=(Cr=(le=x.type)==null?void 0:le.end)!=null?Cr:(an=(ke=x.name.emitNode)==null?void 0:ke.typeNode)==null?void 0:an.end)!=null?Ci:x.name.end,x,Or.parenthesizeExpressionForDisallowedComma)}function Fg(x){da(sk(x)?"let":Tg(x)?"const":"var"),ar(),Os(x,x.declarations,528)}function lp(x){u0(x)}function u0(x){Wf(x,x.modifiers,!1),da("function"),Xe(x.asteriskToken),ar(),Ut(x.name),Wh(x,Fp)}function Wh(x,le){const ke=x.body;if(ke)if(uo(ke)){const an=bo(x)&131072;an&&N_(),Xg(x),Je(x.parameters,Cc),Cc(x.body),le(x),_E(ke),Kh(x),an&&Gp()}else le(x),ar(),ln(ke,Or.parenthesizeConciseBodyOfArrowFunction);else le(x),Pl()}function Fp(x){vm(x,x.typeParameters),Jg(x,x.parameters),Bp(x.type)}function d0(x){if(bo(x)&1)return!0;if(x.multiLine||!tl(x)&&k&&!MT(x,k)||hu(x,tu(x.statements),2)||uh(x,rl(x.statements),2,x.statements))return!1;let le;for(const ke of x.statements){if(O_(le,ke,2)>0)return!1;le=ke}return!0}function _E(x){c==null||c(x),ar(),pr("{"),N_();const le=d0(x)?kb:Bg;$g(x,x.statements,le),Gp(),Qy(19,x.statements.end,pr,x),f==null||f(x)}function kb(x){Bg(x,!0)}function Bg(x,le){const ke=y0(x.statements),an=te.getTextPos();fn(x),ke===0&&an===te.getTextPos()&&le?(Gp(),Os(x,x.statements,768),N_()):Os(x,x.statements,1,void 0,ke)}function bS(x){pE(x)}function pE(x){E0(0,void 0),Je(x.members,IE),Wf(x,x.modifiers,!0),_n(84,sm(x).pos,da,x),x.name&&(ar(),Ut(x.name));const le=bo(x)&131072;le&&N_(),vm(x,x.typeParameters),Os(x,x.heritageClauses,0),ar(),pr("{"),Os(x,x.members,129),pr("}"),le&&Gp(),gu()}function mE(x){E0(0,void 0),Wf(x,x.modifiers,!1),da("interface"),ar(),Xe(x.name),vm(x,x.typeParameters),Os(x,x.heritageClauses,512),ar(),pr("{"),Os(x,x.members,129),pr("}"),gu()}function hE(x){Wf(x,x.modifiers,!1),da("type"),ar(),Xe(x.name),vm(x,x.typeParameters),ar(),pr("="),ar(),Xe(x.type),Pl()}function f0(x){Wf(x,x.modifiers,!1),da("enum"),ar(),Xe(x.name),ar(),pr("{"),Os(x,x.members,145),pr("}")}function O2(x){Wf(x,x.modifiers,!1),~x.flags&1024&&(da(x.flags&16?"namespace":"module"),ar()),Xe(x.name);let le=x.body;if(!le)return Pl();for(;le&&$l(le);)pr("."),Xe(le.name),le=le.body;ar(),Xe(le)}function gE(x){Xg(x),Je(x.statements,Cc),Yn(x,Jh(x)),Kh(x)}function yE(x){_n(18,x.pos,pr,x),Os(x,x.clauses,129),_n(19,x.clauses.end,pr,x,!0)}function _0(x){Wf(x,x.modifiers,!1),_n(100,x.modifiers?x.modifiers.end:x.pos,da,x),ar(),x.isTypeOnly&&(_n(154,x.pos,da,x),ar()),Xe(x.name),ar(),_n(63,x.name.end,pr,x),ar(),wb(x.moduleReference),Pl()}function wb(x){x.kind===79?ln(x):Xe(x)}function p0(x){Wf(x,x.modifiers,!1),_n(100,x.modifiers?x.modifiers.end:x.pos,da,x),ar(),x.importClause&&(Xe(x.importClause),ar(),_n(158,x.importClause.end,da,x),ar()),ln(x.moduleSpecifier),x.assertClause&&jb(x.assertClause),Pl()}function ES(x){x.isTypeOnly&&(_n(154,x.pos,da,x),ar()),Xe(x.name),x.name&&x.namedBindings&&(_n(27,x.name.end,pr,x),ar()),Xe(x.namedBindings)}function Gg(x){const le=_n(41,x.pos,pr,x);ar(),_n(128,le,da,x),ar(),Xe(x.name)}function Zo(x){Db(x)}function vE(x){Rb(x)}function IL(x){const le=_n(93,x.pos,da,x);ar(),x.isExportEquals?_n(63,le,zf,x):_n(88,le,da,x),ar(),ln(x.expression,x.isExportEquals?Or.getParenthesizeRightSideOfBinaryForOperator(63):Or.parenthesizeExpressionOfExportDefault),Pl()}function Jy(x){Wf(x,x.modifiers,!1);let le=_n(93,x.pos,da,x);if(ar(),x.isTypeOnly&&(le=_n(154,le,da,x),ar()),x.exportClause?Xe(x.exportClause):le=_n(41,le,pr,x),x.moduleSpecifier){ar();const ke=x.exportClause?x.exportClause.end:le;_n(158,ke,da,x),ar(),ln(x.moduleSpecifier)}x.assertClause&&jb(x.assertClause),Pl()}function Ug(x){_n(130,x.pos,da,x),ar();const le=x.elements;Os(x,le,526226)}function oh(x){Xe(x.name),pr(":"),ar();const le=x.value;if(!(bo(le)&1024)){const ke=$m(le);Qg(ke.pos)}Xe(le)}function cp(x){let le=_n(93,x.pos,da,x);ar(),le=_n(128,le,da,x),ar(),le=_n(143,le,da,x),ar(),Xe(x.name),Pl()}function Pd(x){const le=_n(41,x.pos,pr,x);ar(),_n(128,le,da,x),ar(),Xe(x.name)}function Md(x){Db(x)}function Fd(x){Rb(x)}function Db(x){pr("{"),Os(x,x.elements,525136),pr("}")}function Rb(x){x.isTypeOnly&&(da("type"),ar()),x.propertyName&&(Xe(x.propertyName),ar(),_n(128,x.propertyName.end,da,x),ar()),Xe(x.name)}function P2(x){da("require"),pr("("),ln(x.expression),pr(")")}function Nb(x){Xe(x.openingElement),Os(x,x.children,262144),Xe(x.closingElement)}function Vg(x){pr("<"),Mb(x.tagName),ym(x,x.typeArguments),ar(),Xe(x.attributes),pr("/>")}function Ob(x){Xe(x.openingFragment),Os(x,x.children,262144),Xe(x.closingFragment)}function TS(x){if(pr("<"),Gh(x)){const le=CE(x.tagName,x);Mb(x.tagName),ym(x,x.typeArguments),x.attributes.properties&&x.attributes.properties.length>0&&ar(),Xe(x.attributes),zb(x.attributes,x),Kg(le)}pr(">")}function Pb(x){te.writeLiteral(x.text)}function kL(x){pr("</"),Zx(x)&&Mb(x.tagName),pr(">")}function M2(x){Os(x,x.properties,262656)}function m0(x){Xe(x.name),U2("=",pr,x.initializer,Sn)}function bE(x){pr("{..."),ln(x.expression),pr("}")}function Ke(x){let le=!1;return aN((k==null?void 0:k.text)||"",x+1,()=>le=!0),le}function Ky(x){let le=!1;return iN((k==null?void 0:k.text)||"",x+1,()=>le=!0),le}function hm(x){return Ke(x)||Ky(x)}function h0(x){var le;if(x.expression||!Zt&&!tl(x)&&hm(x.pos)){const ke=k&&!tl(x)&&cl(k,x.pos).line!==cl(k,x.end).line;ke&&te.increaseIndent();const an=_n(18,x.pos,pr,x);Xe(x.dotDotDotToken),ln(x.expression),_n(19,((le=x.expression)==null?void 0:le.end)||an,pr,x),ke&&te.decreaseIndent()}}function Mb(x){x.kind===79?ln(x):Xe(x)}function g0(x){_n(82,x.pos,da,x),ar(),ln(x.expression,Or.parenthesizeExpressionForDisallowedComma),SS(x,x.statements,x.expression.end)}function jg(x){const le=_n(88,x.pos,da,x);SS(x,x.statements,le)}function SS(x,le,ke){const an=le.length===1&&(!k||tl(x)||tl(le[0])||l7(x,le[0],k));let Cr=163969;an?(Qy(58,ke,pr,x),ar(),Cr&=-130):_n(58,ke,pr,x),Os(x,le,Cr)}function ns(x){ar(),_p(x.token,da),ar(),Os(x,x.types,528)}function up(x){const le=_n(83,x.pos,da,x);ar(),x.variableDeclaration&&(_n(20,le,pr,x),Xe(x.variableDeclaration),_n(21,x.variableDeclaration.end,pr,x),ar()),Xe(x.block)}function EE(x){Xe(x.name),pr(":"),ar();const le=x.initializer;if(!(bo(le)&1024)){const ke=$m(le);Qg(ke.pos)}ln(le,Or.parenthesizeExpressionForDisallowedComma)}function Ac(x){Xe(x.name),x.objectAssignmentInitializer&&(ar(),pr("="),ar(),ln(x.objectAssignmentInitializer,Or.parenthesizeExpressionForDisallowedComma))}function zh(x){x.expression&&(_n(25,x.pos,pr,x),ln(x.expression,Or.parenthesizeExpressionForDisallowedComma))}function Fb(x){Xe(x.name),fp(x.initializer,x.name.end,x,Or.parenthesizeExpressionForDisallowedComma)}function dp(x){if(Ve("/**"),x.comment){const le=dN(x.comment);if(le){const ke=le.split(/\r\n?|\n/g);for(const an of ke)Nc(),ar(),pr("*"),ar(),Ve(an)}}x.tags&&(x.tags.length===1&&x.tags[0].kind===347&&!x.comment?(ar(),Xe(x.tags[0])):Os(x,x.tags,33)),ar(),Ve("*/")}function Bb(x){qh(x.tagName),hl(x.typeExpression),lh(x.comment)}function mu(x){qh(x.tagName),Xe(x.name),lh(x.comment)}function Hg(x){ar(),pr("{"),Xe(x.name),pr("}")}function Uc(x){qh(x.tagName),ar(),pr("{"),Xe(x.class),pr("}"),lh(x.comment)}function xS(x){qh(x.tagName),hl(x.constraint),ar(),Os(x,x.typeParameters,528),lh(x.comment)}function wL(x){qh(x.tagName),x.typeExpression&&(x.typeExpression.kind===312?hl(x.typeExpression):(ar(),pr("{"),Ve("Object"),x.typeExpression.isArrayType&&(pr("["),pr("]")),pr("}"))),x.fullName&&(ar(),Xe(x.fullName)),lh(x.comment),x.typeExpression&&x.typeExpression.kind===325&&tf(x.typeExpression)}function zi(x){qh(x.tagName),x.name&&(ar(),Xe(x.name)),lh(x.comment),TE(x.typeExpression)}function Jr(x){lh(x.comment),TE(x.typeExpression)}function sh(x){qh(x.tagName),lh(x.comment)}function tf(x){Os(x,N.createNodeArray(x.jsDocPropertyTags),33)}function TE(x){x.typeParameters&&Os(x,N.createNodeArray(x.typeParameters),33),x.parameters&&Os(x,N.createNodeArray(x.parameters),33),x.type&&(Nc(),ar(),pr("*"),ar(),Xe(x.type))}function Wg(x){qh(x.tagName),hl(x.typeExpression),ar(),x.isBracketed&&pr("["),Xe(x.name),x.isBracketed&&pr("]"),lh(x.comment)}function qh(x){pr("@"),Xe(x)}function lh(x){const le=dN(x);le&&(ar(),Ve(le))}function hl(x){x&&(ar(),pr("{"),Xe(x.type),pr("}"))}function Gb(x){Nc();const le=x.statements;if(le.length===0||!Ap(le[0])||tl(le[0])){$g(x,le,f_);return}f_(x)}function AS(x){CS(!!x.hasNoDefaultLib,x.syntheticFileReferences||[],x.syntheticTypeReferences||[],x.syntheticLibReferences||[]);for(const le of x.prepends)if(zT(le)&&le.syntheticReferences)for(const ke of le.syntheticReferences)Xe(ke),Nc()}function Ub(x){x.isDeclarationFile&&CS(x.hasNoDefaultLib,x.referencedFiles,x.typeReferenceDirectives,x.libReferenceDirectives)}function CS(x,le,ke,an){if(x){const Cr=te.getTextPos();ch('/// <reference no-default-lib="true"/>'),ze&&ze.sections.push({pos:Cr,end:te.getTextPos(),kind:"no-default-lib"}),Nc()}if(k&&k.moduleName&&(ch(`/// <amd-module name="${k.moduleName}" />`),Nc()),k&&k.amdDependencies)for(const Cr of k.amdDependencies)Cr.name?ch(`/// <amd-dependency name="${Cr.name}" path="${Cr.path}" />`):ch(`/// <amd-dependency path="${Cr.path}" />`),Nc();for(const Cr of le){const Ci=te.getTextPos();ch(`/// <reference path="${Cr.fileName}" />`),ze&&ze.sections.push({pos:Ci,end:te.getTextPos(),kind:"reference",data:Cr.fileName}),Nc()}for(const Cr of ke){const Ci=te.getTextPos(),ui=Cr.resolutionMode&&Cr.resolutionMode!==(k==null?void 0:k.impliedNodeFormat)?`resolution-mode="${Cr.resolutionMode===99?"import":"require"}"`:"";ch(`/// <reference types="${Cr.fileName}" ${ui}/>`),ze&&ze.sections.push({pos:Ci,end:te.getTextPos(),kind:Cr.resolutionMode?Cr.resolutionMode===99?"type-import":"type-require":"type",data:Cr.fileName}),Nc()}for(const Cr of an){const Ci=te.getTextPos();ch(`/// <reference lib="${Cr.fileName}" />`),ze&&ze.sections.push({pos:Ci,end:te.getTextPos(),kind:"lib",data:Cr.fileName}),Nc()}}function f_(x){const le=x.statements;Xg(x),Je(x.statements,Cc),fn(x);const ke=mi(le,an=>!Ap(an));Ub(x),Os(x,le,1,void 0,ke===-1?le.length:ke),Kh(x)}function F2(x){const le=bo(x);!(le&1024)&&x.pos!==x.expression.pos&&Qg(x.expression.pos),ln(x.expression),!(le&2048)&&x.end!==x.expression.end&&Gd(x.expression.end)}function B2(x){Yy(x,x.elements,528,void 0)}function y0(x,le,ke,an){let Cr=!!le;for(let Ci=0;Ci<x.length;Ci++){const ui=x[Ci];if(Ap(ui)){if(ke?!ke.has(ui.expression.text):!0){Cr&&(Cr=!1,he(le)),Nc();const po=te.getTextPos();Xe(ui),an&&ze&&ze.sections.push({pos:po,end:te.getTextPos(),kind:"prologue",data:ui.expression.text}),ke&&ke.add(ui.expression.text)}}else return Ci}return x.length}function LS(x,le){for(const ke of x)if(!le.has(ke.data)){Nc();const an=te.getTextPos();Xe(ke),ze&&ze.sections.push({pos:an,end:te.getTextPos(),kind:"prologue",data:ke.data}),le&&le.add(ke.data)}}function IS(x){if(Ji(x))y0(x.statements,x);else{const le=new Set;for(const ke of x.prepends)LS(ke.prologues,le);for(const ke of x.sourceFiles)y0(ke.statements,ke,le,!0);he(void 0)}}function G2(x){const le=new Set;let ke;for(let an=0;an<x.sourceFiles.length;an++){const Cr=x.sourceFiles[an];let Ci,ui=0;for(const Vi of Cr.statements){if(!Ap(Vi))break;le.has(Vi.expression.text)||(le.add(Vi.expression.text),(Ci||(Ci=[])).push({pos:Vi.pos,end:Vi.end,expression:{pos:Vi.expression.pos,end:Vi.expression.end,text:Vi.expression.text}}),ui=ui<Vi.end?Vi.end:ui)}Ci&&(ke||(ke=[])).push({file:an,text:Cr.text.substring(0,ui),directives:Ci})}return ke}function Vb(x){if(Ji(x)||zT(x)){const le=YM(x.text);if(le)return ch(le),Nc(),!0}else{for(const le of x.prepends)if(D.assertNode(le,zT),Vb(le))return!0;for(const le of x.sourceFiles)if(Vb(le))return!0}}function kS(x,le){if(!x)return;const ke=Ve;Ve=le,Xe(x),Ve=ke}function Wf(x,le,ke){if(le!=null&&le.length){if(Zn(le,_o))return zg(x,le);if(Zn(le,Wu))return ke?qg(x,le):x.pos;d==null||d(le);let an,Cr,Ci=0,ui=0,Vi;for(;Ci<le.length;){for(;ui<le.length;){if(Vi=le[ui],Cr=Wu(Vi)?"decorators":"modifiers",an===void 0)an=Cr;else if(Cr!==an)break;ui++}const po={pos:-1,end:-1};Ci===0&&(po.pos=le.pos),ui===le.length-1&&(po.end=le.end),(an==="modifiers"||ke)&&Hb(Xe,x,le,an==="modifiers"?2359808:2146305,void 0,Ci,ui-Ci,!1,po),Ci=ui,an=Cr,ui++}if(v==null||v(le),Vi&&!lm(Vi.end))return Vi.end}return x.pos}function zg(x,le){Os(x,le,2359808);const ke=rl(le);return ke&&!lm(ke.end)?ke.end:x.pos}function Bp(x){x&&(pr(":"),ar(),Xe(x))}function fp(x,le,ke,an){x&&(ar(),_n(63,le,zf,ke),ar(),ln(x,an))}function U2(x,le,ke,an){ke&&(le(x),an(ke))}function jb(x){x&&(ar(),Xe(x))}function gm(x,le){x&&(ar(),ln(x,le))}function wS(x){x&&(Xe(x),ar())}function Ed(x,le){uo(le)||bo(x)&1?(ar(),Xe(le)):(Nc(),N_(),pK(le)?mt(5,le):Xe(le),Gp())}function qg(x,le){Os(x,le,2146305);const ke=rl(le);return ke&&!lm(ke.end)?ke.end:x.pos}function ym(x,le){Os(x,le,53776,At)}function vm(x,le){if(Xa(x)&&x.typeArguments)return ym(x,x.typeArguments);Os(x,le,53776)}function Jg(x,le){Os(x,le,2576)}function SE(x,le){const ke=Om(le);return ke&&ke.pos===x.pos&&Xs(x)&&!x.type&&!kt(x.modifiers)&&!kt(x.typeParameters)&&!kt(ke.modifiers)&&!ke.dotDotDotToken&&!ke.questionToken&&!ke.type&&!ke.initializer&&je(ke.name)}function DS(x,le){SE(x,le)?Os(x,le,528):Jg(x,le)}function Xy(x,le){Os(x,le,8848)}function xE(x){switch(x&60){case 0:break;case 16:pr(",");break;case 4:ar(),pr("|");break;case 32:ar(),pr("*"),ar();break;case 8:ar(),pr("&");break}}function Os(x,le,ke,an,Cr,Ci){V2(Xe,x,le,ke|(x&&bo(x)&2?65536:0),an,Cr,Ci)}function Yy(x,le,ke,an,Cr,Ci){V2(ln,x,le,ke,an,Cr,Ci)}function V2(x,le,ke,an,Cr,Ci=0,ui=ke?ke.length-Ci:0){if(ke===void 0&&an&16384)return;const po=ke===void 0||Ci>=ke.length||ui===0;if(po&&an&32768){d==null||d(ke),v==null||v(ke);return}an&15360&&(pr(XFe(an)),po&&ke&&Qg(ke.pos,!0)),d==null||d(ke),po?an&1&&!(Ee&&(!le||k&&MT(le,k)))?Nc():an&256&&!(an&524288)&&ar():Hb(x,le,ke,an,Cr,Ci,ui,ke.hasTrailingComma,ke),v==null||v(ke),an&15360&&(po&&ke&&Gd(ke.end),pr(YFe(an)))}function Hb(x,le,ke,an,Cr,Ci,ui,Vi,po){const su=(an&262144)===0;let af=su;const Cf=hu(le,ke[Ci],an);Cf?(Nc(Cf),af=!1):an&256&&ar(),an&128&&N_();const ov=e9e(x,Cr);let of,L0,I0=!1;for(let _h=0;_h<ui;_h++){const lv=ke[Ci+_h];if(an&32)Nc(),xE(an);else if(of){an&60&&of.end!==(le?le.end:-1)&&(bo(of)&2048||Gd(of.end)),xE(an),Hr(L0);const __=O_(of,lv,an);__>0?(an&131||(N_(),I0=!0),Nc(__),af=!1):of&&an&512&&ar()}if(L0=Ar(lv),af){const __=$m(lv);Qg(__.pos)}else af=su;xe=lv.pos,ov(lv,x,Cr,_h),I0&&(Gp(),I0=!1),of=lv}const sv=of?bo(of):0,P_=Zt||!!(sv&2048),UE=Vi&&an&64&&an&16;UE&&(of&&!P_?_n(27,of.end,pr,of):pr(",")),of&&(le?le.end:-1)!==of.end&&an&60&&!P_&&Gd(UE&&(po!=null&&po.end)?po.end:of.end),an&128&&Gp(),Hr(L0);const Kf=uh(le,ke[Ci+ui-1],an,po);Kf?Nc(Kf):an&2097408&&ar()}function Wb(x){te.writeLiteral(x)}function j2(x){te.writeStringLiteral(x)}function DL(x){te.write(x)}function H2(x,le){te.writeSymbol(x,le)}function pr(x){te.writePunctuation(x)}function Pl(){te.writeTrailingSemicolon(";")}function da(x){te.writeKeyword(x)}function zf(x){te.writeOperator(x)}function v0(x){te.writeParameter(x)}function ch(x){te.writeComment(x)}function ar(){te.writeSpace(" ")}function W2(x){te.writeProperty(x)}function $y(x){te.nonEscapingWrite?te.nonEscapingWrite(x):te.write(x)}function Nc(x=1){for(let le=0;le<x;le++)te.writeLine(le>0)}function N_(){te.increaseIndent()}function Gp(){te.decreaseIndent()}function Qy(x,le,ke,an){return Fe?_p(x,ke,le):RL(an,x,ke,le,_p)}function AE(x,le){h&&h(x),le(vo(x.kind)),E&&E(x)}function _p(x,le,ke){const an=vo(x);return le(an),ke<0?ke:ke+an.length}function Zy(x,le,ke){if(bo(x)&1)ar();else if(Ee){const an=Up(x,le,ke);an?Nc(an):ar()}else Nc()}function ec(x){const le=x.split(/\r\n?|\n/g),ke=Zde(le);for(const an of le){const Cr=ke?an.slice(ke):an;Cr.length&&(Nc(),Ve(Cr))}}function oc(x,le){x?(N_(),Nc(x)):le&&ar()}function Kg(x,le){x&&Gp(),le&&Gp()}function hu(x,le,ke){if(ke&2||Ee){if(ke&65536)return 1;if(le===void 0)return!x||k&&MT(x,k)?0:1;if(le.pos===xe||le.kind===11)return 0;if(k&&x&&!lm(x.pos)&&!tl(le)&&(!le.parent||Cl(le.parent)===Cl(x)))return Ee?Bd(an=>P_e(le.pos,x.pos,k,an)):l7(x,le,k)?0:1;if(qb(le,ke))return 1}return ke&1?1:0}function O_(x,le,ke){if(ke&2||Ee){if(x===void 0||le===void 0||le.kind===11)return 0;if(k&&!tl(x)&&!tl(le))return Ee&&Qh(x,le)?Bd(an=>Jq(x,le,k,an)):!Ee&&A0(x,le)?mO(x,le,k)?0:1:ke&65536?1:0;if(qb(x,ke)||qb(le,ke))return 1}else if(UO(le))return 1;return ke&1?1:0}function uh(x,le,ke,an){if(ke&2||Ee){if(ke&65536)return 1;if(le===void 0)return!x||k&&MT(x,k)?0:1;if(k&&x&&!lm(x.pos)&&!tl(le)&&(!le.parent||le.parent===x)){if(Ee){const Cr=an&&!lm(an.end)?an.end:le.end;return Bd(Ci=>M_e(Cr,x.end,k,Ci))}return R_e(x,le,k)?0:1}if(qb(le,ke))return 1}return ke&1&&!(ke&131072)?1:0}function Bd(x){D.assert(!!Ee);const le=x(!0);return le===0?x(!1):le}function CE(x,le){const ke=Ee&&hu(le,x,0);return ke&&oc(ke,!1),!!ke}function zb(x,le){const ke=Ee&&uh(le,x,0,void 0);ke&&Nc(ke)}function qb(x,le){if(tl(x)){const ke=UO(x);return ke===void 0?(le&65536)!==0:ke}return(le&65536)!==0}function Up(x,le,ke){return bo(x)&262144?0:(x=LE(x),le=LE(le),ke=LE(ke),UO(ke)?1:k&&!tl(x)&&!tl(le)&&!tl(ke)?Ee?Bd(an=>Jq(le,ke,k,an)):mO(le,ke,k)?0:1:0)}function Jh(x){return x.statements.length===0&&(!k||mO(x,x,k))}function LE(x){for(;x.kind===214&&tl(x);)x=x.expression;return x}function ev(x,le){if(Ll(x)||hx(x))return Jb(x);if(Ho(x)&&x.textSourceNode)return ev(x.textSourceNode,le);const ke=k,an=!!ke&&!!x.parent&&!tl(x);if(yg(x)){if(!an||er(x)!==Cl(ke))return Mr(x)}else if(D.assertNode(x,yT),!an)return x.text;return N1(ke,x,le)}function Ml(x,le,ke){if(x.kind===10&&x.textSourceNode){const Cr=x.textSourceNode;if(je(Cr)||Oi(Cr)||L_(Cr)){const Ci=L_(Cr)?Cr.text:ev(Cr);return ke?`"${Lq(Ci)}"`:le||bo(x)&33554432?`"${Ix(Ci)}"`:`"${oO(Ci)}"`}else return Ml(Cr,le,ke)}const an=(le?1:0)|(ke?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target===99?8:0);return pfe(x,k,an)}function Xg(x){x&&bo(x)&1048576||(re.push(be),be=0,Y.push($),$=void 0,ae.push(W))}function Kh(x){x&&bo(x)&1048576||(be=re.pop(),$=Y.pop(),W=ae.pop())}function b0(x){(!W||W===rl(ae))&&(W=new Set),W.add(x)}function E0(x,le){M.push(de),de=x,ce.push(W),me=le}function gu(){de=M.pop(),me=ce.pop()}function Xh(x){(!me||me===rl(ce))&&(me=new Set),me.add(x)}function Cc(x){if(x)switch(x.kind){case 238:Je(x.statements,Cc);break;case 253:case 251:case 243:case 244:Cc(x.statement);break;case 242:Cc(x.thenStatement),Cc(x.elseStatement);break;case 245:case 247:case 246:Cc(x.initializer),Cc(x.statement);break;case 252:Cc(x.caseBlock);break;case 266:Je(x.clauses,Cc);break;case 292:case 293:Je(x.statements,Cc);break;case 255:Cc(x.tryBlock),Cc(x.catchClause),Cc(x.finallyBlock);break;case 295:Cc(x.variableDeclaration),Cc(x.block);break;case 240:Cc(x.declarationList);break;case 258:Je(x.declarations,Cc);break;case 257:case 166:case 205:case 260:Yh(x.name);break;case 259:Yh(x.name),bo(x)&1048576&&(Je(x.parameters,Cc),Cc(x.body));break;case 203:case 204:Je(x.elements,Cc);break;case 269:Cc(x.importClause);break;case 270:Yh(x.name),Cc(x.namedBindings);break;case 271:Yh(x.name);break;case 277:Yh(x.name);break;case 272:Je(x.elements,Cc);break;case 273:Yh(x.propertyName||x.name);break}}function IE(x){if(x)switch(x.kind){case 299:case 300:case 169:case 171:case 174:case 175:Yh(x.name);break}}function Yh(x){x&&(Ll(x)||hx(x)?Jb(x):Ya(x)&&Cc(x))}function Jb(x){const le=x.emitNode.autoGenerate;if((le.flags&7)===4)return Td(w5(x),Oi(x),le.flags,le.prefix,le.suffix);{const ke=le.id;return H[ke]||(H[ke]=Ir(x))}}function Td(x,le,ke,an,Cr){const Ci=hs(x),ui=le?V:G;return ui[Ci]||(ui[Ci]=as(x,le,ke!=null?ke:0,XC(an,Jb),XC(Cr)))}function dh(x,le){return T0(x)&&!Kb(x,le)&&!ne.has(x)}function Kb(x,le){return le?!!(me!=null&&me.has(x)):!!(W!=null&&W.has(x))}function T0(x,le){return k?b3(k,x,r):!0}function kE(x,le){for(let ke=le;ke&&DT(ke,le);ke=ke.nextContainer)if(jm(ke)&&ke.locals){const an=ke.locals.get(ul(x));if(an&&an.flags&3257279)return!1}return!0}function tv(x){var le;switch(x){case"":return be;case"#":return de;default:return(le=$==null?void 0:$.get(x))!=null?le:0}}function RS(x,le){switch(x){case"":be=le;break;case"#":de=le;break;default:$!=null||($=new Map),$.set(x,le);break}}function S0(x,le,ke,an,Cr){an.length>0&&an.charCodeAt(0)===35&&(an=an.slice(1));const Ci=KT(ke,an,"",Cr);let ui=tv(Ci);if(x&&!(ui&x)){const po=KT(ke,an,x===268435456?"_i":"_n",Cr);if(dh(po,ke))return ui|=x,ke?Xh(po):le&&b0(po),RS(Ci,ui),po}for(;;){const Vi=ui&268435455;if(ui++,Vi!==8&&Vi!==13){const po=Vi<26?"_"+String.fromCharCode(97+Vi):"_"+(Vi-26),su=KT(ke,an,po,Cr);if(dh(su,ke))return ke?Xh(su):le&&b0(su),RS(Ci,ui),su}}}function Yg(x,le=dh,ke,an,Cr,Ci,ui){if(x.length>0&&x.charCodeAt(0)===35&&(x=x.slice(1)),Ci.length>0&&Ci.charCodeAt(0)===35&&(Ci=Ci.slice(1)),ke){const po=KT(Cr,Ci,x,ui);if(le(po,Cr))return Cr?Xh(po):an?b0(po):ne.add(po),po}x.charCodeAt(x.length-1)!==95&&(x+="_");let Vi=1;for(;;){const po=KT(Cr,Ci,x+Vi,ui);if(le(po,Cr))return Cr?Xh(po):an?b0(po):ne.add(po),po;Vi++}}function qf(x){return Yg(x,T0,!0,!1,!1,"","")}function wE(x){const le=ev(x.name);return kE(le,si(x,jm))?le:Yg(le,dh,!1,!1,!1,"","")}function xf(x){const le=sC(x),ke=Ho(le)?hfe(le.text):"module";return Yg(ke,dh,!1,!1,!1,"","")}function $h(){return Yg("default",dh,!1,!1,!1,"","")}function x0(){return Yg("class",dh,!1,!1,!1,"","")}function z2(x,le,ke,an){return je(x.name)?Td(x.name,le):S0(0,!1,le,ke,an)}function as(x,le,ke,an,Cr){switch(x.kind){case 79:case 80:return Yg(ev(x),dh,!!(ke&16),!!(ke&8),le,an,Cr);case 264:case 263:return D.assert(!an&&!Cr&&!le),wE(x);case 269:case 275:return D.assert(!an&&!Cr&&!le),xf(x);case 259:case 260:{D.assert(!an&&!Cr&&!le);const Ci=x.name;return Ci&&!Ll(Ci)?as(Ci,!1,ke,an,Cr):$h()}case 274:return D.assert(!an&&!Cr&&!le),$h();case 228:return D.assert(!an&&!Cr&&!le),x0();case 171:case 174:case 175:return z2(x,le,an,Cr);case 164:return S0(0,!0,le,an,Cr);default:return S0(0,!1,le,an,Cr)}}function Ir(x){const le=x.emitNode.autoGenerate,ke=XC(le.prefix,Jb),an=XC(le.suffix);switch(le.flags&7){case 1:return S0(0,!!(le.flags&8),Oi(x),ke,an);case 2:return D.assertNode(x,je),S0(268435456,!!(le.flags&8),!1,ke,an);case 3:return Yg(Mr(x),le.flags&32?T0:dh,!!(le.flags&16),!!(le.flags&8),Oi(x),ke,an)}return D.fail(`Unsupported GeneratedIdentifierKind: ${D.formatEnum(le.flags&7,OM,!0)}.`)}function nf(x,le){const ke=Pe(2,x,le),an=at,Cr=on,Ci=Qt;Sd(le),ke(x,le),NS(le,an,Cr,Ci)}function Sd(x){const le=bo(x),ke=$m(x);DE(x,le,ke.pos,ke.end),le&4096&&(Zt=!0)}function NS(x,le,ke,an){const Cr=bo(x),Ci=$m(x);Cr&4096&&(Zt=!1),nv(x,Cr,Ci.pos,Ci.end,le,ke,an);const ui=Kpe(x);ui&&nv(x,Cr,ui.pos,ui.end,le,ke,an)}function DE(x,le,ke,an){Qi(),kn=!1;const Cr=ke<0||(le&1024)!==0||x.kind===11,Ci=an<0||(le&2048)!==0||x.kind===11;(ke>0||an>0)&&ke!==an&&(Cr||Em(ke,x.kind!==355),(!Cr||ke>=0&&le&1024)&&(at=ke),(!Ci||an>=0&&le&2048)&&(on=an,x.kind===258&&(Qt=an))),Je(wC(x),q2),Zi()}function nv(x,le,ke,an,Cr,Ci,ui){Qi();const Vi=an<0||(le&2048)!==0||x.kind===11;Je(jO(x),rv),(ke>0||an>0)&&ke!==an&&(at=Cr,on=Ci,Qt=ui,!Vi&&x.kind!==355&&RE(an)),Zi()}function q2(x){(x.hasLeadingNewline||x.kind===2)&&te.writeLine(),bm(x),x.hasTrailingNewLine||x.kind===2?te.writeLine():te.writeSpace(" ")}function rv(x){te.isAtStartOfLine()||te.writeSpace(" "),bm(x),x.hasTrailingNewLine&&te.writeLine()}function bm(x){const le=Vp(x),ke=x.kind===3?tN(le):void 0;yC(le,ke,te,0,le.length,L)}function Vp(x){return x.kind===3?`/*${x.text}*/`:`//${x.text}`}function $g(x,le,ke){Qi();const{pos:an,end:Cr}=le,Ci=bo(x),ui=an<0||(Ci&1024)!==0,Vi=Zt||Cr<0||(Ci&2048)!==0;ui||C0(le),Zi(),Ci&4096&&!Zt?(Zt=!0,ke(x),Zt=!1):ke(x),Qi(),Vi||(Em(le.end,!0),kn&&!te.isAtStartOfLine()&&te.writeLine()),Zi()}function A0(x,le){return x=Cl(x),x.parent&&x.parent===Cl(le).parent}function Qh(x,le){if(le.pos<x.end)return!1;x=Cl(x),le=Cl(le);const ke=x.parent;if(!ke||ke!==le.parent)return!1;const an=mpe(x),Cr=an==null?void 0:an.indexOf(x);return Cr!==void 0&&Cr>-1&&an.indexOf(le)===Cr+1}function Em(x,le){kn=!1,le?x===0&&(k!=null&&k.isDeclarationFile)?Ps(x,tc):Ps(x,fh):x===0&&Ps(x,OS)}function OS(x,le,ke,an,Cr){PE(x,le)&&fh(x,le,ke,an,Cr)}function tc(x,le,ke,an,Cr){PE(x,le)||fh(x,le,ke,an,Cr)}function Af(x,le){return e.onlyPrintJsDocStyle?VK(x,le)||E3(x,le):!0}function fh(x,le,ke,an,Cr){!k||!Af(k.text,x)||(kn||(m_e(Ze(),te,Cr,x),kn=!0),rf(x),yC(k.text,Ze(),te,x,le,L),rf(le),an?te.writeLine():ke===3&&te.writeSpace(" "))}function Gd(x){Zt||x===-1||Em(x,!0)}function RE(x){NE(x,iv)}function iv(x,le,ke,an){!k||!Af(k.text,x)||(te.isAtStartOfLine()||te.writeSpace(" "),rf(x),yC(k.text,Ze(),te,x,le,L),rf(le),an&&te.writeLine())}function Qg(x,le,ke){Zt||(Qi(),NE(x,le?iv:ke?J2:Jf),Zi())}function J2(x,le,ke){k&&(rf(x),yC(k.text,Ze(),te,x,le,L),rf(le),ke===2&&te.writeLine())}function Jf(x,le,ke,an){k&&(rf(x),yC(k.text,Ze(),te,x,le,L),rf(le),an?te.writeLine():te.writeSpace(" "))}function Ps(x,le){k&&(at===-1||x!==at)&&(OE(x)?Zg(le):iN(k.text,x,le,x))}function NE(x,le){k&&(on===-1||x!==on&&x!==Qt)&&aN(k.text,x,le)}function OE(x){return Hn!==void 0&&Jo(Hn).nodePos===x}function Zg(x){if(!k)return;const le=Jo(Hn).detachedCommentEndPos;Hn.length-1?Hn.pop():Hn=void 0,iN(k.text,le,x,le)}function C0(x){const le=k&&g_e(k.text,Ze(),te,PS,x,L,Zt);le&&(Hn?Hn.push(le):Hn=[le])}function PS(x,le,ke,an,Cr,Ci){!k||!Af(k.text,an)||(rf(an),yC(x,le,ke,an,Cr,Ci),rf(Cr))}function PE(x,le){return!!k&&Fz(k.text,x,le)}function ME(x){return x.parsedSourceMap===void 0&&x.sourceMapText!==void 0&&(x.parsedSourceMap=ZX(x.sourceMapText)||!1),x.parsedSourceMap||void 0}function FE(x,le){const ke=Pe(3,x,le);BE(le),ke(x,le),GE(le)}function BE(x){const le=bo(x),ke=hb(x);if(fz(x)){D.assertIsDefined(x.parent,"UnparsedNodes must have parent pointers");const an=ME(x.parent);an&&st&&st.appendSourceMap(te.getLine(),te.getColumn(),an,x.parent.sourceMapPath,x.parent.getLineAndCharacterOfPosition(x.pos),x.parent.getLineAndCharacterOfPosition(x.end))}else{const an=ke.source||Ct;x.kind!==355&&!(le&32)&&ke.pos>=0&&Zh(ke.source||Ct,av(an,ke.pos)),le&128&&(Fe=!0)}}function GE(x){const le=bo(x),ke=hb(x);fz(x)||(le&128&&(Fe=!1),x.kind!==355&&!(le&64)&&ke.end>=0&&Zh(ke.source||Ct,ke.end))}function av(x,le){return x.skipTrivia?x.skipTrivia(le):Xo(x.text,le)}function rf(x){if(Fe||lm(x)||X2(Ct))return;const{line:le,character:ke}=cl(Ct,x);st.addMapping(te.getLine(),te.getColumn(),Et,le,ke,void 0)}function Zh(x,le){if(x!==Ct){const ke=Ct,an=Et;ey(x),rf(le),K2(ke,an)}else rf(le)}function RL(x,le,ke,an,Cr){if(Fe||x&&j3(x))return Cr(le,ke,an);const Ci=x&&x.emitNode,ui=Ci&&Ci.flags||0,Vi=Ci&&Ci.tokenSourceMapRanges&&Ci.tokenSourceMapRanges[le],po=Vi&&Vi.source||Ct;return an=av(po,Vi?Vi.pos:an),!(ui&256)&&an>=0&&Zh(po,an),an=Cr(le,ke,an),Vi&&(an=Vi.end),!(ui&512)&&an>=0&&Zh(po,an),an}function ey(x){if(!Fe){if(Ct=x,x===Vt){Et=tt;return}X2(x)||(Et=st.addSource(x.fileName),e.inlineSources&&st.setSourceContent(Et,x.text),Vt=x,tt=Et)}}function K2(x,le){Ct=x,Et=le}function X2(x){return hc(x.fileName,".json")}}function KFe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function XFe(e){return CY[e&15360][0]}function YFe(e){return CY[e&15360][1]}function $Fe(e,t,r,i){t(e)}function QFe(e,t,r,i){t(e,r.select(i))}function ZFe(e,t,r,i){t(e,r)}function e9e(e,t){return e.length===1?$Fe:typeof t=="object"?QFe:ZFe}var CY,DF,LY,sE,IY,$8,t9e=S({"src/compiler/emitter.ts"(){Na(),Na(),A1(),CY=KFe(),DF={hasGlobalName:Wa,getReferencedExportContainer:Wa,getReferencedImportDeclaration:Wa,getReferencedDeclarationWithCollidingName:Wa,isDeclarationWithCollidingName:Wa,isValueAliasDeclaration:Wa,isReferencedAliasDeclaration:Wa,isTopLevelValueImportEqualsWithEntityName:Wa,getNodeCheckFlags:Wa,isDeclarationVisible:Wa,isLateBound:e=>!1,collectLinkedAliases:Wa,isImplementationOfOverload:Wa,isRequiredInitializedParameter:Wa,isOptionalUninitializedParameterProperty:Wa,isExpandoFunctionDeclaration:Wa,getPropertiesOfContainerFunction:Wa,createTypeOfDeclaration:Wa,createReturnTypeOfSignatureDeclaration:Wa,createTypeOfExpression:Wa,createLiteralConstValue:Wa,isSymbolAccessible:Wa,isEntityNameVisible:Wa,getConstantValue:Wa,getReferencedValueDeclaration:Wa,getTypeReferenceSerializationKind:Wa,isOptionalParameter:Wa,moduleExportsSomeValue:Wa,isArgumentsLocalBinding:Wa,getExternalModuleFileFromDeclaration:Wa,getTypeReferenceDirectivesForEntityName:Wa,getTypeReferenceDirectivesForSymbol:Wa,isLiteralConstDeclaration:Wa,getJsxFactoryEntity:Wa,getJsxFragmentFactoryEntity:Wa,getAllAccessorDeclarations:Wa,getSymbolOfExternalModuleSpecifier:Wa,isBindingCapturedByNode:Wa,getDeclarationStatementsForSourceFile:Wa,isImportRequiredByAugmentation:Wa},LY=Ld(()=>oE({})),sE=Ld(()=>oE({removeComments:!0})),IY=Ld(()=>oE({removeComments:!0,neverAsciiEscape:!0})),$8=Ld(()=>oE({removeComments:!0,omitTrailingSemicolon:!0}))}});function dve(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=cu(r);return{useCaseSensitiveFileNames:r,fileExists:L,readFile:(M,de)=>e.readFile(M,de),directoryExists:e.directoryExists&&I,getDirectories:k,readDirectory:G,createDirectory:e.createDirectory&&O,writeFile:e.writeFile&&C,addOrDeleteFileOrDirectory:H,addOrDeleteFile:ne,clearCache:$,realpath:e.realpath&&V};function s(M){return Js(M,t,o)}function c(M){return i.get(Vu(M))}function f(M){const de=c(yi(M));return de&&(de.sortedAndCanonicalizedFiles||(de.sortedAndCanonicalizedFiles=de.files.map(o).sort(),de.sortedAndCanonicalizedDirectories=de.directories.map(o).sort()),de)}function d(M){return Eu(Ko(M))}function v(M,de){var re;if(!e.realpath||Vu(s(e.realpath(M)))===de){const be={files:zt(e.readDirectory(M,void 0,void 0,["*.*"]),d)||[],directories:e.getDirectories(M)||[]};return i.set(Vu(de),be),be}if((re=e.directoryExists)!=null&&re.call(e,M))return i.set(de,!1),!1}function h(M,de){de=Vu(de);const re=c(de);if(re)return re;try{return v(M,de)}catch(be){D.assert(!i.has(Vu(de)));return}}function E(M,de){return kv(M,de,yl,Uu)>=0}function C(M,de,re){const be=s(M),ae=f(be);return ae&&Y(ae,d(M),!0),e.writeFile(M,de,re)}function L(M){const de=s(M),re=f(de);return re&&E(re.sortedAndCanonicalizedFiles,o(d(M)))||e.fileExists(M)}function I(M){const de=s(M);return i.has(Vu(de))||e.directoryExists(M)}function O(M){const de=s(M),re=f(de);if(re){const be=d(M),ae=o(be),W=re.sortedAndCanonicalizedDirectories;Iv(W,ae,Uu)&&re.directories.push(be)}e.createDirectory(M)}function k(M){const de=s(M),re=h(M,de);return re?re.directories.slice():e.getDirectories(M)}function G(M,de,re,be,ae){const W=s(M),ce=h(M,W);let me;if(ce!==void 0)return uJ(M,de,re,be,r,t,ae,Ee,V);return e.readDirectory(M,de,re,be,ae);function Ee(te){const Qe=s(te);if(Qe===W)return ce||xe(te,Qe);const Ve=h(te,Qe);return Ve!==void 0?Ve||xe(te,Qe):N7}function xe(te,Qe){if(me&&Qe===W)return me;const Ve={files:zt(e.readDirectory(te,void 0,void 0,["*.*"]),d)||rt,directories:e.getDirectories(te)||rt};return Qe===W&&(me=Ve),Ve}}function V(M){return e.realpath?e.realpath(M):M}function H(M,de){if(c(de)!==void 0){$();return}const be=f(de);if(!be)return;if(!e.directoryExists){$();return}const ae=d(M),W={fileExists:e.fileExists(de),directoryExists:e.directoryExists(de)};return W.directoryExists||E(be.sortedAndCanonicalizedDirectories,o(ae))?$():Y(be,ae,W.fileExists),W}function ne(M,de,re){if(re===1)return;const be=f(de);be&&Y(be,d(M),re===0)}function Y(M,de,re){const be=M.sortedAndCanonicalizedFiles,ae=o(de);if(re)Iv(be,ae,Uu)&&M.files.push(de);else{const W=kv(be,ae,yl,Uu);if(W>=0){be.splice(W,1);const ce=M.files.findIndex(me=>o(me)===ae);M.files.splice(ce,1)}}}function $(){i.clear()}}function kY(e,t,r,i,o){var s;const c=y1(((s=t==null?void 0:t.configFile)==null?void 0:s.extendedSourceFiles)||rt,o);r.forEach((f,d)=>{c.has(d)||(f.projects.delete(e),f.close())}),c.forEach((f,d)=>{const v=r.get(d);v?v.projects.add(e):r.set(d,{projects:new Set([e]),watcher:i(f,d),close:()=>{const h=r.get(d);!h||h.projects.size!==0||(h.watcher.close(),r.delete(d))}})})}function fve(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function wY(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(c=>r(c)===t)&&wY(e,o,r)})}function n9e(e,t,r){const i=new Map(e);EC(t,i,{createNewValue:r,onDeleteValue:Xm})}function _ve(e,t,r){const i=e.getMissingFilePaths(),o=y1(i,yl,b1);EC(t,o,{createNewValue:r,onDeleteValue:Xm})}function RF(e,t,r){EC(e,t,{createNewValue:i,onDeleteValue:rh,onExistingValue:o});function i(s,c){return{watcher:r(s,c),flags:c}}function o(s,c,f){s.flags!==c&&(s.watcher.close(),e.set(f,i(f,c)))}}function NF({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:c,currentDirectory:f,useCaseSensitiveFileNames:d,writeLog:v,toPath:h}){const E=c$(r);if(!E)return v(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=E,r===e)return!1;if(BA(r)&&!ope(t,o,c))return v(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(qhe(t,o.configFile.configFileSpecs,Oa(yi(i),f),d,f))return v(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||Ks(o)||o.outDir)return!1;if(yd(r)){if(o.declarationDir)return!1}else if(!Ic(r,zk))return!1;const C=qd(r),L=Va(s)?void 0:r9e(s)?s.getProgramOrUndefined():s,I=!L&&!Va(s)?s:void 0;if(O(C+".ts")||O(C+".tsx"))return v(`Project: ${i} Detected output file: ${t}`),!0;return!1;function O(k){return L?!!L.getSourceFileByPath(k):I?I.getState().fileInfos.has(k):!!In(s,G=>h(G)===k)}}function r9e(e){return!!e.getState}function pve(e,t){return e?e.isEmittedFile(t):!1}function mve(e,t,r,i){Pue(t===2?r:lo);const o={watchFile:(O,k,G,V)=>e.watchFile(O,k,G,V),watchDirectory:(O,k,G,V)=>e.watchDirectory(O,k,(G&1)!==0,V)},s=t!==0?{watchFile:L("watchFile"),watchDirectory:L("watchDirectory")}:void 0,c=t===2?{watchFile:E,watchDirectory:C}:s||o,f=t===2?h:s6;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(O){return(k,G,V,H,ne,Y)=>{var $;return V5(k,O==="watchFile"?H==null?void 0:H.excludeFiles:H==null?void 0:H.excludeDirectories,v(),(($=e.getCurrentDirectory)==null?void 0:$.call(e))||"")?f(k,V,H,ne,Y):c[O].call(void 0,k,G,V,H,ne,Y)}}function v(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function h(O,k,G,V,H){return r(`ExcludeWatcher:: Added:: ${I(O,k,G,V,H,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${I(O,k,G,V,H,i)}`)}}function E(O,k,G,V,H,ne){r(`FileWatcher:: Added:: ${I(O,G,V,H,ne,i)}`);const Y=s.watchFile(O,k,G,V,H,ne);return{close:()=>{r(`FileWatcher:: Close:: ${I(O,G,V,H,ne,i)}`),Y.close()}}}function C(O,k,G,V,H,ne){const Y=`DirectoryWatcher:: Added:: ${I(O,G,V,H,ne,i)}`;r(Y);const $=sl(),M=s.watchDirectory(O,k,G,V,H,ne),de=sl()-$;return r(`Elapsed:: ${de}ms ${Y}`),{close:()=>{const re=`DirectoryWatcher:: Close:: ${I(O,G,V,H,ne,i)}`;r(re);const be=sl();M.close();const ae=sl()-be;r(`Elapsed:: ${ae}ms ${re}`)}}}function L(O){return(k,G,V,H,ne,Y)=>o[O].call(void 0,k,(...$)=>{const M=`${O==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${$[0]} ${$[1]!==void 0?$[1]:""}:: ${I(k,V,H,ne,Y,i)}`;r(M);const de=sl();G.call(void 0,...$);const re=sl()-de;r(`Elapsed:: ${re}ms ${M}`)},V,H,ne,Y)}function I(O,k,G,V,H,ne){return`WatchInfo: ${O} ${k} ${JSON.stringify(G)} ${ne?ne(V,H):H===void 0?V:`${V} ${H}`}`}}function Q8(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function rh(e){e.watcher.close()}var DY,RY,i9e=S({"src/compiler/watchUtilities.ts"(){Na(),Na(),DY=(e=>(e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",e))(DY||{}),RY=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(RY||{})}});function hve(e,t,r="tsconfig.json"){return mg(e,i=>{const o=Bi(i,r);return t(o)?o:void 0})}function OF(e,t){const r=yi(t),i=Bm(e)?e:Bi(r,e);return Ko(i)}function gve(e,t,r){let i;return Je(e,s=>{const c=$R(s,t);if(c.pop(),!i){i=c;return}const f=Math.min(i.length,c.length);for(let d=0;d<f;d++)if(r(i[d])!==r(c[d])){if(d===0)return!0;i.length=d;break}c.length<i.length&&(i.length=c.length)})?"":i?C1(i):t}function yve(e,t){return PY(e,t)}function NY(e,t,r){return(i,o,s)=>{let c;try{ll("beforeIORead"),c=e(i,t().charset),ll("afterIORead"),n_("I/O Read","beforeIORead","afterIORead")}catch(f){s&&s(f.message),c=""}return c!==void 0?m8(i,c,o,r):void 0}}function OY(e,t,r){return(i,o,s,c)=>{try{ll("beforeIOWrite"),Pq(i,o,s,e,t,r),ll("afterIOWrite"),n_("I/O Write","beforeIOWrite","afterIOWrite")}catch(f){c&&c(f.message)}}}function PY(e,t,r=nu){const i=new Map,o=cu(r.useCaseSensitiveFileNames);function s(h){return i.has(h)?!0:(v.directoryExists||r.directoryExists)(h)?(i.set(h,!0),!0):!1}function c(){return yi(Ko(r.getExecutingFilePath()))}const f=_b(e),d=r.realpath&&(h=>r.realpath(h)),v={getSourceFile:NY(h=>v.readFile(h),()=>e,t),getDefaultLibLocation:c,getDefaultLibFileName:h=>Bi(c(),QM(h)),writeFile:OY((h,E,C)=>r.writeFile(h,E,C),h=>(v.createDirectory||r.createDirectory)(h),h=>s(h)),getCurrentDirectory:Ld(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>f,fileExists:h=>r.fileExists(h),readFile:h=>r.readFile(h),trace:h=>r.write(h+f),directoryExists:h=>r.directoryExists(h),getEnvironmentVariable:h=>r.getEnvironmentVariable?r.getEnvironmentVariable(h):"",getDirectories:h=>r.getDirectories(h),realpath:d,readDirectory:(h,E,C,L,I)=>r.readDirectory(h,E,C,L,I),createDirectory:h=>r.createDirectory(h),createHash:Vo(r,r.createHash)};return v}function Z8(e,t,r){const i=e.readFile,o=e.fileExists,s=e.directoryExists,c=e.createDirectory,f=e.writeFile,d=new Map,v=new Map,h=new Map,E=new Map,C=O=>{const k=t(O),G=d.get(k);return G!==void 0?G!==!1?G:void 0:L(k,O)},L=(O,k)=>{const G=i.call(e,k);return d.set(O,G!==void 0?G:!1),G};e.readFile=O=>{const k=t(O),G=d.get(k);return G!==void 0?G!==!1?G:void 0:!hc(O,".json")&&!nve(O)?i.call(e,O):L(k,O)};const I=r?(O,k,G,V)=>{const H=t(O),ne=typeof k=="object"?k.impliedNodeFormat:void 0,Y=E.get(ne),$=Y==null?void 0:Y.get(H);if($)return $;const M=r(O,k,G,V);return M&&(yd(O)||hc(O,".json"))&&E.set(ne,(Y||new Map).set(H,M)),M}:void 0;return e.fileExists=O=>{const k=t(O),G=v.get(k);if(G!==void 0)return G;const V=o.call(e,O);return v.set(k,!!V),V},f&&(e.writeFile=(O,k,...G)=>{const V=t(O);v.delete(V);const H=d.get(V);H!==void 0&&H!==k?(d.delete(V),E.forEach(ne=>ne.delete(V))):I&&E.forEach(ne=>{const Y=ne.get(V);Y&&Y.text!==k&&ne.delete(V)}),f.call(e,O,k,...G)}),s&&(e.directoryExists=O=>{const k=t(O),G=h.get(k);if(G!==void 0)return G;const V=s.call(e,O);return h.set(k,!!V),V},c&&(e.createDirectory=O=>{const k=t(O);h.delete(k),c.call(e,O)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:f,getSourceFileWithCache:I,readFileWithCache:C}}function a9e(e,t,r){let i;return i=Ai(i,e.getConfigFileParsingDiagnostics()),i=Ai(i,e.getOptionsDiagnostics(r)),i=Ai(i,e.getSyntacticDiagnostics(t,r)),i=Ai(i,e.getGlobalDiagnostics(r)),i=Ai(i,e.getSemanticDiagnostics(t,r)),Q_(e.getCompilerOptions())&&(i=Ai(i,e.getDeclarationDiagnostics(t,r))),UA(i||rt)}function o9e(e,t){let r="";for(const i of e)r+=MY(i,t);return r}function MY(e,t){const r=`${kM(e)} TS${e.code}: ${t0(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:o}=cl(e.file,e.start),s=e.file.fileName;return`${FI(s,t.getCurrentDirectory(),f=>t.getCanonicalFileName(f))}(${i+1},${o+1}): `+r}return r}function vve(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return D.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function lE(e,t){return t+e+KY}function bve(e,t,r,i,o,s){const{line:c,character:f}=cl(e,t),{line:d,character:v}=cl(e,t+r),h=cl(e,e.text.length).line,E=d-c>=4;let C=(d+1+"").length;E&&(C=Math.max(XY.length,C));let L="";for(let I=c;I<=d;I++){L+=s.getNewLine(),E&&c+1<I&&I<d-1&&(L+=i+lE(sx(XY,C),jF)+HF+s.getNewLine(),I=d-1);const O=nN(e,I,0),k=I<h?nN(e,I+1,0):e.text.length;let G=e.text.slice(O,k);if(G=MR(G),G=G.replace(/\t/g," "),L+=i+lE(sx(I+1+"",C),jF)+HF,L+=G+s.getNewLine(),L+=i+lE(sx("",C),jF)+HF,L+=o,I===c){const V=I===d?v:void 0;L+=G.slice(0,f).replace(/\S/g," "),L+=G.slice(f,V).replace(/./g,"~")}else I===d?L+=G.slice(0,v).replace(/./g,"~"):L+=G.replace(/./g,"~");L+=KY}return L}function FY(e,t,r,i=lE){const{line:o,character:s}=cl(e,t),c=r?FI(e.fileName,r.getCurrentDirectory(),d=>r.getCanonicalFileName(d)):e.fileName;let f="";return f+=i(c,"\x1B[96m"),f+=":",f+=i(`${o+1}`,"\x1B[93m"),f+=":",f+=i(`${s+1}`,"\x1B[93m"),f}function Eve(e,t){let r="";for(const i of e){if(i.file){const{file:o,start:s}=i;r+=FY(o,s,t),r+=" - "}if(r+=lE(kM(i),vve(i.category)),r+=lE(` TS${i.code}: `,"\x1B[90m"),r+=t0(i.messageText,t.getNewLine()),i.file&&(r+=t.getNewLine(),r+=bve(i.file,i.start,i.length,"",vve(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:o,start:s,length:c,messageText:f}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=xve+FY(o,s,t),r+=bve(o,s,c,YY,"\x1B[96m",t)),r+=t.getNewLine(),r+=YY+t0(f,t.getNewLine())}r+=t.getNewLine()}return r}function t0(e,t,r=0){if(Ha(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;o<r;o++)i+=" "}if(i+=e.messageText,r++,e.next)for(const o of e.next)i+=t0(o,t,r);return i}function e6(e,t){return(Ha(e)?t:e.resolutionMode)||t}function BY(e,t){if(e.impliedNodeFormat!==void 0)return wp(e,VF(e,t))}function GY(e){var t;return au(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function wp(e,t){var r,i;if(e.impliedNodeFormat===void 0)return;if((Yc(t.parent)||au(t.parent))&&GY(t.parent)){const c=c2(t.parent.assertClause);if(c)return c}if(t.parent.parent&&kg(t.parent.parent)){const s=c2((r=t.parent.parent.assertions)==null?void 0:r.assertClause);if(s)return s}if(e.impliedNodeFormat!==99)return hf(jv(t.parent))?99:1;const o=(i=jv(t.parent))==null?void 0:i.parent;return o&&_u(o)?1:99}function c2(e,t){if(!e)return;if(Le(e.elements)!==1){t==null||t(e,_.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}const r=e.elements[0];if(As(r.name)){if(r.name.text!=="resolution-mode"){t==null||t(r.name,_.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(As(r.value)){if(r.value.text!=="import"&&r.value.text!=="require"){t==null||t(r.value,_.resolution_mode_should_be_either_require_or_import);return}return r.value.text==="import"?99:1}}}function UY(e){return e.text}function VY(e,t,r,i,o){return{nameAndMode:Rw,resolve:(s,c)=>gw(s,e,r,i,o,t,c)}}function PF(e){return Ha(e)?e:V_(e.fileName)}function MF(e,t,r,i,o){return{nameAndMode:r6,resolve:(s,c)=>TX(s,e,r,i,t,o,c)}}function t6(e,t,r,i,o,s,c,f){if(e.length===0)return rt;const d=[],v=new Map,h=f(t,r,i,s,c);for(const E of e){const C=h.nameAndMode.getName(E),L=h.nameAndMode.getMode(E,o),I=hw(C,L);let O=v.get(I);O||v.set(I,O=h.resolve(C,L)),d.push(O)}return d}function Tve(e,t){return n6(void 0,e,(r,i)=>r&&t(r,i))}function n6(e,t,r,i){let o;return s(e,t,void 0);function s(c,f,d){if(i){const v=i(c,d);if(v)return v}return Je(f,(v,h)=>{if(v&&(o!=null&&o.has(v.sourceFile.path)))return;const E=r(v,d,h);return E||!v?E:((o||(o=new Set)).add(v.sourceFile.path),s(v.commandLine.projectReferences,v.references,v))})}}function Eb(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function iL(e){return e.pos!==void 0}function ww(e,t){var r,i,o,s,c,f;const d=D.checkDefined(e(t.file)),{kind:v,index:h}=t;let E,C,L,I;switch(v){case 3:const O=VF(d,h);if(L=(o=(i=(r=d.resolvedModules)==null?void 0:r.get(O.text,BY(d,h)))==null?void 0:i.resolvedModule)==null?void 0:o.packageId,O.pos===-1)return{file:d,packageId:L,text:O.text};E=Xo(d.text,O.pos),C=O.end;break;case 4:({pos:E,end:C}=d.referencedFiles[h]);break;case 5:({pos:E,end:C,resolutionMode:I}=d.typeReferenceDirectives[h]),L=(f=(c=(s=d.resolvedTypeReferenceDirectiveNames)==null?void 0:s.get(V_(d.typeReferenceDirectives[h].fileName),I||d.impliedNodeFormat))==null?void 0:c.resolvedTypeReferenceDirective)==null?void 0:f.packageId;break;case 7:({pos:E,end:C}=d.libReferenceDirectives[h]);break;default:return D.assertNever(v)}return{file:d,pos:E,end:C,packageId:L}}function jY(e,t,r,i,o,s,c,f,d){if(!e||c!=null&&c()||!Zp(e.getRootFileNames(),t))return!1;let v;if(!Zp(e.getProjectReferences(),d,L)||e.getSourceFiles().some(E)||e.getMissingFilePaths().some(o))return!1;const h=e.getCompilerOptions();if(!Yq(h,r))return!1;if(h.configFile&&r.configFile)return h.configFile.text===r.configFile.text;return!0;function E(O){return!C(O)||s(O.path)}function C(O){return O.version===i(O.resolvedPath,O.fileName)}function L(O,k,G){return Oz(O,k)&&I(e.getResolvedProjectReferences()[G],O)}function I(O,k){if(O){if(Ur(v,O))return!0;const V=Dw(k),H=f(V);return!H||O.commandLine.options.configFile!==H.options.configFile||!Zp(O.commandLine.fileNames,H.fileNames)?!1:((v||(v=[])).push(O),!Je(O.references,(ne,Y)=>!I(ne,O.commandLine.projectReferences[Y])))}const G=Dw(k);return!f(G)}}function tS(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function FF(e,t,r,i){const o=HY(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function HY(e,t,r,i){switch(Tl(i)){case 3:case 99:return Ic(e,[".d.mts",".mts",".mjs"])?99:Ic(e,[".d.cts",".cts",".cjs"])?1:Ic(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){const s=nF(t,r,i),c=[];s.failedLookupLocations=c,s.affectingLocations=c;const f=rF(e,s);return{impliedNodeFormat:(f==null?void 0:f.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:c,packageJsonScope:f}}}function s9e(e,t){return e?XA(e.getCompilerOptions(),t,W5):!1}function l9e(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function BF(e,t,r,i,o){var s,c,f,d,v,h,E,C,L,I,O,k,G,V,H,ne;const Y=Va(e)?l9e(e,t,r,i,o):e,{rootNames:$,options:M,configFileParsingDiagnostics:de,projectReferences:re,typeScriptVersion:be}=Y;let{oldProgram:ae}=Y;const W=Ld(()=>R_("ignoreDeprecations",_.Invalid_value_for_ignoreDeprecations));let ce,me,Ee,xe,te,Qe,Ve;const Ge=new Map;let ze=b_();const Oe={},Me={};let Ye=YT(),We,Fe,st;const Ct=typeof M.maxNodeModuleJsDepth=="number"?M.maxNodeModuleJsDepth:0;let Et=0;const Vt=new Map,tt=new Map;(s=Si)==null||s.push(Si.Phase.Program,"createProgram",{configFilePath:M.configFilePath,rootDir:M.rootDir},!0),ll("beforeProgram");const at=Y.host||yve(M),on=UF(at);let Qt=M.noLib;const Pn=Ld(()=>at.getDefaultLibFileName(M)),Hn=at.getDefaultLibLocation?at.getDefaultLibLocation():yi(Pn()),kn=hC(),Zt=at.getCurrentDirectory(),_r=Mk(M),wi=TO(M,_r),Qi=new Map;let Zi,Or,At;const vn=at.hasInvalidatedResolutions||v1;at.resolveModuleNameLiterals?(At=at.resolveModuleNameLiterals.bind(at),Or=(c=at.getModuleResolutionCache)==null?void 0:c.call(at)):at.resolveModuleNames?(At=(Ie,Ue,Lt,Ot,mn,bn)=>at.resolveModuleNames(Ie.map(UY),Ue,bn==null?void 0:bn.map(UY),Lt,Ot,mn).map(Tn=>Tn?Tn.extension!==void 0?{resolvedModule:Tn}:{resolvedModule:Ka(Ti({},Tn),{extension:LO(Tn.resolvedFileName)})}:$Y),Or=(f=at.getModuleResolutionCache)==null?void 0:f.call(at)):(Or=Z5(Zt,oe,M),At=(Ie,Ue,Lt,Ot,mn)=>t6(Ie,Ue,Lt,Ot,mn,at,Or,VY));let Ht;if(at.resolveTypeReferenceDirectiveReferences)Ht=at.resolveTypeReferenceDirectiveReferences.bind(at);else if(at.resolveTypeReferenceDirectives)Ht=(Ie,Ue,Lt,Ot,mn)=>at.resolveTypeReferenceDirectives(Ie.map(PF),Ue,Lt,Ot,mn==null?void 0:mn.impliedNodeFormat).map(bn=>({resolvedTypeReferenceDirective:bn}));else{const Ie=eF(Zt,oe,void 0,Or==null?void 0:Or.getPackageJsonInfoCache());Ht=(Ue,Lt,Ot,mn,bn)=>t6(Ue,Lt,Ot,mn,bn,at,Ie,MF)}const un=new Map;let ir=new Map,cr=b_(),Mi=!1;const vi=new Map;let Nn;const rn=at.useCaseSensitiveFileNames()?new Map:void 0;let Mn,Ar,Hr,we;const yt=!!((d=at.useSourceOfProjectReferenceRedirect)!=null&&d.call(at))&&!M.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Nt,fileExists:Ce,directoryExists:pt}=c9e({compilerHost:at,getSymlinkCache:La,useSourceOfProjectReferenceRedirect:yt,toPath:mt,getResolvedProjectReferences:ft,getSourceOfProjectReferenceRedirect:ml,forEachResolvedProjectReference:fs}),pe=at.readFile.bind(at);(v=Si)==null||v.push(Si.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!ae});const ie=s9e(ae,M);(h=Si)==null||h.pop();let he;if((E=Si)==null||E.push(Si.Phase.Program,"tryReuseStructureFromOldProgram",{}),he=Re(),(C=Si)==null||C.pop(),he!==2){if(ce=[],me=[],re&&(Mn||(Mn=re.map(Pt)),$.length&&(Mn==null||Mn.forEach((Ie,Ue)=>{if(!Ie)return;const Lt=Ks(Ie.commandLine.options);if(yt){if(Lt||du(Ie.commandLine.options)===0)for(const Ot of Ie.commandLine.fileNames)pn(Ot,{kind:1,index:Ue})}else if(Lt)pn(z1(Lt,".d.ts"),{kind:2,index:Ue});else if(du(Ie.commandLine.options)===0){const Ot=Ld(()=>kw(Ie.commandLine,!at.useCaseSensitiveFileNames()));for(const mn of Ie.commandLine.fileNames)!yd(mn)&&!hc(mn,".json")&&pn(Iw(mn,Ie.commandLine,!at.useCaseSensitiveFileNames(),Ot),{kind:2,index:Ue})}}))),(L=Si)==null||L.push(Si.Phase.Program,"processRootFiles",{count:$.length}),Je($,(Ie,Ue)=>zl(Ie,!1,!1,{kind:0,index:Ue})),(I=Si)==null||I.pop(),Fe!=null||(Fe=$.length?Q5(M,at):rt),st=YT(),Fe.length){(O=Si)==null||O.push(Si.Phase.Program,"processTypeReferences",{count:Fe.length});const Ie=M.configFilePath?yi(M.configFilePath):at.getCurrentDirectory(),Ue=Bi(Ie,WF),Lt=Pe(Fe,Ue);for(let Ot=0;Ot<Fe.length;Ot++)st.set(Fe[Ot],void 0,Lt[Ot]),Dt(Fe[Ot],void 0,Lt[Ot],{kind:8,typeReference:Fe[Ot],packageId:(G=(k=Lt[Ot])==null?void 0:k.resolvedTypeReferenceDirective)==null?void 0:G.packageId});(V=Si)==null||V.pop()}if($.length&&!Qt){const Ie=Pn();!M.lib&&Ie?zl(Ie,!0,!1,{kind:6}):Je(M.lib,(Ue,Lt)=>{zl(Yi(Ue),!0,!1,{kind:6,index:Lt})})}Nn=No(h1(vi.entries(),([Ie,Ue])=>Ue===void 0?Ie:void 0)),Ee=vy(ce,Er).concat(me),ce=void 0,me=void 0}if(D.assert(!!Nn),ae&&at.onReleaseOldSourceFile){const Ie=ae.getSourceFiles();for(const Ue of Ie){const Lt=ca(Ue.resolvedPath);(ie||!Lt||Lt.impliedNodeFormat!==Ue.impliedNodeFormat||Ue.resolvedPath===Ue.path&&Lt.resolvedPath!==Ue.path)&&at.onReleaseOldSourceFile(Ue,ae.getCompilerOptions(),!!ca(Ue.path))}at.getParsedCommandLine||ae.forEachResolvedProjectReference(Ue=>{ql(Ue.sourceFile.path)||at.onReleaseOldSourceFile(Ue.sourceFile,ae.getCompilerOptions(),!1)})}ae&&at.onReleaseParsedCommandLine&&n6(ae.getProjectReferences(),ae.getResolvedProjectReferences(),(Ie,Ue,Lt)=>{const Ot=(Ue==null?void 0:Ue.commandLine.projectReferences[Lt])||ae.getProjectReferences()[Lt],mn=Dw(Ot);Ar!=null&&Ar.has(mt(mn))||at.onReleaseParsedCommandLine(mn,Ie,ae.getCompilerOptions())}),ae=void 0;const j={getRootFileNames:()=>$,getSourceFile:oo,getSourceFileByPath:ca,getSourceFiles:()=>Ee,getMissingFilePaths:()=>Nn,getModuleResolutionCache:()=>Or,getFilesByNameMap:()=>vi,getCompilerOptions:()=>M,getSyntacticDiagnostics:Xr,getOptionsDiagnostics:vl,getGlobalDiagnostics:Ys,getSemanticDiagnostics:ss,getCachedSemanticDiagnostics:hi,getSuggestionDiagnostics:$o,getDeclarationDiagnostics:fa,getBindAndCheckDiagnostics:ua,getProgramDiagnostics:Dn,getTypeChecker:ki,getClassifiableNames:it,getCommonSourceDirectory:Wt,emit:Hi,getCurrentDirectory:()=>Zt,getNodeCount:()=>ki().getNodeCount(),getIdentifierCount:()=>ki().getIdentifierCount(),getSymbolCount:()=>ki().getSymbolCount(),getTypeCount:()=>ki().getTypeCount(),getInstantiationCount:()=>ki().getInstantiationCount(),getRelationCacheSizes:()=>ki().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>We,getResolvedTypeReferenceDirectives:()=>Ye,getAutomaticTypeDirectiveNames:()=>Fe,getAutomaticTypeDirectiveResolutions:()=>st,isSourceFileFromExternalLibrary:li,isSourceFileDefaultLibrary:Ii,getSourceFileFromReference:Z,getLibFileFromReference:jt,sourceFileToPackageName:ir,redirectTargetsMap:cr,usesUriStyleNodeCoreModules:Mi,isEmittedFile:Yn,getConfigFileParsingDiagnostics:nn,getProjectReferences:fn,getResolvedProjectReferences:ft,getProjectReferenceRedirect:pl,getResolvedProjectReferenceToRedirect:Ts,getResolvedProjectReferenceByPath:ql,forEachResolvedProjectReference:fs,isSourceOfProjectReferenceRedirect:Zd,emitBuildInfo:gt,fileExists:Ce,readFile:pe,directoryExists:pt,getSymlinkCache:La,realpath:(H=at.realpath)==null?void 0:H.bind(at),useCaseSensitiveFileNames:()=>at.useCaseSensitiveFileNames(),getCanonicalFileName:oe,getFileIncludeReasons:()=>ze,structureIsReused:he,writeFile:Rt};return Nt(),We==null||We.forEach(Ie=>{switch(Ie.kind){case 1:return kn.add(ja(Ie.file&&ca(Ie.file),Ie.fileProcessingReason,Ie.diagnostic,Ie.args||rt));case 0:const{file:Ue,pos:Lt,end:Ot}=ww(ca,Ie.reason);return kn.add(Mc(Ue,D.checkDefined(Lt),D.checkDefined(Ot)-Lt,Ie.diagnostic,...Ie.args||rt));case 2:return Ie.diagnostics.forEach(mn=>kn.add(mn));default:D.assertNever(Ie)}}),cn(),ll("afterProgram"),n_("Program","beforeProgram","afterProgram"),(ne=Si)==null||ne.pop(),j;function He(Ie){var Ue;(Ue=Ie.resolutionDiagnostics)!=null&&Ue.length&&(We!=null?We:We=[]).push({kind:2,diagnostics:Ie.resolutionDiagnostics})}function Ze(Ie,Ue,Lt,Ot){if(at.resolveModuleNameLiterals||!at.resolveModuleNames)return He(Lt);if(!Or||zc(Ue))return;const mn=Oa(Ie.originalFileName,Zt),bn=yi(mn),Tn=ln(Ie),Wn=Or.getFromNonRelativeNameCache(Ue,Ot,bn,Tn);Wn&&He(Wn)}function Xe(Ie,Ue,Lt){var Ot,mn;if(!Ie.length)return rt;const bn=Oa(Ue.originalFileName,Zt),Tn=ln(Ue);(Ot=Si)==null||Ot.push(Si.Phase.Program,"resolveModuleNamesWorker",{containingFileName:bn}),ll("beforeResolveModule");const Wn=At(Ie,bn,Tn,M,Ue,Lt);return ll("afterResolveModule"),n_("ResolveModule","beforeResolveModule","afterResolveModule"),(mn=Si)==null||mn.pop(),Wn}function Ut(Ie,Ue,Lt){var Ot,mn;if(!Ie.length)return[];const bn=Ha(Ue)?void 0:Ue,Tn=Ha(Ue)?Ue:Oa(Ue.originalFileName,Zt),Wn=bn&&ln(bn);(Ot=Si)==null||Ot.push(Si.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Tn}),ll("beforeResolveTypeReference");const qr=Ht(Ie,Tn,Wn,M,bn,Lt);return ll("afterResolveTypeReference"),n_("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(mn=Si)==null||mn.pop(),qr}function ln(Ie){const Ue=Ts(Ie.originalFileName);if(Ue||!yd(Ie.originalFileName))return Ue;const Lt=Sn(Ie.path);if(Lt)return Lt;if(!at.realpath||!M.preserveSymlinks||!bu(Ie.originalFileName,By))return;const Ot=mt(at.realpath(Ie.originalFileName));return Ot===Ie.path?void 0:Sn(Ot)}function Sn(Ie){const Ue=ml(Ie);if(Ha(Ue))return Ts(Ue);if(Ue)return fs(Lt=>{const Ot=Ks(Lt.commandLine.options);if(Ot)return mt(Ot)===Ie?Lt:void 0})}function Er(Ie,Ue){return qs(ue(Ie),ue(Ue))}function ue(Ie){if(Rv(Hn,Ie.fileName,!1)){const Ue=Eu(Ie.fileName);if(Ue==="lib.d.ts"||Ue==="lib.es6.d.ts")return 0;const Lt=PA(RI(Ue,"lib."),".d.ts"),Ot=C8.indexOf(Lt);if(Ot!==-1)return Ot+1}return C8.length+2}function mt(Ie){return Js(Ie,Zt,oe)}function Wt(){if(te===void 0){const Ie=yn(Ee,Ue=>kx(Ue,j));te=X8(M,()=>pa(Ie,Ue=>Ue.isDeclarationFile?void 0:Ue.fileName),Zt,oe,Ue=>Mt(Ie,Ue))}return te}function it(){var Ie;if(!Ve){ki(),Ve=new Set;for(const Ue of Ee)(Ie=Ue.classifiableNames)==null||Ie.forEach(Lt=>Ve.add(Lt))}return Ve}function K(Ie,Ue){var Lt;if(he===0&&!Ue.ambientModuleNames.length)return Xe(Ie,Ue,void 0);const Ot=ae&&ae.getSourceFile(Ue.fileName);if(Ot!==Ue&&Ue.resolvedModules){const _n=[];for(const dr of Ie){const Sa=Ue.resolvedModules.get(dr.text,wp(Ue,dr));_n.push(Sa)}return _n}let mn,bn,Tn;const Wn=$Y;for(let _n=0;_n<Ie.length;_n++){const dr=Ie[_n];if(Ue===Ot&&!vn(Ot.path)){const Qs=wp(Ue,dr),fc=(Lt=Ot.resolvedModules)==null?void 0:Lt.get(dr.text,Qs);if(fc!=null&&fc.resolvedModule){e0(M,at)&&ma(at,fc.resolvedModule.packageId?_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,dr.text,Oa(Ue.originalFileName,Zt),fc.resolvedModule.resolvedFileName,fc.resolvedModule.packageId&&TT(fc.resolvedModule.packageId)),(bn!=null?bn:bn=new Array(Ie.length))[_n]=fc,(Tn!=null?Tn:Tn=[]).push(dr);continue}}let Sa=!1;Ur(Ue.ambientModuleNames,dr.text)?(Sa=!0,e0(M,at)&&ma(at,_.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,dr.text,Oa(Ue.originalFileName,Zt))):Sa=nr(dr),Sa?(bn||(bn=new Array(Ie.length)))[_n]=Wn:(mn!=null?mn:mn=[]).push(dr)}const qr=mn&&mn.length?Xe(mn,Ue,Tn):rt;if(!bn)return D.assert(qr.length===Ie.length),qr;let Ki=0;for(let _n=0;_n<bn.length;_n++)bn[_n]||(bn[_n]=qr[Ki],Ki++);return D.assert(Ki===qr.length),bn;function nr(_n){const dr=YA(Ot,_n.text,wp(Ue,_n)),Sa=dr&&ae.getSourceFile(dr.resolvedFileName);if(dr&&Sa)return!1;const Qs=Ge.get(_n.text);return Qs?(e0(M,at)&&ma(at,_.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,_n.text,Qs),!0):!1}}function Pe(Ie,Ue){var Lt;if(he===0)return Ut(Ie,Ue,void 0);const Ot=Ha(Ue)?void 0:ae&&ae.getSourceFile(Ue.fileName);if(!Ha(Ue)&&Ot!==Ue&&Ue.resolvedTypeReferenceDirectiveNames){const _n=[];for(const dr of Ie){const Sa=Ue.resolvedTypeReferenceDirectiveNames.get(PF(dr),e6(dr,Ue.impliedNodeFormat));_n.push(Sa)}return _n}let mn,bn,Tn;const Wn=Ha(Ue)?void 0:Ue,qr=Ha(Ue)?!vn(mt(Ue)):Ue===Ot&&!vn(Ot.path);for(let _n=0;_n<Ie.length;_n++){const dr=Ie[_n];if(qr){const Sa=PF(dr),Qs=e6(dr,Wn==null?void 0:Wn.impliedNodeFormat),fc=(Lt=Ha(Ue)?ae==null?void 0:ae.getAutomaticTypeDirectiveResolutions():Ot==null?void 0:Ot.resolvedTypeReferenceDirectiveNames)==null?void 0:Lt.get(Sa,Qs);if(fc!=null&&fc.resolvedTypeReferenceDirective){e0(M,at)&&ma(at,fc.resolvedTypeReferenceDirective.packageId?_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Sa,Ha(Ue)?Ue:Oa(Ue.originalFileName,Zt),fc.resolvedTypeReferenceDirective.resolvedFileName,fc.resolvedTypeReferenceDirective.packageId&&TT(fc.resolvedTypeReferenceDirective.packageId)),(bn!=null?bn:bn=new Array(Ie.length))[_n]=fc,(Tn!=null?Tn:Tn=[]).push(dr);continue}}(mn!=null?mn:mn=[]).push(dr)}if(!mn)return bn||rt;const Ki=Ut(mn,Ue,Tn);if(!bn)return D.assert(Ki.length===Ie.length),Ki;let nr=0;for(let _n=0;_n<bn.length;_n++)bn[_n]||(bn[_n]=Ki[nr],nr++);return D.assert(nr===Ki.length),bn}function ee(){return!n6(ae.getProjectReferences(),ae.getResolvedProjectReferences(),(Ie,Ue,Lt)=>{const Ot=(Ue?Ue.commandLine.projectReferences:re)[Lt],mn=Pt(Ot);return Ie?!mn||mn.sourceFile!==Ie.sourceFile||!Zp(Ie.commandLine.fileNames,mn.commandLine.fileNames):mn!==void 0},(Ie,Ue)=>{const Lt=Ue?ql(Ue.sourceFile.path).commandLine.projectReferences:re;return!Zp(Ie,Lt,Oz)})}function Re(){var Ie;if(!ae)return 0;const Ue=ae.getCompilerOptions();if(Nz(Ue,M))return 0;const Lt=ae.getRootFileNames();if(!Zp(Lt,$)||!ee())return 0;re&&(Mn=re.map(Pt));const Ot=[],mn=[];if(he=2,ae.getMissingFilePaths().some(nr=>at.fileExists(nr)))return 0;const bn=ae.getSourceFiles();let Tn;(nr=>{nr[nr.Exists=0]="Exists",nr[nr.Modified=1]="Modified"})(Tn||(Tn={}));const Wn=new Map;for(const nr of bn){const _n=ls(nr.fileName,Or,at,M);let dr=at.getSourceFileByPath?at.getSourceFileByPath(nr.fileName,nr.resolvedPath,_n,void 0,ie||_n.impliedNodeFormat!==nr.impliedNodeFormat):at.getSourceFile(nr.fileName,_n,void 0,ie||_n.impliedNodeFormat!==nr.impliedNodeFormat);if(!dr)return 0;dr.packageJsonLocations=(Ie=_n.packageJsonLocations)!=null&&Ie.length?_n.packageJsonLocations:void 0,dr.packageJsonScope=_n.packageJsonScope,D.assert(!dr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Sa;if(nr.redirectInfo){if(dr!==nr.redirectInfo.unredirected)return 0;Sa=!1,dr=nr}else if(ae.redirectTargetsMap.has(nr.path)){if(dr!==nr)return 0;Sa=!1}else Sa=dr!==nr;dr.path=nr.path,dr.originalFileName=nr.originalFileName,dr.resolvedPath=nr.resolvedPath,dr.fileName=nr.fileName;const Qs=ae.sourceFileToPackageName.get(nr.path);if(Qs!==void 0){const fc=Wn.get(Qs),ah=Sa?1:0;if(fc!==void 0&&ah===1||fc===1)return 0;Wn.set(Qs,ah)}Sa?(nr.impliedNodeFormat!==dr.impliedNodeFormat?he=1:Zp(nr.libReferenceDirectives,dr.libReferenceDirectives,wu)?nr.hasNoDefaultLib!==dr.hasNoDefaultLib?he=1:Zp(nr.referencedFiles,dr.referencedFiles,wu)?(It(dr),Zp(nr.imports,dr.imports,$u)&&Zp(nr.moduleAugmentations,dr.moduleAugmentations,$u)?(nr.flags&6291456)!==(dr.flags&6291456)?he=1:Zp(nr.typeReferenceDirectives,dr.typeReferenceDirectives,wu)||(he=1):he=1):he=1:he=1,mn.push({oldFile:nr,newFile:dr})):vn(nr.path)&&(he=1,mn.push({oldFile:nr,newFile:dr})),Ot.push(dr)}if(he!==2)return he;const qr=mn.map(nr=>nr.oldFile);for(const nr of bn)if(!Ur(qr,nr))for(const _n of nr.ambientModuleNames)Ge.set(_n,nr.fileName);for(const{oldFile:nr,newFile:_n}of mn){const dr=Sve(_n),Sa=K(dr,_n);Pz(dr,_n,Sa,nr.resolvedModules,ofe,Rw)?(he=1,_n.resolvedModules=LX(_n,dr,Sa,Rw)):_n.resolvedModules=nr.resolvedModules;const fc=_n.typeReferenceDirectives,ah=Pe(fc,_n);Pz(fc,_n,ah,nr.resolvedTypeReferenceDirectiveNames,sfe,r6)?(he=1,_n.resolvedTypeReferenceDirectiveNames=LX(_n,fc,ah,r6)):_n.resolvedTypeReferenceDirectiveNames=nr.resolvedTypeReferenceDirectiveNames}if(he!==2)return he;if(nfe(Ue,M))return 1;if(at.hasChangedAutomaticTypeDirectiveNames){if(at.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Fe=Q5(M,at),!Zp(ae.getAutomaticTypeDirectiveNames(),Fe))return 1;Nn=ae.getMissingFilePaths(),D.assert(Ot.length===ae.getSourceFiles().length);for(const nr of Ot)vi.set(nr.path,nr);return ae.getFilesByNameMap().forEach((nr,_n)=>{if(!nr){vi.set(_n,nr);return}if(nr.path===_n){ae.isSourceFileFromExternalLibrary(nr)&&tt.set(nr.path,!0);return}vi.set(_n,vi.get(nr.path))}),Ee=Ot,ze=ae.getFileIncludeReasons(),We=ae.getFileProcessingDiagnostics(),Ye=ae.getResolvedTypeReferenceDirectives(),Fe=ae.getAutomaticTypeDirectiveNames(),st=ae.getAutomaticTypeDirectiveResolutions(),ir=ae.sourceFileToPackageName,cr=ae.redirectTargetsMap,Mi=ae.usesUriStyleNodeCoreModules,2}function q(Ie){return{getPrependNodes:$n,getCanonicalFileName:oe,getCommonSourceDirectory:j.getCommonSourceDirectory,getCompilerOptions:j.getCompilerOptions,getCurrentDirectory:()=>Zt,getSourceFile:j.getSourceFile,getSourceFileByPath:j.getSourceFileByPath,getSourceFiles:j.getSourceFiles,getLibFileFromReference:j.getLibFileFromReference,isSourceFileFromExternalLibrary:li,getResolvedProjectReferenceToRedirect:Ts,getProjectReferenceRedirect:pl,isSourceOfProjectReferenceRedirect:Zd,getSymlinkCache:La,writeFile:Ie||Rt,isEmitBlocked:ho,readFile:Ue=>at.readFile(Ue),fileExists:Ue=>{const Lt=mt(Ue);return ca(Lt)?!0:Ur(Nn,Lt)?!1:at.fileExists(Ue)},useCaseSensitiveFileNames:()=>at.useCaseSensitiveFileNames(),getBuildInfo:Ue=>{var Lt;return(Lt=j.getBuildInfo)==null?void 0:Lt.call(j,Ue)},getSourceFileFromReference:(Ue,Lt)=>j.getSourceFileFromReference(Ue,Lt),redirectTargetsMap:cr,getFileIncludeReasons:j.getFileIncludeReasons,createHash:Vo(at,at.createHash)}}function Rt(Ie,Ue,Lt,Ot,mn,bn){at.writeFile(Ie,Ue,Lt,Ot,mn,bn)}function gt(Ie){var Ue,Lt;D.assert(!Ks(M)),(Ue=Si)==null||Ue.push(Si.Phase.Emit,"emitBuildInfo",{},!0),ll("beforeEmit");const Ot=kF(DF,q(Ie),void 0,TY,!1,!0);return ll("afterEmit"),n_("Emit","beforeEmit","afterEmit"),(Lt=Si)==null||Lt.pop(),Ot}function ft(){return Mn}function fn(){return re}function $n(){return zY(re,(Ie,Ue)=>{var Lt;return(Lt=Mn[Ue])==null?void 0:Lt.commandLine},Ie=>{const Ue=mt(Ie),Lt=ca(Ue);return Lt?Lt.text:vi.has(Ue)?void 0:at.readFile(Ue)},at)}function li(Ie){return!!tt.get(Ie.path)}function Ii(Ie){if(!Ie.isDeclarationFile)return!1;if(Ie.hasNoDefaultLib)return!0;if(!M.noLib)return!1;const Ue=at.useCaseSensitiveFileNames()?ox:ax;return M.lib?kt(M.lib,Lt=>Ue(Ie.fileName,Yi(Lt))):Ue(Ie.fileName,Pn())}function ki(){return Qe||(Qe=iye(j))}function Hi(Ie,Ue,Lt,Ot,mn,bn){var Tn,Wn;(Tn=Si)==null||Tn.push(Si.Phase.Emit,"emit",{path:Ie==null?void 0:Ie.path},!0);const qr=al(()=>So(j,Ie,Ue,Lt,Ot,mn,bn));return(Wn=Si)==null||Wn.pop(),qr}function ho(Ie){return Qi.has(mt(Ie))}function So(Ie,Ue,Lt,Ot,mn,bn,Tn){if(!Tn){const Ki=WY(Ie,Ue,Lt,Ot);if(Ki)return Ki}const Wn=ki().getEmitResolver(Ks(M)?void 0:Ue,Ot);ll("beforeEmit");const qr=kF(Wn,q(Lt),Ue,EY(M,bn,mn),mn,!1,Tn);return ll("afterEmit"),n_("Emit","beforeEmit","afterEmit"),qr}function oo(Ie){return ca(mt(Ie))}function ca(Ie){return vi.get(Ie)||void 0}function Wi(Ie,Ue,Lt){return UA(Ie?Ue(Ie,Lt):Ga(j.getSourceFiles(),Ot=>(Lt&&Lt.throwIfCancellationRequested(),Ue(Ot,Lt))))}function Xr(Ie,Ue){return Wi(Ie,ic,Ue)}function ss(Ie,Ue){return Wi(Ie,jl,Ue)}function hi(Ie){var Ue;return Ie?(Ue=Oe.perFile)==null?void 0:Ue.get(Ie.path):Oe.allDiagnostics}function ua(Ie,Ue){return Zl(Ie,Ue)}function Dn(Ie){var Ue;if(Fk(Ie,M,j))return rt;const Lt=kn.getDiagnostics(Ie.fileName);return(Ue=Ie.commentDirectives)!=null&&Ue.length?Ca(Ie,Ie.commentDirectives,Lt).diagnostics:Lt}function fa(Ie,Ue){const Lt=j.getCompilerOptions();return!Ie||Ks(Lt)?Qd(Ie,Ue):Wi(Ie,Ns,Ue)}function ic(Ie){return sd(Ie)?(Ie.additionalSyntacticDiagnostics||(Ie.additionalSyntacticDiagnostics=ou(Ie)),ya(Ie.additionalSyntacticDiagnostics,Ie.parseDiagnostics)):Ie.parseDiagnostics}function al(Ie){try{return Ie()}catch(Ue){throw Ue instanceof PI&&(Qe=void 0),Ue}}function jl(Ie,Ue){return ya(GF(Zl(Ie,Ue),M),Dn(Ie))}function Zl(Ie,Ue){return Zc(Ie,Ue,Oe,Hl)}function Hl(Ie,Ue){return al(()=>{if(Fk(Ie,M,j))return rt;const Lt=ki();D.assert(!!Ie.bindDiagnostics);const mn=(Ie.scriptKind===1||Ie.scriptKind===2)&&IO(Ie,M),bn=v3(Ie,M.checkJs),Wn=!(!!Ie.checkJsDirective&&Ie.checkJsDirective.enabled===!1)&&(Ie.scriptKind===3||Ie.scriptKind===4||Ie.scriptKind===5||bn||mn||Ie.scriptKind===7);let qr=Wn?Ie.bindDiagnostics:rt,Ki=Wn?Lt.getDiagnostics(Ie,Ue):rt;return bn&&(qr=yn(qr,nr=>zF.has(nr.code)),Ki=yn(Ki,nr=>zF.has(nr.code))),Lo(Ie,Wn&&!bn,qr,Ki,mn?Ie.jsDocDiagnostics:void 0)})}function Lo(Ie,Ue,...Lt){var Ot;const mn=Ds(Lt);if(!Ue||!((Ot=Ie.commentDirectives)!=null&&Ot.length))return mn;const{diagnostics:bn,directives:Tn}=Ca(Ie,Ie.commentDirectives,mn);for(const Wn of Tn.getUnusedExpectations())bn.push(Qz(Ie,Wn.range,_.Unused_ts_expect_error_directive));return bn}function Ca(Ie,Ue,Lt){const Ot=_fe(Ie,Ue);return{diagnostics:Lt.filter(bn=>Wl(bn,Ot)===-1),directives:Ot}}function $o(Ie,Ue){return al(()=>ki().getSuggestionDiagnostics(Ie,Ue))}function Wl(Ie,Ue){const{file:Lt,start:Ot}=Ie;if(!Lt)return-1;const mn=hg(Lt);let bn=rN(mn,Ot).line-1;for(;bn>=0;){if(Ue.markUsed(bn))return bn;const Tn=Lt.text.slice(mn[bn],mn[bn+1]).trim();if(Tn!==""&&!/^(\s*)\/\/(.*)$/.test(Tn))return-1;bn--}return-1}function ou(Ie){return al(()=>{const Ue=[];return Lt(Ie,Ie),p8(Ie,Lt,Ot),Ue;function Lt(Wn,qr){switch(qr.kind){case 166:case 169:case 171:if(qr.questionToken===Wn)return Ue.push(Tn(Wn,_.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 170:case 173:case 174:case 175:case 215:case 259:case 216:case 257:if(qr.type===Wn)return Ue.push(Tn(Wn,_.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Wn.kind){case 270:if(Wn.isTypeOnly)return Ue.push(Tn(qr,_._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 275:if(Wn.isTypeOnly)return Ue.push(Tn(Wn,_._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 273:case 278:if(Wn.isTypeOnly)return Ue.push(Tn(Wn,_._0_declarations_can_only_be_used_in_TypeScript_files,Nd(Wn)?"import...type":"export...type")),"skip";break;case 268:return Ue.push(Tn(Wn,_.import_can_only_be_used_in_TypeScript_files)),"skip";case 274:if(Wn.isExportEquals)return Ue.push(Tn(Wn,_.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 294:if(Wn.token===117)return Ue.push(Tn(Wn,_.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 261:const nr=vo(118);return D.assertIsDefined(nr),Ue.push(Tn(Wn,_._0_declarations_can_only_be_used_in_TypeScript_files,nr)),"skip";case 264:const _n=Wn.flags&16?vo(143):vo(142);return D.assertIsDefined(_n),Ue.push(Tn(Wn,_._0_declarations_can_only_be_used_in_TypeScript_files,_n)),"skip";case 262:return Ue.push(Tn(Wn,_.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 263:const dr=D.checkDefined(vo(92));return Ue.push(Tn(Wn,_._0_declarations_can_only_be_used_in_TypeScript_files,dr)),"skip";case 232:return Ue.push(Tn(Wn,_.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 231:return Ue.push(Tn(Wn.type,_.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return Ue.push(Tn(Wn.type,_.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 213:D.fail()}}function Ot(Wn,qr){if(BK(qr)){const Ki=In(qr.modifiers,Wu);Ki&&Ue.push(Tn(Ki,_.Decorators_are_not_valid_here))}else if(i2(qr)&&qr.modifiers){const Ki=mi(qr.modifiers,Wu);if(Ki>=0){if(Fa(qr)&&!M.experimentalDecorators)Ue.push(Tn(qr.modifiers[Ki],_.Decorators_are_not_valid_here));else if(Bc(qr)){const nr=mi(qr.modifiers,d5);if(nr>=0){const _n=mi(qr.modifiers,ime);if(Ki>nr&&_n>=0&&Ki<_n)Ue.push(Tn(qr.modifiers[Ki],_.Decorators_are_not_valid_here));else if(nr>=0&&Ki<nr){const dr=mi(qr.modifiers,Wu,nr);dr>=0&&Ue.push(Yo(Tn(qr.modifiers[dr],_.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Tn(qr.modifiers[Ki],_.Decorator_used_before_export_here)))}}}}}switch(qr.kind){case 260:case 228:case 171:case 173:case 174:case 175:case 215:case 259:case 216:if(Wn===qr.typeParameters)return Ue.push(bn(Wn,_.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 240:if(Wn===qr.modifiers)return mn(qr.modifiers,qr.kind===240),"skip";break;case 169:if(Wn===qr.modifiers){for(const Ki of Wn)_o(Ki)&&Ki.kind!==124&&Ki.kind!==127&&Ue.push(Tn(Ki,_.The_0_modifier_can_only_be_used_in_TypeScript_files,vo(Ki.kind)));return"skip"}break;case 166:if(Wn===qr.modifiers&&kt(Wn,_o))return Ue.push(bn(Wn,_.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 210:case 211:case 230:case 282:case 283:case 212:if(Wn===qr.typeArguments)return Ue.push(bn(Wn,_.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function mn(Wn,qr){for(const Ki of Wn)switch(Ki.kind){case 85:if(qr)continue;case 123:case 121:case 122:case 146:case 136:case 126:case 161:case 101:case 145:Ue.push(Tn(Ki,_.The_0_modifier_can_only_be_used_in_TypeScript_files,vo(Ki.kind)));break;case 124:case 93:case 88:case 127:}}function bn(Wn,qr,Ki,nr,_n){const dr=Wn.pos;return Mc(Ie,dr,Wn.end-dr,qr,Ki,nr,_n)}function Tn(Wn,qr,Ki,nr,_n){return md(Ie,Wn,qr,Ki,nr,_n)}})}function Qd(Ie,Ue){return Zc(Ie,Ue,Me,dc)}function dc(Ie,Ue){return al(()=>{const Lt=ki().getEmitResolver(Ie,Ue);return $ye(q(lo),Lt,Ie)||rt})}function Zc(Ie,Ue,Lt,Ot){var mn;const bn=Ie?(mn=Lt.perFile)==null?void 0:mn.get(Ie.path):Lt.allDiagnostics;if(bn)return bn;const Tn=Ot(Ie,Ue);return Ie?(Lt.perFile||(Lt.perFile=new Map)).set(Ie.path,Tn):Lt.allDiagnostics=Tn,Tn}function Ns(Ie,Ue){return Ie.isDeclarationFile?[]:Qd(Ie,Ue)}function vl(){return UA(ya(kn.getGlobalDiagnostics(),nl()))}function nl(){if(!M.configFile)return rt;let Ie=kn.getDiagnostics(M.configFile.fileName);return fs(Ue=>{Ie=ya(Ie,kn.getDiagnostics(Ue.sourceFile.fileName))}),Ie}function Ys(){return $.length?UA(ki().getGlobalDiagnostics().slice()):rt}function nn(){return de||rt}function zl(Ie,Ue,Lt,Ot){xt(Ko(Ie),Ue,Lt,void 0,Ot)}function wu(Ie,Ue){return Ie.fileName===Ue.fileName}function $u(Ie,Ue){return Ie.kind===79?Ue.kind===79&&Ie.escapedText===Ue.escapedText:Ue.kind===10&&Ie.text===Ue.text}function fe(Ie,Ue){const Lt=N.createStringLiteral(Ie),Ot=N.createImportDeclaration(void 0,void 0,Lt,void 0);return Bx(Ot,2),jo(Lt,Ot),jo(Ot,Ue),Lt.flags&=-9,Ot.flags&=-9,Lt}function It(Ie){if(Ie.imports)return;const Ue=sd(Ie),Lt=rc(Ie);let Ot,mn,bn;if((Y_(M)||Lt)&&!Ie.isDeclarationFile){M.importHelpers&&(Ot=[fe(mb,Ie)]);const nr=g7(h7(M,Ie),M);nr&&(Ot||(Ot=[])).push(fe(nr,Ie))}for(const nr of Ie.statements)Wn(nr,!1);const Tn=Ue&&Tl(M)!==100;(Ie.flags&2097152||Tn)&&qr(Ie),Ie.imports=Ot||rt,Ie.moduleAugmentations=mn||rt,Ie.ambientModuleNames=bn||rt;return;function Wn(nr,_n){if(AN(nr)){const dr=sC(nr);dr&&Ho(dr)&&dr.text&&(!_n||!zc(dr.text))&&(Jv(nr,!1),Ot=Bn(Ot,dr),!Mi&&Et===0&&!Ie.isDeclarationFile&&(Mi=Ta(dr.text,"node:")))}else if($l(nr)&&ju(nr)&&(_n||$r(nr,2)||Ie.isDeclarationFile)){nr.name.parent=nr;const dr=K_(nr.name);if(Lt||_n&&!zc(dr))(mn||(mn=[])).push(nr.name);else if(!_n){Ie.isDeclarationFile&&(bn||(bn=[])).push(dr);const Sa=nr.body;if(Sa)for(const Qs of Sa.statements)Wn(Qs,!0)}}}function qr(nr){const _n=/import|require/g;for(;_n.exec(nr.text)!==null;){const dr=Ki(nr,_n.lastIndex);Tn&&wd(dr,!0)||hf(dr)&&dr.arguments.length>=1&&As(dr.arguments[0])?(Jv(dr,!1),Ot=Bn(Ot,dr.arguments[0])):ob(dr)&&(Jv(dr,!1),Ot=Bn(Ot,dr.argument.literal))}}function Ki(nr,_n){let dr=nr;const Sa=Qs=>{if(Qs.pos<=_n&&(_n<Qs.end||_n===Qs.end&&Qs.kind===1))return Qs};for(;;){const Qs=Ue&&Of(dr)&&Je(dr.jsDoc,Sa)||Pa(dr,Sa);if(!Qs)return dr;dr=Qs}}}function jt(Ie){const Ue=V_(Ie.fileName),Lt=L8.get(Ue);if(Lt)return oo(Yi(Lt))}function Z(Ie,Ue){return ot(OF(Ue.fileName,Ie.fileName),oo)}function ot(Ie,Ue,Lt,Ot){if(BA(Ie)){const mn=at.getCanonicalFileName(Ie);if(!M.allowNonTsExtensions&&!Je(Ds(wi),Tn=>hc(mn,Tn))){Lt&&(Mx(mn)?Lt(_.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ie):Lt(_.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ie,"'"+Ds(_r).join("', '")+"'"));return}const bn=Ue(Ie);if(Lt)if(bn)Eb(Ot)&&mn===at.getCanonicalFileName(ca(Ot.file).fileName)&&Lt(_.A_file_cannot_have_a_reference_to_itself);else{const Tn=pl(Ie);Tn?Lt(_.Output_file_0_has_not_been_built_from_source_file_1,Tn,Ie):Lt(_.File_0_not_found,Ie)}return bn}else{const mn=M.allowNonTsExtensions&&Ue(Ie);if(mn)return mn;if(Lt&&M.allowNonTsExtensions){Lt(_.File_0_not_found,Ie);return}const bn=Je(_r[0],Tn=>Ue(Ie+Tn));return Lt&&!bn&&Lt(_.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ie,"'"+Ds(_r).join("', '")+"'"),bn}}function xt(Ie,Ue,Lt,Ot,mn){ot(Ie,bn=>ba(bn,Ue,Lt,mn,Ot),(bn,...Tn)=>zo(void 0,mn,bn,Tn),mn)}function pn(Ie,Ue){return xt(Ie,!1,!1,void 0,Ue)}function wr(Ie,Ue,Lt){!Eb(Lt)&&kt(ze.get(Ue.path),Eb)?zo(Ue,Lt,_.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ue.fileName,Ie]):zo(Ue,Lt,_.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ie,Ue.fileName])}function Pr(Ie,Ue,Lt,Ot,mn,bn,Tn){var Wn;const qr=nh.createRedirectedSourceFile({redirectTarget:Ie,unredirected:Ue});return qr.fileName=Lt,qr.path=Ot,qr.resolvedPath=mn,qr.originalFileName=bn,qr.packageJsonLocations=(Wn=Tn.packageJsonLocations)!=null&&Wn.length?Tn.packageJsonLocations:void 0,qr.packageJsonScope=Tn.packageJsonScope,tt.set(Ot,Et>0),qr}function ba(Ie,Ue,Lt,Ot,mn){var bn,Tn;(bn=Si)==null||bn.push(Si.Phase.Program,"findSourceFile",{fileName:Ie,isDefaultLib:Ue||void 0,fileIncludeKind:PM[Ot.kind]});const Wn=go(Ie,Ue,Lt,Ot,mn);return(Tn=Si)==null||Tn.pop(),Wn}function ls(Ie,Ue,Lt,Ot){const mn=HY(Oa(Ie,Zt),Ue==null?void 0:Ue.getPackageJsonInfoCache(),Lt,Ot),bn=ts(Ot),Tn=yO(Ot);return typeof mn=="object"?Ka(Ti({},mn),{languageVersion:bn,setExternalModuleIndicator:Tn}):{languageVersion:bn,impliedNodeFormat:mn,setExternalModuleIndicator:Tn}}function go(Ie,Ue,Lt,Ot,mn){var bn,Tn;const Wn=mt(Ie);if(yt){let dr=ml(Wn);if(!dr&&at.realpath&&M.preserveSymlinks&&yd(Ie)&&bu(Ie,By)){const Sa=mt(at.realpath(Ie));Sa!==Wn&&(dr=ml(Sa))}if(dr){const Sa=Ha(dr)?ba(dr,Ue,Lt,Ot,mn):void 0;return Sa&&$a(Sa,Wn,void 0),Sa}}const qr=Ie;if(vi.has(Wn)){const dr=vi.get(Wn);if(Wo(dr||void 0,Ot),dr&&M.forceConsistentCasingInFileNames!==!1){const Sa=dr.fileName;mt(Sa)!==mt(Ie)&&(Ie=pl(Ie)||Ie);const fc=jW(Sa,Zt),ah=jW(Ie,Zt);fc!==ah&&wr(Ie,dr,Ot)}return dr&&tt.get(dr.path)&&Et===0?(tt.set(dr.path,!1),M.noResolve||(Hf(dr,Ue),Ae(dr)),M.noLib||Io(dr),Vt.set(dr.path,!1),ut(dr)):dr&&Vt.get(dr.path)&&Et<Ct&&(Vt.set(dr.path,!1),ut(dr)),dr||void 0}let Ki;if(Eb(Ot)&&!yt){const dr=yc(Ie);if(dr){if(Ks(dr.commandLine.options))return;const Sa=vd(dr,Ie);Ie=Sa,Ki=mt(Sa)}}const nr=ls(Ie,Or,at,M),_n=at.getSourceFile(Ie,nr,dr=>zo(void 0,Ot,_.Cannot_read_file_0_Colon_1,[Ie,dr]),ie||((bn=ae==null?void 0:ae.getSourceFileByPath(mt(Ie)))==null?void 0:bn.impliedNodeFormat)!==nr.impliedNodeFormat);if(mn){const dr=TT(mn),Sa=un.get(dr);if(Sa){const Qs=Pr(Sa,_n,Ie,Wn,mt(Ie),qr,nr);return cr.add(Sa.path,Ie),$a(Qs,Wn,Ki),Wo(Qs,Ot),ir.set(Wn,g3(mn)),me.push(Qs),Qs}else _n&&(un.set(dr,_n),ir.set(Wn,g3(mn)))}if($a(_n,Wn,Ki),_n){if(tt.set(Wn,Et>0),_n.fileName=Ie,_n.path=Wn,_n.resolvedPath=mt(Ie),_n.originalFileName=qr,_n.packageJsonLocations=(Tn=nr.packageJsonLocations)!=null&&Tn.length?nr.packageJsonLocations:void 0,_n.packageJsonScope=nr.packageJsonScope,Wo(_n,Ot),at.useCaseSensitiveFileNames()){const dr=V_(Wn),Sa=rn.get(dr);Sa?wr(Ie,Sa,Ot):rn.set(dr,_n)}Qt=Qt||_n.hasNoDefaultLib&&!Lt,M.noResolve||(Hf(_n,Ue),Ae(_n)),M.noLib||Io(_n),ut(_n),Ue?ce.push(_n):me.push(_n)}return _n}function Wo(Ie,Ue){Ie&&ze.add(Ie.path,Ue)}function $a(Ie,Ue,Lt){Lt?(vi.set(Lt,Ie),vi.set(Ue,Ie||!1)):vi.set(Ue,Ie)}function pl(Ie){const Ue=yc(Ie);return Ue&&vd(Ue,Ie)}function yc(Ie){if(!(!Mn||!Mn.length||yd(Ie)||hc(Ie,".json")))return Ts(Ie)}function vd(Ie,Ue){const Lt=Ks(Ie.commandLine.options);return Lt?z1(Lt,".d.ts"):Iw(Ue,Ie.commandLine,!at.useCaseSensitiveFileNames())}function Ts(Ie){Hr===void 0&&(Hr=new Map,fs(Lt=>{mt(M.configFilePath)!==Lt.sourceFile.path&&Lt.commandLine.fileNames.forEach(Ot=>Hr.set(mt(Ot),Lt.sourceFile.path))}));const Ue=Hr.get(mt(Ie));return Ue&&ql(Ue)}function fs(Ie){return Tve(Mn,Ie)}function ml(Ie){if(yd(Ie))return we===void 0&&(we=new Map,fs(Ue=>{const Lt=Ks(Ue.commandLine.options);if(Lt){const Ot=z1(Lt,".d.ts");we.set(mt(Ot),!0)}else{const Ot=Ld(()=>kw(Ue.commandLine,!at.useCaseSensitiveFileNames()));Je(Ue.commandLine.fileNames,mn=>{if(!yd(mn)&&!hc(mn,".json")){const bn=Iw(mn,Ue.commandLine,!at.useCaseSensitiveFileNames(),Ot);we.set(mt(bn),mn)}})}})),we.get(Ie)}function Zd(Ie){return yt&&!!Ts(Ie)}function ql(Ie){if(Ar)return Ar.get(Ie)||void 0}function Hf(Ie,Ue){Je(Ie.referencedFiles,(Lt,Ot)=>{xt(OF(Lt.fileName,Ie.fileName),Ue,!1,void 0,{kind:4,file:Ie.path,index:Ot})})}function Ae(Ie){const Ue=Ie.typeReferenceDirectives;if(!Ue.length){Ie.resolvedTypeReferenceDirectiveNames=void 0;return}const Lt=Pe(Ue,Ie);for(let Ot=0;Ot<Ue.length;Ot++){const mn=Ie.typeReferenceDirectives[Ot],bn=Lt[Ot],Tn=V_(mn.fileName);afe(Ie,Tn,bn,e6(mn,Ie.impliedNodeFormat));const Wn=mn.resolutionMode||Ie.impliedNodeFormat;Wn&&Tl(M)!==3&&Tl(M)!==99&&(We!=null?We:We=[]).push({kind:2,diagnostics:[Qz(Ie,mn,_.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)]}),Dt(Tn,Wn,bn,{kind:5,file:Ie.path,index:Ot})}}function Dt(Ie,Ue,Lt,Ot){var mn,bn;(mn=Si)==null||mn.push(Si.Phase.Program,"processTypeReferenceDirective",{directive:Ie,hasResolved:!!Lt.resolvedTypeReferenceDirective,refKind:Ot.kind,refPath:Eb(Ot)?Ot.file:void 0}),On(Ie,Ue,Lt,Ot),(bn=Si)==null||bn.pop()}function On(Ie,Ue,Lt,Ot){var mn;He(Lt);const bn=(mn=Ye.get(Ie,Ue))==null?void 0:mn.resolvedTypeReferenceDirective;if(bn&&bn.primary)return;let Tn=!0;const{resolvedTypeReferenceDirective:Wn}=Lt;if(Wn){if(Wn.isExternalLibraryImport&&Et++,Wn.primary)xt(Wn.resolvedFileName,!1,!1,Wn.packageId,Ot);else if(bn){if(Wn.resolvedFileName!==bn.resolvedFileName){const qr=at.readFile(Wn.resolvedFileName),Ki=oo(bn.resolvedFileName);qr!==Ki.text&&zo(Ki,Ot,_.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[Ie,Wn.resolvedFileName,bn.resolvedFileName])}Tn=!1}else xt(Wn.resolvedFileName,!1,!1,Wn.packageId,Ot);Wn.isExternalLibraryImport&&Et--}else zo(void 0,Ot,_.Cannot_find_type_definition_file_for_0,[Ie]);Tn&&Ye.set(Ie,Ue,Lt)}function Yi(Ie){const Ue=Ie.split(".");let Lt=Ue[1],Ot=2;for(;Ue[Ot]&&Ue[Ot]!=="d";)Lt+=(Ot===2?"/":"-")+Ue[Ot],Ot++;const mn=Bi(Zt,`__lib_node_modules_lookup_${Ie}__.ts`),bn=gw("@typescript/lib-"+Lt,mn,{moduleResolution:2},at,Or);return bn!=null&&bn.resolvedModule?bn.resolvedModule.resolvedFileName:Bi(Hn,Ie)}function Io(Ie){Je(Ie.libReferenceDirectives,(Ue,Lt)=>{const Ot=V_(Ue.fileName),mn=L8.get(Ot);if(mn)zl(Yi(mn),!0,!0,{kind:7,file:Ie.path,index:Lt});else{const bn=PA(RI(Ot,"lib."),".d.ts"),Tn=DI(bn,C8,yl),Wn=Tn?_.Cannot_find_lib_definition_for_0_Did_you_mean_1:_.Cannot_find_lib_definition_for_0;(We||(We=[])).push({kind:0,reason:{kind:7,file:Ie.path,index:Lt},diagnostic:Wn,args:[Ot,Tn]})}})}function oe(Ie){return at.getCanonicalFileName(Ie)}function ut(Ie){var Ue;if(It(Ie),Ie.imports.length||Ie.moduleAugmentations.length){const Lt=Sve(Ie),Ot=K(Lt,Ie);D.assert(Ot.length===Lt.length);const mn=(yt?(Ue=ln(Ie))==null?void 0:Ue.commandLine.options:void 0)||M;for(let bn=0;bn<Lt.length;bn++){const Tn=Ot[bn].resolvedModule,Wn=Lt[bn].text,qr=wp(Ie,Lt[bn]);if(ife(Ie,Wn,Ot[bn],qr),Ze(Ie,Wn,Ot[bn],qr),!Tn)continue;const Ki=Tn.isExternalLibraryImport,nr=!CO(Tn.extension),_n=Ki&&nr,dr=Tn.resolvedFileName;Ki&&Et++;const Sa=_n&&Et>Ct,Qs=dr&&!qY(mn,Tn,Ie)&&!mn.noResolve&&bn<Ie.imports.length&&!Sa&&!(nr&&!bO(mn))&&(fr(Ie.imports[bn])||!(Ie.imports[bn].flags&8388608));Sa?Vt.set(Ie.path,!0):Qs&&ba(dr,!1,!1,{kind:3,file:Ie.path,index:bn},Tn.packageId),Ki&&Et--}}else Ie.resolvedModules=void 0}function Mt(Ie,Ue){let Lt=!0;const Ot=at.getCanonicalFileName(Oa(Ue,Zt));for(const mn of Ie)mn.isDeclarationFile||at.getCanonicalFileName(Oa(mn.fileName,Zt)).indexOf(Ot)!==0&&(Ss(mn,_.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[mn.fileName,Ue]),Lt=!1);return Lt}function Pt(Ie){Ar||(Ar=new Map);const Ue=Dw(Ie),Lt=mt(Ue),Ot=Ar.get(Lt);if(Ot!==void 0)return Ot||void 0;let mn,bn;if(at.getParsedCommandLine){if(mn=at.getParsedCommandLine(Ue),!mn){$a(void 0,Lt,void 0),Ar.set(Lt,!1);return}bn=D.checkDefined(mn.options.configFile),D.assert(!bn.path||bn.path===Lt),$a(bn,Lt,void 0)}else{const Wn=Oa(yi(Ue),at.getCurrentDirectory());if(bn=at.getSourceFile(Ue,100),$a(bn,Lt,void 0),bn===void 0){Ar.set(Lt,!1);return}mn=E8(bn,on,Wn,void 0,Ue)}bn.fileName=Ue,bn.path=Lt,bn.resolvedPath=Lt,bn.originalFileName=Ue;const Tn={commandLine:mn,sourceFile:bn};return Ar.set(Lt,Tn),mn.projectReferences&&(Tn.references=mn.projectReferences.map(Pt)),Tn}function cn(){M.strictPropertyInitialization&&!C_(M,"strictNullChecks")&&Qo(_.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),M.exactOptionalPropertyTypes&&!C_(M,"strictNullChecks")&&Qo(_.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(M.isolatedModules||M.verbatimModuleSyntax)&&(M.out&&Qo(_.Option_0_cannot_be_specified_with_option_1,"out",M.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),M.outFile&&Qo(_.Option_0_cannot_be_specified_with_option_1,"outFile",M.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules")),M.inlineSourceMap&&(M.sourceMap&&Qo(_.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),M.mapRoot&&Qo(_.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),M.composite&&(M.declaration===!1&&Qo(_.Composite_projects_may_not_disable_declaration_emit,"declaration"),M.incremental===!1&&Qo(_.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const Ie=Ks(M);if(M.tsBuildInfoFile?vO(M)||Qo(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):M.incremental&&!Ie&&!M.configFilePath&&kn.add(Gs(_.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),ii(),bd(),M.composite){const Tn=new Set($.map(mt));for(const Wn of Ee)kx(Wn,j)&&!Tn.has(Wn.path)&&Ss(Wn,_.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Wn.fileName,M.configFilePath||""])}if(M.paths){for(const Tn in M.paths)if(Fs(M.paths,Tn))if(aJ(Tn)||ac(!0,Tn,_.Pattern_0_can_have_at_most_one_Asterisk_character,Tn),Va(M.paths[Tn])){const Wn=M.paths[Tn].length;Wn===0&&ac(!1,Tn,_.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,Tn);for(let qr=0;qr<Wn;qr++){const Ki=M.paths[Tn][qr],nr=typeof Ki;nr==="string"?(aJ(Ki)||Ef(Tn,qr,_.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,Ki,Tn),!M.baseUrl&&!Nf(Ki)&&!MI(Ki)&&Ef(Tn,qr,_.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Ef(Tn,qr,_.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,Ki,Tn,nr)}}else ac(!1,Tn,_.Substitutions_for_pattern_0_should_be_an_array,Tn)}!M.sourceMap&&!M.inlineSourceMap&&(M.inlineSources&&Qo(_.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),M.sourceRoot&&Qo(_.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),M.out&&M.outFile&&Qo(_.Option_0_cannot_be_specified_with_option_1,"out","outFile"),M.mapRoot&&!(M.sourceMap||M.declarationMap)&&Qo(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),M.declarationDir&&(Q_(M)||Qo(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),Ie&&Qo(_.Option_0_cannot_be_specified_with_option_1,"declarationDir",M.out?"out":"outFile")),M.declarationMap&&!Q_(M)&&Qo(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),M.lib&&M.noLib&&Qo(_.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),M.noImplicitUseStrict&&C_(M,"alwaysStrict")&&Qo(_.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");const Ue=ts(M),Lt=In(Ee,Tn=>rc(Tn)&&!Tn.isDeclarationFile);if(M.isolatedModules||M.verbatimModuleSyntax)M.module===0&&Ue<2&&M.isolatedModules&&Qo(_.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),M.preserveConstEnums===!1&&Qo(_.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,M.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Lt&&Ue<2&&M.module===0){const Tn=P1(Lt,typeof Lt.externalModuleIndicator=="boolean"?Lt:Lt.externalModuleIndicator);kn.add(Mc(Lt,Tn.start,Tn.length,_.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ie&&!M.emitDeclarationOnly){if(M.module&&!(M.module===2||M.module===4))Qo(_.Only_amd_and_system_modules_are_supported_alongside_0,M.out?"out":"outFile","module");else if(M.module===void 0&&Lt){const Tn=P1(Lt,typeof Lt.externalModuleIndicator=="boolean"?Lt:Lt.externalModuleIndicator);kn.add(Mc(Lt,Tn.start,Tn.length,_.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,M.out?"out":"outFile"))}}if(BT(M)&&(Tl(M)===1?Qo(_.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):f7(M)||Qo(_.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),M.outDir||M.rootDir||M.sourceRoot||M.mapRoot){const Tn=Wt();M.outDir&&Tn===""&&Ee.some(Wn=>nm(Wn.fileName)>1)&&Qo(_.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}M.useDefineForClassFields&&Ue===0&&Qo(_.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),M.checkJs&&!bO(M)&&kn.add(Gs(_.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),M.emitDeclarationOnly&&(Q_(M)||Qo(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),M.noEmit&&Qo(_.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),M.emitDecoratorMetadata&&!M.experimentalDecorators&&Qo(_.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),M.jsxFactory?(M.reactNamespace&&Qo(_.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(M.jsx===4||M.jsx===5)&&Qo(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",pw.get(""+M.jsx)),o2(M.jsxFactory,Ue)||R_("jsxFactory",_.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,M.jsxFactory)):M.reactNamespace&&!H_(M.reactNamespace,Ue)&&R_("reactNamespace",_.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,M.reactNamespace),M.jsxFragmentFactory&&(M.jsxFactory||Qo(_.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(M.jsx===4||M.jsx===5)&&Qo(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",pw.get(""+M.jsx)),o2(M.jsxFragmentFactory,Ue)||R_("jsxFragmentFactory",_.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,M.jsxFragmentFactory)),M.reactNamespace&&(M.jsx===4||M.jsx===5)&&Qo(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",pw.get(""+M.jsx)),M.jsxImportSource&&M.jsx===2&&Qo(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",pw.get(""+M.jsx)),M.preserveValueImports&&du(M)<5&&Qo(_.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const Ot=du(M);M.verbatimModuleSyntax&&((Ot===2||Ot===3||Ot===4)&&Qo(_.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),M.isolatedModules&&et("isolatedModules","verbatimModuleSyntax"),M.preserveValueImports&&et("preserveValueImports","verbatimModuleSyntax"),M.importsNotUsedAsValues&&et("importsNotUsedAsValues","verbatimModuleSyntax")),M.allowImportingTsExtensions&&!(M.noEmit||M.emitDeclarationOnly)&&R_("allowImportingTsExtensions",_.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const mn=Tl(M);if(M.resolvePackageJsonExports&&!Px(mn)&&Qo(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),M.resolvePackageJsonImports&&!Px(mn)&&Qo(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),M.customConditions&&!Px(mn)&&Qo(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),mn===100&&!nJ(Ot)&&R_("moduleResolution",_.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),!M.noEmit&&!M.suppressOutputPathCheck){const Tn=q(),Wn=new Set;SY(Tn,qr=>{M.emitDeclarationOnly||bn(qr.jsFilePath,Wn),bn(qr.declarationFilePath,Wn)})}function bn(Tn,Wn){if(Tn){const qr=mt(Tn);if(vi.has(qr)){let nr;M.configFilePath||(nr=Ra(void 0,_.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),nr=Ra(nr,_.Cannot_write_file_0_because_it_would_overwrite_input_file,Tn),qt(Tn,u7(nr))}const Ki=at.useCaseSensitiveFileNames()?qr:V_(qr);Wn.has(Ki)?qt(Tn,Gs(_.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Tn)):Wn.add(Ki)}}}function jn(){const Ie=M.ignoreDeprecations;if(Ie){if(Ie==="5.0")return new j_(Ie);W()}return j_.zero}function Dr(Ie,Ue,Lt,Ot){const mn=new j_(Ie),bn=new j_(Ue),Tn=new j_(be||_e),Wn=jn(),qr=bn.compareTo(Tn)!==1,Ki=!qr&&Wn.compareTo(mn)===-1;(qr||Ki)&&Ot((nr,_n,dr)=>{qr?_n===void 0?Lt(nr,_n,dr,_.Option_0_has_been_removed_Please_remove_it_from_your_configuration,nr):Lt(nr,_n,dr,_.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,nr,_n):_n===void 0?Lt(nr,_n,dr,_.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,nr,Ue,Ie):Lt(nr,_n,dr,_.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,nr,_n,Ue,Ie)})}function ii(){function Ie(Ue,Lt,Ot,mn,bn,Tn,Wn,qr){if(Ot){const Ki=Ra(void 0,_.Use_0_instead,Ot),nr=Ra(Ki,mn,bn,Tn,Wn,qr);op(!Lt,Ue,void 0,nr)}else op(!Lt,Ue,void 0,mn,bn,Tn,Wn,qr)}Dr("5.0","5.5",Ie,Ue=>{M.target===0&&Ue("target","ES3"),M.noImplicitUseStrict&&Ue("noImplicitUseStrict"),M.keyofStringsOnly&&Ue("keyofStringsOnly"),M.suppressExcessPropertyErrors&&Ue("suppressExcessPropertyErrors"),M.suppressImplicitAnyIndexErrors&&Ue("suppressImplicitAnyIndexErrors"),M.noStrictGenericChecks&&Ue("noStrictGenericChecks"),M.charset&&Ue("charset"),M.out&&Ue("out",void 0,"outFile"),M.importsNotUsedAsValues&&Ue("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),M.preserveValueImports&&Ue("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Fi(Ie,Ue,Lt){function Ot(mn,bn,Tn,Wn,qr,Ki,nr,_n){Sf(Ue,Lt,Wn,qr,Ki,nr,_n)}Dr("5.0","5.5",Ot,mn=>{Ie.prepend&&mn("prepend")})}function ja(Ie,Ue,Lt,Ot){var mn;let bn,Tn,Wn=Eb(Ue)?Ue:void 0;Ie&&((mn=ze.get(Ie.path))==null||mn.forEach(dr)),Ue&&dr(Ue),Wn&&(bn==null?void 0:bn.length)===1&&(bn=void 0);const qr=Wn&&ww(ca,Wn),Ki=bn&&Ra(bn,_.The_file_is_in_the_program_because_Colon),nr=Ie&&f$(Ie),_n=Ra(nr?Ki?[Ki,...nr]:nr:Ki,Lt,...Ot||rt);return qr&&iL(qr)?C3(qr.file,qr.pos,qr.end-qr.pos,_n,Tn):u7(_n,Tn);function dr(Sa){(bn||(bn=[])).push(m$(j,Sa)),!Wn&&Eb(Sa)?Wn=Sa:Wn!==Sa&&(Tn=Bn(Tn,$s(Sa))),Sa===Ue&&(Ue=void 0)}}function zo(Ie,Ue,Lt,Ot){(We||(We=[])).push({kind:1,file:Ie&&Ie.path,fileProcessingReason:Ue,diagnostic:Lt,args:Ot})}function Ss(Ie,Ue,Lt){kn.add(ja(Ie,void 0,Ue,Lt))}function $s(Ie){if(Eb(Ie)){const Ot=ww(ca,Ie);let mn;switch(Ie.kind){case 3:mn=_.File_is_included_via_import_here;break;case 4:mn=_.File_is_included_via_reference_here;break;case 5:mn=_.File_is_included_via_type_library_reference_here;break;case 7:mn=_.File_is_included_via_library_reference_here;break;default:D.assertNever(Ie)}return iL(Ot)?Mc(Ot.file,Ot.pos,Ot.end-Ot.pos,mn):void 0}if(!M.configFile)return;let Ue,Lt;switch(Ie.kind){case 0:if(!M.configFile.configFileSpecs)return;const Ot=Oa($[Ie.index],Zt),mn=_$(j,Ot);if(mn){Ue=O3(M.configFile,"files",mn),Lt=_.File_is_matched_by_files_list_specified_here;break}const bn=p$(j,Ot);if(!bn||!Ha(bn))return;Ue=O3(M.configFile,"include",bn),Lt=_.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const Tn=D.checkDefined(Mn==null?void 0:Mn[Ie.index]),Wn=n6(re,Mn,(dr,Sa,Qs)=>dr===Tn?{sourceFile:(Sa==null?void 0:Sa.sourceFile)||M.configFile,index:Qs}:void 0);if(!Wn)return;const{sourceFile:qr,index:Ki}=Wn,nr=Jt(IN(qr,"references"),dr=>zu(dr.initializer)?dr.initializer:void 0);return nr&&nr.elements.length>Ki?md(qr,nr.elements[Ki],Ie.kind===2?_.File_is_output_from_referenced_project_specified_here:_.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!M.types)return;Ue=D_("types",Ie.typeReference),Lt=_.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Ie.index!==void 0){Ue=D_("lib",M.lib[Ie.index]),Lt=_.File_is_library_specified_here;break}const _n=pf(w8.type,(dr,Sa)=>dr===ts(M)?Sa:void 0);Ue=_n?Tf("target",_n):void 0,Lt=_.File_is_default_library_for_target_specified_here;break;default:D.assertNever(Ie)}return Ue&&md(M.configFile,Ue,Lt)}function bd(){const Ie=M.suppressOutputPathCheck?void 0:Uy(M);n6(re,Mn,(Ue,Lt,Ot)=>{const mn=(Lt?Lt.commandLine.projectReferences:re)[Ot],bn=Lt&&Lt.sourceFile;if(Fi(mn,bn,Ot),!Ue){Sf(bn,Ot,_.File_0_not_found,mn.path);return}const Tn=Ue.commandLine.options;if((!Tn.composite||Tn.noEmit)&&(Lt?Lt.commandLine.fileNames:$).length&&(Tn.composite||Sf(bn,Ot,_.Referenced_project_0_must_have_setting_composite_Colon_true,mn.path),Tn.noEmit&&Sf(bn,Ot,_.Referenced_project_0_may_not_disable_emit,mn.path)),mn.prepend){const Wn=Ks(Tn);Wn?at.fileExists(Wn)||Sf(bn,Ot,_.Output_file_0_from_project_1_does_not_exist,Wn,mn.path):Sf(bn,Ot,_.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,mn.path)}!Lt&&Ie&&Ie===Uy(Tn)&&(Sf(bn,Ot,_.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ie,mn.path),Qi.set(mt(Ie),!0))})}function Ef(Ie,Ue,Lt,Ot,mn,bn){let Tn=!0;const Wn=Du();for(const qr of Wn)if(Is(qr.initializer))for(const Ki of rC(qr.initializer,Ie)){const nr=Ki.initializer;zu(nr)&&nr.elements.length>Ue&&(kn.add(md(M.configFile,nr.elements[Ue],Lt,Ot,mn,bn)),Tn=!1)}Tn&&kn.add(Gs(Lt,Ot,mn,bn))}function ac(Ie,Ue,Lt,Ot){let mn=!0;const bn=Du();for(const Tn of bn)Is(Tn.initializer)&&U(Tn.initializer,Ie,Ue,void 0,Lt,Ot)&&(mn=!1);mn&&kn.add(Gs(Lt,Ot))}function ef(Ie){const Ue=Mp();return Ue&&rC(Ue,Ie)}function Du(){return ef("paths")||rt}function Tf(Ie,Ue){const Lt=ef(Ie);return Lt&&Jt(Lt,Ot=>Ho(Ot.initializer)&&Ot.initializer.text===Ue?Ot.initializer:void 0)}function D_(Ie,Ue){const Lt=Mp();return Lt&&Rfe(Lt,Ie,Ue)}function Qo(Ie,Ue,Lt,Ot){op(!0,Ue,Lt,Ie,Ue,Lt,Ot)}function R_(Ie,Ue,Lt,Ot){op(!1,Ie,void 0,Ue,Lt,Ot)}function Sf(Ie,Ue,Lt,Ot,mn,bn,Tn){const Wn=Jt(IN(Ie||M.configFile,"references"),qr=>zu(qr.initializer)?qr.initializer:void 0);Wn&&Wn.elements.length>Ue?kn.add(md(Ie||M.configFile,Wn.elements[Ue],Lt,Ot,mn,bn,Tn)):kn.add(Gs(Lt,Ot,mn,bn,Tn))}function op(Ie,Ue,Lt,Ot,mn,bn,Tn,Wn){const qr=Mp();(!qr||!U(qr,Ie,Ue,Lt,Ot,mn,bn,Tn,Wn))&&("messageText"in Ot?kn.add(u7(Ot)):kn.add(Gs(Ot,mn,bn,Tn,Wn)))}function Mp(){if(Zi===void 0){Zi=!1;const Ie=lk(M.configFile);if(Ie){for(const Ue of rC(Ie,"compilerOptions"))if(Is(Ue.initializer)){Zi=Ue.initializer;break}}}return Zi||void 0}function U(Ie,Ue,Lt,Ot,mn,bn,Tn,Wn,qr){const Ki=rC(Ie,Lt,Ot);for(const nr of Ki)"messageText"in mn?kn.add(Eg(M.configFile,Ue?nr.name:nr.initializer,mn)):kn.add(md(M.configFile,Ue?nr.name:nr.initializer,mn,bn,Tn,Wn,qr));return!!Ki.length}function et(Ie,Ue){const Lt=Mp();Lt?U(Lt,!0,Ie,void 0,_.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ie,Ue):Qo(_.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ie,Ue)}function qt(Ie,Ue){Qi.set(mt(Ie),!0),kn.add(Ue)}function Yn(Ie){if(M.noEmit)return!1;const Ue=mt(Ie);if(ca(Ue))return!1;const Lt=Ks(M);if(Lt)return wa(Ue,Lt)||wa(Ue,qd(Lt)+".d.ts");if(M.declarationDir&&Rv(M.declarationDir,Ue,Zt,!at.useCaseSensitiveFileNames()))return!0;if(M.outDir)return Rv(M.outDir,Ue,Zt,!at.useCaseSensitiveFileNames());if(Ic(Ue,zk)||yd(Ue)){const Ot=qd(Ue);return!!ca(Ot+".ts")||!!ca(Ot+".tsx")}return!1}function wa(Ie,Ue){return pT(Ie,Ue,Zt,!at.useCaseSensitiveFileNames())===0}function La(){return at.getSymlinkCache?at.getSymlinkCache():(xe||(xe=npe(Zt,oe)),Ee&&st&&!xe.hasProcessedResolutions()&&xe.setSymlinksFromResolutions(Ee,st),xe)}}function c9e(e){let t;const r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:lo,fileExists:d};e.compilerHost.fileExists=d;let c;return i&&(c=e.compilerHost.directoryExists=L=>i.call(e.compilerHost,L)?(E(L),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(I=>{const O=Ks(I.commandLine.options);if(O)t.add(yi(e.toPath(O)));else{const k=I.commandLine.options.declarationDir||I.commandLine.options.outDir;k&&t.add(e.toPath(k))}})),C(L,!1)):!1),o&&(e.compilerHost.getDirectories=L=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,L)?o.call(e.compilerHost,L):[]),s&&(e.compilerHost.realpath=L=>{var I;return((I=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:I.get(e.toPath(L)))||s.call(e.compilerHost,L)}),{onProgramCreateComplete:f,fileExists:d,directoryExists:c};function f(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function d(L){return r.call(e.compilerHost,L)?!0:!e.getResolvedProjectReferences()||!yd(L)?!1:C(L,!0)}function v(L){const I=e.getSourceOfProjectReferenceRedirect(e.toPath(L));return I!==void 0?Ha(I)?r.call(e.compilerHost,I):!0:void 0}function h(L){const I=e.toPath(L),O=`${I}${Bs}`;return nk(t,k=>I===k||Ta(k,O)||Ta(I,`${k}/`))}function E(L){var I;if(!e.getResolvedProjectReferences()||Vk(L)||!s||!bu(L,By))return;const O=e.getSymlinkCache(),k=Vu(e.toPath(L));if((I=O.getSymlinkedDirectories())!=null&&I.has(k))return;const G=Ko(s.call(e.compilerHost,L));let V;if(G===L||(V=Vu(e.toPath(G)))===k){O.setSymlinkedDirectory(k,!1);return}O.setSymlinkedDirectory(L,{real:Vu(G),realPath:V})}function C(L,I){var O;const k=I?Y=>v(Y):Y=>h(Y),G=k(L);if(G!==void 0)return G;const V=e.getSymlinkCache(),H=V.getSymlinkedDirectories();if(!H)return!1;const ne=e.toPath(L);return bu(ne,By)?I&&((O=V.getSymlinkedFiles())!=null&&O.has(ne))?!0:dn(H.entries(),([Y,$])=>{if(!$||!Ta(ne,Y))return;const M=k(ne.replace(Y,$.realPath));if(I&&M){const de=Oa(L,e.compilerHost.getCurrentDirectory());V.setSymlinkedFile(ne,`${$.real}${de.replace(new RegExp(Y,"i"),"")}`)}return M})||!1:!1}}function WY(e,t,r,i){const o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||Ks(o)?qF:e.emitBuildInfo(r,i);if(!o.noEmitOnError)return;let s=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(s.length===0&&Q_(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let c;if(!t&&!Ks(o)){const f=e.emitBuildInfo(r,i);f.diagnostics&&(s=[...s,...f.diagnostics]),c=f.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}function GF(e,t){return yn(e,r=>!r.skippedOn||!t[r.skippedOn])}function UF(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,c){return D.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,c)},readFile:r=>t.readFile(r),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||eb,trace:e.trace?r=>e.trace(r):void 0}}function zY(e,t,r,i){if(!e)return rt;let o;for(let s=0;s<e.length;s++){const c=e[s],f=t(c,s);if(c.prepend&&f&&f.options){if(!Ks(f.options))continue;const{jsFilePath:v,sourceMapFilePath:h,declarationFilePath:E,declarationMapPath:C,buildInfoPath:L}=Cw(f.options,!0),I=qJ(r,v,h,E,C,L,i,f.options);(o||(o=[])).push(I)}}return o||rt}function Dw(e){return T$(e.path)}function qY(e,{extension:t},{isDeclarationFile:r}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return i();case".jsx":return i()||o();case".js":case".mjs":case".cjs":return o();case".json":return s();default:return c()}function i(){return e.jsx?void 0:_.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return bO(e)||!C_(e,"noImplicitAny")?void 0:_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return BT(e)?void 0:_.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function c(){return r||e.allowArbitraryExtensions?void 0:_.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function Sve({imports:e,moduleAugmentations:t}){const r=e.map(i=>i);for(const i of t)i.kind===10&&r.push(i);return r}function VF({imports:e,moduleAugmentations:t},r){if(r<e.length)return e[r];let i=e.length;for(const o of t)if(o.kind===10){if(r===i)return o;i++}D.fail("should never ask for module name at index higher than possible module name")}var JY,jF,HF,KY,XY,xve,YY,$Y,Rw,r6,WF,zF,qF,u9e=S({"src/compiler/program.ts"(){Na(),Na(),A1(),JY=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(JY||{}),jF="\x1B[7m",HF=" ",KY="\x1B[0m",XY="...",xve=" ",YY=" ",$Y={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},Rw={getName:UY,getMode:(e,t)=>wp(t,e)},r6={getName:PF,getMode:(e,t)=>e6(e,t==null?void 0:t.impliedNodeFormat)},WF="__inferred type names__.ts",zF=new Set([_.Cannot_redeclare_block_scoped_variable_0.code,_.A_module_cannot_have_multiple_default_exports.code,_.Another_export_default_is_here.code,_.The_first_export_default_is_here.code,_.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,_.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,_.constructor_is_a_reserved_word.code,_.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,_.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,_.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,_.Invalid_use_of_0_in_strict_mode.code,_.A_label_is_not_allowed_here.code,_.Octal_literals_are_not_allowed_in_strict_mode.code,_.with_statements_are_not_allowed_in_strict_mode.code,_.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,_.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,_.A_class_declaration_without_the_default_modifier_must_have_a_name.code,_.A_class_member_cannot_have_the_0_keyword.code,_.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,_.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,_.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,_.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,_.A_destructuring_declaration_must_have_an_initializer.code,_.A_get_accessor_cannot_have_parameters.code,_.A_rest_element_cannot_contain_a_binding_pattern.code,_.A_rest_element_cannot_have_a_property_name.code,_.A_rest_element_cannot_have_an_initializer.code,_.A_rest_element_must_be_last_in_a_destructuring_pattern.code,_.A_rest_parameter_cannot_have_an_initializer.code,_.A_rest_parameter_must_be_last_in_a_parameter_list.code,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,_.A_return_statement_cannot_be_used_inside_a_class_static_block.code,_.A_set_accessor_cannot_have_rest_parameter.code,_.A_set_accessor_must_have_exactly_one_parameter.code,_.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_.An_export_declaration_cannot_have_modifiers.code,_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_.An_import_declaration_cannot_have_modifiers.code,_.An_object_member_cannot_be_declared_optional.code,_.Argument_of_dynamic_import_cannot_be_spread_element.code,_.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,_.Cannot_redeclare_identifier_0_in_catch_clause.code,_.Catch_clause_variable_cannot_have_an_initializer.code,_.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,_.Classes_can_only_extend_a_single_class.code,_.Classes_may_not_have_a_field_named_constructor.code,_.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,_.Duplicate_label_0.code,_.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,_.For_await_loops_cannot_be_used_inside_a_class_static_block.code,_.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,_.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,_.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,_.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,_.Jump_target_cannot_cross_function_boundary.code,_.Line_terminator_not_permitted_before_arrow.code,_.Modifiers_cannot_appear_here.code,_.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,_.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,_.Private_identifiers_are_not_allowed_outside_class_bodies.code,_.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,_.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,_.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,_.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,_.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,_.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,_.Trailing_comma_not_allowed.code,_.Variable_declaration_list_cannot_be_empty.code,_._0_and_1_operations_cannot_be_mixed_without_parentheses.code,_._0_expected.code,_._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,_._0_list_cannot_be_empty.code,_._0_modifier_already_seen.code,_._0_modifier_cannot_appear_on_a_constructor_declaration.code,_._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,_._0_modifier_cannot_appear_on_a_parameter.code,_._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,_._0_modifier_cannot_be_used_here.code,_._0_modifier_must_precede_1_modifier.code,_.const_declarations_can_only_be_declared_inside_a_block.code,_.const_declarations_must_be_initialized.code,_.extends_clause_already_seen.code,_.let_declarations_can_only_be_declared_inside_a_block.code,_.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,_.Class_constructor_may_not_be_a_generator.code,_.Class_constructor_may_not_be_an_accessor.code,_.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code]),qF={diagnostics:rt,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),d9e=S({"src/compiler/builderStatePublic.ts"(){}});function Ave(e,t,r,i,o,s){const c=[],{emitSkipped:f,diagnostics:d}=e.emit(t,v,i,r,o,s);return{outputFiles:c,emitSkipped:f,diagnostics:d};function v(h,E,C){c.push({name:h,writeByteOrderMark:C,text:E})}}var ih,f9e=S({"src/compiler/builderState.ts"(){Na(),(e=>{function t(){function ae(W,ce,me){const Ee={getKeys:xe=>ce.get(xe),getValues:xe=>W.get(xe),keys:()=>W.keys(),deleteKey:xe=>{(me||(me=new Set)).add(xe);const te=W.get(xe);return te?(te.forEach(Qe=>i(ce,Qe,xe)),W.delete(xe),!0):!1},set:(xe,te)=>{me==null||me.delete(xe);const Qe=W.get(xe);return W.set(xe,te),Qe==null||Qe.forEach(Ve=>{te.has(Ve)||i(ce,Ve,xe)}),te.forEach(Ve=>{Qe!=null&&Qe.has(Ve)||r(ce,Ve,xe)}),Ee}};return Ee}return ae(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(ae,W,ce){let me=ae.get(W);me||(me=new Set,ae.set(W,me)),me.add(ce)}function i(ae,W,ce){const me=ae.get(W);return me!=null&&me.delete(ce)?(me.size||ae.delete(W),!0):!1}function o(ae){return pa(ae.declarations,W=>{var ce;return(ce=er(W))==null?void 0:ce.resolvedPath})}function s(ae,W){const ce=ae.getSymbolAtLocation(W);return ce&&o(ce)}function c(ae,W,ce,me){return Js(ae.getProjectReferenceRedirect(W)||W,ce,me)}function f(ae,W,ce){let me;if(W.imports&&W.imports.length>0){const Qe=ae.getTypeChecker();for(const Ve of W.imports){const Ge=s(Qe,Ve);Ge==null||Ge.forEach(te)}}const Ee=yi(W.resolvedPath);if(W.referencedFiles&&W.referencedFiles.length>0)for(const Qe of W.referencedFiles){const Ve=c(ae,Qe.fileName,Ee,ce);te(Ve)}if(W.resolvedTypeReferenceDirectiveNames&&W.resolvedTypeReferenceDirectiveNames.forEach(({resolvedTypeReferenceDirective:Qe})=>{if(!Qe)return;const Ve=Qe.resolvedFileName,Ge=c(ae,Ve,Ee,ce);te(Ge)}),W.moduleAugmentations.length){const Qe=ae.getTypeChecker();for(const Ve of W.moduleAugmentations){if(!Ho(Ve))continue;const Ge=Qe.getSymbolAtLocation(Ve);Ge&&xe(Ge)}}for(const Qe of ae.getTypeChecker().getAmbientModules())Qe.declarations&&Qe.declarations.length>1&&xe(Qe);return me;function xe(Qe){if(Qe.declarations)for(const Ve of Qe.declarations){const Ge=er(Ve);Ge&&Ge!==W&&te(Ge.resolvedPath)}}function te(Qe){(me||(me=new Set)).add(Qe)}}function d(ae,W){return W&&!W.referencedMap==!ae}e.canReuseOldState=d;function v(ae,W,ce){var me,Ee,xe;const te=new Map,Qe=ae.getCompilerOptions(),Ve=Ks(Qe),Ge=Qe.module!==0&&!Ve?t():void 0,ze=Ge?t():void 0,Oe=d(Ge,W);ae.getTypeChecker();for(const Me of ae.getSourceFiles()){const Ye=D.checkDefined(Me.version,"Program intended to be used with Builder should have source files with versions set"),We=Oe?(me=W.oldSignatures)==null?void 0:me.get(Me.resolvedPath):void 0,Fe=We===void 0?Oe?(Ee=W.fileInfos.get(Me.resolvedPath))==null?void 0:Ee.signature:void 0:We||void 0;if(Ge){const st=f(ae,Me,ae.getCanonicalFileName);if(st&&Ge.set(Me.resolvedPath,st),Oe){const Ct=(xe=W.oldExportedModulesMap)==null?void 0:xe.get(Me.resolvedPath),Et=Ct===void 0?W.exportedModulesMap.getValues(Me.resolvedPath):Ct||void 0;Et&&ze.set(Me.resolvedPath,Et)}}te.set(Me.resolvedPath,{version:Ye,signature:Fe,affectsGlobalScope:Ve?void 0:M(Me)||void 0,impliedFormat:Me.impliedNodeFormat})}return{fileInfos:te,referencedMap:Ge,exportedModulesMap:ze,useFileVersionAsSignature:!ce&&!Oe}}e.create=v;function h(ae){ae.allFilesExcludingDefaultLibraryFile=void 0,ae.allFileNames=void 0}e.releaseCache=h;function E(ae,W,ce,me,Ee){var xe,te;const Qe=C(ae,W,ce,me,Ee);return(xe=ae.oldSignatures)==null||xe.clear(),(te=ae.oldExportedModulesMap)==null||te.clear(),Qe}e.getFilesAffectedBy=E;function C(ae,W,ce,me,Ee){const xe=W.getSourceFileByPath(ce);return xe?O(ae,W,xe,me,Ee)?(ae.referencedMap?be:re)(ae,W,xe,me,Ee):[xe]:rt}e.getFilesAffectedByWithOldState=C;function L(ae,W,ce){ae.fileInfos.get(ce).signature=W,(ae.hasCalledUpdateShapeSignature||(ae.hasCalledUpdateShapeSignature=new Set)).add(ce)}e.updateSignatureOfFile=L;function I(ae,W,ce,me,Ee){ae.emit(W,(xe,te,Qe,Ve,Ge,ze)=>{D.assert(yd(xe),`File extension for signature expected to be dts: Got:: ${xe}`),Ee(t$(ae,W,te,me,ze),Ge)},ce,!0,void 0,!0)}e.computeDtsSignature=I;function O(ae,W,ce,me,Ee,xe=ae.useFileVersionAsSignature){var te;if((te=ae.hasCalledUpdateShapeSignature)!=null&&te.has(ce.resolvedPath))return!1;const Qe=ae.fileInfos.get(ce.resolvedPath),Ve=Qe.signature;let Ge;if(!ce.isDeclarationFile&&!xe&&I(W,ce,me,Ee,(ze,Oe)=>{Ge=ze,Ge!==Ve&&k(ae,ce,Oe[0].exportedModulesFromDeclarationEmit)}),Ge===void 0&&(Ge=ce.version,ae.exportedModulesMap&&Ge!==Ve)){(ae.oldExportedModulesMap||(ae.oldExportedModulesMap=new Map)).set(ce.resolvedPath,ae.exportedModulesMap.getValues(ce.resolvedPath)||!1);const ze=ae.referencedMap?ae.referencedMap.getValues(ce.resolvedPath):void 0;ze?ae.exportedModulesMap.set(ce.resolvedPath,ze):ae.exportedModulesMap.deleteKey(ce.resolvedPath)}return(ae.oldSignatures||(ae.oldSignatures=new Map)).set(ce.resolvedPath,Ve||!1),(ae.hasCalledUpdateShapeSignature||(ae.hasCalledUpdateShapeSignature=new Set)).add(ce.resolvedPath),Qe.signature=Ge,Ge!==Ve}e.updateShapeSignature=O;function k(ae,W,ce){if(!ae.exportedModulesMap)return;(ae.oldExportedModulesMap||(ae.oldExportedModulesMap=new Map)).set(W.resolvedPath,ae.exportedModulesMap.getValues(W.resolvedPath)||!1);const me=G(ce);me?ae.exportedModulesMap.set(W.resolvedPath,me):ae.exportedModulesMap.deleteKey(W.resolvedPath)}e.updateExportedModules=k;function G(ae){let W;return ae==null||ae.forEach(ce=>o(ce).forEach(me=>(W!=null?W:W=new Set).add(me))),W}e.getExportedModules=G;function V(ae,W,ce){const me=W.getCompilerOptions();if(Ks(me)||!ae.referencedMap||M(ce))return H(ae,W);const Ee=new Set,xe=[ce.resolvedPath];for(;xe.length;){const te=xe.pop();if(!Ee.has(te)){Ee.add(te);const Qe=ae.referencedMap.getValues(te);if(Qe)for(const Ve of Qe.keys())xe.push(Ve)}}return No(h1(Ee.keys(),te=>{var Qe,Ve;return(Ve=(Qe=W.getSourceFileByPath(te))==null?void 0:Qe.fileName)!=null?Ve:te}))}e.getAllDependencies=V;function H(ae,W){if(!ae.allFileNames){const ce=W.getSourceFiles();ae.allFileNames=ce===rt?rt:ce.map(me=>me.fileName)}return ae.allFileNames}function ne(ae,W){const ce=ae.referencedMap.getKeys(W);return ce?No(ce.keys()):[]}e.getReferencedByPaths=ne;function Y(ae){for(const W of ae.statements)if(!S3(W))return!1;return!0}function $(ae){return kt(ae.moduleAugmentations,W=>im(W.parent))}function M(ae){return $(ae)||!mf(ae)&&!T_(ae)&&!Y(ae)}function de(ae,W,ce){if(ae.allFilesExcludingDefaultLibraryFile)return ae.allFilesExcludingDefaultLibraryFile;let me;ce&&Ee(ce);for(const xe of W.getSourceFiles())xe!==ce&&Ee(xe);return ae.allFilesExcludingDefaultLibraryFile=me||rt,ae.allFilesExcludingDefaultLibraryFile;function Ee(xe){W.isSourceFileDefaultLibrary(xe)||(me||(me=[])).push(xe)}}e.getAllFilesExcludingDefaultLibraryFile=de;function re(ae,W,ce){const me=W.getCompilerOptions();return me&&Ks(me)?[ce]:de(ae,W,ce)}function be(ae,W,ce,me,Ee){if(M(ce))return de(ae,W,ce);const xe=W.getCompilerOptions();if(xe&&(Y_(xe)||Ks(xe)))return[ce];const te=new Map;te.set(ce.resolvedPath,ce);const Qe=ne(ae,ce.resolvedPath);for(;Qe.length>0;){const Ve=Qe.pop();if(!te.has(Ve)){const Ge=W.getSourceFileByPath(Ve);te.set(Ve,Ge),Ge&&O(ae,W,Ge,me,Ee)&&Qe.push(...ne(ae,Ge.resolvedPath))}}return No(h1(te.values(),Ve=>Ve))}})(ih||(ih={}))}});function n0(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Q_(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function aL(e,t){const r=t&&(by(t)?t:n0(t)),i=by(e)?e:n0(e);if(r===i)return 0;if(!r||!i)return i;const o=r^i;let s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function _9e(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!nk(e,r=>!t.has(r))}function p9e(e,t){var r,i;const o=ih.create(e,t,!1);o.program=e;const s=e.getCompilerOptions();o.compilerOptions=s;const c=Ks(s);c?s.composite&&(t!=null&&t.outSignature)&&c===Ks(t==null?void 0:t.compilerOptions)&&(o.outSignature=t.outSignature&&Lve(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t==null?void 0:t.latestChangedDtsFile:void 0;const f=ih.canReuseOldState(o.referencedMap,t),d=f?t.compilerOptions:void 0,v=f&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!Z_e(s,d),h=s.composite&&(t==null?void 0:t.emitSignatures)&&!c&&!tpe(s,t.compilerOptions);f?((r=t.changedFilesSet)==null||r.forEach(O=>o.changedFilesSet.add(O)),!c&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;const E=o.referencedMap,C=f?t.referencedMap:void 0,L=v&&!s.skipLibCheck==!d.skipLibCheck,I=L&&!s.skipDefaultLibCheck==!d.skipDefaultLibCheck;if(o.fileInfos.forEach((O,k)=>{var G;let V,H;if(!f||!(V=t.fileInfos.get(k))||V.version!==O.version||V.impliedFormat!==O.impliedFormat||!_9e(H=E&&E.getValues(k),C&&C.getValues(k))||H&&nk(H,ne=>!o.fileInfos.has(ne)&&t.fileInfos.has(ne)))Cve(o,k);else if(v){const ne=e.getSourceFileByPath(k);if(ne.isDeclarationFile&&!L||ne.hasNoDefaultLib&&!I)return;const Y=t.semanticDiagnosticsPerFile.get(k);Y&&(o.semanticDiagnosticsPerFile.set(k,t.hasReusableDiagnostic?m9e(Y,e):Y),o.semanticDiagnosticsFromOldState||(o.semanticDiagnosticsFromOldState=new Set),o.semanticDiagnosticsFromOldState.add(k))}if(h){const ne=t.emitSignatures.get(k);ne&&((G=o.emitSignatures)!=null?G:o.emitSignatures=new Map).set(k,Lve(s,t.compilerOptions,ne))}}),f&&pf(t.fileInfos,(O,k)=>o.fileInfos.has(k)?!1:c||O.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))ih.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(O=>Cve(o,O.resolvedPath));else if(d){const O=epe(s,d)?n0(s):aL(s,d);O!==0&&(c?o.programEmitPending=o.programEmitPending?o.programEmitPending|O:O:(e.getSourceFiles().forEach(k=>{o.changedFilesSet.has(k.resolvedPath)||r$(o,k.resolvedPath,O)}),D.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return c&&!o.changedFilesSet.size&&(f&&(o.bundle=t.bundle),kt(e.getProjectReferences(),O=>!!O.prepend)&&(o.programEmitPending=n0(s))),o}function Cve(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function Lve(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Ha(r)?[r]:r[0]}function m9e(e,t){if(!e.length)return rt;let r;return e.map(o=>{const s=Ive(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;const{relatedInformation:c}=o;return s.relatedInformation=c?c.length?c.map(f=>Ive(f,t,i)):[]:void 0,s});function i(o){return r!=null||(r=yi(Oa(Uy(t.getCompilerOptions()),t.getCurrentDirectory()))),Js(o,r,t.getCanonicalFileName)}}function Ive(e,t,r){const{file:i}=e;return Ka(Ti({},e),{file:i?t.getSourceFileByPath(r(i)):void 0})}function h9e(e){ih.releaseCache(e),e.program=void 0}function g9e(e){const t=Ks(e.compilerOptions);return D.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0}}function y9e(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function kve(e,t){D.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function wve(e,t,r){for(var i,o;;){const{affectedFiles:s}=e;if(s){const v=e.seenAffectedFiles;let h=e.affectedFilesIndex;for(;h<s.length;){const E=s[h];if(!v.has(E.resolvedPath))return e.affectedFilesIndex=h,r$(e,E.resolvedPath,n0(e.compilerOptions)),E9e(e,E,t,r),E;h++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,(i=e.oldSignatures)==null||i.clear(),(o=e.oldExportedModulesMap)==null||o.clear(),e.affectedFiles=void 0}const c=e.changedFilesSet.keys().next();if(c.done)return;const f=D.checkDefined(e.program),d=f.getCompilerOptions();if(Ks(d))return D.assert(!e.semanticDiagnosticsPerFile),f;e.affectedFiles=ih.getFilesAffectedByWithOldState(e,f,c.value,t,r),e.currentChangedFilePath=c.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function v9e(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size){if(!t)return e.affectedFilesPendingEmit=void 0;e.affectedFilesPendingEmit.forEach((i,o)=>{const s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function b9e(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return pf(e.affectedFilesPendingEmit,(i,o)=>{var s;const c=e.program.getSourceFileByPath(o);if(!c||!kx(c,e.program)){e.affectedFilesPendingEmit.delete(o);return}const f=(s=e.seenEmittedFiles)==null?void 0:s.get(c.resolvedPath);let d=aL(i,f);if(t&&(d=d&24),d)return{affectedFile:c,emitKind:d}})}function Dve(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=D.checkDefined(e.program),r=t.getCompilerOptions();Je(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!Fk(i,r,t)&&QY(e,i.resolvedPath))}}function E9e(e,t,r,i){if(QY(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){Dve(e),ih.updateShapeSignature(e,D.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||T9e(e,t,r,i)}function JF(e,t,r,i){if(QY(e,t),!e.changedFilesSet.has(t)){const o=D.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(ih.updateShapeSignature(e,o,s,r,i,!0),Q_(e.compilerOptions)&&r$(e,t,e.compilerOptions.declarationMap?24:8))}}function QY(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function Rve(e,t){const r=D.checkDefined(e.oldSignatures).get(t)||void 0;return D.checkDefined(e.fileInfos.get(t)).signature!==r}function ZY(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(ih.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>JF(e,s.resolvedPath,r,i)),Dve(e),!0):!1}function T9e(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!Rve(e,t.resolvedPath))return;if(Y_(e.compilerOptions)){const c=new Map;c.set(t.resolvedPath,!0);const f=ih.getReferencedByPaths(e,t.resolvedPath);for(;f.length>0;){const d=f.pop();if(!c.has(d)){if(c.set(d,!0),ZY(e,d,r,i))return;if(JF(e,d,r,i),Rve(e,d)){const v=D.checkDefined(e.program).getSourceFileByPath(d);f.push(...ih.getReferencedByPaths(e,v.resolvedPath))}}}}const s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(c=>{if(ZY(e,c,r,i))return!0;const f=e.referencedMap.getKeys(c);return f&&nk(f,d=>Nve(e,d,s,r,i))})}function Nve(e,t,r,i,o){var s,c;if(g1(r,t)){if(ZY(e,t,i,o))return!0;JF(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(f=>Nve(e,f,r,i,o)),(c=e.referencedMap.getKeys(t))==null||c.forEach(f=>!r.has(f)&&JF(e,f,i,o))}}function e$(e,t,r){return ya(S9e(e,t,r),D.checkDefined(e.program).getProgramDiagnostics(t))}function S9e(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const s=e.semanticDiagnosticsPerFile.get(i);if(s)return GF(s,e.compilerOptions)}const o=D.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),GF(o,e.compilerOptions)}function Ove(e){return!!Ks(e.options||{})}function x9e(e,t){var r,i,o;const s=D.checkDefined(e.program).getCurrentDirectory(),c=yi(Oa(Uy(e.compilerOptions),s)),f=e.latestChangedDtsFile?Y(e.latestChangedDtsFile):void 0,d=[],v=new Map,h=[];if(Ks(e.compilerOptions)){const ae=No(e.fileInfos.entries(),([te,Qe])=>{const Ve=M(te);return re(te,Ve),Qe.impliedFormat?{version:Qe.version,impliedFormat:Qe.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Qe.version}),W={fileNames:d,fileInfos:ae,root:h,options:be(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:f,pendingEmit:e.programEmitPending?e.programEmitPending===n0(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:ce,dts:me,commonSourceDirectory:Ee,sourceFiles:xe}=t;return e.bundle=t={commonSourceDirectory:Ee,sourceFiles:xe,js:ce||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:me||(Q_(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},Y8(W,t)}let E,C,L;const I=No(e.fileInfos.entries(),([ae,W])=>{var ce,me;const Ee=M(ae);re(ae,Ee),D.assert(d[Ee-1]===$(ae));const xe=(ce=e.oldSignatures)==null?void 0:ce.get(ae),te=xe!==void 0?xe||void 0:W.signature;if(e.compilerOptions.composite){const Qe=e.program.getSourceFileByPath(ae);if(!T_(Qe)&&kx(Qe,e.program)){const Ve=(me=e.emitSignatures)==null?void 0:me.get(ae);Ve!==te&&(L||(L=[])).push(Ve===void 0?Ee:[Ee,!Ha(Ve)&&Ve[0]===te?rt:Ve])}}return W.version===te?W.affectsGlobalScope||W.impliedFormat?{version:W.version,signature:void 0,affectsGlobalScope:W.affectsGlobalScope,impliedFormat:W.impliedFormat}:W.version:te!==void 0?xe===void 0?W:{version:W.version,signature:te,affectsGlobalScope:W.affectsGlobalScope,impliedFormat:W.impliedFormat}:{version:W.version,signature:!1,affectsGlobalScope:W.affectsGlobalScope,impliedFormat:W.impliedFormat}});let O;e.referencedMap&&(O=No(e.referencedMap.keys()).sort(Uu).map(ae=>[M(ae),de(e.referencedMap.getValues(ae))]));let k;e.exportedModulesMap&&(k=pa(No(e.exportedModulesMap.keys()).sort(Uu),ae=>{var W;const ce=(W=e.oldExportedModulesMap)==null?void 0:W.get(ae);if(ce===void 0)return[M(ae),de(e.exportedModulesMap.getValues(ae))];if(ce)return[M(ae),de(ce)]}));let G;if(e.semanticDiagnosticsPerFile)for(const ae of No(e.semanticDiagnosticsPerFile.keys()).sort(Uu)){const W=e.semanticDiagnosticsPerFile.get(ae);(G||(G=[])).push(W.length?[M(ae),C9e(W,$)]:M(ae))}let V;if((o=e.affectedFilesPendingEmit)!=null&&o.size){const ae=n0(e.compilerOptions),W=new Set;for(const ce of No(e.affectedFilesPendingEmit.keys()).sort(Uu))if(g1(W,ce)){const me=e.program.getSourceFileByPath(ce);if(!me||!kx(me,e.program))continue;const Ee=M(ce),xe=e.affectedFilesPendingEmit.get(ce);(V||(V=[])).push(xe===ae?Ee:xe===8?[Ee]:[Ee,xe])}}let H;if(e.changedFilesSet.size)for(const ae of No(e.changedFilesSet.keys()).sort(Uu))(H||(H=[])).push(M(ae));const ne={fileNames:d,fileInfos:I,root:h,options:be(e.compilerOptions),fileIdsList:E,referencedMap:O,exportedModulesMap:k,semanticDiagnosticsPerFile:G,affectedFilesPendingEmit:V,changeFileSet:H,emitSignatures:L,latestChangedDtsFile:f};return Y8(ne,t);function Y(ae){return $(Oa(ae,s))}function $(ae){return L1(Gm(c,ae,e.program.getCanonicalFileName))}function M(ae){let W=v.get(ae);return W===void 0&&(d.push($(ae)),v.set(ae,W=d.length)),W}function de(ae){const W=No(ae.keys(),M).sort(qs),ce=W.join();let me=C==null?void 0:C.get(ce);return me===void 0&&((E||(E=[])).push(W),(C||(C=new Map)).set(ce,me=E.length)),me}function re(ae,W){const ce=e.program.getSourceFile(ae);if(!e.program.getFileIncludeReasons().get(ce.path).some(te=>te.kind===0))return;if(!h.length)return h.push(W);const me=h[h.length-1],Ee=Va(me);if(Ee&&me[1]===W-1)return me[1]=W;if(Ee||h.length===1||me!==W-1)return h.push(W);const xe=h[h.length-2];return!by(xe)||xe!==me-1?h.push(W):(h[h.length-2]=[xe,W],h.length=h.length-1)}function be(ae){let W;const{optionsNameMap:ce}=QC();for(const me of _g(ae).sort(Uu)){const Ee=ce.get(me.toLowerCase());Ee!=null&&Ee.affectsBuildInfo&&((W||(W={}))[me]=A9e(Ee,ae[me],Y))}return W}}function A9e(e,t,r){if(e){if(D.assert(e.type!=="listOrElement"),e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t)}return t}function C9e(e,t){return D.assert(!!e.length),e.map(r=>{const i=Pve(r,t);i.reportsUnnecessary=r.reportsUnnecessary,i.reportDeprecated=r.reportsDeprecated,i.source=r.source,i.skippedOn=r.skippedOn;const{relatedInformation:o}=r;return i.relatedInformation=o?o.length?o.map(s=>Pve(s,t)):[]:void 0,i})}function Pve(e,t){const{file:r}=e;return Ka(Ti({},e),{file:r?t(r.resolvedPath):void 0})}function KF(e,t,r,i,o,s){let c,f,d;return e===void 0?(D.assert(t===void 0),c=r,d=i,D.assert(!!d),f=d.getProgram()):Va(e)?(d=i,f=BF({rootNames:e,options:t,host:r,oldProgram:d&&d.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:s}),c=r):(f=e,c=t,d=r,o=i),{host:c,newProgram:f,oldProgram:d,configFileParsingDiagnostics:o||rt}}function Mve(e,t){return(t==null?void 0:t.sourceMapUrlPos)!==void 0?e.substring(0,t.sourceMapUrlPos):e}function t$(e,t,r,i,o){var s,c;r=Mve(r,o);let f;return(s=o==null?void 0:o.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(h=>`${v(h)}${VR[h.category]}${h.code}: ${d(h.messageText)}`).join(`
- `)),((c=i.createHash)!=null?c:WR)(r);function d(h){return Ha(h)?h:h===void 0?"":h.next?h.messageText+h.next.map(d).join(`
- `):h.messageText}function v(h){return h.file.resolvedPath===t.resolvedPath?`(${h.start},${h.length})`:(f===void 0&&(f=yi(t.resolvedPath)),`${L1(Gm(f,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function nS(e,t,r){var i;return((i=t.createHash)!=null?i:WR)(Mve(e,r))}function n$(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;const c=p9e(t,s);t.getBuildInfo=O=>x9e(c,O),t=void 0,i=void 0,s=void 0;const f=()=>c,d=a$(f,o);return d.getState=f,d.saveEmitState=()=>g9e(c),d.restoreEmitState=O=>y9e(c,O),d.hasChangedEmitSignature=()=>!!c.hasChangedEmitSignature,d.getAllDependencies=O=>ih.getAllDependencies(c,D.checkDefined(c.program),O),d.getSemanticDiagnostics=I,d.emit=C,d.releaseProgram=()=>h9e(c),e===0?d.getSemanticDiagnosticsOfNextAffectedFile=L:e===1?(d.getSemanticDiagnosticsOfNextAffectedFile=L,d.emitNextAffectedFile=h,d.emitBuildInfo=v):Wa(),d;function v(O,k){if(c.buildInfoEmitPending){const G=D.checkDefined(c.program).emitBuildInfo(O||Vo(r,r.writeFile),k);return c.buildInfoEmitPending=!1,G}return qF}function h(O,k,G,V){var H,ne,Y,$,M;let de=wve(c,k,r);const re=n0(c.compilerOptions);let be=G?re&24:re;if(!de)if(Ks(c.compilerOptions)){if(!c.programEmitPending||(be=c.programEmitPending,G&&(be=be&24),!be))return;de=c.program}else{const ce=b9e(c,G);if(!ce){if(!c.buildInfoEmitPending)return;const me=c.program,Ee=me.emitBuildInfo(O||Vo(r,r.writeFile),k);return c.buildInfoEmitPending=!1,{result:Ee,affected:me}}({affectedFile:de,emitKind:be}=ce)}let ae;be&7&&(ae=0),be&24&&(ae=ae===void 0?1:void 0),de===c.program&&(c.programEmitPending=c.changedFilesSet.size?aL(re,be):c.programEmitPending?aL(c.programEmitPending,be):void 0);const W=c.program.emit(de===c.program?void 0:de,E(O,V),k,ae,V);if(de!==c.program){const ce=de;c.seenAffectedFiles.add(ce.resolvedPath),c.affectedFilesIndex!==void 0&&c.affectedFilesIndex++,c.buildInfoEmitPending=!0;const me=((H=c.seenEmittedFiles)==null?void 0:H.get(ce.resolvedPath))||0;((ne=c.seenEmittedFiles)!=null?ne:c.seenEmittedFiles=new Map).set(ce.resolvedPath,be|me);const Ee=((Y=c.affectedFilesPendingEmit)==null?void 0:Y.get(ce.resolvedPath))||re,xe=aL(Ee,be|me);xe?(($=c.affectedFilesPendingEmit)!=null?$:c.affectedFilesPendingEmit=new Map).set(ce.resolvedPath,xe):(M=c.affectedFilesPendingEmit)==null||M.delete(ce.resolvedPath)}else c.changedFilesSet.clear();return{result:W,affected:de}}function E(O,k){return Q_(c.compilerOptions)?(G,V,H,ne,Y,$)=>{var M,de,re,be,ae,W,ce;if(yd(G))if(Ks(c.compilerOptions)){if(c.compilerOptions.composite){const Ee=me(c.outSignature,void 0);if(!Ee)return;c.outSignature=Ee}}else{D.assert((Y==null?void 0:Y.length)===1);let Ee;if(!k){const xe=Y[0],te=c.fileInfos.get(xe.resolvedPath);if(te.signature===xe.version){const Qe=t$(c.program,xe,V,r,$);(M=$==null?void 0:$.diagnostics)!=null&&M.length||(Ee=Qe),Qe!==xe.version&&(r.storeFilesChangingSignatureDuringEmit&&((de=c.filesChangingSignature)!=null?de:c.filesChangingSignature=new Set).add(xe.resolvedPath),c.exportedModulesMap&&ih.updateExportedModules(c,xe,xe.exportedModulesFromDeclarationEmit),c.affectedFiles?(((re=c.oldSignatures)==null?void 0:re.get(xe.resolvedPath))===void 0&&((be=c.oldSignatures)!=null?be:c.oldSignatures=new Map).set(xe.resolvedPath,te.signature||!1),te.signature=Qe):(te.signature=Qe,(ae=c.oldExportedModulesMap)==null||ae.clear()))}}if(c.compilerOptions.composite){const xe=Y[0].resolvedPath;if(Ee=me((W=c.emitSignatures)==null?void 0:W.get(xe),Ee),!Ee)return;((ce=c.emitSignatures)!=null?ce:c.emitSignatures=new Map).set(xe,Ee)}}O?O(G,V,H,ne,Y,$):r.writeFile?r.writeFile(G,V,H,ne,Y,$):c.program.writeFile(G,V,H,ne,Y,$);function me(Ee,xe){const te=!Ee||Ha(Ee)?Ee:Ee[0];if(xe!=null||(xe=nS(V,r,$)),xe===te){if(Ee===te)return;$?$.differsOnlyInMap=!0:$={differsOnlyInMap:!0}}else c.hasChangedEmitSignature=!0,c.latestChangedDtsFile=G;return xe}}:O||Vo(r,r.writeFile)}function C(O,k,G,V,H){e===1&&kve(c,O);const ne=WY(d,O,k,G);if(ne)return ne;if(!O)if(e===1){let Y=[],$=!1,M,de=[],re;for(;re=h(k,G,V,H);)$=$||re.result.emitSkipped,M=Ai(M,re.result.diagnostics),de=Ai(de,re.result.emittedFiles),Y=Ai(Y,re.result.sourceMaps);return{emitSkipped:$,diagnostics:M||rt,emittedFiles:de,sourceMaps:Y}}else v9e(c,V);return D.checkDefined(c.program).emit(O,E(k,H),G,V,H)}function L(O,k){for(;;){const G=wve(c,O,r);let V;if(G)if(G!==c.program){const H=G;if((!k||!k(H))&&(V=e$(c,H,O)),c.seenAffectedFiles.add(H.resolvedPath),c.affectedFilesIndex++,c.buildInfoEmitPending=!0,!V)continue}else V=c.program.getSemanticDiagnostics(void 0,O),c.changedFilesSet.clear(),c.programEmitPending=n0(c.compilerOptions);else return;return{result:V,affected:G}}}function I(O,k){kve(c,O);const G=D.checkDefined(c.program).getCompilerOptions();if(Ks(G))return D.assert(!c.semanticDiagnosticsPerFile),D.checkDefined(c.program).getSemanticDiagnostics(O,k);if(O)return e$(c,O,k);for(;L(k););let V;for(const H of D.checkDefined(c.program).getSourceFiles())V=Ai(V,e$(c,H,k));return V||rt}}function r$(e,t,r){var i,o;const s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;((o=e.affectedFilesPendingEmit)!=null?o:e.affectedFilesPendingEmit=new Map).set(t,s|r)}function Fve(e){return Ha(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Ha(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function Bve(e,t){return by(e)?t:e[1]||8}function Gve(e,t){return e||n0(t||{})}function Uve(e,t,r){var i,o,s,c;const f=e.program,d=yi(Oa(t,r.getCurrentDirectory())),v=cu(r.useCaseSensitiveFileNames());let h;const E=(i=f.fileNames)==null?void 0:i.map(I);let C;const L=f.latestChangedDtsFile?O(f.latestChangedDtsFile):void 0;if(Ove(f)){const H=new Map;f.fileInfos.forEach((ne,Y)=>{const $=k(Y+1);H.set($,Ha(ne)?{version:ne,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:ne)}),h={fileInfos:H,compilerOptions:f.options?nX(f.options,O):{},latestChangedDtsFile:L,outSignature:f.outSignature,programEmitPending:f.pendingEmit===void 0?void 0:Gve(f.pendingEmit,f.options),bundle:e.bundle}}else{C=(o=f.fileIdsList)==null?void 0:o.map($=>new Set($.map(k)));const H=new Map,ne=(s=f.options)!=null&&s.composite&&!Ks(f.options)?new Map:void 0;f.fileInfos.forEach(($,M)=>{const de=k(M+1),re=Fve($);H.set(de,re),ne&&re.signature&&ne.set(de,re.signature)}),(c=f.emitSignatures)==null||c.forEach($=>{if(by($))ne.delete(k($));else{const M=k($[0]);ne.set(M,!Ha($[1])&&!$[1].length?[ne.get(M)]:$[1])}});const Y=f.affectedFilesPendingEmit?n0(f.options||{}):void 0;h={fileInfos:H,compilerOptions:f.options?nX(f.options,O):{},referencedMap:V(f.referencedMap),exportedModulesMap:V(f.exportedModulesMap),semanticDiagnosticsPerFile:f.semanticDiagnosticsPerFile&&y1(f.semanticDiagnosticsPerFile,$=>k(by($)?$:$[0]),$=>by($)?rt:$[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:f.affectedFilesPendingEmit&&y1(f.affectedFilesPendingEmit,$=>k(by($)?$:$[0]),$=>Bve($,Y)),changedFilesSet:new Set(zt(f.changeFileSet,k)),latestChangedDtsFile:L,emitSignatures:ne!=null&&ne.size?ne:void 0}}return{getState:()=>h,saveEmitState:lo,restoreEmitState:lo,getProgram:Wa,getProgramOrUndefined:eb,releaseProgram:lo,getCompilerOptions:()=>h.compilerOptions,getSourceFile:Wa,getSourceFiles:Wa,getOptionsDiagnostics:Wa,getGlobalDiagnostics:Wa,getConfigFileParsingDiagnostics:Wa,getSyntacticDiagnostics:Wa,getDeclarationDiagnostics:Wa,getSemanticDiagnostics:Wa,emit:Wa,getAllDependencies:Wa,getCurrentDirectory:Wa,emitNextAffectedFile:Wa,getSemanticDiagnosticsOfNextAffectedFile:Wa,emitBuildInfo:Wa,close:lo,hasChangedEmitSignature:v1};function I(H){return Js(H,d,v)}function O(H){return Oa(H,d)}function k(H){return E[H-1]}function G(H){return C[H-1]}function V(H){if(!H)return;const ne=ih.createManyToManyPathMap();return H.forEach(([Y,$])=>ne.set(k(Y),G($))),ne}}function i$(e,t,r){const i=yi(Oa(t,r.getCurrentDirectory())),o=cu(r.useCaseSensitiveFileNames()),s=new Map;let c=0;const f=[];return e.fileInfos.forEach((d,v)=>{const h=Js(e.fileNames[v],i,o),E=Ha(d)?d:d.version;if(s.set(h,E),c<e.root.length){const C=e.root[c],L=v+1;Va(C)?C[0]<=L&&L<=C[1]&&(f.push(h),C[1]===L&&c++):C===L&&(f.push(h),c++)}}),{fileInfos:s,roots:f}}function a$(e,t){return{getState:Wa,saveEmitState:lo,restoreEmitState:lo,getProgram:r,getProgramOrUndefined:()=>e().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,c,f)=>r().emit(i,o,s,c,f),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:Wa,getCurrentDirectory:()=>r().getCurrentDirectory(),close:lo};function r(){return D.checkDefined(e().program)}}var o$,s$,L9e=S({"src/compiler/builder.ts"(){Na(),Na(),o$=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(o$||{}),s$=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(s$||{})}});function I9e(e,t,r,i,o,s){return n$(0,KF(e,t,r,i,o,s))}function l$(e,t,r,i,o,s){return n$(1,KF(e,t,r,i,o,s))}function k9e(e,t,r,i,o,s){const{newProgram:c,configFileParsingDiagnostics:f}=KF(e,t,r,i,o,s);return a$(()=>({program:c,compilerOptions:c.getCompilerOptions()}),f)}var w9e=S({"src/compiler/builderPublic.ts"(){Na()}});function c$(e){return cc(e,"/node_modules/.staging")?PA(e,"/.staging"):kt(XR,t=>bu(e,t))?void 0:e}function i6(e){const t=nm(e);if(e.length===t)return!1;let r=e.indexOf(Bs,t);if(r===-1)return!1;let i=e.substring(t,r+1);const o=t>1||e.charCodeAt(0)!==47;if(o&&e.search(/[a-zA-Z]:/)!==0&&i.search(/[a-zA-Z]\$\//)===0){if(r=e.indexOf(Bs,r+1),r===-1)return!1;i=e.substring(t+i.length,r+1)}if(o&&i.search(/users\//i)!==0)return!0;for(let s=r+1,c=2;c>0;c--)if(s=e.indexOf(Bs,s)+1,s===0)return!1;return!0}function Vve(e,t,r){let i,o,s;const c=b_(),f=new Set,d=new Set,v=new Map,h=new Map;let E=!1,C,L,I,O,k;const G=Ld(()=>e.getCurrentDirectory()),V=e.getCachedDirectoryStructureHost(),H=new Map,ne=Z5(G(),e.getCanonicalFileName,e.getCompilationSettings()),Y=new Map,$=eF(G(),e.getCanonicalFileName,e.getCompilationSettings(),ne.getPackageJsonInfoCache()),M=[".ts",".tsx",".js",".jsx",".json"],de=new Map,re=new Map,be=new Map,ae=t&&_T(Oa(t,G())),W=ae&&e.toPath(ae),ce=W!==void 0?W.split(Bs).length:0,me=new Map;return{getModuleResolutionCache:()=>ne,startRecordingFilesWithChangedResolutions:Ve,finishRecordingFilesWithChangedResolutions:Ge,startCachingPerDirectoryResolution:Me,finishCachingPerDirectoryResolution:Ye,resolveModuleNameLiterals:Et,resolveTypeReferenceDirectiveReferences:Ct,resolveSingleModuleNameWithoutWatching:Vt,removeResolutionsFromProjectReferenceRedirects:vn,removeResolutionsOfFile:Ht,hasChangedAutomaticTypeDirectiveNames:()=>E,invalidateResolutionOfFile:ir,invalidateResolutionsOfFailedLookupLocations:vi,setFilesWithInvalidatedNonRelativeUnresolvedImports:cr,createHasInvalidatedResolutions:Oe,isFileWithInvalidatedNonRelativeUnresolvedImports:ze,updateTypeRootsWatch:yt,closeTypeRootsWatch:Ar,clear:Qe};function Ee(Ce){return Ce.resolvedModule}function xe(Ce){return Ce.resolvedTypeReferenceDirective}function te(Ce,pt){return Ce===void 0||pt.length<=Ce.length?!1:Ta(pt,Ce)&&pt[Ce.length]===Bs}function Qe(){l_(re,rh),l_(be,rh),de.clear(),c.clear(),Ar(),H.clear(),Y.clear(),v.clear(),f.clear(),d.clear(),I=void 0,O=void 0,k=void 0,L=void 0,C=void 0,ne.clear(),$.clear(),ne.update(e.getCompilationSettings()),$.update(e.getCompilationSettings()),h.clear(),E=!1}function Ve(){i=[]}function Ge(){const Ce=i;return i=void 0,Ce}function ze(Ce){if(!s)return!1;const pt=s.get(Ce);return!!pt&&!!pt.length}function Oe(Ce){vi();const pt=o;return o=void 0,pe=>Ce(pe)||!!(pt!=null&&pt.has(pe))||ze(pe)}function Me(){ne.clearAllExceptPackageJsonInfoCache(),$.clearAllExceptPackageJsonInfoCache(),c.forEach(_r),c.clear()}function Ye(Ce,pt){s=void 0,c.forEach(_r),c.clear(),Ce!==pt&&(Ce==null||Ce.getSourceFiles().forEach(pe=>{var ie,he,j;const He=mf(pe)&&(he=(ie=pe.packageJsonLocations)==null?void 0:ie.length)!=null?he:0,Ze=(j=h.get(pe.path))!=null?j:rt;for(let Xe=Ze.length;Xe<He;Xe++)Zt(pe.packageJsonLocations[Xe],!1);if(Ze.length>He)for(let Xe=He;Xe<Ze.length;Xe++)be.get(Ze[Xe]).files--;He?h.set(pe.path,pe.packageJsonLocations):h.delete(pe.path)}),h.forEach((pe,ie)=>{Ce!=null&&Ce.getSourceFileByPath(ie)||(pe.forEach(he=>be.get(he).files--),h.delete(ie))})),re.forEach((pe,ie)=>{pe.refCount===0&&(re.delete(ie),pe.watcher.close())}),be.forEach((pe,ie)=>{pe.files===0&&pe.resolutions===0&&(be.delete(ie),pe.watcher.close())}),E=!1}function We(Ce,pt,pe,ie,he){var j;const He=((j=e.getCompilerHost)==null?void 0:j.call(e))||e,Ze=gw(Ce,pt,pe,He,ne,ie,he);if(!e.getGlobalCache)return Ze;const Xe=e.getGlobalCache();if(Xe!==void 0&&!zc(Ce)&&!(Ze.resolvedModule&&E7(Ze.resolvedModule.extension))){const{resolvedModule:Ut,failedLookupLocations:ln,affectingLocations:Sn,resolutionDiagnostics:Er}=Mge(D.checkDefined(e.globalCacheResolutionModuleName)(Ce),e.projectName,pe,He,Xe,ne);if(Ut)return Ze.resolvedModule=Ut,Ze.failedLookupLocations=tL(Ze.failedLookupLocations,ln),Ze.affectingLocations=tL(Ze.affectingLocations,Sn),Ze.resolutionDiagnostics=tL(Ze.resolutionDiagnostics,Er),Ze}return Ze}function Fe(Ce,pt,pe){return{nameAndMode:Rw,resolve:(ie,he)=>We(ie,Ce,pe,pt,he)}}function st({entries:Ce,containingFile:pt,containingSourceFile:pe,redirectedReference:ie,options:he,perFileCache:j,reusedNames:He,loader:Ze,getResolutionWithResolvedFileName:Xe,shouldRetryResolution:Ut,logChanges:ln}){var Sn;const Er=e.toPath(pt),ue=j.get(Er)||j.set(Er,YT()).get(Er),mt=[],Wt=ln&&ze(Er),it=e.getCurrentProgram(),K=it&&it.getResolvedProjectReferenceToRedirect(pt),Pe=K?!ie||ie.sourceFile.path!==K.sourceFile.path:!!ie,ee=YT();for(const q of Ce){const Rt=Ze.nameAndMode.getName(q),gt=Ze.nameAndMode.getMode(q,pe);let ft=ue.get(Rt,gt);if(!ee.has(Rt,gt)&&Pe||!ft||ft.isInvalidated||Wt&&!zc(Rt)&&Ut(ft)){const fn=ft;ft=Ze.resolve(Rt,gt),e.onDiscoveredSymlink&&D9e(ft)&&e.onDiscoveredSymlink(),ue.set(Rt,gt,ft),Pn(Rt,ft,Er,Xe),fn&&Qi(fn,Er,Xe),ln&&i&&!Re(fn,ft)&&(i.push(Er),ln=!1)}else{const fn=((Sn=e.getCompilerHost)==null?void 0:Sn.call(e))||e;if(e0(he,fn)&&!ee.has(Rt,gt)){const $n=Xe(ft);ma(fn,j===H?$n!=null&&$n.resolvedFileName?$n.packageId?_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:$n!=null&&$n.resolvedFileName?$n.packageId?_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Rt,pt,$n==null?void 0:$n.resolvedFileName,($n==null?void 0:$n.packageId)&&TT($n.packageId))}}D.assert(ft!==void 0&&!ft.isInvalidated),ee.set(Rt,gt,!0),mt.push(ft)}return He==null||He.forEach(q=>ee.set(Ze.nameAndMode.getName(q),Ze.nameAndMode.getMode(q,pe),!0)),ue.size()!==ee.size()&&ue.forEach((q,Rt,gt)=>{ee.has(Rt,gt)||(Qi(q,Er,Xe),ue.delete(Rt,gt))}),mt;function Re(q,Rt){if(q===Rt)return!0;if(!q||!Rt)return!1;const gt=Xe(q),ft=Xe(Rt);return gt===ft?!0:!gt||!ft?!1:gt.resolvedFileName===ft.resolvedFileName}}function Ct(Ce,pt,pe,ie,he,j){var He;return st({entries:Ce,containingFile:pt,containingSourceFile:he,redirectedReference:pe,options:ie,reusedNames:j,perFileCache:Y,loader:MF(pt,pe,ie,((He=e.getCompilerHost)==null?void 0:He.call(e))||e,$),getResolutionWithResolvedFileName:xe,shouldRetryResolution:Ze=>Ze.resolvedTypeReferenceDirective===void 0})}function Et(Ce,pt,pe,ie,he,j){return st({entries:Ce,containingFile:pt,containingSourceFile:he,redirectedReference:pe,options:ie,reusedNames:j,perFileCache:H,loader:Fe(pt,pe,ie),getResolutionWithResolvedFileName:Ee,shouldRetryResolution:He=>!He.resolvedModule||!CO(He.resolvedModule.extension),logChanges:r})}function Vt(Ce,pt){const pe=e.toPath(pt),ie=H.get(pe),he=ie==null?void 0:ie.get(Ce,void 0);return he&&!he.isInvalidated?he:We(Ce,pt,e.getCompilationSettings())}function tt(Ce){return cc(Ce,"/node_modules/@types")}function at(Ce,pt){if(te(W,pt)){Ce=Bm(Ce)?Ko(Ce):Oa(Ce,G());const pe=pt.split(Bs),ie=Ce.split(Bs);return D.assert(ie.length===pe.length,`FailedLookup: ${Ce} failedLookupLocationPath: ${pt}`),pe.length>ce+1?{dir:ie.slice(0,ce+1).join(Bs),dirPath:pe.slice(0,ce+1).join(Bs)}:{dir:ae,dirPath:W,nonRecursive:!1}}return on(yi(Oa(Ce,G())),yi(pt))}function on(Ce,pt){for(;s2(pt);)Ce=yi(Ce),pt=yi(pt);if(qM(pt))return i6(yi(pt))?{dir:Ce,dirPath:pt}:void 0;let pe=!0,ie,he;if(W!==void 0)for(;!te(pt,W);){const j=yi(pt);if(j===pt)break;pe=!1,ie=pt,he=Ce,pt=j,Ce=yi(Ce)}return i6(pt)?{dir:he||Ce,dirPath:ie||pt,nonRecursive:pe}:void 0}function Qt(Ce){return Ic(Ce,M)}function Pn(Ce,pt,pe,ie){var he,j;if(pt.refCount)pt.refCount++,D.assertIsDefined(pt.files);else{pt.refCount=1,D.assert(!((he=pt.files)!=null&&he.size)),zc(Ce)?Hn(pt):c.add(Ce,pt);const He=ie(pt);if(He&&He.resolvedFileName){const Ze=e.toPath(He.resolvedFileName);let Xe=v.get(Ze);Xe||v.set(Ze,Xe=new Set),Xe.add(pt)}}((j=pt.files)!=null?j:pt.files=new Set).add(pe)}function Hn(Ce){D.assert(!!Ce.refCount);const{failedLookupLocations:pt,affectingLocations:pe}=Ce;if(!(pt!=null&&pt.length)&&!(pe!=null&&pe.length))return;pt!=null&&pt.length&&f.add(Ce);let ie=!1;if(pt){for(const he of pt){const j=e.toPath(he),He=at(he,j);if(He){const{dir:Ze,dirPath:Xe,nonRecursive:Ut}=He;if(!Qt(j)){const ln=de.get(j)||0;de.set(j,ln+1)}Xe===W?(D.assert(!Ut),ie=!0):wi(Ze,Xe,Ut)}}ie&&wi(ae,W,!0)}kn(Ce,!(pt!=null&&pt.length))}function kn(Ce,pt){D.assert(!!Ce.refCount);const{affectingLocations:pe}=Ce;if(pe!=null&&pe.length){pt&&d.add(Ce);for(const ie of pe)Zt(ie,!0)}}function Zt(Ce,pt){const pe=be.get(Ce);if(pe){pt?pe.resolutions++:pe.files++;return}let ie=Ce;if(e.realpath&&(ie=e.realpath(Ce),Ce!==ie)){const Ze=be.get(ie);if(Ze){pt?Ze.resolutions++:Ze.files++,Ze.paths.add(Ce),be.set(Ce,Ze);return}}const he=new Set;he.add(ie);let j=i6(e.toPath(ie))?e.watchAffectingFileLocation(ie,(Ze,Xe)=>{V==null||V.addOrDeleteFile(Ze,e.toPath(ie),Xe);const Ut=ne.getPackageJsonInfoCache().getInternalMap();he.forEach(ln=>{He.resolutions&&(L!=null?L:L=new Set).add(ln),He.files&&(C!=null?C:C=new Set).add(ln),Ut==null||Ut.delete(e.toPath(ln))}),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):oL;const He={watcher:j!==oL?{close:()=>{j.close(),j=oL}}:j,resolutions:pt?1:0,files:pt?0:1,paths:he};be.set(ie,He),Ce!==ie&&(be.set(Ce,He),he.add(Ce))}function _r(Ce,pt){const pe=e.getCurrentProgram();!pe||!pe.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(pt)?Ce.forEach(Hn):Ce.forEach(ie=>kn(ie,!0))}function wi(Ce,pt,pe){const ie=re.get(pt);ie?(D.assert(!!pe==!!ie.nonRecursive),ie.refCount++):re.set(pt,{watcher:Or(Ce,pt,pe),refCount:1,nonRecursive:pe})}function Qi(Ce,pt,pe){if(D.checkDefined(Ce.files).delete(pt),Ce.refCount--,Ce.refCount)return;const ie=pe(Ce);if(ie&&ie.resolvedFileName){const He=e.toPath(ie.resolvedFileName),Ze=v.get(He);Ze!=null&&Ze.delete(Ce)&&!Ze.size&&v.delete(He)}const{failedLookupLocations:he,affectingLocations:j}=Ce;if(f.delete(Ce)){let He=!1;for(const Ze of he){const Xe=e.toPath(Ze),Ut=at(Ze,Xe);if(Ut){const{dirPath:ln}=Ut,Sn=de.get(Xe);Sn&&(Sn===1?de.delete(Xe):(D.assert(Sn>1),de.set(Xe,Sn-1))),ln===W?He=!0:Zi(ln)}}He&&Zi(W)}else j!=null&&j.length&&d.delete(Ce);if(j)for(const He of j){const Ze=be.get(He);Ze.resolutions--}}function Zi(Ce){const pt=re.get(Ce);pt.refCount--}function Or(Ce,pt,pe){return e.watchDirectoryOfFailedLookupLocation(Ce,ie=>{const he=e.toPath(ie);V&&V.addOrDeleteFileOrDirectory(ie,he),Mi(he,pt===he)},pe?0:1)}function At(Ce,pt,pe){const ie=Ce.get(pt);ie&&(ie.forEach(he=>Qi(he,pt,pe)),Ce.delete(pt))}function vn(Ce){if(!hc(Ce,".json"))return;const pt=e.getCurrentProgram();if(!pt)return;const pe=pt.getResolvedProjectReferenceByPath(Ce);pe&&pe.commandLine.fileNames.forEach(ie=>Ht(e.toPath(ie)))}function Ht(Ce){At(H,Ce,Ee),At(Y,Ce,xe)}function un(Ce,pt){if(!Ce)return!1;let pe=!1;return Ce.forEach(ie=>{if(!(ie.isInvalidated||!pt(ie))){ie.isInvalidated=pe=!0;for(const he of D.checkDefined(ie.files))(o!=null?o:o=new Set).add(he),E=E||cc(he,WF)}}),pe}function ir(Ce){Ht(Ce);const pt=E;un(v.get(Ce),b1)&&E&&!pt&&e.onChangedAutomaticTypeDirectiveNames()}function cr(Ce){D.assert(s===Ce||s===void 0),s=Ce}function Mi(Ce,pt){if(pt)(k||(k=new Set)).add(Ce);else{const pe=c$(Ce);if(!pe||(Ce=pe,e.fileIsOpen(Ce)))return!1;const ie=yi(Ce);if(tt(Ce)||qM(Ce)||tt(ie)||qM(ie))(I||(I=new Set)).add(Ce),(O||(O=new Set)).add(Ce);else{if(!Qt(Ce)&&!de.has(Ce)||pve(e.getCurrentProgram(),Ce))return!1;(I||(I=new Set)).add(Ce);const he=IX(Ce);he&&(O||(O=new Set)).add(he)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function vi(){var Ce;let pt=!1;if(C&&((Ce=e.getCurrentProgram())==null||Ce.getSourceFiles().forEach(ie=>{kt(ie.packageJsonLocations,he=>C.has(he))&&((o!=null?o:o=new Set).add(ie.path),pt=!0)}),C=void 0),!I&&!O&&!k&&!L)return pt;pt=un(f,Nn)||pt;const pe=ne.getPackageJsonInfoCache().getInternalMap();return pe&&(I||O||k)&&pe.forEach((ie,he)=>rn(he)?pe.delete(he):void 0),I=void 0,O=void 0,k=void 0,pt=un(d,Mn)||pt,L=void 0,pt}function Nn(Ce){var pt;return Mn(Ce)?!0:!I&&!O&&!k?!1:(pt=Ce.failedLookupLocations)==null?void 0:pt.some(pe=>rn(e.toPath(pe)))}function rn(Ce){return(I==null?void 0:I.has(Ce))||dn((O==null?void 0:O.keys())||[],pt=>Ta(Ce,pt)?!0:void 0)||dn((k==null?void 0:k.keys())||[],pt=>te(pt,Ce)?!0:void 0)}function Mn(Ce){var pt;return!!L&&((pt=Ce.affectingLocations)==null?void 0:pt.some(pe=>L.has(pe)))}function Ar(){l_(me,Xm)}function Hr(Ce,pt){if(te(W,pt))return W;const pe=on(Ce,pt);return pe&&re.has(pe.dirPath)?pe.dirPath:void 0}function we(Ce,pt){return e.watchTypeRootsDirectory(pt,pe=>{const ie=e.toPath(pe);V&&V.addOrDeleteFileOrDirectory(pe,ie),E=!0,e.onChangedAutomaticTypeDirectiveNames();const he=Hr(pt,Ce);he&&Mi(ie,he===ie)},1)}function yt(){const Ce=e.getCompilationSettings();if(Ce.types){Ar();return}const pt=O8(Ce,{directoryExists:Nt,getCurrentDirectory:G});pt?EC(me,y1(pt,pe=>e.toPath(pe)),{createNewValue:we,onDeleteValue:Xm}):Ar()}function Nt(Ce){const pt=yi(yi(Ce)),pe=e.toPath(pt);return pe===W||i6(pe)}}function D9e(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var R9e=S({"src/compiler/resolutionCache.ts"(){Na(),Na()}});function a6(e,t){const r=e===nu&&b$?b$:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:cu(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(MY(o,r));const i=new Array(1);return o=>{i[0]=o,e.write(Eve(i,r)+r.getNewLine()),i[0]=void 0}}function jve(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&Ur(e9,t.code)?(e.clearScreen(),!0):!1}function N9e(e,t){return Ur(e9,e.code)?t+t:t}function o6(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function Hve(e,t){return t?(r,i,o)=>{jve(e,r,o);let s=`[${lE(o6(e),"\x1B[90m")}] `;s+=`${t0(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";jve(e,r,o)||(s+=i),s+=`${o6(e)} - `,s+=`${t0(r.messageText,e.newLine)}${N9e(r,i)}`,e.write(s)}}function O9e(e,t,r,i,o,s){const c=o;c.onUnRecoverableConfigFileDiagnostic=d=>Yve(o,s,d);const f=g8(e,t,c,r,i);return c.onUnRecoverableConfigFileDiagnostic=void 0,f}function XF(e){return Wc(e,t=>t.category===1)}function YF(e){return yn(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;const i=In(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){const{line:o}=cl(i.file,i.start);return{fileName:r,line:o+1}}})}function u$(e){return e===1?_.Found_1_error_Watching_for_file_changes:_.Found_0_errors_Watching_for_file_changes}function Wve(e,t){const r=lE(":"+e.line,"\x1B[90m");return MI(e.fileName)&&MI(t)?Gm(t,e.fileName,!1)+r:e.fileName+r}function zve(e,t,r,i){if(e===0)return"";const o=t.filter(v=>v!==void 0),s=o.map(v=>`${v.fileName}:${v.line}`).filter((v,h,E)=>E.indexOf(v)===h),c=o[0]&&Wve(o[0],i.getCurrentDirectory()),f=e===1?Gs(t[0]!==void 0?_.Found_1_error_in_1:_.Found_1_error,e,c):Gs(s.length===0?_.Found_0_errors:s.length===1?_.Found_0_errors_in_the_same_file_starting_at_Colon_1:_.Found_0_errors_in_1_files,e,s.length===1?c:s.length),d=s.length>1?P9e(o,i):"";return`${r}${t0(f.messageText,r)}${r}${r}${d}`}function P9e(e,t){const r=e.filter((E,C,L)=>C===L.findIndex(I=>(I==null?void 0:I.fileName)===(E==null?void 0:E.fileName)));if(r.length===0)return"";const i=E=>Math.log(E)*Math.LOG10E+1,o=r.map(E=>[E,Wc(e,C=>C.fileName===E.fileName)]),s=o.reduce((E,C)=>Math.max(E,C[1]||0),0),c=_.Errors_Files.message,f=c.split(" ")[0].length,d=Math.max(f,i(s)),v=Math.max(i(s)-f,0);let h="";return h+=" ".repeat(v)+c+`
- `,o.forEach(E=>{const[C,L]=E,I=Math.log(L)*Math.LOG10E+1|0,O=I<d?" ".repeat(d-I):"",k=Wve(C,t.getCurrentDirectory());h+=`${O}${L} ${k}
- `}),h}function qve(e){return!!e.getState}function d$(e,t){const r=e.getCompilerOptions();r.explainFiles?Jve(qve(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&Je(e.getSourceFiles(),i=>{t(i.fileName)})}function Jve(e,t){var r,i;const o=e.getFileIncludeReasons(),s=c=>FI(c,e.getCurrentDirectory(),e.getCanonicalFileName);for(const c of e.getSourceFiles())t(`${u2(c,s)}`),(r=o.get(c.path))==null||r.forEach(f=>t(` ${m$(e,f,s).messageText}`)),(i=f$(c,s))==null||i.forEach(f=>t(` ${f.messageText}`))}function f$(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i!=null?i:i=[]).push(Ra(void 0,_.File_is_output_of_project_reference_source_0,u2(e.originalFileName,t))),e.redirectInfo&&(i!=null?i:i=[]).push(Ra(void 0,_.File_redirects_to_file_0,u2(e.redirectInfo.redirectTarget,t))),mf(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i!=null?i:i=[]).push(Ra(void 0,_.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,u2(Jo(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i!=null?i:i=[]).push(Ra(void 0,e.packageJsonScope.contents.packageJsonContent.type?_.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:_.File_is_CommonJS_module_because_0_does_not_have_field_type,u2(Jo(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i!=null?i:i=[]).push(Ra(void 0,_.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function _$(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i==null?void 0:i.configFileSpecs)!=null&&r.validatedFilesSpec))return;const o=e.getCanonicalFileName(t),s=yi(Oa(i.fileName,e.getCurrentDirectory()));return In(i.configFileSpecs.validatedFilesSpec,c=>e.getCanonicalFileName(Oa(c,s))===o)}function p$(e,t){var r,i;const o=e.getCompilerOptions().configFile;if(!((r=o==null?void 0:o.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;const s=hc(t,".json"),c=yi(Oa(o.fileName,e.getCurrentDirectory())),f=e.useCaseSensitiveFileNames();return In((i=o==null?void 0:o.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,d=>{if(s&&!cc(d,".json"))return!1;const v=lJ(d,c,"files");return!!v&&qv(`(${v})$`,f).test(t)})}function m$(e,t,r){var i,o;const s=e.getCompilerOptions();if(Eb(t)){const c=ww(v=>e.getSourceFileByPath(v),t),f=iL(c)?c.file.text.substring(c.pos,c.end):`"${c.text}"`;let d;switch(D.assert(iL(c)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:iL(c)?d=c.packageId?_.Imported_via_0_from_file_1_with_packageId_2:_.Imported_via_0_from_file_1:c.text===mb?d=c.packageId?_.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:_.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:d=c.packageId?_.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:_.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:D.assert(!c.packageId),d=_.Referenced_via_0_from_file_1;break;case 5:d=c.packageId?_.Type_library_referenced_via_0_from_file_1_with_packageId_2:_.Type_library_referenced_via_0_from_file_1;break;case 7:D.assert(!c.packageId),d=_.Library_referenced_via_0_from_file_1;break;default:D.assertNever(t)}return Ra(void 0,d,f,u2(c.file,r),c.packageId&&TT(c.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return Ra(void 0,_.Root_file_specified_for_compilation);const c=Oa(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(_$(e,c))return Ra(void 0,_.Part_of_files_list_in_tsconfig_json);const d=p$(e,c);return Ha(d)?Ra(void 0,_.Matched_by_include_pattern_0_in_1,d,u2(s.configFile,r)):Ra(void 0,d?_.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:_.Root_file_specified_for_compilation);case 1:case 2:const v=t.kind===2,h=D.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return Ra(void 0,Ks(s)?v?_.Output_from_referenced_project_0_included_because_1_specified:_.Source_from_referenced_project_0_included_because_1_specified:v?_.Output_from_referenced_project_0_included_because_module_is_specified_as_none:_.Source_from_referenced_project_0_included_because_module_is_specified_as_none,u2(h.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:return Ra(void 0,s.types?t.packageId?_.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:_.Entry_point_of_type_library_0_specified_in_compilerOptions:t.packageId?_.Entry_point_for_implicit_type_library_0_with_packageId_1:_.Entry_point_for_implicit_type_library_0,t.typeReference,t.packageId&&TT(t.packageId));case 6:if(t.index!==void 0)return Ra(void 0,_.Library_0_specified_in_compilerOptions,s.lib[t.index]);const E=pf(w8.type,(C,L)=>C===ts(s)?L:void 0);return Ra(void 0,E?_.Default_library_for_target_0:_.Default_library,E);default:D.assertNever(t)}}function u2(e,t){const r=Ha(e)?e:e.fileName;return t?t(r):r}function $F(e,t,r,i,o,s,c,f){const d=!!e.getCompilerOptions().listFilesOnly,v=e.getConfigFileParsingDiagnostics().slice(),h=v.length;Ai(v,e.getSyntacticDiagnostics(void 0,s)),v.length===h&&(Ai(v,e.getOptionsDiagnostics(s)),d||(Ai(v,e.getGlobalDiagnostics(s)),v.length===h&&Ai(v,e.getSemanticDiagnostics(void 0,s))));const E=d?{emitSkipped:!0,diagnostics:rt}:e.emit(void 0,o,s,c,f),{emittedFiles:C,diagnostics:L}=E;Ai(v,L);const I=UA(v);if(I.forEach(t),r){const O=e.getCurrentDirectory();Je(C,k=>{const G=Oa(k,O);r(`TSFILE: ${G}`)}),d$(e,r)}return i&&i(XF(I),YF(I)),{emitResult:E,diagnostics:I}}function Kve(e,t,r,i,o,s,c,f){const{emitResult:d,diagnostics:v}=$F(e,t,r,i,o,s,c,f);return d.emitSkipped&&v.length>0?1:v.length>0?2:0}function h$(e=nu,t){return{onWatchStatusChange:t||Hve(e),watchFile:Vo(e,e.watchFile)||s6,watchDirectory:Vo(e,e.watchDirectory)||s6,setTimeout:Vo(e,e.setTimeout)||lo,clearTimeout:Vo(e,e.clearTimeout)||lo}}function g$(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):lo,o=mve(e,r,i);return o.writeLog=i,o}function y$(e,t,r=e){const i=e.useCaseSensitiveFileNames(),o={getSourceFile:NY((s,c)=>c?e.readFile(s,c):o.readFile(s),t,void 0),getDefaultLibLocation:Vo(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:OY((s,c,f)=>e.writeFile(s,c,f),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Ld(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:cu(i),getNewLine:()=>_b(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:Vo(e,e.trace),directoryExists:Vo(r,r.directoryExists),getDirectories:Vo(r,r.getDirectories),realpath:Vo(e,e.realpath),getEnvironmentVariable:Vo(e,e.getEnvironmentVariable)||(()=>""),createHash:Vo(e,e.createHash),readDirectory:Vo(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit};return o}function QF(e,t){if(t.match(tY)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){const s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!Tu(s)){i=o;continue}break}const c=t.substring(i,r);if(c.match(vF)){t=t.substring(0,i);break}else if(!c.match(bF))break;r=i}}return(e.createHash||WR)(t)}function ZF(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=QF(e,i.text)),i}}function v$(e,t){const r=Ld(()=>yi(Ko(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Ld(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Bi(r(),QM(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,c,f)=>e.readDirectory(i,o,s,c,f),realpath:Vo(e,e.realpath),getEnvironmentVariable:Vo(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,o,s)=>e.writeFile(i,o,s),createHash:Vo(e,e.createHash),createProgram:t||l$,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:Vo(e,e.now)}}function Xve(e=nu,t,r,i){const o=c=>e.write(c+e.newLine),s=v$(e,t);return EH(s,h$(e,i)),s.afterProgramCreate=c=>{const f=c.getCompilerOptions(),d=_b(f);$F(c,r,o,v=>s.onWatchStatusChange(Gs(u$(v),v),d,f,v))},s}function Yve(e,t,r){t(r),e.exit(1)}function $ve({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:c,reportWatchStatus:f}){const d=c||a6(o),v=Xve(o,s,d,f);return v.onUnRecoverableConfigFileDiagnostic=h=>Yve(o,d,h),v.configFileName=e,v.optionsToExtend=t,v.watchOptionsToExtend=r,v.extraFileExtensions=i,v}function Qve({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:c,reportWatchStatus:f}){const d=Xve(o,s,c||a6(o),f);return d.rootFiles=e,d.options=t,d.watchOptions=r,d.projectReferences=i,d}function M9e(e){const t=e.system||nu,r=e.host||(e.host=E$(e.options,t)),i=Zve(e),o=Kve(i,e.reportDiagnostic||a6(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,c)=>t.write(zve(s,c,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var b$,e9,oL,s6,k_,F9e=S({"src/compiler/watch.ts"(){Na(),b$=nu?{getCurrentDirectory:()=>nu.getCurrentDirectory(),getNewLine:()=>nu.newLine,getCanonicalFileName:cu(nu.useCaseSensitiveFileNames)}:void 0,e9=[_.Starting_compilation_in_watch_mode.code,_.File_change_detected_Starting_incremental_compilation.code],oL={close:lo},s6=()=>oL,k_={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation"}}});function t9(e,t){const r=Uy(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{const o=t.readFile(r);if(!o)return;i=wF(r,o)}if(!(!i||i.version!==ve||!i.program))return Uve(i,r,t)}function E$(e,t=nu){const r=PY(e,void 0,t);return r.createHash=Vo(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,ZF(r),Z8(r,i=>Js(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Zve({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||E$(t),s=s||l$;const c=t9(t,o);return s(e,t,o,c,r,i)}function B9e(e,t,r,i,o,s,c,f){return Va(e)?Qve({rootFiles:e,options:t,watchOptions:f,projectReferences:c,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):$ve({configFileName:e,optionsToExtend:t,watchOptionsToExtend:c,extraFileExtensions:f,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function G9e(e){let t,r,i,o,s,c,f,d,v=e.extendedConfigCache,h=!1;const E=new Map;let C,L=!1;const I=e.useCaseSensitiveFileNames(),O=e.getCurrentDirectory(),{configFileName:k,optionsToExtend:G={},watchOptionsToExtend:V,extraFileExtensions:H,createProgram:ne}=e;let{rootFiles:Y,options:$,watchOptions:M,projectReferences:de}=e,re,be,ae=!1,W=!1;const ce=k===void 0?void 0:dve(e,O,I),me=ce||e,Ee=UF(e,me);let xe=on();k&&e.configFileParsingResult&&(Mn(e.configFileParsingResult),xe=on()),Zi(_.Starting_compilation_in_watch_mode),k&&!e.configFileParsingResult&&(xe=_b(G),D.assert(!Y),rn(),xe=on()),D.assert($),D.assert(Y);const{watchFile:te,watchDirectory:Qe,writeLog:Ve}=g$(e,$),Ge=cu(I);Ve(`Current directory: ${O} CaseSensitiveFileNames: ${I}`);let ze;k&&(ze=te(k,ir,2e3,M,k_.ConfigFile));const Oe=y$(e,()=>$,me);ZF(Oe);const Me=Oe.getSourceFile;Oe.getSourceFile=(Ze,...Xe)=>Zt(Ze,Qt(Ze),...Xe),Oe.getSourceFileByPath=Zt,Oe.getNewLine=()=>xe,Oe.fileExists=kn,Oe.onReleaseOldSourceFile=Qi,Oe.onReleaseParsedCommandLine=we,Oe.toPath=Qt,Oe.getCompilationSettings=()=>$,Oe.useSourceOfProjectReferenceRedirect=Vo(e,e.useSourceOfProjectReferenceRedirect),Oe.watchDirectoryOfFailedLookupLocation=(Ze,Xe,Ut)=>Qe(Ze,Xe,Ut,M,k_.FailedLookupLocations),Oe.watchAffectingFileLocation=(Ze,Xe)=>te(Ze,Xe,2e3,M,k_.AffectingFileLocation),Oe.watchTypeRootsDirectory=(Ze,Xe,Ut)=>Qe(Ze,Xe,Ut,M,k_.TypeRoots),Oe.getCachedDirectoryStructureHost=()=>ce,Oe.scheduleInvalidateResolutionsOfFailedLookupLocations=vn,Oe.onInvalidatedResolution=un,Oe.onChangedAutomaticTypeDirectiveNames=un,Oe.fileIsOpen=v1,Oe.getCurrentProgram=Et,Oe.writeLog=Ve,Oe.getParsedCommandLine=Ar;const Ye=Vve(Oe,k?yi(Oa(k,O)):O,!1);Oe.resolveModuleNameLiterals=Vo(e,e.resolveModuleNameLiterals),Oe.resolveModuleNames=Vo(e,e.resolveModuleNames),!Oe.resolveModuleNameLiterals&&!Oe.resolveModuleNames&&(Oe.resolveModuleNameLiterals=Ye.resolveModuleNameLiterals.bind(Ye)),Oe.resolveTypeReferenceDirectiveReferences=Vo(e,e.resolveTypeReferenceDirectiveReferences),Oe.resolveTypeReferenceDirectives=Vo(e,e.resolveTypeReferenceDirectives),!Oe.resolveTypeReferenceDirectiveReferences&&!Oe.resolveTypeReferenceDirectives&&(Oe.resolveTypeReferenceDirectiveReferences=Ye.resolveTypeReferenceDirectiveReferences.bind(Ye)),Oe.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Vo(e,e.getModuleResolutionCache):()=>Ye.getModuleResolutionCache();const Fe=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Vo(e,e.hasInvalidatedResolutions)||b1:v1;return t=t9($,Oe),Vt(),ie(),k&&j(Qt(k),$,M,k_.ExtendedConfigFile),k?{getCurrentProgram:Ct,getProgram:Mi,close:st}:{getCurrentProgram:Ct,getProgram:Mi,updateRootFileNames:at,close:st};function st(){At(),Ye.clear(),l_(E,Ze=>{Ze&&Ze.fileWatcher&&(Ze.fileWatcher.close(),Ze.fileWatcher=void 0)}),ze&&(ze.close(),ze=void 0),v==null||v.clear(),v=void 0,d&&(l_(d,rh),d=void 0),o&&(l_(o,rh),o=void 0),i&&(l_(i,Xm),i=void 0),f&&(l_(f,Ze=>{var Xe;(Xe=Ze.watcher)==null||Xe.close(),Ze.watcher=void 0,Ze.watchedDirectories&&l_(Ze.watchedDirectories,rh),Ze.watchedDirectories=void 0}),f=void 0)}function Ct(){return t}function Et(){return t&&t.getProgramOrUndefined()}function Vt(){Ve("Synchronizing program"),D.assert($),D.assert(Y),At();const Ze=Ct();L&&(xe=on(),Ze&&Nz(Ze.getCompilerOptions(),$)&&Ye.clear());const Xe=Ye.createHasInvalidatedResolutions(Fe),{originalReadFile:Ut,originalFileExists:ln,originalDirectoryExists:Sn,originalCreateDirectory:Er,originalWriteFile:ue,readFileWithCache:mt}=Z8(Oe,Qt);return jY(Et(),Y,$,Wt=>wi(Wt,mt),Wt=>Oe.fileExists(Wt),Xe,Or,Ar,de)?W&&(h&&Zi(_.File_change_detected_Starting_incremental_compilation),t=ne(void 0,void 0,Oe,t,be,de),W=!1):(h&&Zi(_.File_change_detected_Starting_incremental_compilation),tt(Xe)),h=!1,e.afterProgramCreate&&Ze!==t&&e.afterProgramCreate(t),Oe.readFile=Ut,Oe.fileExists=ln,Oe.directoryExists=Sn,Oe.createDirectory=Er,Oe.writeFile=ue,t}function tt(Ze){Ve("CreatingProgramWith::"),Ve(` roots: ${JSON.stringify(Y)}`),Ve(` options: ${JSON.stringify($)}`),de&&Ve(` projectReferences: ${JSON.stringify(de)}`);const Xe=L||!Et();L=!1,W=!1,Ye.startCachingPerDirectoryResolution(),Oe.hasInvalidatedResolutions=Ze,Oe.hasChangedAutomaticTypeDirectiveNames=Or;const Ut=Et();if(t=ne(Y,$,Oe,t,be,de),Ye.finishCachingPerDirectoryResolution(t.getProgram(),Ut),_ve(t.getProgram(),i||(i=new Map),pt),Xe&&Ye.updateTypeRootsWatch(),C){for(const ln of C)i.has(ln)||E.delete(ln);C=void 0}}function at(Ze){D.assert(!k,"Cannot update root file names with config file watch mode"),Y=Ze,un()}function on(){return _b($||G)}function Qt(Ze){return Js(Ze,O,Ge)}function Pn(Ze){return typeof Ze=="boolean"}function Hn(Ze){return typeof Ze.version=="boolean"}function kn(Ze){const Xe=Qt(Ze);return Pn(E.get(Xe))?!1:me.fileExists(Ze)}function Zt(Ze,Xe,Ut,ln,Sn){const Er=E.get(Xe);if(!Pn(Er)){if(Er===void 0||Sn||Hn(Er)){const ue=Me(Ze,Ut,ln);if(Er)ue?(Er.sourceFile=ue,Er.version=ue.version,Er.fileWatcher||(Er.fileWatcher=yt(Xe,Ze,Nt,250,M,k_.SourceFile))):(Er.fileWatcher&&Er.fileWatcher.close(),E.set(Xe,!1));else if(ue){const mt=yt(Xe,Ze,Nt,250,M,k_.SourceFile);E.set(Xe,{sourceFile:ue,version:ue.version,fileWatcher:mt})}else E.set(Xe,!1);return ue}return Er.sourceFile}}function _r(Ze){const Xe=E.get(Ze);Xe!==void 0&&(Pn(Xe)?E.set(Ze,{version:!1}):Xe.version=!1)}function wi(Ze,Xe){const Ut=E.get(Ze);if(!Ut)return;if(Ut.version)return Ut.version;const ln=Xe(Ze);return ln!==void 0?QF(Oe,ln):void 0}function Qi(Ze,Xe,Ut){const ln=E.get(Ze.resolvedPath);ln!==void 0&&(Pn(ln)?(C||(C=[])).push(Ze.path):ln.sourceFile===Ze&&(ln.fileWatcher&&ln.fileWatcher.close(),E.delete(Ze.resolvedPath),Ut||Ye.removeResolutionsOfFile(Ze.path)))}function Zi(Ze){e.onWatchStatusChange&&e.onWatchStatusChange(Gs(Ze),xe,$||G)}function Or(){return Ye.hasChangedAutomaticTypeDirectiveNames()}function At(){return c?(e.clearTimeout(c),c=void 0,!0):!1}function vn(){if(!e.setTimeout||!e.clearTimeout)return Ye.invalidateResolutionsOfFailedLookupLocations();const Ze=At();Ve(`Scheduling invalidateFailedLookup${Ze?", Cancelled earlier one":""}`),c=e.setTimeout(Ht,250)}function Ht(){c=void 0,Ye.invalidateResolutionsOfFailedLookupLocations()&&un()}function un(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Ve("Scheduling update"),s=e.setTimeout(cr,250))}function ir(){D.assert(!!k),r=2,un()}function cr(){s=void 0,h=!0,Mi()}function Mi(){switch(r){case 1:tm.logStartUpdateProgram("PartialConfigReload"),vi();break;case 2:tm.logStartUpdateProgram("FullConfigReload"),Nn();break;default:tm.logStartUpdateProgram("SynchronizeProgram"),Vt();break}return tm.logStopUpdateProgram("Done"),Ct()}function vi(){Ve("Reloading new file names and options"),D.assert($),D.assert(k),r=0,Y=x8($.configFile.configFileSpecs,Oa(yi(k),O),$,Ee,H),aX(Y,Oa(k,O),$.configFile.configFileSpecs,be,ae)&&(W=!0),Vt()}function Nn(){D.assert(k),Ve(`Reloading config file: ${k}`),r=0,ce&&ce.clearCache(),rn(),L=!0,Vt(),ie(),j(Qt(k),$,M,k_.ExtendedConfigFile)}function rn(){D.assert(k),Mn(g8(k,G,Ee,v||(v=new Map),V,H))}function Mn(Ze){Y=Ze.fileNames,$=Ze.options,M=Ze.watchOptions,de=Ze.projectReferences,re=Ze.wildcardDirectories,be=tS(Ze).slice(),ae=T8(Ze.raw),W=!0}function Ar(Ze){const Xe=Qt(Ze);let Ut=f==null?void 0:f.get(Xe);if(Ut){if(!Ut.reloadLevel)return Ut.parsedCommandLine;if(Ut.parsedCommandLine&&Ut.reloadLevel===1&&!e.getParsedCommandLine){Ve("Reloading new file names and options"),D.assert($);const Sn=x8(Ut.parsedCommandLine.options.configFile.configFileSpecs,Oa(yi(Ze),O),$,Ee);return Ut.parsedCommandLine=Ka(Ti({},Ut.parsedCommandLine),{fileNames:Sn}),Ut.reloadLevel=void 0,Ut.parsedCommandLine}}Ve(`Loading config file: ${Ze}`);const ln=e.getParsedCommandLine?e.getParsedCommandLine(Ze):Hr(Ze);return Ut?(Ut.parsedCommandLine=ln,Ut.reloadLevel=void 0):(f||(f=new Map)).set(Xe,Ut={parsedCommandLine:ln}),He(Ze,Xe,Ut),ln}function Hr(Ze){const Xe=Ee.onUnRecoverableConfigFileDiagnostic;Ee.onUnRecoverableConfigFileDiagnostic=lo;const Ut=g8(Ze,void 0,Ee,v||(v=new Map),V);return Ee.onUnRecoverableConfigFileDiagnostic=Xe,Ut}function we(Ze){var Xe;const Ut=Qt(Ze),ln=f==null?void 0:f.get(Ut);ln&&(f.delete(Ut),ln.watchedDirectories&&l_(ln.watchedDirectories,rh),(Xe=ln.watcher)==null||Xe.close(),fve(Ut,d))}function yt(Ze,Xe,Ut,ln,Sn,Er){return te(Xe,(ue,mt)=>Ut(ue,mt,Ze),ln,Sn,Er)}function Nt(Ze,Xe,Ut){Ce(Ze,Ut,Xe),Xe===2&&E.has(Ut)&&Ye.invalidateResolutionOfFile(Ut),_r(Ut),un()}function Ce(Ze,Xe,Ut){ce&&ce.addOrDeleteFile(Ze,Xe,Ut)}function pt(Ze){return f!=null&&f.has(Ze)?oL:yt(Ze,Ze,pe,500,M,k_.MissingFile)}function pe(Ze,Xe,Ut){Ce(Ze,Ut,Xe),Xe===0&&i.has(Ut)&&(i.get(Ut).close(),i.delete(Ut),_r(Ut),un())}function ie(){re?RF(o||(o=new Map),new Map(Object.entries(re)),he):o&&l_(o,rh)}function he(Ze,Xe){return Qe(Ze,Ut=>{D.assert(k),D.assert($);const ln=Qt(Ut);ce&&ce.addOrDeleteFileOrDirectory(Ut,ln),_r(ln),!NF({watchedDirPath:Qt(Ze),fileOrDirectory:Ut,fileOrDirectoryPath:ln,configFileName:k,extraFileExtensions:H,options:$,program:Ct()||Y,currentDirectory:O,useCaseSensitiveFileNames:I,writeLog:Ve,toPath:Qt})&&r!==2&&(r=1,un())},Xe,M,k_.WildcardDirectory)}function j(Ze,Xe,Ut,ln){D.assert(k),kY(Ze,Xe,d||(d=new Map),(Sn,Er)=>te(Sn,(ue,mt)=>{var Wt;Ce(Sn,Er,mt),v&&wY(v,Er,Qt);const it=(Wt=d.get(Er))==null?void 0:Wt.projects;it!=null&&it.size&&it.forEach(K=>{if(Qt(k)===K)r=2;else{const Pe=f==null?void 0:f.get(K);Pe&&(Pe.reloadLevel=2),Ye.removeResolutionsFromProjectReferenceRedirects(K)}un()})},2e3,Ut,ln),Qt)}function He(Ze,Xe,Ut){var ln,Sn,Er,ue,mt;Ut.watcher||(Ut.watcher=te(Ze,(Wt,it)=>{Ce(Ze,Xe,it);const K=f==null?void 0:f.get(Xe);K&&(K.reloadLevel=2),Ye.removeResolutionsFromProjectReferenceRedirects(Xe),un()},2e3,((ln=Ut.parsedCommandLine)==null?void 0:ln.watchOptions)||M,k_.ConfigFileOfReferencedProject)),(Sn=Ut.parsedCommandLine)!=null&&Sn.wildcardDirectories?RF(Ut.watchedDirectories||(Ut.watchedDirectories=new Map),new Map(Object.entries((Er=Ut.parsedCommandLine)==null?void 0:Er.wildcardDirectories)),(Wt,it)=>{var K;return Qe(Wt,Pe=>{const ee=Qt(Pe);ce&&ce.addOrDeleteFileOrDirectory(Pe,ee),_r(ee);const Re=f==null?void 0:f.get(Xe);Re!=null&&Re.parsedCommandLine&&(NF({watchedDirPath:Qt(Wt),fileOrDirectory:Pe,fileOrDirectoryPath:ee,configFileName:Ze,options:Re.parsedCommandLine.options,program:Re.parsedCommandLine.fileNames,currentDirectory:O,useCaseSensitiveFileNames:I,writeLog:Ve,toPath:Qt})||Re.reloadLevel!==2&&(Re.reloadLevel=1,un()))},it,((K=Ut.parsedCommandLine)==null?void 0:K.watchOptions)||M,k_.WildcardDirectoryOfReferencedProject)}):Ut.watchedDirectories&&(l_(Ut.watchedDirectories,rh),Ut.watchedDirectories=void 0),j(Xe,(ue=Ut.parsedCommandLine)==null?void 0:ue.options,((mt=Ut.parsedCommandLine)==null?void 0:mt.watchOptions)||M,k_.ExtendedConfigOfReferencedProject)}}var U9e=S({"src/compiler/watchPublic.ts"(){Na(),Na()}});function T$(e){return hc(e,".json")?e:Bi(e,"tsconfig.json")}var S$,V9e=S({"src/compiler/tsbuild.ts"(){Na(),S$=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(S$||{})}});function j9e(e,t,r){const i=e.get(t);let o;return i||(o=r(),e.set(t,o)),i||o}function x$(e,t){return j9e(e,t,()=>new Map)}function l6(e){return e.now?e.now():new Date}function d2(e){return!!e&&!!e.buildOrder}function n9(e){return d2(e)?e.buildOrder:e}function e0e(e,t){return r=>{let i=t?`[${lE(o6(e),"\x1B[90m")}] `:`${o6(e)} - `;i+=`${t0(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function t0e(e,t,r,i){const o=v$(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):eb,o.setModifiedTime=e.setModifiedTime?(s,c)=>e.setModifiedTime(s,c):lo,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):lo,o.reportDiagnostic=r||a6(e),o.reportSolutionBuilderStatus=i||e0e(e),o.now=Vo(e,e.now),o}function H9e(e=nu,t,r,i,o){const s=t0e(e,t,r,i);return s.reportErrorSummary=o,s}function W9e(e=nu,t,r,i,o){const s=t0e(e,t,r,i),c=h$(e,o);return EH(s,c),s}function z9e(e){const t={};return k8.forEach(r=>{Fs(e,r.name)&&(t[r.name]=e[r.name])}),t}function q9e(e,t,r){return x0e(!1,e,t,r)}function J9e(e,t,r,i){return x0e(!0,e,t,r,i)}function K9e(e,t,r,i,o){const s=t,c=t,f=z9e(i),d=y$(s,()=>I.projectCompilerOptions);ZF(d),d.getParsedCommandLine=O=>rS(I,O,Dp(I,O)),d.resolveModuleNameLiterals=Vo(s,s.resolveModuleNameLiterals),d.resolveTypeReferenceDirectiveReferences=Vo(s,s.resolveTypeReferenceDirectiveReferences),d.resolveModuleNames=Vo(s,s.resolveModuleNames),d.resolveTypeReferenceDirectives=Vo(s,s.resolveTypeReferenceDirectives),d.getModuleResolutionCache=Vo(s,s.getModuleResolutionCache);let v,h;!d.resolveModuleNameLiterals&&!d.resolveModuleNames&&(v=Z5(d.getCurrentDirectory(),d.getCanonicalFileName),d.resolveModuleNameLiterals=(O,k,G,V,H)=>t6(O,k,G,V,H,s,v,VY),d.getModuleResolutionCache=()=>v),!d.resolveTypeReferenceDirectiveReferences&&!d.resolveTypeReferenceDirectives&&(h=eF(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,v==null?void 0:v.getPackageJsonInfoCache()),d.resolveTypeReferenceDirectiveReferences=(O,k,G,V,H)=>t6(O,k,G,V,H,s,h,MF)),d.getBuildInfo=(O,k)=>m0e(I,O,Dp(I,k),void 0);const{watchFile:E,watchDirectory:C,writeLog:L}=g$(c,i),I={host:s,hostWithWatch:c,parseConfigFileHost:UF(s),write:Vo(s,s.trace),options:i,baseCompilerOptions:f,rootNames:r,baseWatchOptions:o,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:d,moduleResolutionCache:v,typeReferenceDirectiveResolutionCache:h,buildOrder:void 0,readFileWithCache:O=>s.readFile(O),projectCompilerOptions:f,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:E,watchDirectory:C,writeLog:L};return I}function Xd(e,t){return Js(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Dp(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const o=Xd(e,t);return r.set(t,o),o}function n0e(e){return!!e.options}function X9e(e,t){const r=e.configFileCache.get(t);return r&&n0e(r)?r:void 0}function rS(e,t,r){const{configFileCache:i}=e,o=i.get(r);if(o)return n0e(o)?o:void 0;ll("SolutionBuilder::beforeConfigFileParsing");let s;const{parseConfigFileHost:c,baseCompilerOptions:f,baseWatchOptions:d,extendedConfigCache:v,host:h}=e;let E;return h.getParsedCommandLine?(E=h.getParsedCommandLine(t),E||(s=Gs(_.File_0_not_found,t))):(c.onUnRecoverableConfigFileDiagnostic=C=>s=C,E=g8(t,f,c,v,d),c.onUnRecoverableConfigFileDiagnostic=lo),i.set(r,E||s),ll("SolutionBuilder::afterConfigFileParsing"),n_("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),E}function sL(e,t){return T$(Dv(e.compilerHost.getCurrentDirectory(),t))}function r0e(e,t){const r=new Map,i=new Map,o=[];let s,c;for(const d of t)f(d);return c?{buildOrder:s||rt,circularDiagnostics:c}:s||rt;function f(d,v){const h=Dp(e,d);if(i.has(h))return;if(r.has(h)){v||(c||(c=[])).push(Gs(_.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r
- `)));return}r.set(h,!0),o.push(d);const E=rS(e,d,h);if(E&&E.projectReferences)for(const C of E.projectReferences){const L=sL(e,C.path);f(L,v||C.circular)}o.pop(),i.set(h,!0),(s||(s=[])).push(d)}}function c6(e){return e.buildOrder||Y9e(e)}function Y9e(e){const t=r0e(e,e.rootNames.map(o=>sL(e,o)));e.resolvedConfigFilePaths.clear();const r=new Map(n9(t).map(o=>[Dp(e,o),!0])),i={onDeleteValue:lo};return Cg(e.configFileCache,r,i),Cg(e.projectStatus,r,i),Cg(e.builderPrograms,r,i),Cg(e.diagnostics,r,i),Cg(e.projectPendingBuild,r,i),Cg(e.projectErrorsReported,r,i),Cg(e.buildInfoCache,r,i),Cg(e.outputTimeStamps,r,i),e.watch&&(Cg(e.allWatchedConfigFiles,r,{onDeleteValue:Xm}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),Cg(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(rh)}),Cg(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Xm)}),Cg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Xm)})),e.buildOrder=t}function i0e(e,t,r){const i=t&&sL(e,t),o=c6(e);if(d2(o))return o;if(i){const c=Dp(e,i);if(mi(o,d=>Dp(e,d)===c)===-1)return}const s=i?r0e(e,[i]):o;return D.assert(!d2(s)),D.assert(!r||i!==void 0),D.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function a0e(e){e.cache&&A$(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:c,originalDirectoryExists:f,originalCreateDirectory:d,originalWriteFile:v,getSourceFileWithCache:h,readFileWithCache:E}=Z8(r,C=>Xd(e,C),(...C)=>o.call(t,...C));e.readFileWithCache=E,t.getSourceFile=h,e.cache={originalReadFile:s,originalFileExists:c,originalDirectoryExists:f,originalCreateDirectory:d,originalWriteFile:v,originalReadFileWithCache:i,originalGetSourceFile:o}}function A$(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:c}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s==null||s.clear(),c==null||c.clear(),e.cache=void 0}function o0e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function s0e({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||i<r)&&e.set(t,r)}function l0e(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&F$(e,_.Starting_compilation_in_watch_mode),a0e(e),n9(c6(e)).forEach(i=>e.projectPendingBuild.set(Dp(e,i),0)),t&&t.throwIfCancellationRequested()}function c0e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function $9e(e,t,r,i,o){let s=!0;return{kind:2,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{g0e(e,i,r),s=!1},done:()=>(s&&g0e(e,i,r),ll("SolutionBuilder::Timestamps only updates"),c0e(e,r))}}function u0e(e,t,r,i,o,s,c){let f=e===0?0:4,d,v,h;return e===0?{kind:e,project:r,projectPath:i,buildOrder:c,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>C(yl),getProgram:()=>C(M=>M.getProgramOrUndefined()),getSourceFile:M=>C(de=>de.getSourceFile(M)),getSourceFiles:()=>L(M=>M.getSourceFiles()),getOptionsDiagnostics:M=>L(de=>de.getOptionsDiagnostics(M)),getGlobalDiagnostics:M=>L(de=>de.getGlobalDiagnostics(M)),getConfigFileParsingDiagnostics:()=>L(M=>M.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(M,de)=>L(re=>re.getSyntacticDiagnostics(M,de)),getAllDependencies:M=>L(de=>de.getAllDependencies(M)),getSemanticDiagnostics:(M,de)=>L(re=>re.getSemanticDiagnostics(M,de)),getSemanticDiagnosticsOfNextAffectedFile:(M,de)=>C(re=>re.getSemanticDiagnosticsOfNextAffectedFile&&re.getSemanticDiagnosticsOfNextAffectedFile(M,de)),emit:(M,de,re,be,ae)=>{if(M||be)return C(W=>{var ce,me;return W.emit(M,de,re,be,ae||((me=(ce=t.host).getCustomTransformers)==null?void 0:me.call(ce,r)))});if($(2,re),f===5)return H(de,re);if(f===3)return V(de,re,ae)},done:E}:{kind:e,project:r,projectPath:i,buildOrder:c,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(M,de)=>f!==4?h:Y(M,de),done:E};function E(M,de,re){return $(8,M,de,re),ll(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),c0e(t,i)}function C(M){return $(0),d&&M(d)}function L(M){return C(M)||rt}function I(){var M,de;if(D.assert(d===void 0),t.options.dry){Xu(t,_.A_non_dry_build_would_build_project_0,r),v=1,f=7;return}if(t.options.verbose&&Xu(t,_.Building_project_0,r),s.fileNames.length===0){lL(t,i,tS(s)),v=0,f=7;return}const{host:re,compilerHost:be}=t;t.projectCompilerOptions=s.options,(M=t.moduleResolutionCache)==null||M.update(s.options),(de=t.typeReferenceDirectiveResolutionCache)==null||de.update(s.options),d=re.createProgram(s.fileNames,s.options,be,Z9e(t,i,s),tS(s),s.projectReferences),t.watch&&(t.lastCachedPackageJsonLookups.set(i,t.moduleResolutionCache&&zt(t.moduleResolutionCache.getPackageJsonInfoCache().entries(),([ae,W])=>[t.host.realpath&&W?Xd(t,t.host.realpath(ae)):ae,W])),t.builderPrograms.set(i,d)),f++}function O(M,de,re){M.length?{buildResult:v,step:f}=I$(t,i,d,s,M,de,re):f++}function k(M){D.assertIsDefined(d),O([...d.getConfigFileParsingDiagnostics(),...d.getOptionsDiagnostics(M),...d.getGlobalDiagnostics(M),...d.getSyntacticDiagnostics(void 0,M)],8,"Syntactic")}function G(M){O(D.checkDefined(d).getSemanticDiagnostics(void 0,M),16,"Semantic")}function V(M,de,re){var be,ae,W;D.assertIsDefined(d),D.assert(f===3);const ce=d.saveEmitState();let me;const Ee=st=>(me||(me=[])).push(st),xe=[],{emitResult:te}=$F(d,Ee,void 0,void 0,(st,Ct,Et,Vt,tt,at)=>xe.push({name:st,text:Ct,writeByteOrderMark:Et,data:at}),de,!1,re||((ae=(be=t.host).getCustomTransformers)==null?void 0:ae.call(be,r)));if(me)return d.restoreEmitState(ce),{buildResult:v,step:f}=I$(t,i,d,s,me,32,"Declaration file"),{emitSkipped:!0,diagnostics:te.diagnostics};const{host:Qe,compilerHost:Ve}=t,Ge=(W=d.hasChangedEmitSignature)!=null&&W.call(d)?0:2,ze=hC(),Oe=new Map,Me=d.getCompilerOptions(),Ye=vO(Me);let We,Fe;return xe.forEach(({name:st,text:Ct,writeByteOrderMark:Et,data:Vt})=>{const tt=Xd(t,st);Oe.set(Xd(t,st),st),Vt!=null&&Vt.buildInfo&&w$(t,Vt.buildInfo,i,Me,Ge);const at=Vt!=null&&Vt.differsOnlyInMap?fx(t.host,st):void 0;vk(M?{writeFile:M}:Ve,ze,st,Ct,Et),Vt!=null&&Vt.differsOnlyInMap?t.host.setModifiedTime(st,at):!Ye&&t.watch&&(We||(We=k$(t,i))).set(tt,Fe||(Fe=l6(t.host)))}),ne(ze,Oe,xe.length?xe[0].name:AY(s,!Qe.useCaseSensitiveFileNames()),Ge),te}function H(M,de){D.assertIsDefined(d),D.assert(f===5);const re=d.emitBuildInfo((be,ae,W,ce,me,Ee)=>{Ee!=null&&Ee.buildInfo&&w$(t,Ee.buildInfo,i,d.getCompilerOptions(),2),M?M(be,ae,W,ce,me,Ee):t.compilerHost.writeFile(be,ae,W,ce,me,Ee)},de);return re.diagnostics.length&&(d6(t,re.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...re.diagnostics]),v=64&v),re.emittedFiles&&t.write&&re.emittedFiles.forEach(be=>_0e(t,s,be)),L$(t,d,s),f=7,re}function ne(M,de,re,be){const ae=M.getDiagnostics();return ae.length?({buildResult:v,step:f}=I$(t,i,d,s,ae,64,"Emit"),ae):(t.write&&de.forEach(W=>_0e(t,s,W)),h0e(t,s,i,_.Updating_unchanged_output_timestamps_of_project_0,de),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:re}),L$(t,d,s),f=7,v=be,ae)}function Y(M,de){var re,be,ae,W;if(D.assert(e===1),t.options.dry){Xu(t,_.A_non_dry_build_would_update_output_of_project_0,r),v=1,f=7;return}t.options.verbose&&Xu(t,_.Updating_output_of_project_0,r);const{compilerHost:ce}=t;t.projectCompilerOptions=s.options,(be=(re=t.host).beforeEmitBundle)==null||be.call(re,s);const me=uve(s,ce,Ge=>{const ze=sL(t,Ge.path);return rS(t,ze,Dp(t,ze))},de||((W=(ae=t.host).getCustomTransformers)==null?void 0:W.call(ae,r)));if(Ha(me))return Xu(t,_.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,Gc(t,me)),f=6,h=u0e(0,t,r,i,o,s,c);D.assert(!!me.length);const Ee=hC(),xe=new Map;let te=2;const Qe=t.buildInfoCache.get(i).buildInfo||void 0;return me.forEach(({name:Ge,text:ze,writeByteOrderMark:Oe,data:Me})=>{var Ye,We;xe.set(Xd(t,Ge),Ge),Me!=null&&Me.buildInfo&&(((Ye=Me.buildInfo.program)==null?void 0:Ye.outSignature)!==((We=Qe==null?void 0:Qe.program)==null?void 0:We.outSignature)&&(te&=-3),w$(t,Me.buildInfo,i,s.options,te)),vk(M?{writeFile:M}:ce,Ee,Ge,ze,Oe)}),{emitSkipped:!1,diagnostics:ne(Ee,xe,me[0].name,te)}}function $(M,de,re,be){for(;f<=M&&f<8;){const ae=f;switch(f){case 0:I();break;case 1:k(de);break;case 2:G(de);break;case 3:V(re,de,be);break;case 5:H(re,de);break;case 4:Y(re,be);break;case 6:D.checkDefined(h).done(de,re,be),f=8;break;case 7:rBe(t,r,i,o,s,c,D.checkDefined(v)),f++;break}D.assert(f>ae)}}}function Q9e({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!tS(r).length||!vO(r.options)}function d0e(e,t,r){if(!e.projectPendingBuild.size||d2(t))return;const{options:i,projectPendingBuild:o}=e;for(let s=0;s<t.length;s++){const c=t[s],f=Dp(e,c),d=e.projectPendingBuild.get(f);if(d===void 0)continue;r&&(r=!1,L0e(e,t));const v=rS(e,c,f);if(!v){A0e(e,f),o.delete(f);continue}d===2?(E0e(e,c,f,v),T0e(e,f,v),S0e(e,c,f,v),P$(e,c,f,v),M$(e,c,f,v)):d===1&&(v.fileNames=x8(v.options.configFile.configFileSpecs,yi(c),v.options,e.parseConfigFileHost),aX(v.fileNames,c,v.options.configFile.configFileSpecs,v.errors,T8(v.raw)),P$(e,c,f,v),M$(e,c,f,v));const h=N$(e,v,f);if(!i.force){if(h.type===1){a9(e,c,h),lL(e,f,tS(v)),o.delete(f),i.dry&&Xu(e,_.Project_0_is_up_to_date,c);continue}if(h.type===2||h.type===15)return lL(e,f,tS(v)),{kind:2,status:h,project:c,projectPath:f,projectIndex:s,config:v}}if(h.type===12){a9(e,c,h),lL(e,f,tS(v)),o.delete(f),i.verbose&&Xu(e,h.upstreamProjectBlocked?_.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:_.Skipping_build_of_project_0_because_its_dependency_1_has_errors,c,h.upstreamProjectName);continue}if(h.type===16){a9(e,c,h),lL(e,f,tS(v)),o.delete(f);continue}return{kind:Q9e(e,h,v)?0:1,status:h,project:c,projectPath:f,projectIndex:s,config:v}}}function f0e(e,t,r){return a9(e,t.project,t.status),t.kind!==2?u0e(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,r):$9e(e,t.project,t.projectPath,t.config,r)}function C$(e,t,r){const i=d0e(e,t,r);return i&&f0e(e,i,t)}function _0e({write:e},t,r){e&&t.options.listEmittedFiles&&e(`TSFILE: ${r}`)}function Z9e({options:e,builderPrograms:t,compilerHost:r},i,o){if(e.force)return;const s=t.get(i);return s||t9(o.options,r)}function L$(e,t,r){t?(e.write&&d$(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(r),e.projectCompilerOptions=e.baseCompilerOptions}function I$(e,t,r,i,o,s,c){const f=r&&!Ks(r.getCompilerOptions());return lL(e,t,o),e.projectStatus.set(t,{type:0,reason:`${c} errors`}),f?{buildResult:s,step:5}:(L$(e,r,i),{buildResult:s,step:7})}function r9(e){return!!e.watcher}function p0e(e,t){const r=Xd(e,t),i=e.filesWatched.get(r);if(e.watch&&i){if(!r9(i))return i;if(i.modifiedTime)return i.modifiedTime}const o=fx(e.host,t);return e.watch&&(i?i.modifiedTime=o:e.filesWatched.set(r,o)),o}function i9(e,t,r,i,o,s,c){const f=Xd(e,t),d=e.filesWatched.get(f);if(d&&r9(d))d.callbacks.push(r);else{const v=e.watchFile(t,(h,E,C)=>{const L=D.checkDefined(e.filesWatched.get(f));D.assert(r9(L)),L.modifiedTime=C,L.callbacks.forEach(I=>I(h,E,C))},i,o,s,c);e.filesWatched.set(f,{callbacks:[r],watcher:v,modifiedTime:d})}return{close:()=>{const v=D.checkDefined(e.filesWatched.get(f));D.assert(r9(v)),v.callbacks.length===1?(e.filesWatched.delete(f),rh(v)):PR(v.callbacks,r)}}}function k$(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function w$(e,t,r,i,o){const s=Uy(i),c=D$(e,s,r),f=l6(e.host);c?(c.buildInfo=t,c.modifiedTime=f,o&2||(c.latestChangedDtsTime=f)):e.buildInfoCache.set(r,{path:Xd(e,s),buildInfo:t,modifiedTime:f,latestChangedDtsTime:o&2?void 0:f})}function D$(e,t,r){const i=Xd(e,t),o=e.buildInfoCache.get(r);return(o==null?void 0:o.path)===i?o:void 0}function m0e(e,t,r,i){const o=Xd(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;const c=e.readFileWithCache(t),f=c?wF(t,c):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:f||!1,modifiedTime:i||pg}),f}function R$(e,t,r,i){const o=p0e(e,t);if(r<o)return{type:6,outOfDateOutputFileName:i,newerInputFileName:t}}function eBe(e,t,r){var i,o;if(!t.fileNames.length&&!T8(t.raw))return{type:16};let s;const c=!!e.options.force;if(t.projectReferences){e.projectStatus.set(r,{type:13});for(const re of t.projectReferences){const be=Dw(re),ae=Dp(e,be),W=rS(e,be,ae),ce=N$(e,W,ae);if(!(ce.type===13||ce.type===16)){if(ce.type===0||ce.type===12)return{type:12,upstreamProjectName:re.path,upstreamProjectBlocked:ce.type===12};if(ce.type!==1)return{type:11,upstreamProjectName:re.path};c||(s||(s=[])).push({ref:re,refStatus:ce,resolvedRefPath:ae,resolvedConfig:W})}}}if(c)return{type:17};const{host:f}=e,d=Uy(t.options);let v,h=k0e,E,C,L;if(d){const re=D$(e,d,r);if(E=(re==null?void 0:re.modifiedTime)||fx(f,d),E===pg)return re||e.buildInfoCache.set(r,{path:Xd(e,d),buildInfo:!1,modifiedTime:E}),{type:4,missingOutputFileName:d};const be=m0e(e,d,r,E);if(!be)return{type:5,fileName:d};if((be.bundle||be.program)&&be.version!==ve)return{type:14,version:be.version};if(be.program){if((i=be.program.changeFileSet)!=null&&i.length||(t.options.noEmit?kt(be.program.semanticDiagnosticsPerFile,Va):(o=be.program.affectedFilesPendingEmit)!=null&&o.length))return{type:8,buildInfoFile:d};if(!t.options.noEmit&&aL(t.options,be.program.options||{}))return{type:9,buildInfoFile:d};C=be.program}h=E,v=d}let I,O=I0e,k=!1;const G=new Set;for(const re of t.fileNames){const be=p0e(e,re);if(be===pg)return{type:0,reason:`${re} does not exist`};if(E&&E<be){let ae,W;if(C){L||(L=i$(C,d,f)),ae=L.fileInfos.get(Xd(e,re));const ce=ae?e.readFileWithCache(re):void 0;W=ce!==void 0?QF(f,ce):void 0,ae&&ae===W&&(k=!0)}if(!ae||ae!==W)return{type:6,outOfDateOutputFileName:d,newerInputFileName:re}}be>O&&(I=re,O=be),C&&G.add(Xd(e,re))}if(C){L||(L=i$(C,d,f));for(const re of L.roots)if(!G.has(re))return{type:10,buildInfoFile:d,inputFile:re}}if(!d){const re=IF(t,!f.useCaseSensitiveFileNames()),be=k$(e,r);for(const ae of re){const W=Xd(e,ae);let ce=be==null?void 0:be.get(W);if(ce||(ce=fx(e.host,ae),be==null||be.set(W,ce)),ce===pg)return{type:4,missingOutputFileName:ae};if(ce<O)return{type:6,outOfDateOutputFileName:ae,newerInputFileName:I};ce<h&&(h=ce,v=ae)}}const V=e.buildInfoCache.get(r);let H=!1,ne=!1,Y;if(s)for(const{ref:re,refStatus:be,resolvedConfig:ae,resolvedRefPath:W}of s){if(ne=ne||!!re.prepend,be.newestInputFileTime&&be.newestInputFileTime<=h)continue;if(V&&tBe(e,V,W))return{type:7,outOfDateOutputFileName:d,newerProjectName:re.path};const ce=nBe(e,ae.options,W);if(ce&&ce<=h){H=!0,Y=re.path;continue}return D.assert(v!==void 0,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:v,newerProjectName:re.path}}const $=R$(e,t.options.configFilePath,h,v);if($)return $;const M=Je(t.options.configFile.extendedSourceFiles||rt,re=>R$(e,re,h,v));if(M)return M;const de=Je(e.lastCachedPackageJsonLookups.get(r)||rt,([re])=>R$(e,re,h,v));return de||(ne&&H?{type:3,outOfDateOutputFileName:v,newerProjectName:Y}:{type:H?2:k?15:1,newestInputFileTime:O,newestInputFileName:I,oldestOutputFileName:v})}function tBe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function N$(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(r);if(i!==void 0)return i;ll("SolutionBuilder::beforeUpToDateCheck");const o=eBe(e,t,r);return ll("SolutionBuilder::afterUpToDateCheck"),n_("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function h0e(e,t,r,i,o){if(t.options.noEmit)return;let s;const c=Uy(t.options);if(c){o!=null&&o.has(Xd(e,c))||(e.options.verbose&&Xu(e,i,t.options.configFilePath),e.host.setModifiedTime(c,s=l6(e.host)),D$(e,c,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}const{host:f}=e,d=IF(t,!f.useCaseSensitiveFileNames()),v=k$(e,r),h=v?new Set:void 0;if(!o||d.length!==o.size){let E=!!e.options.verbose;for(const C of d){const L=Xd(e,C);o!=null&&o.has(L)||(E&&(E=!1,Xu(e,i,t.options.configFilePath)),f.setModifiedTime(C,s||(s=l6(e.host))),v&&(v.set(L,s),h.add(L)))}}v==null||v.forEach((E,C)=>{!(o!=null&&o.has(C))&&!h.has(C)&&v.delete(C)})}function nBe(e,t,r){if(!t.composite)return;const i=D.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(Oa(i.buildInfo.program.latestChangedDtsFile,yi(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function g0e(e,t,r){if(e.options.dry)return Xu(e,_.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);h0e(e,t,r,_.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:AY(t,!e.host.useCaseSensitiveFileNames())})}function rBe(e,t,r,i,o,s,c){if(!(c&124)&&o.options.composite)for(let f=i+1;f<s.length;f++){const d=s[f],v=Dp(e,d);if(e.projectPendingBuild.has(v))continue;const h=rS(e,d,v);if(!(!h||!h.projectReferences))for(const E of h.projectReferences){const C=sL(e,E.path);if(Dp(e,C)!==r)continue;const L=e.projectStatus.get(v);if(L)switch(L.type){case 1:if(c&2){E.prepend?e.projectStatus.set(v,{type:3,outOfDateOutputFileName:L.oldestOutputFileName,newerProjectName:t}):L.type=2;break}case 15:case 2:case 3:c&2||e.projectStatus.set(v,{type:7,outOfDateOutputFileName:L.type===3?L.outOfDateOutputFileName:L.oldestOutputFileName,newerProjectName:t});break;case 12:Dp(e,sL(e,L.upstreamProjectName))===r&&o0e(e,v);break}s0e(e,v,0);break}}}function y0e(e,t,r,i,o,s){ll("SolutionBuilder::beforeBuild");const c=iBe(e,t,r,i,o,s);return ll("SolutionBuilder::afterBuild"),n_("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),c}function iBe(e,t,r,i,o,s){const c=i0e(e,t,s);if(!c)return 3;l0e(e,r);let f=!0,d=0;for(;;){const v=C$(e,c,f);if(!v)break;f=!1,v.done(r,i,o==null?void 0:o(v.project)),e.diagnostics.has(v.projectPath)||d++}return A$(e),C0e(e,c),lBe(e,c),d2(c)?4:c.some(v=>e.diagnostics.has(Dp(e,v)))?d?2:1:0}function v0e(e,t,r){ll("SolutionBuilder::beforeClean");const i=aBe(e,t,r);return ll("SolutionBuilder::afterClean"),n_("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function aBe(e,t,r){const i=i0e(e,t,r);if(!i)return 3;if(d2(i))return d6(e,i.circularDiagnostics),4;const{options:o,host:s}=e,c=o.dry?[]:void 0;for(const f of i){const d=Dp(e,f),v=rS(e,f,d);if(v===void 0){A0e(e,d);continue}const h=IF(v,!s.useCaseSensitiveFileNames());if(!h.length)continue;const E=new Set(v.fileNames.map(C=>Xd(e,C)));for(const C of h)E.has(Xd(e,C))||s.fileExists(C)&&(c?c.push(C):(s.deleteFile(C),O$(e,d,0)))}return c&&Xu(e,_.A_non_dry_build_would_delete_the_following_files_Colon_0,c.map(f=>`\r
- * ${f}`).join("")),0}function O$(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,o0e(e,t),s0e(e,t,r),a0e(e)}function u6(e,t,r){e.reportFileChangeDetected=!0,O$(e,t,r),b0e(e,250,!0)}function b0e(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(oBe,t,e,r))}function oBe(e,t){ll("SolutionBuilder::beforeBuild");const r=sBe(e,t);ll("SolutionBuilder::afterBuild"),n_("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&C0e(e,r)}function sBe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),F$(e,_.File_change_detected_Starting_incremental_compilation));let r=0;const i=c6(e),o=C$(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const s=d0e(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){b0e(e,100,!1);return}f0e(e,s,i).done(),s.kind!==2&&r++}return A$(e),i}function E0e(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,i9(e,t,()=>u6(e,r,2),2e3,i==null?void 0:i.watchOptions,k_.ConfigFile,t))}function T0e(e,t,r){kY(t,r==null?void 0:r.options,e.allWatchedExtendedConfigFiles,(i,o)=>i9(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(c=>u6(e,c,2))},2e3,r==null?void 0:r.watchOptions,k_.ExtendedConfigFile),i=>Xd(e,i))}function S0e(e,t,r,i){e.watch&&RF(x$(e.allWatchedWildcardDirectories,r),new Map(Object.entries(i.wildcardDirectories)),(o,s)=>e.watchDirectory(o,c=>{var f;NF({watchedDirPath:Xd(e,o),fileOrDirectory:c,fileOrDirectoryPath:Xd(e,c),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((f=X9e(e,r))==null?void 0:f.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:d=>e.writeLog(d),toPath:d=>Xd(e,d)})||u6(e,r,1)},s,i==null?void 0:i.watchOptions,k_.WildcardDirectory,t))}function P$(e,t,r,i){e.watch&&EC(x$(e.allWatchedInputFiles,r),y1(i.fileNames,o=>Xd(e,o)),{createNewValue:(o,s)=>i9(e,s,()=>u6(e,r,0),250,i==null?void 0:i.watchOptions,k_.SourceFile,t),onDeleteValue:Xm})}function M$(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||EC(x$(e.allWatchedPackageJsonFiles,r),new Map(e.lastCachedPackageJsonLookups.get(r)),{createNewValue:(o,s)=>i9(e,o,()=>u6(e,r,0),2e3,i==null?void 0:i.watchOptions,k_.PackageJson,t),onDeleteValue:Xm})}function lBe(e,t){if(e.watchAllProjectsPending){ll("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of n9(t)){const i=Dp(e,r),o=rS(e,r,i);E0e(e,r,i,o),T0e(e,i,o),o&&(S0e(e,r,i,o),P$(e,r,i,o),M$(e,r,i,o))}ll("SolutionBuilder::afterWatcherCreation"),n_("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function cBe(e){l_(e.allWatchedConfigFiles,Xm),l_(e.allWatchedExtendedConfigFiles,rh),l_(e.allWatchedWildcardDirectories,t=>l_(t,rh)),l_(e.allWatchedInputFiles,t=>l_(t,Xm)),l_(e.allWatchedPackageJsonFiles,t=>l_(t,Xm))}function x0e(e,t,r,i,o){const s=K9e(e,t,r,i,o);return{build:(c,f,d,v)=>y0e(s,c,f,d,v),clean:c=>v0e(s,c),buildReferences:(c,f,d,v)=>y0e(s,c,f,d,v,!0),cleanReferences:c=>v0e(s,c,!0),getNextInvalidatedProject:c=>(l0e(s,c),C$(s,c6(s),!1)),getBuildOrder:()=>c6(s),getUpToDateStatusOfProject:c=>{const f=sL(s,c),d=Dp(s,f);return N$(s,rS(s,f,d),d)},invalidateProject:(c,f)=>O$(s,c,f||0),close:()=>cBe(s)}}function Gc(e,t){return FI(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Xu(e,t,...r){e.host.reportSolutionBuilderStatus(Gs(t,...r))}function F$(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Gs(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function d6({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function lL(e,t,r){d6(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function A0e(e,t){lL(e,t,[e.configFileCache.get(t)])}function C0e(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,s=[];d2(t)?(L0e(e,t.buildOrder),d6(e,t.circularDiagnostics),r&&(o+=XF(t.circularDiagnostics)),r&&(s=[...s,...YF(t.circularDiagnostics)])):(t.forEach(c=>{const f=Dp(e,c);e.projectErrorsReported.has(f)||d6(e,i.get(f)||rt)}),r&&i.forEach(c=>o+=XF(c)),r&&i.forEach(c=>[...s,...YF(c)])),e.watch?F$(e,u$(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function L0e(e,t){e.options.verbose&&Xu(e,_.Projects_in_this_build_Colon_0,t.map(r=>`\r
- * `+Gc(e,r)).join(""))}function uBe(e,t,r){switch(r.type){case 6:return Xu(e,_.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Gc(e,t),Gc(e,r.outOfDateOutputFileName),Gc(e,r.newerInputFileName));case 7:return Xu(e,_.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Gc(e,t),Gc(e,r.outOfDateOutputFileName),Gc(e,r.newerProjectName));case 4:return Xu(e,_.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Gc(e,t),Gc(e,r.missingOutputFileName));case 5:return Xu(e,_.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Gc(e,t),Gc(e,r.fileName));case 8:return Xu(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Gc(e,t),Gc(e,r.buildInfoFile));case 9:return Xu(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Gc(e,t),Gc(e,r.buildInfoFile));case 10:return Xu(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Gc(e,t),Gc(e,r.buildInfoFile),Gc(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Xu(e,_.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Gc(e,t),Gc(e,r.newestInputFileName||""),Gc(e,r.oldestOutputFileName||""));break;case 3:return Xu(e,_.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Gc(e,t),Gc(e,r.newerProjectName));case 2:return Xu(e,_.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Gc(e,t));case 15:return Xu(e,_.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Gc(e,t));case 11:return Xu(e,_.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Gc(e,t),Gc(e,r.upstreamProjectName));case 12:return Xu(e,r.upstreamProjectBlocked?_.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:_.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Gc(e,t),Gc(e,r.upstreamProjectName));case 0:return Xu(e,_.Failed_to_parse_file_0_Colon_1,Gc(e,t),r.reason);case 14:return Xu(e,_.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Gc(e,t),r.version,ve);case 17:return Xu(e,_.Project_0_is_being_forcibly_rebuilt,Gc(e,t))}}function a9(e,t,r){e.options.verbose&&uBe(e,t,r)}var I0e,k0e,B$,dBe=S({"src/compiler/tsbuildPublic.ts"(){Na(),Na(),A1(),I0e=new Date(-864e13),k0e=new Date(864e13),B$=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(B$||{})}}),Na=S({"src/compiler/_namespaces/ts.ts"(){ct(),W6e(),z6e(),tPe(),iPe(),aPe(),hPe(),Due(),LPe(),PPe(),MPe(),VPe(),l4e(),LMe(),IMe(),kMe(),wMe(),jMe(),qMe(),JMe(),d3e(),W3e(),z3e(),n7e(),k7e(),a5e(),d5e(),f5e(),S5e(),k5e(),B5e(),z5e(),iFe(),aFe(),oFe(),fFe(),_Fe(),pFe(),mFe(),hFe(),gFe(),yFe(),vFe(),bFe(),EFe(),TFe(),SFe(),xFe(),AFe(),LFe(),IFe(),kFe(),wFe(),DFe(),RFe(),BFe(),WFe(),t9e(),i9e(),u9e(),d9e(),f9e(),L9e(),w9e(),R9e(),F9e(),U9e(),V9e(),dBe(),WX(),A1()}});function w0e(e,t){return new j_(wR(t,`ts${_e}`)||wR(t,"latest")).compareTo(e.version)<=0}function D0e(e){return H$.has(e)?"node":e}function fBe(e,t){const r=y8(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function _Be(e,t){var r;const i=y8(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function pBe(e,t,r,i,o,s,c,f,d,v){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const h=new Map;r=pa(r,ne=>{const Y=Ko(ne);if(Mx(Y))return Y});const E=[];c.include&&G(c.include,"Explicitly included types");const C=c.exclude||[];if(!v.types){const ne=new Set(r.map(yi));ne.add(i),ne.forEach(Y=>{V(Y,"bower.json","bower_components",E),V(Y,"package.json","node_modules",E)})}if(c.disableFilenameBasedTypeAcquisition||H(r),f){const ne=NA(f.map(D0e),ox,Uu);G(ne,"Inferred typings from unresolved imports")}s.forEach((ne,Y)=>{const $=d.get(Y);h.has(Y)&&h.get(Y)===void 0&&$!==void 0&&w0e(ne,$)&&h.set(Y,ne.typingLocation)});for(const ne of C)h.delete(ne)&&t&&t(`Typing for ${ne} is in exclude list, will be ignored.`);const L=[],I=[];h.forEach((ne,Y)=>{ne!==void 0?I.push(ne):L.push(Y)});const O={cachedTypingPaths:I,newTypingNames:L,filesToWatch:E};return t&&t(`Result: ${JSON.stringify(O)}`),O;function k(ne){h.has(ne)||h.set(ne,void 0)}function G(ne,Y){t&&t(`${Y}: ${JSON.stringify(ne)}`),Je(ne,k)}function V(ne,Y,$,M){const de=Bi(ne,Y);let re,be;e.fileExists(de)&&(M.push(de),re=y8(de,me=>e.readFile(me)).config,be=Ga([re.dependencies,re.devDependencies,re.optionalDependencies,re.peerDependencies],_g),G(be,`Typing names in '${de}' dependencies`));const ae=Bi(ne,$);if(M.push(ae),!e.directoryExists(ae))return;const W=[],ce=be?be.map(me=>Bi(ae,me,Y)):e.readDirectory(ae,[".json"],void 0,void 0,3).filter(me=>{if(Eu(me)!==Y)return!1;const Ee=pd(Ko(me)),xe=Ee[Ee.length-3][0]==="@";return xe&&V_(Ee[Ee.length-4])===$||!xe&&V_(Ee[Ee.length-3])===$});t&&t(`Searching for typing names in ${ae}; all files: ${JSON.stringify(ce)}`);for(const me of ce){const Ee=Ko(me),te=y8(Ee,Ve=>e.readFile(Ve)).config;if(!te.name)continue;const Qe=te.types||te.typings;if(Qe){const Ve=Oa(Qe,yi(Ee));e.fileExists(Ve)?(t&&t(` Package '${te.name}' provides its own types.`),h.set(te.name,Ve)):t&&t(` Package '${te.name}' provides its own types but they are missing.`)}else W.push(te.name)}G(W," Found package names")}function H(ne){const Y=pa(ne,M=>{if(!Mx(M))return;const de=qd(V_(Eu(M))),re=rue(de);return o.get(re)});Y.length&&G(Y,"Inferred typings from file names"),kt(ne,M=>hc(M,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),k("react"))}}function mBe(e){return G$(e,!0)}function G$(e,t){if(!e)return 1;if(e.length>z$)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){const i=G$(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const o=G$(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function hBe(e,t){return typeof e=="object"?R0e(t,e.result,e.name,e.isScopeName):R0e(t,e,t,!1)}function R0e(e,t,r,i){const o=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${r}' cannot be empty`;case 2:return`'${e}':: ${o} name '${r}' should be less than ${z$} characters`;case 3:return`'${e}':: ${o} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${r}' contains non URI safe characters`;case 0:return D.fail();default:throw D.assertNever(t)}}var U$,V$,j$,H$,W$,z$,gBe=S({"src/jsTyping/jsTyping.ts"(){o9(),U$=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],V$=U$.map(e=>`node:${e}`),j$=[...U$,...V$],H$=new Set(j$),W$=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(W$||{}),z$=214}}),iS={};X(iS,{NameValidationResult:()=>W$,discoverTypings:()=>pBe,isTypingUpToDate:()=>w0e,loadSafeList:()=>fBe,loadTypesMap:()=>_Be,nodeCoreModuleList:()=>j$,nodeCoreModules:()=>H$,nonRelativeModuleNameForTypingCache:()=>D0e,prefixedNodeCoreModuleList:()=>V$,renderPackageNameValidationFailure:()=>hBe,validatePackageName:()=>mBe});var yBe=S({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){gBe()}});function vBe(e){return nu.args.indexOf(e)>=0}function bBe(e){const t=nu.args.indexOf(e);return t>=0&&t<nu.args.length-1?nu.args[t+1]:void 0}function EBe(){const e=new Date;return`${sx(e.getHours().toString(),2,"0")}:${sx(e.getMinutes().toString(),2,"0")}:${sx(e.getSeconds().toString(),2,"0")}.${sx(e.getMilliseconds().toString(),3,"0")}`}var N0e,O0e,P0e,M0e,F0e,B0e,G0e,q$,TBe=S({"src/jsTyping/shared.ts"(){o9(),N0e="action::set",O0e="action::invalidate",P0e="action::packageInstalled",M0e="event::typesRegistry",F0e="event::beginInstallTypes",B0e="event::endInstallTypes",G0e="event::initializationFailed",(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(q$||(q$={}))}}),SBe=S({"src/jsTyping/types.ts"(){}}),U0e={};X(U0e,{ActionInvalidate:()=>O0e,ActionPackageInstalled:()=>P0e,ActionSet:()=>N0e,Arguments:()=>q$,EventBeginInstallTypes:()=>F0e,EventEndInstallTypes:()=>B0e,EventInitializationFailed:()=>G0e,EventTypesRegistry:()=>M0e,findArgument:()=>bBe,hasArgument:()=>vBe,nowString:()=>EBe});var xBe=S({"src/jsTyping/_namespaces/ts.server.ts"(){TBe(),SBe()}}),o9=S({"src/jsTyping/_namespaces/ts.ts"(){Na(),yBe(),xBe()}});function V0e(e){return{indentSize:4,tabSize:4,newLineCharacter:e||`
- `,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0}}var J$,K$,X$,Y$,mm,$$,Q$,Z$,eQ,tQ,nQ,rQ,j0e,f6,iQ,aQ,oQ,sQ,lQ,cQ,uQ,dQ,fQ,ABe=S({"src/services/types.ts"(){(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(J$||(J$={})),K$=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(K$||{}),X$=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(X$||{}),Y$=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(Y$||{}),mm={},$$=(e=>(e.Original="original",e.TwentyTwenty="2020",e))($$||{}),Q$=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(Q$||{}),Z$=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Z$||{}),eQ=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(eQ||{}),tQ=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(tQ||{}),nQ=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(nQ||{}),rQ=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(rQ||{}),j0e=V0e(`
- `),f6=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(f6||{}),iQ=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(iQ||{}),aQ=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(aQ||{}),oQ=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(oQ||{}),sQ=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(sQ||{}),lQ=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(lQ||{}),cQ=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(cQ||{}),uQ=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(uQ||{}),dQ=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(dQ||{}),fQ=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(fQ||{})}});function _6(e){switch(e.kind){case 257:return fr(e)&&oz(e)?7:1;case 166:case 205:case 169:case 168:case 299:case 300:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 295:case 288:return 1;case 165:case 261:case 262:case 184:return 2;case 349:return e.name===void 0?3:2;case 302:case 260:return 3;case 264:return ju(e)||Dg(e)===1?5:4;case 263:case 272:case 273:case 268:case 269:case 274:case 275:return 7;case 308:return 5}return 7}function aS(e){e=xQ(e);const t=e.parent;return e.kind===308?1:Vl(t)||gd(t)||eh(t)||Nd(t)||Zm(t)||_u(t)&&e===t.name?7:s9(e)?CBe(e):Ag(e)?_6(t):ff(e)&&rr(e,Fm(sw,vx,vb))?7:wBe(e)?2:LBe(e)?4:Ul(t)?(D.assert(kp(t.parent)),2):gb(t)?3:1}function CBe(e){const t=e.kind===163?e:Rd(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===268?7:4}function s9(e){for(;e.parent.kind===163;)e=e.parent;return aC(e.parent)&&e.parent.moduleReference===e}function LBe(e){return IBe(e)||kBe(e)}function IBe(e){let t=e,r=!0;if(t.parent.kind===163){for(;t.parent&&t.parent.kind===163;)t=t.parent;r=t.right===e}return t.parent.kind===180&&!r}function kBe(e){let t=e,r=!0;if(t.parent.kind===208){for(;t.parent&&t.parent.kind===208;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===230&&t.parent.parent.kind===294){const i=t.parent.parent.parent;return i.kind===260&&t.parent.parent.token===117||i.kind===261&&t.parent.parent.token===94}return!1}function wBe(e){switch(Ak(e)&&(e=e.parent),e.kind){case 108:return!Sg(e);case 194:return!0}switch(e.parent.kind){case 180:return!0;case 202:return!e.parent.isTypeOf;case 230:return Ih(e.parent)}return!1}function _Q(e,t=!1,r=!1){return Ow(e,io,l9,t,r)}function Nw(e,t=!1,r=!1){return Ow(e,X1,l9,t,r)}function pQ(e,t=!1,r=!1){return Ow(e,bg,l9,t,r)}function H0e(e,t=!1,r=!1){return Ow(e,VT,DBe,t,r)}function W0e(e,t=!1,r=!1){return Ow(e,Wu,l9,t,r)}function z0e(e,t=!1,r=!1){return Ow(e,od,RBe,t,r)}function l9(e){return e.expression}function DBe(e){return e.tag}function RBe(e){return e.tagName}function Ow(e,t,r,i,o){let s=i?q0e(e):c9(e);return o&&(s=Cu(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function c9(e){return cL(e)?e.parent:e}function q0e(e){return cL(e)||yQ(e)?e.parent:e}function u9(e,t){for(;e;){if(e.kind===253&&e.label.escapedText===t)return e.label;e=e.parent}}function p6(e,t){return Fr(e.expression)?e.expression.name.text===t:!1}function m6(e){var t;return je(e)&&((t=si(e.parent,YI))==null?void 0:t.label)===e}function mQ(e){var t;return je(e)&&((t=si(e.parent,Y1))==null?void 0:t.label)===e}function hQ(e){return mQ(e)||m6(e)}function gQ(e){var t;return((t=si(e.parent,tk))==null?void 0:t.tagName)===e}function J0e(e){var t;return((t=si(e.parent,Rd))==null?void 0:t.right)===e}function cL(e){var t;return((t=si(e.parent,Fr))==null?void 0:t.name)===e}function yQ(e){var t;return((t=si(e.parent,fl))==null?void 0:t.argumentExpression)===e}function vQ(e){var t;return((t=si(e.parent,$l))==null?void 0:t.name)===e}function bQ(e){var t;return je(e)&&((t=si(e.parent,Xa))==null?void 0:t.name)===e}function d9(e){switch(e.parent.kind){case 169:case 168:case 299:case 302:case 171:case 170:case 174:case 175:case 264:return Ia(e.parent)===e;case 209:return e.parent.argumentExpression===e;case 164:return!0;case 198:return e.parent.parent.kind===196;default:return!1}}function K0e(e){return sb(e.parent.parent)&&dk(e.parent.parent)===e}function oS(e){for(S_(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 308:case 171:case 170:case 259:case 215:case 174:case 175:case 260:case 261:case 263:case 264:return e}}}function cE(e){switch(e.kind){case 308:return rc(e)?"module":"script";case 264:return"module";case 260:case 228:return"class";case 261:return"interface";case 262:case 341:case 349:return"type";case 263:return"enum";case 257:return t(e);case 205:return t(qm(e));case 216:case 259:case 215:return"function";case 174:return"getter";case 175:return"setter";case 171:case 170:return"method";case 299:const{initializer:r}=e;return Xa(r)?"method":"property";case 169:case 168:case 300:case 301:return"property";case 178:return"index";case 177:return"construct";case 176:return"call";case 173:case 172:return"constructor";case 165:return"type parameter";case 302:return"enum member";case 166:return $r(e,16476)?"property":"parameter";case 268:case 273:case 278:case 271:case 277:return"alias";case 223:const i=wl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const c=cE(o);return c===""?"const":c;case 3:return Us(o)?"method":"property";case 4:return"property";case 5:return Us(o)?"method":"property";case 6:return"local class";default:return""}case 79:return Zm(e.parent)?"alias":"";case 274:const s=cE(e.expression);return s===""?"const":s;default:return""}function t(r){return Tg(r)?"const":sk(r)?"let":"var"}}function uL(e){switch(e.kind){case 108:return!0;case 79:return Mq(e)&&e.parent.kind===166;default:return!1}}function w_(e,t){const r=hg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function vf(e,t){return EQ(e.pos,e.end,t)}function X0e(e,t){return g6(e,t.pos)&&g6(e,t.end)}function h6(e,t){return e.pos<=t&&t<=e.end}function g6(e,t){return e.pos<t&&t<e.end}function EQ(e,t,r){return e<=r.pos&&t>=r.end}function y6(e,t,r){return e.pos<=t&&e.end>=r}function Pw(e,t,r){return f9(e.pos,e.end,t,r)}function TQ(e,t,r,i){return f9(e.getStart(t),e.end,r,i)}function f9(e,t,r,i){const o=Math.max(e,r),s=Math.min(t,i);return o<s}function SQ(e,t,r){return D.assert(e.pos<=t),t<e.end||!ip(e,r)}function ip(e,t){if(e===void 0||kl(e))return!1;switch(e.kind){case 260:case 261:case 263:case 207:case 203:case 184:case 238:case 265:case 266:case 272:case 276:return _9(e,19,t);case 295:return ip(e.block,t);case 211:if(!e.arguments)return!0;case 210:case 214:case 193:return _9(e,21,t);case 181:case 182:return ip(e.type,t);case 173:case 174:case 175:case 259:case 215:case 171:case 170:case 177:case 176:case 216:return e.body?ip(e.body,t):e.type?ip(e.type,t):v6(e,21,t);case 264:return!!e.body&&ip(e.body,t);case 242:return e.elseStatement?ip(e.elseStatement,t):ip(e.thenStatement,t);case 241:return ip(e.expression,t)||v6(e,26,t);case 206:case 204:case 209:case 164:case 186:return _9(e,23,t);case 178:return e.type?ip(e.type,t):v6(e,23,t);case 292:case 293:return!1;case 245:case 246:case 247:case 244:return ip(e.statement,t);case 243:return v6(e,115,t)?_9(e,21,t):ip(e.statement,t);case 183:return ip(e.exprName,t);case 218:case 217:case 219:case 226:case 227:return ip(e.expression,t);case 212:return ip(e.template,t);case 225:const i=rl(e.templateSpans);return ip(i,t);case 236:return E_(e.literal);case 275:case 269:return E_(e.moduleSpecifier);case 221:return ip(e.operand,t);case 223:return ip(e.right,t);case 224:return ip(e.whenFalse,t);default:return!0}}function _9(e,t,r){const i=e.getChildren(r);if(i.length){const o=Jo(i);if(o.kind===t)return!0;if(o.kind===26&&i.length!==1)return i[i.length-2].kind===t}return!1}function Y0e(e){const t=p9(e);if(!t)return;const r=t.getChildren();return{listItemIndex:$A(r,e),list:t}}function v6(e,t,r){return!!Es(e,t,r)}function Es(e,t,r){return In(e.getChildren(r),i=>i.kind===t)}function p9(e){const t=In(e.parent.getChildren(),r=>qC(r)&&vf(r,e));return D.assert(!t||Ur(t.getChildren(),e)),t}function $0e(e){return e.kind===88}function NBe(e){return e.kind===84}function OBe(e){return e.kind===98}function PBe(e){if(Su(e))return e.name;if(Bc(e)){const t=e.modifiers&&In(e.modifiers,$0e);if(t)return t}if(qu(e)){const t=In(e.getChildren(),NBe);if(t)return t}}function MBe(e){if(Su(e))return e.name;if(xc(e)){const t=In(e.modifiers,$0e);if(t)return t}if(Us(e)){const t=In(e.getChildren(),OBe);if(t)return t}}function FBe(e){let t;return rr(e,r=>(Gi(r)&&(t=r),!Rd(r.parent)&&!Gi(r.parent)&&!vT(r.parent))),t}function m9(e,t){if(e.flags&8388608)return;const r=O9(e,t);if(r)return r;const i=FBe(e);return i&&t.getTypeAtLocation(i)}function BBe(e,t){if(!t)switch(e.kind){case 260:case 228:return PBe(e);case 259:case 215:return MBe(e);case 173:return e}if(Su(e))return e.name}function Q0e(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(My(e.importClause.namedBindings)){const r=Om(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Yv(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function Z0e(e,t){if(e.exportClause){if(tp(e.exportClause))return Om(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Bh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function GBe(e){if(e.types.length===1)return e.types[0].expression}function ebe(e,t){const{parent:r}=e;if(_o(e)&&(t||e.kind!==88)?np(r)&&Ur(r.modifiers,e):e.kind===84?Bc(r)||qu(e):e.kind===98?xc(r)||Us(e):e.kind===118?ud(r):e.kind===92?yb(r):e.kind===154?um(r):e.kind===143||e.kind===142?$l(r):e.kind===100?_u(r):e.kind===137?Z_(r):e.kind===151&&c_(r)){const i=BBe(r,t);if(i)return i}if((e.kind===113||e.kind===85||e.kind===119)&&Ju(r)&&r.declarations.length===1){const i=r.declarations[0];if(je(i.name))return i.name}if(e.kind===154){if(Zm(r)&&r.isTypeOnly){const i=Q0e(r.parent,t);if(i)return i}if(au(r)&&r.isTypeOnly){const i=Z0e(r,t);if(i)return i}}if(e.kind===128){if(Nd(r)&&r.propertyName||gd(r)&&r.propertyName||Yv(r)||Bh(r))return r.name;if(au(r)&&r.exportClause&&Bh(r.exportClause))return r.exportClause.name}if(e.kind===100&&Yc(r)){const i=Q0e(r,t);if(i)return i}if(e.kind===93){if(au(r)){const i=Z0e(r,t);if(i)return i}if(Vl(r))return Cu(r.expression)}if(e.kind===147&&eh(r))return r.expression;if(e.kind===158&&(Yc(r)||au(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===94||e.kind===117)&&Kd(r)&&r.token===e.kind){const i=GBe(r);if(i)return i}if(e.kind===94){if(Ul(r)&&r.constraint&&ep(r.constraint))return r.constraint.typeName;if(MC(r)&&ep(r.extendsType))return r.extendsType.typeName}if(e.kind===138&&FC(r))return r.typeParameter.name;if(e.kind===101&&Ul(r)&&tw(r.parent))return r.name;if(e.kind===141&&Jx(r)&&r.operator===141&&ep(r.type))return r.type.typeName;if(e.kind===146&&Jx(r)&&r.operator===146&&uK(r.type)&&ep(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===103&&X1(r)||e.kind===114&&Xx(r)||e.kind===112&&GC(r)||e.kind===133&&UC(r)||e.kind===125&&m5(r)||e.kind===89&&_me(r))&&r.expression)return Cu(r.expression);if((e.kind===101||e.kind===102)&&br(r)&&r.operatorToken===e)return Cu(r.right);if(e.kind===128&&$O(r)&&ep(r.type))return r.type.typeName;if(e.kind===101&&mK(r)||e.kind===162&&QO(r))return Cu(r.expression)}return e}function xQ(e){return ebe(e,!1)}function h9(e){return ebe(e,!0)}function Vf(e,t){return Mw(e,t,r=>J_(r)||Dd(r.kind)||Oi(r))}function Mw(e,t,r){return tbe(e,t,!1,r,!1)}function oa(e,t){return tbe(e,t,!0,void 0,!1)}function tbe(e,t,r,i,o){let s=e,c;e:for(;;){const d=s.getChildren(e),v=rx(d,t,(h,E)=>E,(h,E)=>{const C=d[h].getEnd();if(C<t)return-1;const L=r?d[h].getFullStart():d[h].getStart(e,!0);return L>t?1:f(d[h],L,C)?d[h-1]&&f(d[h-1])?1:0:i&&L===t&&d[h-1]&&d[h-1].getEnd()===t&&f(d[h-1])?1:-1});if(c)return c;if(v>=0&&d[v]){s=d[v];continue e}return s}function f(d,v,h){if(h!=null||(h=d.getEnd()),h<t||(v!=null||(v=r?d.getFullStart():d.getStart(e,!0)),v>t))return!1;if(t<h||t===h&&(d.kind===1||o))return!0;if(i&&h===t){const E=Dc(t,e,d);if(E&&i(E))return c=E,!0}return!1}}function nbe(e,t){let r=oa(e,t);for(;b6(r);){const i=sS(r,r.parent,e);if(!i)return;r=i}return r}function g9(e,t){const r=oa(e,t);return px(r)&&t>r.getStart(e)&&t<r.getEnd()?r:Dc(t,e)}function sS(e,t,r){return i(t);function i(o){return px(o)&&o.pos===e.end?o:Jt(o.getChildren(r),s=>(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&wQ(s,r)?i(s):void 0)}}function Dc(e,t,r,i){const o=s(r||t);return D.assert(!(o&&b6(o))),o;function s(c){if(rbe(c)&&c.kind!==1)return c;const f=c.getChildren(t),d=rx(f,e,(h,E)=>E,(h,E)=>e<f[h].end?!f[h-1]||e>=f[h-1].end?0:1:-1);if(d>=0&&f[d]){const h=f[d];if(e<h.end)if(h.getStart(t,!i)>=e||!wQ(h,t)||b6(h)){const L=CQ(f,d,t,c.kind);return L&&AQ(L,t)}else return s(h)}D.assert(r!==void 0||c.kind===308||c.kind===1||Lz(c));const v=CQ(f,f.length,t,c.kind);return v&&AQ(v,t)}}function rbe(e){return px(e)&&!b6(e)}function AQ(e,t){if(rbe(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=CQ(r,r.length,t,e.kind);return i&&AQ(i,t)}function CQ(e,t,r,i){for(let o=t-1;o>=0;o--){const s=e[o];if(b6(s))o===0&&(i===11||i===282)&&D.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(wQ(e[o],r))return e[o]}}function lS(e,t,r=Dc(t,e)){if(r&&hz(r)){const i=r.getStart(e),o=r.getEnd();if(i<t&&t<o)return!0;if(t===o)return!!r.isUnterminated}return!1}function ibe(e,t){const r=oa(e,t);return r?!!(r.kind===11||r.kind===29&&r.parent.kind===11||r.kind===29&&r.parent.kind===291||r&&r.kind===19&&r.parent.kind===291||r.kind===29&&r.parent.kind===284):!1}function b6(e){return Vx(e)&&e.containsOnlyTriviaWhiteSpaces}function LQ(e,t){const r=oa(e,t);return Fv(r.kind)&&t>r.getStart(e)}function abe(e,t){const r=oa(e,t);return!!(Vx(r)||r.kind===18&&aw(r.parent)&&Fy(r.parent.parent)||r.kind===29&&od(r.parent)&&Fy(r.parent.parent))}function y9(e,t){function r(i){for(;i;)if(i.kind>=282&&i.kind<=291||i.kind===11||i.kind===29||i.kind===31||i.kind===79||i.kind===19||i.kind===18||i.kind===43)i=i.parent;else if(i.kind===281){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(oa(e,t))}function v9(e,t,r){const i=vo(e.kind),o=vo(t),s=e.getFullStart(),c=r.text.lastIndexOf(o,s);if(c===-1)return;if(r.text.lastIndexOf(i,s-1)<c){const v=Dc(c+1,r);if(v&&v.kind===t)return v}const f=e.kind;let d=0;for(;;){const v=Dc(e.getFullStart(),r);if(!v)return;if(e=v,e.kind===t){if(d===0)return e;d--}else e.kind===f&&d++}}function obe(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function E6(e,t,r){const i=kQ(e,t);return i!==void 0&&(Ih(i.called)||IQ(i.called,i.nTypeArguments,r).length!==0||E6(i.called,t,r))}function IQ(e,t,r){let i=r.getTypeAtLocation(e);return xu(e.parent)&&(i=obe(i,KI(e.parent),!0)),(X1(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(s=>!!s.typeParameters&&s.typeParameters.length>=t)}function kQ(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 29:if(r=Dc(r.getFullStart(),t),r&&r.kind===28&&(r=Dc(r.getFullStart(),t)),!r||!je(r))return;if(!i)return Ag(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(r=v9(r,18,t),!r)return;break;case 21:if(r=v9(r,20,t),!r)return;break;case 23:if(r=v9(r,22,t),!r)return;break;case 27:o++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 141:case 24:case 51:case 57:case 58:break;default:if(Gi(r))break;return}r=Dc(r.getFullStart(),t)}}function Vy(e,t,r){return Rc.getRangeOfEnclosingComment(e,t,void 0,r)}function sbe(e,t){const r=oa(e,t);return!!rr(r,th)}function wQ(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function Fw(e,t=0){const r=[],i=Au(e)?tz(e)&~t:0;return i&8&&r.push("private"),i&16&&r.push("protected"),i&4&&r.push("public"),(i&32||Rl(e))&&r.push("static"),i&256&&r.push("abstract"),i&1&&r.push("export"),i&8192&&r.push("deprecated"),e.flags&16777216&&r.push("declare"),e.kind===274&&r.push("export"),r.length>0?r.join(","):""}function lbe(e){if(e.kind===180||e.kind===210)return e.typeArguments;if(Xa(e)||e.kind===260||e.kind===261)return e.typeParameters}function b9(e){return e===2||e===3}function DQ(e){return!!(e===10||e===13||Fv(e))}function cbe(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&t[0].flags&4&&r.isEmptyAnonymousObjectType(t[1])}function ube(e){return 18<=e&&e<=78}function T6(e,t,r){return Fv(e.kind)&&e.getStart(r)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function RQ(e){switch(e){case 123:case 121:case 122:return!0}return!1}function dbe(e){const t=bH(e);return rX(t,e&&e.configFile),t}function jy(e){return!!((e.kind===206||e.kind===207)&&(e.parent.kind===223&&e.parent.left===e&&e.parent.operatorToken.kind===63||e.parent.kind===247&&e.parent.initializer===e||jy(e.parent.kind===299?e.parent.parent:e.parent)))}function fbe(e,t){return pbe(e,t,!0)}function _be(e,t){return pbe(e,t,!1)}function pbe(e,t,r){const i=Vy(e,t,void 0);return!!i&&r===Xbe.test(e.text.substring(i.pos,i.end))}function NQ(e){if(e)switch(e.kind){case 10:case 14:return OQ(e);default:return dd(e)}}function dd(e,t,r){return Tc(e.getStart(t),(r||e).getEnd())}function OQ(e){if(!e.isUnterminated)return Tc(e.getStart()+1,e.getEnd()-1)}function PQ(e,t){return x_(e.getStart(t),e.end)}function r0(e){return Tc(e.pos,e.end)}function E9(e){return x_(e.start,e.start+e.length)}function T9(e,t,r){return S6(Pc(e,t),r)}function S6(e,t){return{span:e,newText:t}}function Bw(e){return Ur(Y9,e)}function MQ(e){return e.kind===154}function S9(e){return MQ(e)||je(e)&&e.text==="type"}function x6(e){return!!(e.flags&1536)&&e.name.charCodeAt(0)===34}function dL(){const e=[];return t=>{const r=hs(t);return!e[r]&&(e[r]=!0)}}function x9(e){return e.getText(0,e.getLength())}function A6(e,t){let r="";for(let i=0;i<t;i++)r+=e;return r}function FQ(e){return e.isTypeParameter()&&e.getConstraint()||e}function C6(e){return e.kind===164?i_(e.expression)?e.expression.text:void 0:Oi(e)?Mr(e):K_(e)}function mbe(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function hbe(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function BQ(e){return!!e.module||ts(e)>=2||!!e.noEmit}function f2(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Vo(t,t.readFile),useCaseSensitiveFileNames:Vo(t,t.useCaseSensitiveFileNames),getSymlinkCache:Vo(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Vo(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Vo(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:Vo(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function GQ(e,t){return Ka(Ti({},f2(e,t)),{getCommonSourceDirectory:()=>e.getCommonSourceDirectory()})}function A9(e){return e===2||e>=3&&e<=99||e===100}function gbe(e,t,r,i){return e||t&&t.length?Hy(e,t,r,i):void 0}function Hy(e,t,r,i,o){return N.createImportDeclaration(void 0,e||t?N.createImportClause(!!o,e,t&&t.length?N.createNamedImports(t):void 0):void 0,typeof r=="string"?C9(r,i):r,void 0)}function C9(e,t){return N.createStringLiteral(e,t===0)}function UQ(e,t){return W3(e,t)?1:0}function Rp(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&In(e.imports,i=>Ho(i)&&!tl(i.parent));return r?UQ(r,e):1}}function ybe(e){switch(e){case 0:return"'";case 1:return'"';default:return D.assertNever(e)}}function L9(e){const t=I9(e);return t===void 0?void 0:ra(t)}function I9(e){return e.escapedName!=="default"?e.escapedName:Jt(e.declarations,t=>{const r=Ia(t);return r&&r.kind===79?r.escapedText:void 0})}function k9(e){return As(e)&&(eh(e.parent)||Yc(e.parent)||wd(e.parent,!1)&&e.parent.arguments[0]===e||hf(e.parent)&&e.parent.arguments[0]===e)}function L6(e){return ms(e)&&Qm(e.parent)&&je(e.name)&&!e.propertyName}function w9(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function I6(e,t,r){if(e)for(;e.parent;){if(Ji(e.parent)||!UBe(r,e.parent,t))return e;e=e.parent}}function UBe(e,t,r){return ZW(e,t.getStart(r))&&t.getEnd()<=uu(e)}function fL(e,t){return np(e)?In(e.modifiers,r=>r.kind===t):void 0}function D9(e,t,r,i,o){const c=(Va(r)?r[0]:r).kind===240?cq:xT,f=yn(t.statements,c);let d=Va(r)?ap.detectImportDeclarationSorting(r,o):3;const v=ap.getOrganizeImportsComparer(o,d===2),h=Va(r)?vy(r,(E,C)=>ap.compareImportsOrRequireStatements(E,C,v)):[r];if(!f.length)e.insertNodesAtTopOfFile(t,h,i);else if(f&&(d=ap.detectImportDeclarationSorting(f,o))){const E=ap.getOrganizeImportsComparer(o,d===2);for(const C of h){const L=ap.getImportDeclarationInsertionIndex(f,C,E);if(L===0){const I=f[0]===t.statements[0]?{leadingTriviaOption:gr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,f[0],C,!1,I)}else{const I=f[L-1];e.insertNodeAfter(t,I,C)}}}else{const E=rl(f);E?e.insertNodesAfter(t,E,h):e.insertNodesAtTopOfFile(t,h,i)}}function VQ(e,t){return D.assert(e.isTypeOnly),so(e.getChildAt(0,t),MQ)}function _L(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function VBe(e,t){return e.fileName===t.fileName&&_L(e.textSpan,t.textSpan)}function jQ(e,t){if(e){for(let r=0;r<e.length;r++)if(e.indexOf(e[r])===r){const i=t(e[r],r);if(i)return i}}}function vbe(e,t,r){for(let i=t;i<r;i++)if(!gg(e.charCodeAt(i)))return!1;return!0}function k6(e,t,r){const i=t.tryGetSourcePosition(e);return i&&(!r||r(Ko(i.fileName))?i:void 0)}function HQ(e,t,r){const{fileName:i,textSpan:o}=e,s=k6({fileName:i,pos:o.start},t,r);if(!s)return;const c=k6({fileName:i,pos:o.start+o.length},t,r),f=c?c.pos-s.pos:o.length;return{fileName:s.fileName,textSpan:{start:s.pos,length:f},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:bbe(e,t,r),originalContextSpan:e.contextSpan}}function bbe(e,t,r){const i=e.contextSpan&&k6({fileName:e.fileName,pos:e.contextSpan.start},t,r),o=e.contextSpan&&k6({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,r);return i&&o?{start:i.pos,length:o.pos-i.pos}:void 0}function WQ(e){const t=e.declarations?tu(e.declarations):void 0;return!!rr(t,r=>Fa(r)?!0:ms(r)||Qm(r)||BC(r)?!1:"quit")}function jBe(){const e=RO*10;let t,r,i,o;h();const s=E=>f(E,17);return{displayParts:()=>{const E=t.length&&t[t.length-1].text;return o>e&&E&&E!=="..."&&(gg(E.charCodeAt(E.length-1))||t.push(Od(" ",16)),t.push(Od("...",15))),t},writeKeyword:E=>f(E,5),writeOperator:E=>f(E,12),writePunctuation:E=>f(E,15),writeTrailingSemicolon:E=>f(E,15),writeSpace:E=>f(E,16),writeStringLiteral:E=>f(E,8),writeParameter:E=>f(E,13),writeProperty:E=>f(E,14),writeLiteral:E=>f(E,8),writeSymbol:d,writeLine:v,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Wa,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:h};function c(){if(!(o>e)&&r){const E=t7(i);E&&(o+=E.length,t.push(Od(E,16))),r=!1}}function f(E,C){o>e||(c(),o+=E.length,t.push(Od(E,C)))}function d(E,C){o>e||(c(),o+=E.length,t.push(Ebe(E,C)))}function v(){o>e||(o+=1,t.push(pL()),r=!0)}function h(){t=[],r=!0,i=0,o=0}}function Ebe(e,t){return Od(e,r(t));function r(i){const o=i.flags;return o&3?WQ(i)?13:9:o&4||o&32768||o&65536?14:o&8?19:o&16?20:o&32?1:o&64?4:o&384?2:o&1536?11:o&8192?10:o&262144?18:o&524288||o&2097152?0:17}}function Od(e,t){return{text:e,kind:f6[t]}}function Sl(){return Od(" ",16)}function Yd(e){return Od(vo(e),5)}function Iu(e){return Od(vo(e),15)}function Gw(e){return Od(vo(e),12)}function Tbe(e){return Od(e,13)}function Sbe(e){return Od(e,14)}function zQ(e){const t=mT(e);return t===void 0?jf(e):Yd(t)}function jf(e){return Od(e,17)}function xbe(e){return Od(e,0)}function Abe(e){return Od(e,18)}function R9(e){return Od(e,24)}function Cbe(e,t){return{text:e,kind:f6[23],target:{fileName:er(t).fileName,textSpan:dd(t)}}}function qQ(e){return Od(e,22)}function Lbe(e,t){var r;const i=bme(e)?"link":Eme(e)?"linkcode":"linkplain",o=[qQ(`{@${i} `)];if(!e.name)e.text&&o.push(R9(e.text));else{const s=t==null?void 0:t.getSymbolAtLocation(e.name),c=WBe(e.text),f=kc(e.name)+e.text.slice(0,c),d=HBe(e.text.slice(c)),v=(s==null?void 0:s.valueDeclaration)||((r=s==null?void 0:s.declarations)==null?void 0:r[0]);v?(o.push(Cbe(f,v)),d&&o.push(R9(d))):o.push(R9(f+(c?"":" ")+d))}return o.push(qQ("}")),o}function HBe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t<e.length&&e.charCodeAt(t)===32;)t++;return e.slice(t)}return e}function WBe(e){let t=e.indexOf("://");if(t===0){for(;t<e.length&&e.charCodeAt(t)!==124;)t++;return t}if(e.indexOf("()")===0)return 2;if(e.charAt(0)==="<"){let r=0,i=0;for(;i<e.length;)if(e[i]==="<"&&r++,e[i]===">"&&r--,i++,!r)return i}return 0}function Tb(e,t){var r;return(t==null?void 0:t.newLineCharacter)||((r=e.getNewLine)==null?void 0:r.call(e))||Ybe}function pL(){return Od(`
- `,6)}function i0(e){try{return e($9),$9.displayParts()}finally{$9.clear()}}function w6(e,t,r,i=0){return i0(o=>{e.writeType(t,r,i|1024|16384,o)})}function Uw(e,t,r,i,o=0){return i0(s=>{e.writeSymbol(t,r,i,o|8,s)})}function JQ(e,t,r,i=0){return i|=25632,i0(o=>{e.writeSignature(t,r,i,void 0,o)})}function zBe(e,t){const r=t.getSourceFile();return i0(i=>{$8().writeNode(4,e,r,i)})}function Ibe(e){return!!e.parent&&mx(e.parent)&&e.parent.propertyName===e}function KQ(e,t){return v7(e,t.getScriptKind&&t.getScriptKind(e))}function kbe(e,t){let r=e;for(;qBe(r)||Hm(r)&&r.links.target;)Hm(r)&&r.links.target?r=r.links.target:r=gf(r,t);return r}function qBe(e){return(e.flags&2097152)!==0}function wbe(e,t){return Eo(gf(e,t))}function Dbe(e,t){for(;gg(e.charCodeAt(t));)t+=1;return t}function XQ(e,t){for(;t>-1&&Um(e.charCodeAt(t));)t-=1;return t+1}function Ol(e,t=!0){const r=e&&Rbe(e);return r&&!t&&$d(r),r}function D6(e,t,r){let i=r(e);return i?Wr(i,e):i=Rbe(e,r),i&&!t&&$d(i),i}function Rbe(e,t){const r=t?s=>D6(s,!0,t):Ol,o=Gn(e,r,Rg,t?s=>s&&YQ(s,!0,t):s=>s&&uE(s),r);if(o===e){const s=Ho(e)?Wr(N.createStringLiteralFromNode(e),e):L_(e)?Wr(N.createNumericLiteral(e.text,e.numericLiteralFlags),e):N.cloneNode(e);return ht(s,e)}return o.parent=void 0,o}function uE(e,t=!0){return e&&N.createNodeArray(e.map(r=>Ol(r,t)),e.hasTrailingComma)}function YQ(e,t,r){return N.createNodeArray(e.map(i=>D6(i,t,r)),e.hasTrailingComma)}function $d(e){N9(e),Nbe(e)}function N9(e){$Q(e,1024,KBe)}function Nbe(e){$Q(e,2048,$q)}function cS(e,t){const r=e.getSourceFile(),i=r.text;JBe(e,i)?mL(e,t,r):N6(e,t,r),Vw(e,t,r)}function JBe(e,t){const r=e.getFullStart(),i=e.getStart();for(let o=r;o<i;o++)if(t.charCodeAt(o)===10)return!0;return!1}function $Q(e,t,r){cm(e,t);const i=r(e);i&&$Q(i,t,r)}function KBe(e){return e.forEachChild(t=>t)}function uS(e,t){let r=e;for(let i=1;!b3(t,r);i++)r=`${e}_${i}`;return r}function R6(e,t,r,i){let o=0,s=-1;for(const{fileName:c,textChanges:f}of e){D.assert(c===t);for(const d of f){const{span:v,newText:h}=d,E=XBe(h,Ix(r));if(E!==-1&&(s=v.start+o+E,!i))return s;o+=h.length-v.length}}return D.assert(i),D.assert(s>=0),s}function mL(e,t,r,i,o){iN(r.text,e.pos,QQ(t,r,i,o,VO))}function Vw(e,t,r,i,o){aN(r.text,e.end,QQ(t,r,i,o,P7))}function N6(e,t,r,i,o){aN(r.text,e.pos,QQ(t,r,i,o,VO))}function QQ(e,t,r,i,o){return(s,c,f,d)=>{f===3?(s+=2,c-=2):s+=2,o(e,r||f,t.text.slice(s,c),i!==void 0?i:d)}}function XBe(e,t){if(Ta(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function ZQ(e){return br(e)&&e.operatorToken.kind===27||Is(e)||$O(e)&&Is(e.expression)}function O9(e,t,r){const i=jv(e.parent);switch(i.kind){case 211:return t.getContextualType(i,r);case 223:{const{left:o,operatorToken:s,right:c}=i;return P9(s.kind)?t.getTypeAtLocation(e===c?o:c):t.getContextualType(e,r)}case 292:return tZ(i,t);default:return t.getContextualType(e,r)}}function jw(e,t,r){const i=Rp(e,t),o=JSON.stringify(r);return i===0?`'${X_(o).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:o}function P9(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Obe(e){switch(e.kind){case 10:case 14:case 225:case 212:return!0;default:return!1}}function eZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function tZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Hw(e,t,r,i){const o=r.getTypeChecker();let s=!0;const c=()=>s=!1,f=o.typeToTypeNode(e,t,1,{trackSymbol:(d,v,h)=>(s=s&&o.isSymbolAccessible(d,v,h,!1).accessibility===0,!s),reportInaccessibleThisError:c,reportPrivateInBaseOfClassExpression:c,reportInaccessibleUniqueSymbolError:c,moduleResolverHost:GQ(r,i)});return s?f:void 0}function nZ(e){return e===176||e===177||e===178||e===168||e===170}function Pbe(e){return e===259||e===173||e===171||e===174||e===175}function Mbe(e){return e===264}function M9(e){return e===240||e===241||e===243||e===248||e===249||e===250||e===254||e===256||e===169||e===262||e===269||e===268||e===275||e===267||e===274}function YBe(e,t){const r=e.getLastToken(t);if(r&&r.kind===26)return!1;if(nZ(e.kind)){if(r&&r.kind===27)return!1}else if(Mbe(e.kind)){const f=Jo(e.getChildren(t));if(f&&dm(f))return!1}else if(Pbe(e.kind)){const f=Jo(e.getChildren(t));if(f&&CT(f))return!1}else if(!M9(e.kind))return!1;if(e.kind===243)return!0;const i=rr(e,f=>!f.parent),o=sS(e,i,t);if(!o||o.kind===19)return!0;const s=t.getLineAndCharacterOfPosition(e.getEnd()).line,c=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==c}function F9(e,t,r){const i=rr(t,o=>o.end!==e?"quit":_Z(o.kind));return!!i&&YBe(i,r)}function B9(e){let t=0,r=0;const i=5;return Pa(e,function o(s){if(M9(s.kind)){const c=s.getLastToken(e);(c==null?void 0:c.kind)===26?t++:r++}else if(nZ(s.kind)){const c=s.getLastToken(e);if((c==null?void 0:c.kind)===26)t++;else if(c&&c.kind!==27){const f=cl(e,c.getStart(e)).line,d=cl(e,ky(e,c.end).start).line;f!==d&&r++}}return t+r>=i?!0:Pa(s,o)}),t===0&&r<=1?!0:t/r>1/i}function G9(e,t){return H9(e,e.getDirectories,t)||[]}function rZ(e,t,r,i,o){return H9(e,e.readDirectory,t,r,i,o)||rt}function U9(e,t){return H9(e,e.fileExists,t)}function V9(e,t){return j9(()=>om(t,e))||!1}function j9(e){try{return e()}catch(t){return}}function H9(e,t,...r){return j9(()=>t&&t.apply(e,r))}function iZ(e,t,r){const i=[];return mg(e,o=>{if(o===r)return!0;const s=Bi(o,"package.json");U9(t,s)&&i.push(s)}),i}function Fbe(e,t){let r;return mg(e,i=>{if(i==="node_modules"||(r=hve(i,o=>U9(t,o),"package.json"),r))return!0}),r}function Bbe(e,t){if(!t.fileExists)return[];const r=[];return mg(yi(e),i=>{const o=Bi(i,"package.json");if(t.fileExists(o)){const s=Gbe(o,t);s&&r.push(s)}}),r}function Gbe(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=$Be(i),s={};if(o)for(const d of r){const v=o[d];if(!v)continue;const h=new Map;for(const E in v)h.set(E,v[E]);s[d]=h}const c=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return Ka(Ti({},s),{parseable:!!o,fileName:e,get:f,has(d,v){return!!f(d,v)}});function f(d,v=15){for(const[h,E]of c)if(E&&v&h){const C=E.get(d);if(C!==void 0)return C}}}function Ww(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||Bbe(e.fileName,r)).filter(I=>I.parseable);let o,s,c;return{allowsImportingAmbientModule:d,allowsImportingSourceFile:v,allowsImportingSpecifier:h};function f(I){const O=L(I);for(const k of i)if(k.has(O)||k.has(oF(O)))return!0;return!1}function d(I,O){if(!i.length||!I.valueDeclaration)return!0;if(!s)s=new Map;else{const ne=s.get(I);if(ne!==void 0)return ne}const k=X_(I.getName());if(E(k))return s.set(I,!0),!0;const G=I.valueDeclaration.getSourceFile(),V=C(G.fileName,O);if(typeof V=="undefined")return s.set(I,!0),!0;const H=f(V)||f(k);return s.set(I,H),H}function v(I,O){if(!i.length)return!0;if(!c)c=new Map;else{const V=c.get(I);if(V!==void 0)return V}const k=C(I.fileName,O);if(!k)return c.set(I,!0),!0;const G=f(k);return c.set(I,G),G}function h(I){return!i.length||E(I)||Nf(I)||Bm(I)?!0:f(I)}function E(I){return!!(sd(e)&&iS.nodeCoreModules.has(I)&&(o===void 0&&(o=W9(e)),o))}function C(I,O){if(!bu(I,"node_modules"))return;const k=nE.getNodeModulesPackageName(r.getCompilationSettings(),e,I,O,t);if(k&&!Nf(k)&&!Bm(k))return L(k)}function L(I){const O=pd(B8(I)).slice(1);return Ta(O[0],"@")?`${O[0]}/${O[1]}`:O[0]}}function $Be(e){try{return JSON.parse(e)}catch(t){return}}function W9(e){return kt(e.imports,({text:t})=>iS.nodeCoreModules.has(t))}function Ube(e){return Ur(pd(e),"node_modules")}function aZ(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Vbe(e,t){const r=dd(e),i=rx(t,r,yl,mM);if(i>=0){const o=t[i];return D.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),so(o,aZ)}}function jbe(e,t){var r;let i=rx(t,e.start,c=>c.start,qs);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const o=[],s=uu(e);for(;;){const c=si(t[i],aZ);if(!c||c.start>s)break;sde(e,c)&&o.push(c),i++}return o}function _2({startPosition:e,endPosition:t}){return Tc(e,t===void 0?e:t)}function oZ(e,t){const r=oa(e,t.start);return rr(r,o=>o.getStart(e)<t.start||o.getEnd()>uu(t)?"quit":vt(o)&&_L(t,dd(o,e)))}function Hbe(e,t,r=yl){return e?Va(e)?r(zt(e,t)):t(e,0):void 0}function sZ(e){return Va(e)?ds(e):e}function Wbe(e,t){if(zbe(e)){const r=qbe(e);if(r)return r;const i=Yu.moduleSymbolToValidIdentifier(lZ(e),t,!1),o=Yu.moduleSymbolToValidIdentifier(lZ(e),t,!0);return i===o?i:[i,o]}return e.name}function z9(e,t,r){return zbe(e)?qbe(e)||Yu.moduleSymbolToValidIdentifier(lZ(e),t,!!r):e.name}function zbe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function qbe(e){return Jt(e.declarations,t=>{var r,i;return Vl(t)?(r=si(Cu(t.expression),je))==null?void 0:r.text:(i=si(Ia(t),je))==null?void 0:i.text})}function lZ(e){var t;return D.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${D.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=D.formatSyntaxKind(r.kind),o=fr(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${D.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function Jbe(e,t,r){const i=t.length;if(i+r>e.length)return!1;for(let o=0;o<i;o++)if(t.charCodeAt(o)!==e.charCodeAt(o+r))return!1;return!0}function cZ(e){return e.charCodeAt(0)===95}function QBe(e){return!Kbe(e)}function Kbe(e){const t=e.getSourceFile();return!t.externalModuleIndicator&&!t.commonJsModuleIndicator?!1:fr(e)||!rr(e,r=>$l(r)&&im(r))}function q9(e){return!!(tz(e)&8192)}function J9(e,t){const r=Jt(e.imports,i=>{if(iS.nodeCoreModules.has(i.text))return Ta(i.text,"node:")});return r!=null?r:t.usesUriStyleNodeCoreModules}function O6(e){return e===`
- `?1:0}function p2(e){return Va(e)?Rh(Po(e[0]),e.slice(1)):Po(e)}function K9({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!B9(t);return Ka(Ti({},e),{semicolons:i?"remove":"ignore"})}function uZ(e){return e===2||e===3}function zw(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function X9(e,t){const r=new Set,i=new Set,o=new Set;for(const f of t)if(!r8(f)){const d=Ws(f.expression);if(yT(d))switch(d.kind){case 14:case 10:r.add(d.text);break;case 8:i.add(parseInt(d.text));break;case 9:const v=upe(cc(d.text,"n")?d.text.slice(0,-1):d.text);v&&o.add(q1(v));break}else{const v=e.getSymbolAtLocation(f.expression);if(v&&v.valueDeclaration&&Q1(v.valueDeclaration)){const h=e.getConstantValue(v.valueDeclaration);h!==void 0&&s(h)}}}return{addValue:s,hasValue:c};function s(f){switch(typeof f){case"string":r.add(f);break;case"number":i.add(f)}}function c(f){switch(typeof f){case"string":return r.has(f);case"number":return i.has(f);case"object":return o.has(q1(f))}}}var ku,dZ,Xbe,Y9,fZ,$9,Ybe,Q9,_Z,ZBe=S({"src/services/utilities.ts"(){Qr(),ku=Sy(99,!0),dZ=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(dZ||{}),Xbe=/^\/\/\/\s*</,Y9=[131,129,160,134,95,138,141,144,104,148,149,146,152,153,110,114,155,156,157],fZ=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(fZ||{}),$9=jBe(),Ybe=`
- `,Q9="anonymous function",_Z=Fm(nZ,Pbe,Mbe,M9)}});function $be(e){let t=1;const r=b_(),i=new Map,o=new Map;let s;const c={isUsableByFile:L=>L===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(L,I,O,k,G,V,H,ne)=>{L!==s&&(c.clear(),s=L);let Y;if(G){const xe=EJ(G.fileName);if(xe){const{topLevelNodeModulesIndex:te,topLevelPackageNameIndex:Qe,packageRootIndex:Ve}=xe;if(Y=sF(B8(G.fileName.substring(Qe+1,Ve))),Ta(L,G.path.substring(0,te))){const Ge=o.get(Y),ze=G.fileName.substring(0,Qe+1);if(Ge){const Oe=Ge.indexOf(By);te>Oe&&o.set(Y,ze)}else o.set(Y,ze)}}}const M=V===1&&vC(I)||I,de=V===0||x6(M)?ra(O):Wbe(M,void 0),re=typeof de=="string"?de:de[0],be=typeof de=="string"?void 0:de[1],ae=X_(k.name),W=t++,ce=gf(I,ne),me=I.flags&33554432?void 0:I,Ee=k.flags&33554432?void 0:k;(!me||!Ee)&&i.set(W,[I,k]),r.add(d(re,I,zc(ae)?void 0:ae,ne),{id:W,symbolTableKey:O,symbolName:re,capitalizedSymbolName:be,moduleName:ae,moduleFile:G,moduleFileName:G==null?void 0:G.fileName,packageName:Y,exportKind:V,targetFlags:ce.flags,isFromPackageJson:H,symbol:me,moduleSymbol:Ee})},get:(L,I)=>{if(L!==s)return;const O=r.get(I);return O==null?void 0:O.map(f)},search:(L,I,O,k)=>{if(L===s)return pf(r,(G,V)=>{const{symbolName:H,ambientModuleName:ne}=v(V),Y=I&&G[0].capitalizedSymbolName||H;if(O(Y,G[0].targetFlags)){const M=G.map(f).filter((de,re)=>C(de,G[re].packageName));if(M.length){const de=k(M,Y,!!ne,V);if(de!==void 0)return de}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(L,I,O)=>h(L)&&h(I)?!1:s&&s!==I.path||O&&W9(L)!==W9(I)||!Zp(L.moduleAugmentations,I.moduleAugmentations)||!E(L,I)?(c.clear(),!0):(s=I.path,!1)};return D.isDebugging&&Object.defineProperty(c,"__cache",{get:()=>r}),c;function f(L){if(L.symbol&&L.moduleSymbol)return L;const{id:I,exportKind:O,targetFlags:k,isFromPackageJson:G,moduleFileName:V}=L,[H,ne]=i.get(I)||rt;if(H&&ne)return{symbol:H,moduleSymbol:ne,moduleFileName:V,exportKind:O,targetFlags:k,isFromPackageJson:G};const Y=(G?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),$=L.moduleSymbol||ne||D.checkDefined(L.moduleFile?Y.getMergedSymbol(L.moduleFile.symbol):Y.tryFindAmbientModule(L.moduleName)),M=L.symbol||H||D.checkDefined(O===2?Y.resolveExternalModuleSymbol($):Y.tryGetMemberInModuleExportsAndProperties(ra(L.symbolTableKey),$),`Could not find symbol '${L.symbolName}' by key '${L.symbolTableKey}' in module ${$.name}`);return i.set(I,[M,$]),{symbol:M,moduleSymbol:$,moduleFileName:V,exportKind:O,targetFlags:k,isFromPackageJson:G}}function d(L,I,O,k){const G=O||"";return`${L}|${Eo(gf(I,k))}|${G}`}function v(L){const I=L.substring(0,L.indexOf("|")),O=L.substring(L.lastIndexOf("|")+1);return{symbolName:I,ambientModuleName:O===""?void 0:O}}function h(L){return!L.commonJsModuleIndicator&&!L.externalModuleIndicator&&!L.moduleAugmentations&&!L.ambientModuleNames}function E(L,I){if(!Zp(L.ambientModuleNames,I.ambientModuleNames))return!1;let O=-1,k=-1;for(const G of I.ambientModuleNames){const V=H=>jz(H)&&H.name.text===G;if(O=mi(L.statements,V,O+1),k=mi(I.statements,V,k+1),L.statements[O]!==I.statements[k])return!1}return!0}function C(L,I){if(!I||!L.moduleFileName)return!0;const O=e.getGlobalTypingsCacheLocation();if(O&&Ta(L.moduleFileName,O))return!0;const k=o.get(I);return!k||Ta(L.moduleFileName,k)}}function pZ(e,t,r,i,o,s,c){var f;if(t===r)return!1;const d=c==null?void 0:c.get(t.path,r.path,i,{});if((d==null?void 0:d.isBlockedByPackageJsonDependencies)!==void 0)return!d.isBlockedByPackageJsonDependencies;const v=db(s),h=(f=s.getGlobalTypingsCacheLocation)==null?void 0:f.call(s),E=!!nE.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,C=>{const L=e.getSourceFile(C);return(L===r||!L)&&eGe(t.fileName,C,v,h)});if(o){const C=E&&o.allowsImportingSourceFile(r,s);return c==null||c.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!C),C}return E}function eGe(e,t,r,i){const o=mg(t,c=>Eu(c)==="node_modules"?c:void 0),s=o&&yi(r(o));return s===void 0||Ta(r(e),s)||!!i&&Ta(r(i),s)}function mZ(e,t,r,i,o){var s,c;const f=cO(t),d=r.autoImportFileExcludePatterns&&pa(r.autoImportFileExcludePatterns,h=>{const E=lJ(h,"","exclude");return E?qv(E,f):void 0});Qbe(e.getTypeChecker(),e.getSourceFiles(),d,(h,E)=>o(h,E,e,!1));const v=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(v){const h=sl(),E=e.getTypeChecker();Qbe(v.getTypeChecker(),v.getSourceFiles(),d,(C,L)=>{(L&&!e.getSourceFile(L.fileName)||!L&&!E.resolveName(C.name,void 0,1536,!1))&&o(C,L,v,!0)}),(c=t.log)==null||c.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${sl()-h}`)}}function Qbe(e,t,r,i){var o;const s=r&&(c=>r.some(f=>f.test(c)));for(const c of e.getAmbientModules())!bu(c.name,"*")&&!(r&&((o=c.declarations)!=null&&o.every(f=>s(f.getSourceFile().fileName))))&&i(c,void 0);for(const c of t)mf(c)&&!(s!=null&&s(c.fileName))&&i(e.getMergedSymbol(c.symbol),c)}function P6(e,t,r,i,o){var s,c,f,d,v;const h=sl();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);const E=((c=t.getCachedExportInfoMap)==null?void 0:c.call(t))||$be({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var I;return(I=t.getPackageJsonAutoImportProvider)==null?void 0:I.call(t)},getGlobalTypingsCacheLocation:()=>{var I;return(I=t.getGlobalTypingsCacheLocation)==null?void 0:I.call(t)}});if(E.isUsableByFile(e.path))return(f=t.log)==null||f.call(t,"getExportInfoMap: cache hit"),E;(d=t.log)==null||d.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const C=r.getCompilerOptions();let L=0;try{mZ(r,t,i,!0,(I,O,k,G)=>{++L%100===0&&(o==null||o.throwIfCancellationRequested());const V=new Map,H=k.getTypeChecker(),ne=Z9(I,H,C);ne&&Zbe(ne.symbol,H)&&E.add(e.path,ne.symbol,ne.exportKind===1?"default":"export=",I,O,ne.exportKind,G,H),H.forEachExportAndPropertyOfModule(I,(Y,$)=>{Y!==(ne==null?void 0:ne.symbol)&&Zbe(Y,H)&&Lp(V,$)&&E.add(e.path,Y,$,I,O,0,G,H)})})}catch(I){throw E.clear(),I}return(v=t.log)==null||v.call(t,`getExportInfoMap: done in ${sl()-h} ms`),E}function Z9(e,t,r){const i=tGe(e,t);if(!i)return;const{symbol:o,exportKind:s}=i,c=eB(o,t,r);return c&&Ti({symbol:o,exportKind:s},c)}function Zbe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!nO(e)&&!t_e(e)}function tGe(e,t){const r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function eB(e,t,r){const i=vC(e);if(i)return{resolvedSymbol:i,name:i.name};const o=nGe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){const s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return eB(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:z9(e,r.target)}}function nGe(e){return e.declarations&&Jt(e.declarations,t=>{var r;if(Vl(t))return(r=si(Cu(t.expression),je))==null?void 0:r.text;if(gd(t))return D.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var hZ,gZ,rGe=S({"src/services/exportInfoMap.ts"(){Qr(),hZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(hZ||{}),gZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(gZ||{})}});function e1e(){const e=Sy(99,!1);function t(i,o,s){return oGe(r(i,o,s),i)}function r(i,o,s){let c=0,f=0;const d=[],{prefix:v,pushTemplate:h}=cGe(o);i=v+i;const E=v.length;h&&d.push(15),e.setText(i);let C=0;const L=[];let I=0;do{c=e.scan(),pC(c)||(O(),f=c);const k=e.getTextPos();if(aGe(e.getTokenPos(),k,E,fGe(c),L),k>=i.length){const G=iGe(e,c,rl(d));G!==void 0&&(C=G)}}while(c!==1);function O(){switch(c){case 43:case 68:!o1e[f]&&e.reScanSlashToken()===13&&(c=13);break;case 29:f===79&&I++;break;case 31:I>0&&I--;break;case 131:case 152:case 148:case 134:case 153:I>0&&!s&&(c=79);break;case 15:d.push(c);break;case 18:d.length>0&&d.push(c);break;case 19:if(d.length>0){const k=rl(d);k===15?(c=e.reScanTemplateToken(!1),c===17?d.pop():D.assertEqual(c,16,"Should have been a template middle.")):(D.assertEqual(k,18,"Should have been an open brace"),d.pop())}break;default:if(!Dd(c))break;(f===24||Dd(f)&&Dd(c)&&!lGe(f,c))&&(c=79)}}return{endOfLineState:C,spans:L}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function iGe(e,t,r){switch(t){case 10:{if(!e.isUnterminated())return;const i=e.getTokenText(),o=i.length-1;let s=0;for(;i.charCodeAt(o-s)===92;)s++;return s&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(Fv(t)){if(!e.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return D.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===15?6:void 0}}function aGe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);const s=t-e;s>0&&o.push(e-r,s,i)}function oGe(e,t){const r=[],i=e.spans;let o=0;for(let c=0;c<i.length;c+=3){const f=i[c],d=i[c+1],v=i[c+2];if(o>=0){const h=f-o;h>0&&r.push({length:h,classification:4})}r.push({length:d,classification:sGe(v)}),o=f+d}const s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function sGe(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function lGe(e,t){if(!RQ(e))return!0;switch(t){case 137:case 151:case 135:case 124:case 127:return!0;default:return!1}}function cGe(e){switch(e){case 3:return{prefix:`"\\
- `};case 2:return{prefix:`'\\
- `};case 1:return{prefix:`/*
- `};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
- `,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return D.assertNever(e)}}function uGe(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}function dGe(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function fGe(e){if(Dd(e))return 3;if(uGe(e)||dGe(e))return 5;if(e>=18&&e<=78)return 10;switch(e){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return Fv(e)?6:2}}function t1e(e,t,r,i,o){return i1e(yZ(e,t,r,i,o))}function n1e(e,t){switch(t){case 264:case 260:case 261:case 259:case 228:case 215:case 216:e.throwIfCancellationRequested()}}function yZ(e,t,r,i,o){const s=[];return r.forEachChild(function f(d){if(!(!d||!e3(o,d.pos,d.getFullWidth()))){if(n1e(t,d.kind),je(d)&&!kl(d)&&i.has(d.escapedText)){const v=e.getSymbolAtLocation(d),h=v&&r1e(v,aS(d),e);h&&c(d.getStart(r),d.getEnd(),h)}d.forEachChild(f)}}),{spans:s,endOfLineState:0};function c(f,d,v){const h=d-f;D.assert(h>0,`Classification had non-positive length of ${h}`),s.push(f),s.push(h),s.push(v)}}function r1e(e,t,r){const i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&_Ge(e)?14:void 0:i&2097152?r1e(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function _Ge(e){return kt(e.declarations,t=>$l(t)&&Dg(t)===1)}function pGe(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function i1e(e){D.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i<t.length;i+=3)r.push({textSpan:Pc(t[i],t[i+1]),classificationType:pGe(t[i+2])});return r}function a1e(e,t,r){return i1e(vZ(e,t,r))}function vZ(e,t,r){const i=r.start,o=r.length,s=Sy(99,!1,t.languageVariant,t.text),c=Sy(99,!1,t.languageVariant,t.text),f=[];return ne(t),{spans:f,endOfLineState:0};function d(Y,$,M){f.push(Y),f.push($),f.push(M)}function v(Y){for(s.setTextPos(Y.pos);;){const $=s.getTextPos();if(!zue(t.text,$))return $;const M=s.scan(),de=s.getTextPos(),re=de-$;if(!pC(M))return $;switch(M){case 4:case 5:continue;case 2:case 3:h(Y,M,$,re),s.setTextPos(de);continue;case 7:const be=t.text,ae=be.charCodeAt($);if(ae===60||ae===62){d($,re,1);continue}D.assert(ae===124||ae===61),O(be,$,de);break;case 6:break;default:D.assertNever(M)}}}function h(Y,$,M,de){if($===3){const re=dhe(t.text,M,de);if(re&&re.jsDoc){jo(re.jsDoc,Y),C(re.jsDoc);return}}else if($===2&&L(M,de))return;E(M,de)}function E(Y,$){d(Y,$,1)}function C(Y){var $,M,de,re,be,ae,W,ce;let me=Y.pos;if(Y.tags)for(const xe of Y.tags){xe.pos!==me&&E(me,xe.pos-me),d(xe.pos,1,10),d(xe.tagName.pos,xe.tagName.end-xe.tagName.pos,18),me=xe.tagName.end;let te=xe.tagName.end;switch(xe.kind){case 344:const Qe=xe;Ee(Qe),te=Qe.isNameFirst&&(($=Qe.typeExpression)==null?void 0:$.end)||Qe.name.end;break;case 351:const Ve=xe;te=Ve.isNameFirst&&((M=Ve.typeExpression)==null?void 0:M.end)||Ve.name.end;break;case 348:I(xe),me=xe.end,te=xe.typeParameters.end;break;case 349:const Ge=xe;te=((de=Ge.typeExpression)==null?void 0:de.kind)===312&&((re=Ge.fullName)==null?void 0:re.end)||((be=Ge.typeExpression)==null?void 0:be.end)||te;break;case 341:te=xe.typeExpression.end;break;case 347:ne(xe.typeExpression),me=xe.end,te=xe.typeExpression.end;break;case 346:case 343:te=xe.typeExpression.end;break;case 345:ne(xe.typeExpression),me=xe.end,te=((ae=xe.typeExpression)==null?void 0:ae.end)||te;break;case 350:te=((W=xe.name)==null?void 0:W.end)||te;break;case 331:case 332:te=xe.class.end;break;case 352:ne(xe.typeExpression),me=xe.end,te=((ce=xe.typeExpression)==null?void 0:ce.end)||te;break}typeof xe.comment=="object"?E(xe.comment.pos,xe.comment.end-xe.comment.pos):typeof xe.comment=="string"&&E(te,xe.end-te)}me!==Y.end&&E(me,Y.end-me);return;function Ee(xe){xe.isNameFirst&&(E(me,xe.name.pos-me),d(xe.name.pos,xe.name.end-xe.name.pos,17),me=xe.name.end),xe.typeExpression&&(E(me,xe.typeExpression.pos-me),ne(xe.typeExpression),me=xe.typeExpression.end),xe.isNameFirst||(E(me,xe.name.pos-me),d(xe.name.pos,xe.name.end-xe.name.pos,17),me=xe.name.end)}}function L(Y,$){const M=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,de=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,re=t.text.substr(Y,$),be=M.exec(re);if(!be||!be[3]||!(be[3]in HR))return!1;let ae=Y;E(ae,be[1].length),ae+=be[1].length,d(ae,be[2].length,10),ae+=be[2].length,d(ae,be[3].length,21),ae+=be[3].length;const W=be[4];let ce=ae;for(;;){const Ee=de.exec(W);if(!Ee)break;const xe=ae+Ee.index+Ee[1].length;xe>ce&&(E(ce,xe-ce),ce=xe),d(ce,Ee[2].length,22),ce+=Ee[2].length,Ee[3].length&&(E(ce,Ee[3].length),ce+=Ee[3].length),d(ce,Ee[4].length,5),ce+=Ee[4].length,Ee[5].length&&(E(ce,Ee[5].length),ce+=Ee[5].length),d(ce,Ee[6].length,24),ce+=Ee[6].length}ae+=be[4].length,ae>ce&&E(ce,ae-ce),be[5]&&(d(ae,be[5].length,10),ae+=be[5].length);const me=Y+$;return ae<me&&E(ae,me-ae),!0}function I(Y){for(const $ of Y.getChildren())ne($)}function O(Y,$,M){let de;for(de=$;de<M&&!Tu(Y.charCodeAt(de));de++);for(d($,de-$,1),c.setTextPos(de);c.getTextPos()<M;)k()}function k(){const Y=c.getTextPos(),$=c.scan(),M=c.getTextPos(),de=H($);de&&d(Y,M-Y,de)}function G(Y){if(th(Y)||kl(Y))return!0;const $=V(Y);if(!px(Y)&&Y.kind!==11&&$===void 0)return!1;const M=Y.kind===11?Y.pos:v(Y),de=Y.end-M;if(D.assert(de>=0),de>0){const re=$||H(Y.kind,Y);re&&d(M,de,re)}return!0}function V(Y){switch(Y.parent&&Y.parent.kind){case 283:if(Y.parent.tagName===Y)return 19;break;case 284:if(Y.parent.tagName===Y)return 20;break;case 282:if(Y.parent.tagName===Y)return 21;break;case 288:if(Y.parent.name===Y)return 22;break}}function H(Y,$){if(Dd(Y))return 3;if((Y===29||Y===31)&&$&&lbe($.parent))return 10;if(ube(Y)){if($){const M=$.parent;if(Y===63&&(M.kind===257||M.kind===169||M.kind===166||M.kind===288)||M.kind===223||M.kind===221||M.kind===222||M.kind===224)return 5}return 10}else{if(Y===8)return 4;if(Y===9)return 25;if(Y===10)return $&&$.parent.kind===288?24:6;if(Y===13)return 6;if(Fv(Y))return 6;if(Y===11)return 23;if(Y===79){if($){switch($.parent.kind){case 260:return $.parent.name===$?11:void 0;case 165:return $.parent.name===$?15:void 0;case 261:return $.parent.name===$?13:void 0;case 263:return $.parent.name===$?12:void 0;case 264:return $.parent.name===$?14:void 0;case 166:return $.parent.name===$?OT($)?3:17:void 0}if(vg($.parent))return 3}return 2}}}function ne(Y){if(Y&&t3(i,o,Y.pos,Y.getFullWidth())){n1e(e,Y.kind);for(const $ of Y.getChildren(t))G($)||ne($)}}}var o1e,mGe=S({"src/services/classifier.ts"(){Qr(),o1e=qce([79,10,8,9,13,108,45,46,21,23,19,110,95],e=>e,()=>!0)}}),tB,hGe=S({"src/services/documentHighlights.ts"(){Qr(),(e=>{function t(ae,W,ce,me,Ee){const xe=Vf(ce,me);if(xe.parent&&(Gh(xe.parent)&&xe.parent.tagName===xe||Zx(xe.parent))){const{openingElement:te,closingElement:Qe}=xe.parent.parent,Ve=[te,Qe].map(({tagName:Ge})=>r(Ge,ce));return[{fileName:ce.fileName,highlightSpans:Ve}]}return i(me,xe,ae,W,Ee)||o(xe,ce)}e.getDocumentHighlights=t;function r(ae,W){return{fileName:W.fileName,textSpan:dd(ae,W),kind:"none"}}function i(ae,W,ce,me,Ee){const xe=new Set(Ee.map(Ge=>Ge.fileName)),te=_l.getReferenceEntriesForNode(ae,W,ce,Ee,me,void 0,xe);if(!te)return;const Qe=RR(te.map(_l.toHighlightSpan),Ge=>Ge.fileName,Ge=>Ge.span),Ve=cu(ce.useCaseSensitiveFileNames());return No(h1(Qe.entries(),([Ge,ze])=>{if(!xe.has(Ge)){if(!ce.redirectTargetsMap.has(Js(Ge,ce.getCurrentDirectory(),Ve)))return;const Oe=ce.getSourceFile(Ge);Ge=In(Ee,Ye=>!!Ye.redirectInfo&&Ye.redirectInfo.redirectTarget===Oe).fileName,D.assert(xe.has(Ge))}return{fileName:Ge,highlightSpans:ze}}))}function o(ae,W){const ce=s(ae,W);return ce&&[{fileName:W.fileName,highlightSpans:ce}]}function s(ae,W){switch(ae.kind){case 99:case 91:return jT(ae.parent)?de(ae.parent,W):void 0;case 105:return me(ae.parent,Ip,ne);case 109:return me(ae.parent,hK,H);case 111:case 83:case 96:const xe=ae.kind===83?ae.parent.parent:ae.parent;return me(xe,e8,V);case 107:return me(ae.parent,ZO,G);case 82:case 88:return r8(ae.parent)||ow(ae.parent)?me(ae.parent.parent.parent,ZO,G):void 0;case 81:case 86:return me(ae.parent,YI,k);case 97:case 115:case 90:return me(ae.parent,te=>Bv(te,!0),O);case 135:return ce(Yl,[135]);case 137:case 151:return ce(ab,[137,151]);case 133:return me(ae.parent,UC,Y);case 132:return Ee(Y(ae));case 125:return Ee($(ae));case 101:return;default:return Cy(ae.kind)&&(Au(ae.parent)||gc(ae.parent))?Ee(C(ae.kind,ae.parent)):void 0}function ce(xe,te){return me(ae.parent,xe,Qe=>{var Ve;return pa((Ve=si(Qe,Vm))==null?void 0:Ve.symbol.declarations,Ge=>xe(Ge)?In(Ge.getChildren(W),ze=>Ur(te,ze.kind)):void 0)})}function me(xe,te,Qe){return te(xe)?Ee(Qe(xe,W)):void 0}function Ee(xe){return xe&&xe.map(te=>r(te,W))}}function c(ae){return hK(ae)?[ae]:e8(ae)?ya(ae.catchClause?c(ae.catchClause):ae.tryBlock&&c(ae.tryBlock),ae.finallyBlock&&c(ae.finallyBlock)):Xa(ae)?void 0:v(ae,c)}function f(ae){let W=ae;for(;W.parent;){const ce=W.parent;if(CT(ce)||ce.kind===308)return ce;if(e8(ce)&&ce.tryBlock===W&&ce.catchClause)return W;W=ce}}function d(ae){return YI(ae)?[ae]:Xa(ae)?void 0:v(ae,d)}function v(ae,W){const ce=[];return ae.forEachChild(me=>{const Ee=W(me);Ee!==void 0&&ce.push(...NR(Ee))}),ce}function h(ae,W){const ce=E(W);return!!ce&&ce===ae}function E(ae){return rr(ae,W=>{switch(W.kind){case 252:if(ae.kind===248)return!1;case 245:case 246:case 247:case 244:case 243:return!ae.label||be(W,ae.label.escapedText);default:return Xa(W)&&"quit"}})}function C(ae,W){return pa(L(W,Rx(ae)),ce=>fL(ce,ae))}function L(ae,W){const ce=ae.parent;switch(ce.kind){case 265:case 308:case 238:case 292:case 293:return W&256&&Bc(ae)?[...ae.members,ae]:ce.statements;case 173:case 171:case 259:return[...ce.parameters,..._i(ce.parent)?ce.parent.members:[]];case 260:case 228:case 261:case 184:const me=ce.members;if(W&92){const Ee=In(ce.members,Yl);if(Ee)return[...me,...Ee.parameters]}else if(W&256)return[...me,ce];return me;case 207:return;default:D.assertNever(ce,"Invalid container kind.")}}function I(ae,W,...ce){return W&&Ur(ce,W.kind)?(ae.push(W),!0):!1}function O(ae){const W=[];if(I(W,ae.getFirstToken(),97,115,90)&&ae.kind===243){const ce=ae.getChildren();for(let me=ce.length-1;me>=0&&!I(W,ce[me],115);me--);}return Je(d(ae.statement),ce=>{h(ae,ce)&&I(W,ce.getFirstToken(),81,86)}),W}function k(ae){const W=E(ae);if(W)switch(W.kind){case 245:case 246:case 247:case 243:case 244:return O(W);case 252:return G(W)}}function G(ae){const W=[];return I(W,ae.getFirstToken(),107),Je(ae.caseBlock.clauses,ce=>{I(W,ce.getFirstToken(),82,88),Je(d(ce),me=>{h(ae,me)&&I(W,me.getFirstToken(),81)})}),W}function V(ae,W){const ce=[];if(I(ce,ae.getFirstToken(),111),ae.catchClause&&I(ce,ae.catchClause.getFirstToken(),83),ae.finallyBlock){const me=Es(ae,96,W);I(ce,me,96)}return ce}function H(ae,W){const ce=f(ae);if(!ce)return;const me=[];return Je(c(ce),Ee=>{me.push(Es(Ee,109,W))}),CT(ce)&&AT(ce,Ee=>{me.push(Es(Ee,105,W))}),me}function ne(ae,W){const ce=Mf(ae);if(!ce)return;const me=[];return AT(so(ce.body,uo),Ee=>{me.push(Es(Ee,105,W))}),Je(c(ce.body),Ee=>{me.push(Es(Ee,109,W))}),me}function Y(ae){const W=Mf(ae);if(!W)return;const ce=[];return W.modifiers&&W.modifiers.forEach(me=>{I(ce,me,132)}),Pa(W,me=>{M(me,Ee=>{UC(Ee)&&I(ce,Ee.getFirstToken(),133)})}),ce}function $(ae){const W=Mf(ae);if(!W)return;const ce=[];return Pa(W,me=>{M(me,Ee=>{m5(Ee)&&I(ce,Ee.getFirstToken(),125)})}),ce}function M(ae,W){W(ae),!Xa(ae)&&!_i(ae)&&!ud(ae)&&!$l(ae)&&!um(ae)&&!Gi(ae)&&Pa(ae,ce=>M(ce,W))}function de(ae,W){const ce=re(ae,W),me=[];for(let Ee=0;Ee<ce.length;Ee++){if(ce[Ee].kind===91&&Ee<ce.length-1){const xe=ce[Ee],te=ce[Ee+1];let Qe=!0;for(let Ve=te.getStart(W)-1;Ve>=xe.end;Ve--)if(!Um(W.text.charCodeAt(Ve))){Qe=!1;break}if(Qe){me.push({fileName:W.fileName,textSpan:Tc(xe.getStart(),te.end),kind:"reference"}),Ee++;continue}}me.push(r(ce[Ee],W))}return me}function re(ae,W){const ce=[];for(;jT(ae.parent)&&ae.parent.elseStatement===ae;)ae=ae.parent;for(;;){const me=ae.getChildren(W);I(ce,me[0],99);for(let Ee=me.length-1;Ee>=0&&!I(ce,me[Ee],91);Ee--);if(!ae.elseStatement||!jT(ae.elseStatement))break;ae=ae.elseStatement}return ce}function be(ae,W){return!!rr(ae.parent,ce=>Y1(ce)?ce.label.escapedText===W:"quit")}})(tB||(tB={}))}});function nB(e){return!!e.sourceFile}function bZ(e,t){return s1e(e,t)}function s1e(e,t="",r){const i=new Map,o=cu(!!e);function s(){const k=No(i.keys()).filter(G=>G&&G.charAt(0)==="_").map(G=>{const V=i.get(G),H=[];return V.forEach((ne,Y)=>{nB(ne)?H.push({name:Y,scriptKind:ne.sourceFile.scriptKind,refCount:ne.languageServiceRefCount}):ne.forEach(($,M)=>H.push({name:Y,scriptKind:M,refCount:$.languageServiceRefCount}))}),H.sort((ne,Y)=>Y.refCount-ne.refCount),{bucket:G,sourceFiles:H}});return JSON.stringify(k,void 0,2)}function c(k){return typeof k.getCompilationSettings=="function"?k.getCompilationSettings():k}function f(k,G,V,H,ne,Y){const $=Js(k,t,o),M=rB(c(G));return d(k,$,G,M,V,H,ne,Y)}function d(k,G,V,H,ne,Y,$,M){return C(k,G,V,H,ne,Y,!0,$,M)}function v(k,G,V,H,ne,Y){const $=Js(k,t,o),M=rB(c(G));return h(k,$,G,M,V,H,ne,Y)}function h(k,G,V,H,ne,Y,$,M){return C(k,G,c(V),H,ne,Y,!1,$,M)}function E(k,G){const V=nB(k)?k:k.get(D.checkDefined(G,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return D.assert(G===void 0||!V||V.sourceFile.scriptKind===G,`Script kind should match provided ScriptKind:${G} and sourceFile.scriptKind: ${V==null?void 0:V.sourceFile.scriptKind}, !entry: ${!V}`),V}function C(k,G,V,H,ne,Y,$,M,de){var re,be,ae,W;M=v7(k,M);const ce=c(V),me=V===ce?void 0:V,Ee=M===6?100:ts(ce),xe=typeof de=="object"?de:{languageVersion:Ee,impliedNodeFormat:me&&FF(G,(W=(ae=(be=(re=me.getCompilerHost)==null?void 0:re.call(me))==null?void 0:be.getModuleResolutionCache)==null?void 0:ae.call(be))==null?void 0:W.getPackageJsonInfoCache(),me,ce),setExternalModuleIndicator:yO(ce)};xe.languageVersion=Ee;const te=i.size,Qe=l1e(H,xe.impliedNodeFormat),Ve=RA(i,Qe,()=>new Map);if(Si){i.size>te&&Si.instant(Si.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:ce.configFilePath,key:Qe});const Me=!yd(G)&&pf(i,(Ye,We)=>We!==Qe&&Ye.has(G)&&We);Me&&Si.instant(Si.Phase.Session,"documentRegistryBucketOverlap",{path:G,key1:Me,key2:Qe})}const Ge=Ve.get(G);let ze=Ge&&E(Ge,M);if(!ze&&r){const Me=r.getDocument(Qe,G);Me&&(D.assert($),ze={sourceFile:Me,languageServiceRefCount:0},Oe())}if(ze)ze.sourceFile.version!==Y&&(ze.sourceFile=qZ(ze.sourceFile,ne,Y,ne.getChangeRange(ze.sourceFile.scriptSnapshot)),r&&r.setDocument(Qe,G,ze.sourceFile)),$&&ze.languageServiceRefCount++;else{const Me=mB(k,ne,xe,Y,!1,M);r&&r.setDocument(Qe,G,Me),ze={sourceFile:Me,languageServiceRefCount:1},Oe()}return D.assert(ze.languageServiceRefCount!==0),ze.sourceFile;function Oe(){if(!Ge)Ve.set(G,ze);else if(nB(Ge)){const Me=new Map;Me.set(Ge.sourceFile.scriptKind,Ge),Me.set(M,ze),Ve.set(G,Me)}else Ge.set(M,ze)}}function L(k,G,V,H){const ne=Js(k,t,o),Y=rB(G);return I(ne,Y,V,H)}function I(k,G,V,H){const ne=D.checkDefined(i.get(l1e(G,H))),Y=ne.get(k),$=E(Y,V);$.languageServiceRefCount--,D.assert($.languageServiceRefCount>=0),$.languageServiceRefCount===0&&(nB(Y)?ne.delete(k):(Y.delete(V),Y.size===1&&ne.set(k,dn(Y.values(),yl))))}function O(k,G){return No(i.entries(),([V,H])=>{const ne=H.get(k),Y=ne&&E(ne,G);return[V,Y&&Y.languageServiceRefCount]})}return{acquireDocument:f,acquireDocumentWithKey:d,updateDocument:v,updateDocumentWithKey:h,releaseDocument:L,releaseDocumentWithKey:I,getLanguageServiceRefCounts:O,reportStats:s,getKeyForCompilationSettings:rB}}function rB(e){return AX(e,W5)}function l1e(e,t){return t?`${e}|${t}`:e}var gGe=S({"src/services/documentRegistry.ts"(){Qr()}});function c1e(e,t,r,i,o,s,c){const f=cO(i),d=cu(f),v=EZ(t,r,d,c),h=EZ(r,t,d,c);return gr.ChangeTracker.with({host:i,formatContext:o,preferences:s},E=>{vGe(e,E,v,t,r,i.getCurrentDirectory(),f),bGe(e,E,v,h,i,d)})}function EZ(e,t,r,i){const o=r(e);return c=>{const f=i&&i.tryGetSourcePosition({fileName:c,pos:0}),d=s(f?f.fileName:c);return f?d===void 0?void 0:yGe(f.fileName,d,c,r):d};function s(c){if(r(c)===o)return t;const f=oJ(c,o,r);return f===void 0?void 0:t+"/"+f}}function yGe(e,t,r,i){const o=QR(e,t,i);return TZ(yi(r),o)}function vGe(e,t,r,i,o,s,c){const{configFile:f}=e.getCompilerOptions();if(!f)return;const d=yi(f.fileName),v=lk(f);if(!v)return;SZ(v,(L,I)=>{switch(I){case"files":case"include":case"exclude":{if(h(L)||I!=="include"||!zu(L.initializer))return;const k=pa(L.initializer.elements,V=>Ho(V)?V.text:void 0);if(k.length===0)return;const G=Pk(d,[],k,c,s);qv(D.checkDefined(G.includeFilePattern),c).test(i)&&!qv(D.checkDefined(G.includeFilePattern),c).test(o)&&t.insertNodeAfter(f,Jo(L.initializer.elements),N.createStringLiteral(C(o)));return}case"compilerOptions":SZ(L.initializer,(O,k)=>{const G=YK(k);D.assert((G==null?void 0:G.type)!=="listOrElement"),G&&(G.isFilePath||G.type==="list"&&G.element.isFilePath)?h(O):k==="paths"&&SZ(O.initializer,V=>{if(zu(V.initializer))for(const H of V.initializer.elements)E(H)})});return}});function h(L){const I=zu(L.initializer)?L.initializer.elements:[L.initializer];let O=!1;for(const k of I)O=E(k)||O;return O}function E(L){if(!Ho(L))return!1;const I=TZ(d,L.text),O=r(I);return O!==void 0?(t.replaceRangeWithText(f,d1e(L,f),C(O)),!0):!1}function C(L){return Gm(d,L,!c)}}function bGe(e,t,r,i,o,s){const c=e.getSourceFiles();for(const f of c){const d=r(f.fileName),v=d!=null?d:f.fileName,h=yi(v),E=i(f.fileName),C=E||f.fileName,L=yi(C),I=d!==void 0||E!==void 0;SGe(f,t,O=>{if(!Nf(O))return;const k=TZ(L,O),G=r(k);return G===void 0?void 0:L1(Gm(h,G,s))},O=>{const k=e.getTypeChecker().getSymbolAtLocation(O);if(k!=null&&k.declarations&&k.declarations.some(V=>ju(V)))return;const G=E!==void 0?u1e(O,gw(O.text,C,e.getCompilerOptions(),o),r,c):TGe(k,O,f,e,o,r);return G!==void 0&&(G.updated||I&&Nf(O.text))?nE.updateModuleSpecifier(e.getCompilerOptions(),f,s(v),G.newFileName,f2(e,o),O.text):void 0})}}function EGe(e,t){return Ko(Bi(e,t))}function TZ(e,t){return L1(EGe(e,t))}function TGe(e,t,r,i,o,s){var c;if(e){const f=In(e.declarations,Ji).fileName,d=s(f);return d===void 0?{newFileName:f,updated:!1}:{newFileName:d,updated:!0}}else{const f=wp(r,t),d=o.resolveModuleNameLiterals||!o.resolveModuleNames?(c=r.resolvedModules)==null?void 0:c.get(t.text,f):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,f);return u1e(t,d,s,i.getSourceFiles())}}function u1e(e,t,r,i){if(!t)return;if(t.resolvedModule){const d=f(t.resolvedModule.resolvedFileName);if(d)return d}const o=Je(t.failedLookupLocations,s)||Nf(e.text)&&Je(t.failedLookupLocations,c);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(d){const v=r(d);return v&&In(i,h=>h.fileName===v)?c(d):void 0}function c(d){return cc(d,"/package.json")?void 0:f(d)}function f(d){const v=r(d);return v&&{newFileName:v,updated:!0}}}function SGe(e,t,r,i){for(const o of e.referencedFiles||rt){const s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(const o of e.imports){const s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,d1e(o,e),s)}}function d1e(e,t){return x_(e.getStart(t)+1,e.end-1)}function SZ(e,t){if(Is(e))for(const r of e.properties)$c(r)&&Ho(r.name)&&t(r,r.name.text)}var xGe=S({"src/services/getEditsForFileRename.ts"(){Qr()}});function M6(e,t){return{kind:e,isCaseSensitive:t}}function f1e(e){const t=new Map,r=e.trim().split(".").map(i=>IGe(i.trim()));if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>AGe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>xZ(i,Jo(r),t),patternContainsDots:r.length>1}}function AGe(e,t,r,i){if(!xZ(t,Jo(r),i)||r.length-1>e.length)return;let s;for(let c=r.length-2,f=e.length-1;c>=0;c-=1,f-=1)s=m1e(s,xZ(e[f],r[c],i));return s}function _1e(e,t){let r=t.get(e);return r||t.set(e,r=v1e(e)),r}function p1e(e,t,r){const i=kGe(e,t.textLowerCase);if(i===0)return M6(t.text.length===e.length?0:1,Ta(e,t.text));if(t.isLowerCase){if(i===-1)return;const o=_1e(e,r);for(const s of o)if(AZ(e,s,t.text,!0))return M6(2,AZ(e,s,t.text,!1));if(t.text.length<e.length&&m2(e.charCodeAt(i)))return M6(2,!1)}else{if(e.indexOf(t.text)>0)return M6(2,!0);if(t.characterSpans.length>0){const o=_1e(e,r),s=h1e(e,o,t,!1)?!0:h1e(e,o,t,!0)?!1:void 0;if(s!==void 0)return M6(3,s)}}}function xZ(e,t,r){if(iB(t.totalTextChunk.text,s=>s!==32&&s!==42)){const s=p1e(e,t.totalTextChunk,r);if(s)return s}const i=t.subWordTextChunks;let o;for(const s of i)o=m1e(o,p1e(e,s,r));return o}function m1e(e,t){return SH([e,t],CGe)}function CGe(e,t){return e===void 0?1:t===void 0?-1:qs(e.kind,t.kind)||E1(!e.isCaseSensitive,!t.isCaseSensitive)}function AZ(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&T1e(0,o.length,s=>LGe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function LGe(e,t,r){return r?CZ(e)===CZ(t):e===t}function h1e(e,t,r,i){const o=r.characterSpans;let s=0,c=0;for(;;){if(c===o.length)return!0;if(s===t.length)return!1;let f=t[s],d=!1;for(;c<o.length;c++){const v=o[c];if(d&&(!m2(r.text.charCodeAt(o[c-1].start))||!m2(r.text.charCodeAt(o[c].start)))||!AZ(e,f,r.text,i,v))break;d=!0,f=Pc(f.start+v.length,f.length-v.length)}s++}}function IGe(e){return{totalTextChunk:IZ(e),subWordTextChunks:DGe(e)}}function m2(e){if(e>=65&&e<=90)return!0;if(e<127||!JM(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function g1e(e){if(e>=97&&e<=122)return!0;if(e<127||!JM(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function kGe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(iB(t,(o,s)=>CZ(e.charCodeAt(s+i))===o))return i;return-1}function CZ(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function LZ(e){return e>=48&&e<=57}function wGe(e){return m2(e)||g1e(e)||LZ(e)||e===95||e===36}function DGe(e){const t=[];let r=0,i=0;for(let o=0;o<e.length;o++){const s=e.charCodeAt(o);wGe(s)?(i===0&&(r=o),i++):i>0&&(t.push(IZ(e.substr(r,i))),i=0)}return i>0&&t.push(IZ(e.substr(r,i))),t}function IZ(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:y1e(e)}}function y1e(e){return b1e(e,!1)}function v1e(e){return b1e(e,!0)}function b1e(e,t){const r=[];let i=0;for(let o=1;o<e.length;o++){const s=LZ(e.charCodeAt(o-1)),c=LZ(e.charCodeAt(o)),f=NGe(e,t,o),d=t&&RGe(e,o,i);(kZ(e.charCodeAt(o-1))||kZ(e.charCodeAt(o))||s!==c||f||d)&&(E1e(e,i,o)||r.push(Pc(i,o-i)),i=o)}return E1e(e,i,e.length)||r.push(Pc(i,e.length-i)),r}function kZ(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function E1e(e,t,r){return iB(e,i=>kZ(i)&&i!==95,t,r)}function RGe(e,t,r){return t!==r&&t+1<e.length&&m2(e.charCodeAt(t))&&g1e(e.charCodeAt(t+1))&&iB(e,m2,r,t)}function NGe(e,t,r){const i=m2(e.charCodeAt(r-1));return m2(e.charCodeAt(r))&&(!t||!i)}function T1e(e,t,r){for(let i=e;i<t;i++)if(!r(i))return!1;return!0}function iB(e,t,r=0,i=e.length){return T1e(r,i,o=>t(e.charCodeAt(o),o))}var aB,OGe=S({"src/services/patternMatcher.ts"(){Qr(),aB=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(aB||{})}});function S1e(e,t=!0,r=!1){const i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[];let s,c,f,d=0,v=!1;function h(){return c=f,f=ku.scan(),f===18?d++:f===19&&d--,f}function E(){const Y=ku.getTokenValue(),$=ku.getTokenPos();return{fileName:Y,pos:$,end:$+Y.length}}function C(){s||(s=[]),s.push({ref:E(),depth:d})}function L(){o.push(E()),I()}function I(){d===0&&(v=!0)}function O(){let Y=ku.getToken();return Y===136?(Y=h(),Y===142&&(Y=h(),Y===10&&C()),!0):!1}function k(){if(c===24)return!1;let Y=ku.getToken();if(Y===100){if(Y=h(),Y===20){if(Y=h(),Y===10||Y===14)return L(),!0}else{if(Y===10)return L(),!0;if(Y===154&&ku.lookAhead(()=>{const M=ku.scan();return M!==158&&(M===41||M===18||M===79||Dd(M))})&&(Y=h()),Y===79||Dd(Y))if(Y=h(),Y===158){if(Y=h(),Y===10)return L(),!0}else if(Y===63){if(V(!0))return!0}else if(Y===27)Y=h();else return!0;if(Y===18){for(Y=h();Y!==19&&Y!==1;)Y=h();Y===19&&(Y=h(),Y===158&&(Y=h(),Y===10&&L()))}else Y===41&&(Y=h(),Y===128&&(Y=h(),(Y===79||Dd(Y))&&(Y=h(),Y===158&&(Y=h(),Y===10&&L()))))}return!0}return!1}function G(){let Y=ku.getToken();if(Y===93){if(I(),Y=h(),Y===154&&ku.lookAhead(()=>{const M=ku.scan();return M===41||M===18})&&(Y=h()),Y===18){for(Y=h();Y!==19&&Y!==1;)Y=h();Y===19&&(Y=h(),Y===158&&(Y=h(),Y===10&&L()))}else if(Y===41)Y=h(),Y===158&&(Y=h(),Y===10&&L());else if(Y===100&&(Y=h(),Y===154&&ku.lookAhead(()=>{const M=ku.scan();return M===79||Dd(M)})&&(Y=h()),(Y===79||Dd(Y))&&(Y=h(),Y===63&&V(!0))))return!0;return!0}return!1}function V(Y,$=!1){let M=Y?h():ku.getToken();return M===147?(M=h(),M===20&&(M=h(),(M===10||$&&M===14)&&L()),!0):!1}function H(){let Y=ku.getToken();if(Y===79&&ku.getTokenValue()==="define"){if(Y=h(),Y!==20)return!0;if(Y=h(),Y===10||Y===14)if(Y=h(),Y===27)Y=h();else return!0;if(Y!==22)return!0;for(Y=h();Y!==23&&Y!==1;)(Y===10||Y===14)&&L(),Y=h();return!0}return!1}function ne(){for(ku.setText(e),h();ku.getToken()!==1;){if(ku.getToken()===15){const Y=[ku.getToken()];e:for(;Le(Y);){const $=ku.scan();switch($){case 1:break e;case 100:k();break;case 15:Y.push($);break;case 18:Le(Y)&&Y.push($);break;case 19:Le(Y)&&(rl(Y)===15?ku.reScanTemplateToken(!1)===17&&Y.pop():Y.pop());break}}h()}O()||k()||G()||r&&(V(!1,!0)||H())||h()}ku.setText(void 0)}if(t&&ne(),WK(i,e),zK(i,lo),v){if(s)for(const Y of s)o.push(Y.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let Y;if(s)for(const $ of s)$.depth===0?(Y||(Y=[]),Y.push($.ref.fileName)):o.push($.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:Y}}}var PGe=S({"src/services/preProcess.ts"(){Qr()}});function x1e(e){const t=cu(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:f,tryGetGeneratedPosition:d,toLineColumnOffset:C,clearCache:L};function s(I){return Js(I,r,t)}function c(I,O){const k=s(I),G=o.get(k);if(G)return G;let V;if(e.getDocumentPositionMapper)V=e.getDocumentPositionMapper(I,O);else if(e.readFile){const H=E(I);V=H&&A1e({getSourceFileLike:E,getCanonicalFileName:t,log:ne=>e.log(ne)},I,fye(H.text,hg(H)),ne=>!e.fileExists||e.fileExists(ne)?e.readFile(ne):void 0)}return o.set(k,V||EF),V||EF}function f(I){if(!yd(I.fileName)||!v(I.fileName))return;const k=c(I.fileName).getSourcePosition(I);return!k||k===I?void 0:f(k)||k}function d(I){if(yd(I.fileName))return;const O=v(I.fileName);if(!O)return;const k=e.getProgram();if(k.isSourceOfProjectReferenceRedirect(O.fileName))return;const G=k.getCompilerOptions(),V=Ks(G),H=V?qd(V)+".d.ts":wq(I.fileName,k.getCompilerOptions(),r,k.getCommonSourceDirectory(),t);if(H===void 0)return;const ne=c(H,I.fileName).getGeneratedPosition(I);return ne===I?void 0:ne}function v(I){const O=e.getProgram();if(!O)return;const k=s(I),G=O.getSourceFileByPath(k);return G&&G.resolvedPath===k?G:void 0}function h(I){const O=s(I),k=i.get(O);if(k!==void 0)return k||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(O)){i.set(O,!1);return}const G=e.readFile(O),V=G?MGe(G):!1;return i.set(O,V),V||void 0}function E(I){return e.getSourceFileLike?e.getSourceFileLike(I):v(I)||h(I)}function C(I,O){return E(I).getLineAndCharacterOfPosition(O)}function L(){i.clear(),o.clear()}}function A1e(e,t,r,i){let o=_ye(r);if(o){const f=L1e.exec(o);if(f){if(f[1]){const d=f[1];return C1e(e,D_e(nu,d),t)}o=void 0}}const s=[];o&&s.push(o),s.push(t+".map");const c=o&&Oa(o,yi(t));for(const f of s){const d=Oa(f,yi(t)),v=i(d,c);if(Ha(v))return C1e(e,v,d);if(v!==void 0)return v||void 0}}function C1e(e,t,r){const i=ZX(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Ha)))return yye(e,i,r)}function MGe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return rN(hg(this),r)}}}var L1e,FGe=S({"src/services/sourcemaps.ts"(){Qr(),Qr(),L1e=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/}});function wZ(e,t,r){t.getSemanticDiagnostics(e,r);const i=[],o=t.getTypeChecker();!(e.impliedNodeFormat===1||Ic(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(hbe(t)||BQ(t.getCompilerOptions()))&&BGe(e)&&i.push(Nr(jGe(e.commonJsModuleIndicator),_.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const c=sd(e);if(sB.clear(),f(e),FT(t.getCompilerOptions()))for(const d of e.imports){const v=WN(d),h=GGe(v);if(!h)continue;const E=YA(e,d.text,wp(e,d)),C=E&&t.getSourceFile(E.resolvedFileName);C&&C.externalModuleIndicator&&C.externalModuleIndicator!==!0&&Vl(C.externalModuleIndicator)&&C.externalModuleIndicator.isExportEquals&&i.push(Nr(h,_.Import_may_be_converted_to_a_default_import))}return Ai(i,e.bindSuggestionDiagnostics),Ai(i,t.getSuggestionDiagnostics(e,r)),i.sort((d,v)=>d.start-v.start);function f(d){if(c)WGe(d,o)&&i.push(Nr(Xi(d.parent)?d.parent.name:d,_.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(gc(d)&&d.parent===e&&d.declarationList.flags&2&&d.declarationList.declarations.length===1){const v=d.declarationList.declarations[0].initializer;v&&wd(v,!0)&&i.push(Nr(v,_.require_call_may_be_converted_to_an_import))}Yu.parameterShouldGetTypeFromJSDoc(d)&&i.push(Nr(d.name||d,_.JSDoc_types_may_be_moved_to_TypeScript_types))}NZ(d)&&UGe(d,o,i),d.forEachChild(f)}}function BGe(e){return e.statements.some(t=>{switch(t.kind){case 240:return t.declarationList.declarations.some(r=>!!r.initializer&&wd(I1e(r.initializer),!0));case 241:{const{expression:r}=t;if(!br(r))return wd(r,!0);const i=wl(r);return i===1||i===2}default:return!1}})}function I1e(e){return Fr(e)?I1e(e.expression):e}function GGe(e){switch(e.kind){case 269:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===271&&Ho(r)?t.namedBindings.name:void 0;case 268:return e.name;default:return}}function UGe(e,t,r){VGe(e,t)&&!sB.has(R1e(e))&&r.push(Nr(!e.name&&Xi(e.parent)&&je(e.parent.name)?e.parent.name:e,_.This_may_be_converted_to_an_async_function))}function VGe(e,t){return!mC(e)&&e.body&&uo(e.body)&&HGe(e.body,t)&&DZ(e,t)}function DZ(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function jGe(e){return br(e)?e.left:e}function HGe(e,t){return!!AT(e,r=>oB(r,t))}function oB(e,t){return Ip(e)&&!!e.expression&&RZ(e.expression,t)}function RZ(e,t){if(!k1e(e)||!w1e(e)||!e.arguments.every(i=>D1e(i,t)))return!1;let r=e.expression.expression;for(;k1e(r)||Fr(r);)if(io(r)){if(!w1e(r)||!r.arguments.every(i=>D1e(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function k1e(e){return io(e)&&(p6(e,"then")||p6(e,"catch")||p6(e,"finally"))}function w1e(e){const t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.length<r?!0:r===1||kt(e.arguments,i=>i.kind===104||je(i)&&i.text==="undefined")}function D1e(e,t){switch(e.kind){case 259:case 215:if(Jc(e)&1)return!1;case 216:sB.set(R1e(e),!0);case 104:return!0;case 79:case 208:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||kt(gf(i,t).declarations,o=>Xa(o)||Uv(o)&&!!o.initializer&&Xa(o.initializer)):!1}default:return!1}}function R1e(e){return`${e.pos.toString()}:${e.end.toString()}`}function WGe(e,t){var r,i,o,s;if(Us(e)){if(Xi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;const c=t.getSymbolOfExpando(e,!1);return!!(c&&((i=c.exports)!=null&&i.size||(o=c.members)!=null&&o.size))}return xc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function NZ(e){switch(e.kind){case 259:case 171:case 215:case 216:return!0;default:return!1}}var sB,zGe=S({"src/services/suggestionDiagnostics.ts"(){Qr(),sB=new Map}});function N1e(e,t){const r=[],i=t.compilerOptions?OZ(t.compilerOptions,r):{},o=pB();for(const C in o)Fs(o,C)&&i[C]===void 0&&(i[C]=o[C]);for(const C of yX)i.verbatimModuleSyntax&&O1e.has(C.name)||(i[C.name]=C.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const s=_b(i),c={getSourceFile:C=>C===Ko(f)?d:void 0,writeFile:(C,L)=>{hc(C,".map")?(D.assertEqual(h,void 0,"Unexpected multiple source map outputs, file:",C),h=L):(D.assertEqual(v,void 0,"Unexpected multiple outputs, file:",C),v=L)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:C=>C,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:C=>C===f,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},f=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),d=m8(f,e,{languageVersion:ts(i),impliedNodeFormat:FF(Js(f,"",c.getCanonicalFileName),void 0,c,i),setExternalModuleIndicator:yO(i)});t.moduleName&&(d.moduleName=t.moduleName),t.renamedDependencies&&(d.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let v,h;const E=BF([f],i,c);return t.reportDiagnostics&&(Ai(r,E.getSyntacticDiagnostics(d)),Ai(r,E.getOptionsDiagnostics())),E.emit(void 0,void 0,void 0,void 0,t.transformers),v===void 0?D.fail("Output generation failed"):{outputText:v,diagnostics:r,sourceMapText:h}}function qGe(e,t,r,i,o){const s=N1e(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Ai(i,s.diagnostics),s.outputText}function OZ(e,t){PZ=PZ||yn(wg,r=>typeof r.type=="object"&&!pf(r.type,i=>typeof i!="number")),e=dbe(e);for(const r of PZ){if(!Fs(e,r.name))continue;const i=e[r.name];Ha(i)?e[r.name]=M5(r,i,t):pf(r.type,o=>o===i)||t.push(JK(r))}return e}var O1e,PZ,JGe=S({"src/services/transpile.ts"(){Qr(),O1e=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function P1e(e,t,r,i,o,s){const c=f1e(i);if(!c)return rt;const f=[];for(const d of e)r.throwIfCancellationRequested(),!(s&&d.isDeclarationFile)&&d.getNamedDeclarations().forEach((v,h)=>{KGe(c,h,v,t,d.fileName,f)});return f.sort(QGe),(o===void 0?f:f.slice(0,o)).map(ZGe)}function KGe(e,t,r,i,o,s){const c=e.getMatchForLastSegmentOfPattern(t);if(c){for(const f of r)if(XGe(f,i))if(e.patternContainsDots){const d=e.getFullMatch($Ge(f),t);d&&s.push({name:t,fileName:o,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:f})}else s.push({name:t,fileName:o,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:f})}}function XGe(e,t){switch(e.kind){case 270:case 273:case 268:const r=t.getSymbolAtLocation(e.name),i=t.getAliasedSymbol(r);return r.escapedName!==i.escapedName;default:return!0}}function YGe(e,t){const r=Ia(e);return!!r&&(M1e(r,t)||r.kind===164&&MZ(r.expression,t))}function MZ(e,t){return M1e(e,t)||Fr(e)&&(t.push(e.name.text),!0)&&MZ(e.expression,t)}function M1e(e,t){return J_(e)&&(t.push(K_(e)),!0)}function $Ge(e){const t=[],r=Ia(e);if(r&&r.kind===164&&!MZ(r.expression,t))return rt;t.shift();let i=oS(e);for(;i;){if(!YGe(i,t))return rt;i=oS(i)}return t.reverse()}function QGe(e,t){return qs(e.matchKind,t.matchKind)||OR(e.name,t.name)}function ZGe(e){const t=e.declaration,r=oS(t),i=r&&Ia(r);return{name:e.name,kind:cE(t),kindModifiers:Fw(t),matchKind:aB[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:dd(t),containerName:i?i.text:"",containerKind:i?cE(r):""}}var eUe=S({"src/services/navigateTo.ts"(){Qr()}}),F1e={};X(F1e,{getNavigateToItems:()=>P1e});var B1e=S({"src/services/_namespaces/ts.NavigateTo.ts"(){eUe()}});function G1e(e,t){dB=t,qw=e;try{return zt(aUe(H1e(e)),oUe)}finally{V1e()}}function U1e(e,t){dB=t,qw=e;try{return Q1e(H1e(e))}finally{V1e()}}function V1e(){qw=void 0,dB=void 0,Jw=[],Ng=void 0,fB=[]}function F6(e){return hL(e.getText(qw))}function lB(e){return e.node.kind}function j1e(e,t){e.children?e.children.push(t):e.children=[t]}function H1e(e){D.assert(!Jw.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Ng=t;for(const r of e.statements)dS(r);return a0(),D.assert(!Ng&&!Jw.length),t}function Sb(e,t){j1e(Ng,FZ(e,t))}function FZ(e,t){return{node:e,name:t||(Au(e)||vt(e)?Ia(e):void 0),additionalNodes:void 0,parent:Ng,children:void 0,indent:Ng.indent+1}}function W1e(e){h2||(h2=new Map),h2.set(e,!0)}function z1e(e){for(let t=0;t<e;t++)a0()}function q1e(e,t){const r=[];for(;!J_(t);){const i=GN(t),o=xg(t);t=t.expression,!(o==="prototype"||Oi(i))&&r.push(i)}r.push(t);for(let i=r.length-1;i>0;i--){const o=r[i];xb(e,o)}return[r.length-1,r[0]]}function xb(e,t){const r=FZ(e,t);j1e(Ng,r),Jw.push(Ng),zZ.push(h2),h2=void 0,Ng=r}function a0(){Ng.children&&(cB(Ng.children,Ng),UZ(Ng.children)),Ng=Jw.pop(),h2=zZ.pop()}function o0(e,t,r){xb(e,r),dS(t),a0()}function J1e(e){e.initializer&&lUe(e.initializer)?(xb(e),Pa(e.initializer,dS),a0()):o0(e,e.initializer)}function BZ(e){return!Hv(e)||e.kind!==223&&Fr(e.name.expression)&&je(e.name.expression.expression)&&Mr(e.name.expression.expression)==="Symbol"}function dS(e){if(dB.throwIfCancellationRequested(),!(!e||px(e)))switch(e.kind){case 173:const t=e;o0(t,t.body);for(const c of t.parameters)df(c,t)&&Sb(c);break;case 171:case 174:case 175:case 170:BZ(e)&&o0(e,e.body);break;case 169:BZ(e)&&J1e(e);break;case 168:BZ(e)&&Sb(e);break;case 270:const r=e;r.name&&Sb(r.name);const{namedBindings:i}=r;if(i)if(i.kind===271)Sb(i);else for(const c of i.elements)Sb(c);break;case 300:o0(e,e.name);break;case 301:const{expression:o}=e;je(o)?Sb(e,o):Sb(e);break;case 205:case 299:case 257:{const c=e;Ya(c.name)?dS(c.name):J1e(c);break}case 259:const s=e.name;s&&je(s)&&W1e(s.text),o0(e,e.body);break;case 216:case 215:o0(e,e.body);break;case 263:xb(e);for(const c of e.members)sUe(c)||Sb(c);a0();break;case 260:case 228:case 261:xb(e);for(const c of e.members)dS(c);a0();break;case 264:o0(e,eEe(e).body);break;case 274:{const c=e.expression,f=Is(c)||io(c)?c:Xs(c)||Us(c)?c.body:void 0;f?(xb(e),dS(f),a0()):Sb(e);break}case 278:case 268:case 178:case 176:case 177:case 262:Sb(e);break;case 210:case 223:{const c=wl(e);switch(c){case 1:case 2:o0(e,e.right);return;case 6:case 3:{const f=e,d=f.left,v=c===3?d.expression:d;let h=0,E;je(v.expression)?(W1e(v.expression.text),E=v.expression):[h,E]=q1e(f,v.expression),c===6?Is(f.right)&&f.right.properties.length>0&&(xb(f,E),Pa(f.right,dS),a0()):Us(f.right)||Xs(f.right)?o0(e,f.right,E):(xb(f,E),o0(e,f.right,d.name),a0()),z1e(h);return}case 7:case 9:{const f=e,d=c===7?f.arguments[0]:f.arguments[0].expression,v=f.arguments[1],[h,E]=q1e(e,d);xb(e,E),xb(e,ht(N.createIdentifier(v.text),v)),dS(e.arguments[2]),a0(),a0(),z1e(h);return}case 5:{const f=e,d=f.left,v=d.expression;if(je(v)&&xg(d)!=="prototype"&&h2&&h2.has(v.text)){Us(f.right)||Xs(f.right)?o0(e,f.right,v):kT(d)&&(xb(f,v),o0(f.left,f.right,GN(d)),a0());return}break}case 4:case 0:case 8:break;default:D.assertNever(c)}}default:Of(e)&&Je(e.jsDoc,c=>{Je(c.tags,f=>{S_(f)&&Sb(f)})}),Pa(e,dS)}}function cB(e,t){const r=new Map;ni(e,(i,o)=>{const s=i.name||Ia(i.node),c=s&&F6(s);if(!c)return!0;const f=r.get(c);if(!f)return r.set(c,i),!0;if(f instanceof Array){for(const d of f)if(K1e(d,i,o,t))return!1;return f.push(i),!0}else{const d=f;return K1e(d,i,o,t)?!1:(r.set(c,[d,i]),!0)}})}function tUe(e,t,r,i){function o(f){return Us(f)||xc(f)||Xi(f)}const s=br(t.node)||io(t.node)?wl(t.node):0,c=br(e.node)||io(e.node)?wl(e.node):0;if(gL[s]&&gL[c]||o(e.node)&&gL[s]||o(t.node)&&gL[c]||Bc(e.node)&&GZ(e.node)&&gL[s]||Bc(t.node)&&gL[c]||Bc(e.node)&&GZ(e.node)&&o(t.node)||Bc(t.node)&&o(e.node)&&GZ(e.node)){let f=e.additionalNodes&&rl(e.additionalNodes)||e.node;if(!Bc(e.node)&&!Bc(t.node)||o(e.node)||o(t.node)){const v=o(e.node)?e.node:o(t.node)?t.node:void 0;if(v!==void 0){const h=ht(N.createConstructorDeclaration(void 0,[],void 0),v),E=FZ(h);E.indent=e.indent+1,E.children=e.node===v?e.children:t.children,e.children=e.node===v?ya([E],t.children||[t]):ya(e.children||[Ti({},e)],[E])}else(e.children||t.children)&&(e.children=ya(e.children||[Ti({},e)],t.children||[t]),e.children&&(cB(e.children,e),UZ(e.children)));f=e.node=ht(N.createClassDeclaration(void 0,e.name||N.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=ya(e.children,t.children),e.children&&cB(e.children,e);const d=t.node;return i.children[r-1].node.end===f.end?ht(f,{pos:f.pos,end:d.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(ht(N.createClassDeclaration(void 0,e.name||N.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function K1e(e,t,r,i){return tUe(e,t,r,i)?!0:nUe(e.node,t.node,i)?(rUe(e,t),!0):!1}function nUe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(X1e(e,r)&&X1e(t,r)))return!1;switch(e.kind){case 169:case 171:case 174:case 175:return Ja(e)===Ja(t);case 264:return Y1e(e,t)&&HZ(e)===HZ(t);default:return!0}}function GZ(e){return!!(e.flags&8)}function X1e(e,t){const r=dm(e.parent)?e.parent.parent:e.parent;return r===t.node||Ur(t.additionalNodes,r)}function Y1e(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==264||Y1e(e.body,t.body))}function rUe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=ya(e.children,t.children),e.children&&(cB(e.children,e),UZ(e.children))}function UZ(e){e.sort(iUe)}function iUe(e,t){return OR($1e(e.node),$1e(t.node))||qs(lB(e),lB(t))}function $1e(e){if(e.kind===264)return Z1e(e);const t=Ia(e);if(t&&El(t)){const r=U1(t);return r&&ra(r)}switch(e.kind){case 215:case 216:case 228:return nEe(e);default:return}}function VZ(e,t){if(e.kind===264)return hL(Z1e(e));if(t){const r=je(t)?t.text:fl(t)?`[${F6(t.argumentExpression)}]`:F6(t);if(r.length>0)return hL(r)}switch(e.kind){case 308:const r=e;return rc(r)?`"${Ix(Eu(qd(Ko(r.fileName))))}"`:"<global>";case 274:return Vl(e)&&e.isExportEquals?"export=":"default";case 216:case 259:case 215:case 260:case 228:return Wv(e)&1024?"default":nEe(e);case 173:return"constructor";case 177:return"new()";case 176:return"()";case 178:return"[]";default:return"<unknown>"}}function aUe(e){const t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(const s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(lB(o)){case 260:case 228:case 263:case 261:case 264:case 308:case 262:case 349:case 341:return!0;case 216:case 259:case 215:return s(o);default:return!1}function s(c){if(!c.node.body)return!1;switch(lB(c.parent)){case 265:case 308:case 171:case 173:return!0;default:return!1}}}}function Q1e(e){return{text:VZ(e.node,e.name),kind:cE(e.node),kindModifiers:tEe(e.node),spans:jZ(e),nameSpan:e.name&&WZ(e.name),childItems:zt(e.children,Q1e)}}function oUe(e){return{text:VZ(e.node,e.name),kind:cE(e.node),kindModifiers:tEe(e.node),spans:jZ(e),childItems:zt(e.children,t)||fB,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:VZ(r.node,r.name),kind:cE(r.node),kindModifiers:Fw(r.node),spans:jZ(r),childItems:fB,indent:0,bolded:!1,grayed:!1}}}function jZ(e){const t=[WZ(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(WZ(r));return t}function Z1e(e){return ju(e)?kc(e.name):HZ(e)}function HZ(e){const t=[K_(e.name)];for(;e.body&&e.body.kind===264;)e=e.body,t.push(K_(e.name));return t.join(".")}function eEe(e){return e.body&&$l(e.body)?eEe(e.body):e}function sUe(e){return!e.name||e.name.kind===164}function WZ(e){return e.kind===308?r0(e):dd(e,qw)}function tEe(e){return e.parent&&e.parent.kind===257&&(e=e.parent),Fw(e)}function nEe(e){const{parent:t}=e;if(e.name&&TN(e.name)>0)return hL(Rs(e.name));if(Xi(t))return hL(Rs(t.name));if(br(t)&&t.operatorToken.kind===63)return F6(t.left).replace(iEe,"");if($c(t))return F6(t.name);if(Wv(e)&1024)return"default";if(_i(e))return"<class>";if(io(t)){let r=rEe(t.expression);if(r!==void 0){if(r=hL(r),r.length>uB)return`${r} callback`;const i=hL(pa(t.arguments,o=>As(o)?o.getText(qw):void 0).join(", "));return`${r}(${i}) callback`}}return"<function>"}function rEe(e){if(je(e))return e.text;if(Fr(e)){const t=rEe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function lUe(e){switch(e.kind){case 216:case 215:case 228:return!0;default:return!1}}function hL(e){return e=e.length>uB?e.substring(0,uB)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var iEe,uB,dB,qw,Jw,Ng,zZ,h2,fB,gL,cUe=S({"src/services/navigationBar.ts"(){Qr(),iEe=/\s+/g,uB=150,Jw=[],zZ=[],fB=[],gL={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),aEe={};X(aEe,{getNavigationBarItems:()=>G1e,getNavigationTree:()=>U1e});var oEe=S({"src/services/_namespaces/ts.NavigationBar.ts"(){cUe()}});function sEe(e,t,r,i){const o=fN(e)?new gB(e,t,r):e===79?new vB(79,t,r):e===80?new bB(80,t,r):new XZ(e,t,r);return o.parent=i,o.flags=i.flags&50720768,o}function uUe(e,t){if(!fN(e.kind))return rt;const r=[];if(Lz(e))return e.forEachChild(c=>{r.push(c)}),r;ku.setText((t||e.getSourceFile()).text);let i=e.pos;const o=c=>{B6(r,i,c.pos,e),r.push(c),i=c.end},s=c=>{B6(r,i,c.pos,e),r.push(dUe(c,e)),i=c.end};return Je(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),B6(r,i,e.end,e),ku.setText(void 0),r}function B6(e,t,r,i){for(ku.setTextPos(t);t<r;){const o=ku.scan(),s=ku.getTextPos();if(s<=r){if(o===79){if(gpe(i))continue;D.fail(`Did not expect ${D.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(sEe(o,t,s,i))}if(t=s,o===1)break}}function dUe(e,t){const r=sEe(354,e.pos,e.end,t);r._children=[];let i=e.pos;for(const o of e)B6(r._children,i,o.pos,t),r._children.push(o),i=o.end;return B6(r._children,i,e.end,t),r}function lEe(e){return k1(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function _B(e,t){if(!e)return rt;let r=Cb.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(lEe))){const i=new Set;for(const o of e){const s=cEe(t,o,c=>{var f;if(!i.has(c))return i.add(c),o.kind===174||o.kind===175?c.getContextualJsDocTags(o,t):((f=c.declarations)==null?void 0:f.length)===1?c.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function G6(e,t){if(!e)return rt;let r=Cb.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(lEe))){const i=new Set;for(const o of e){const s=cEe(t,o,c=>{if(!i.has(c))return i.add(c),o.kind===174||o.kind===175?c.getContextualDocumentationComment(o,t):c.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(pL(),r))}}return r}function cEe(e,t,r){var i;const o=((i=t.parent)==null?void 0:i.kind)===173?t.parent.parent:t.parent;if(!o)return;const s=Sc(t);return Jt(pk(o),c=>{const f=e.getTypeAtLocation(c),d=s&&f.symbol?e.getTypeOfSymbol(f.symbol):f,v=e.getPropertyOfType(d,t.symbol.name);return v?r(v):void 0})}function fUe(){return{getNodeConstructor:()=>gB,getTokenConstructor:()=>XZ,getIdentifierConstructor:()=>vB,getPrivateIdentifierConstructor:()=>bB,getSourceFileConstructor:()=>yEe,getSymbolConstructor:()=>mEe,getTypeConstructor:()=>hEe,getSignatureConstructor:()=>gEe,getSourceMapSourceConstructor:()=>vEe}}function U6(e){let t=!0;for(const i in e)if(Fs(e,i)&&!uEe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Fs(e,i)){const o=uEe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function uEe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function dEe(e){return e?zt(e,t=>t.text).join(""):""}function pB(){return{target:1,jsx:1}}function fEe(){return Yu.getSupportedErrorCodes()}function _Ee(e,t,r){e.version=r,e.scriptSnapshot=t}function mB(e,t,r,i,o,s){const c=m8(e,x9(t),r,o,s);return _Ee(c,t,i),c}function qZ(e,t,r,i,o){if(i&&r!==e.version){let c;const f=i.span.start!==0?e.text.substr(0,i.span.start):"",d=uu(i.span)!==e.text.length?e.text.substr(uu(i.span)):"";if(i.newLength===0)c=f&&d?f+d:f||d;else{const h=t.getText(i.span.start,i.span.start+i.newLength);c=f&&d?f+h+d:f?f+h:h+d}const v=HK(e,c,i,o);return _Ee(v,t,r),v.nameTable=void 0,e!==v&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),v}const s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return mB(e.fileName,t,s,r,!0,e.scriptKind)}function pEe(e,t=bZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;const s=new bEe(e);let c,f,d=0;const v=e.getCancellationToken?new TEe(e.getCancellationToken()):EEe,h=e.getCurrentDirectory();W_e((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function E(it){e.log&&e.log(it)}const C=cO(e),L=cu(C),I=x1e({useCaseSensitiveFileNames:()=>C,getCurrentDirectory:()=>h,getProgram:G,fileExists:Vo(e,e.fileExists),readFile:Vo(e,e.readFile),getDocumentPositionMapper:Vo(e,e.getDocumentPositionMapper),getSourceFileLike:Vo(e,e.getSourceFileLike),log:E});function O(it){const K=c.getSourceFile(it);if(!K){const Pe=new Error(`Could not find source file: '${it}'.`);throw Pe.ProgramFiles=c.getSourceFiles().map(ee=>ee.fileName),Pe}return K}function k(){var it,K,Pe;if(D.assert(o!==2),e.getProjectVersion){const hi=e.getProjectVersion();if(hi){if(f===hi&&!((it=e.hasChangedAutomaticTypeDirectiveNames)!=null&&it.call(e)))return;f=hi}}const ee=e.getTypeRootsVersion?e.getTypeRootsVersion():0;d!==ee&&(E("TypeRoots version has changed; provide new program"),c=void 0,d=ee);const Re=e.getScriptFileNames().slice(),q=e.getCompilationSettings()||pB(),Rt=e.hasInvalidatedResolutions||v1,gt=Vo(e,e.hasChangedAutomaticTypeDirectiveNames),ft=(K=e.getProjectReferences)==null?void 0:K.call(e);let fn,$n={getSourceFile:Xr,getSourceFileByPath:ss,getCancellationToken:()=>v,getCanonicalFileName:L,useCaseSensitiveFileNames:()=>C,getNewLine:()=>_b(q),getDefaultLibFileName:hi=>e.getDefaultLibFileName(hi),writeFile:lo,getCurrentDirectory:()=>h,fileExists:hi=>e.fileExists(hi),readFile:hi=>e.readFile&&e.readFile(hi),getSymlinkCache:Vo(e,e.getSymlinkCache),realpath:Vo(e,e.realpath),directoryExists:hi=>om(hi,e),getDirectories:hi=>e.getDirectories?e.getDirectories(hi):[],readDirectory:(hi,ua,Dn,fa,ic)=>(D.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(hi,ua,Dn,fa,ic)),onReleaseOldSourceFile:Wi,onReleaseParsedCommandLine:ca,hasInvalidatedResolutions:Rt,hasChangedAutomaticTypeDirectiveNames:gt,trace:Vo(e,e.trace),resolveModuleNames:Vo(e,e.resolveModuleNames),getModuleResolutionCache:Vo(e,e.getModuleResolutionCache),createHash:Vo(e,e.createHash),resolveTypeReferenceDirectives:Vo(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Vo(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Vo(e,e.resolveTypeReferenceDirectiveReferences),useSourceOfProjectReferenceRedirect:Vo(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:So};const li=$n.getSourceFile,{getSourceFileWithCache:Ii}=Z8($n,hi=>Js(hi,h,L),(...hi)=>li.call($n,...hi));$n.getSourceFile=Ii,(Pe=e.setCompilerHost)==null||Pe.call(e,$n);const ki={useCaseSensitiveFileNames:C,fileExists:hi=>$n.fileExists(hi),readFile:hi=>$n.readFile(hi),readDirectory:(...hi)=>$n.readDirectory(...hi),trace:$n.trace,getCurrentDirectory:$n.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:lo},Hi=t.getKeyForCompilationSettings(q);if(jY(c,Re,q,(hi,ua)=>e.getScriptVersion(ua),hi=>$n.fileExists(hi),Rt,gt,So,ft))return;c=BF({rootNames:Re,options:q,host:$n,oldProgram:c,projectReferences:ft}),$n=void 0,fn=void 0,I.clearCache(),c.getTypeChecker();return;function So(hi){const ua=Js(hi,h,L),Dn=fn==null?void 0:fn.get(ua);if(Dn!==void 0)return Dn||void 0;const fa=e.getParsedCommandLine?e.getParsedCommandLine(hi):oo(hi);return(fn||(fn=new Map)).set(ua,fa||!1),fa}function oo(hi){const ua=Xr(hi,100);if(ua)return ua.path=Js(hi,h,L),ua.resolvedPath=ua.path,ua.originalFileName=ua.fileName,E8(ua,ki,Oa(yi(hi),h),void 0,Oa(hi,h))}function ca(hi,ua,Dn){var fa;e.getParsedCommandLine?(fa=e.onReleaseParsedCommandLine)==null||fa.call(e,hi,ua,Dn):ua&&Wi(ua.sourceFile,Dn)}function Wi(hi,ua){const Dn=t.getKeyForCompilationSettings(ua);t.releaseDocumentWithKey(hi.resolvedPath,Dn,hi.scriptKind,hi.impliedNodeFormat)}function Xr(hi,ua,Dn,fa){return ss(hi,Js(hi,h,L),ua,Dn,fa)}function ss(hi,ua,Dn,fa,ic){D.assert($n,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const al=e.getScriptSnapshot(hi);if(!al)return;const jl=KQ(hi,e),Zl=e.getScriptVersion(hi);if(!ic){const Hl=c&&c.getSourceFileByPath(ua);if(Hl){if(jl===Hl.scriptKind)return t.updateDocumentWithKey(hi,ua,e,Hi,al,Zl,jl,Dn);t.releaseDocumentWithKey(Hl.resolvedPath,t.getKeyForCompilationSettings(c.getCompilerOptions()),Hl.scriptKind,Hl.impliedNodeFormat)}}return t.acquireDocumentWithKey(hi,ua,e,Hi,al,Zl,jl,Dn)}}function G(){if(o===2){D.assert(c===void 0);return}return k(),c}function V(){var it;return(it=e.getPackageJsonAutoImportProvider)==null?void 0:it.call(e)}function H(it,K){const Pe=c.getTypeChecker(),ee=Re();if(!ee)return!1;for(const Rt of it)for(const gt of Rt.references){const ft=q(gt);if(D.assertIsDefined(ft),K.has(gt)||_l.isDeclarationOfSymbol(ft,ee)){K.add(gt),gt.isDefinition=!0;const fn=HQ(gt,I,Vo(e,e.fileExists));fn&&K.add(fn)}else gt.isDefinition=!1}return!0;function Re(){for(const Rt of it)for(const gt of Rt.references){if(K.has(gt)){const fn=q(gt);return D.assertIsDefined(fn),Pe.getSymbolAtLocation(fn)}const ft=HQ(gt,I,Vo(e,e.fileExists));if(ft&&K.has(ft)){const fn=q(ft);if(fn)return Pe.getSymbolAtLocation(fn)}}}function q(Rt){const gt=c.getSourceFile(Rt.fileName);if(!gt)return;const ft=Vf(gt,Rt.textSpan.start);return _l.Core.getAdjustedNode(ft,{use:_l.FindReferencesUse.References})}}function ne(){c=void 0}function Y(){if(c){const it=t.getKeyForCompilationSettings(c.getCompilerOptions());Je(c.getSourceFiles(),K=>t.releaseDocumentWithKey(K.resolvedPath,it,K.scriptKind,K.impliedNodeFormat)),c=void 0}e=void 0}function $(it){return k(),c.getSyntacticDiagnostics(O(it),v).slice()}function M(it){k();const K=O(it),Pe=c.getSemanticDiagnostics(K,v);if(!Q_(c.getCompilerOptions()))return Pe.slice();const ee=c.getDeclarationDiagnostics(K,v);return[...Pe,...ee]}function de(it){return k(),wZ(O(it),c,v)}function re(){return k(),[...c.getOptionsDiagnostics(v),...c.getGlobalDiagnostics(v)]}function be(it,K,Pe=mm,ee){const Re=Ka(Ti({},Pe),{includeCompletionsForModuleExports:Pe.includeCompletionsForModuleExports||Pe.includeExternalModuleExports,includeCompletionsWithInsertText:Pe.includeCompletionsWithInsertText||Pe.includeInsertTextCompletions});return k(),x2.getCompletionsAtPosition(e,c,E,O(it),K,Re,Pe.triggerCharacter,Pe.triggerKind,v,ee&&Rc.getFormatContext(ee,e),Pe.includeSymbol)}function ae(it,K,Pe,ee,Re,q=mm,Rt){return k(),x2.getCompletionEntryDetails(c,E,O(it),K,{name:Pe,source:Re,data:Rt},e,ee&&Rc.getFormatContext(ee,e),q,v)}function W(it,K,Pe,ee,Re=mm){return k(),x2.getCompletionEntrySymbol(c,E,O(it),K,{name:Pe,source:ee},e,Re)}function ce(it,K){k();const Pe=O(it),ee=Vf(Pe,K);if(ee===Pe)return;const Re=c.getTypeChecker(),q=me(ee),Rt=hUe(q,Re);if(!Rt||Re.isUnknownSymbol(Rt)){const li=Ee(Pe,q,K)?Re.getTypeAtLocation(q):void 0;return li&&{kind:"",kindModifiers:"",textSpan:dd(q,Pe),displayParts:Re.runWithCancellationToken(v,Ii=>w6(Ii,li,oS(q))),documentation:li.symbol?li.symbol.getDocumentationComment(Re):void 0,tags:li.symbol?li.symbol.getJsDocTags(Re):void 0}}const{symbolKind:gt,displayParts:ft,documentation:fn,tags:$n}=Re.runWithCancellationToken(v,li=>zy.getSymbolDisplayPartsDocumentationAndSymbolKind(li,Rt,Pe,oS(q),q));return{kind:gt,kindModifiers:zy.getSymbolModifiers(Re,Rt),textSpan:dd(q,Pe),displayParts:ft,documentation:fn,tags:$n}}function me(it){return X1(it.parent)&&it.pos===it.parent.pos?it.parent.expression:ew(it.parent)&&it.pos===it.parent.pos||tC(it.parent)&&it.parent.name===it?it.parent:it}function Ee(it,K,Pe){switch(K.kind){case 79:return!hQ(K)&&!gQ(K)&&!vg(K.parent);case 208:case 163:return!Vy(it,Pe);case 108:case 194:case 106:case 199:return!0;case 233:return tC(K);default:return!1}}function xe(it,K,Pe,ee){return k(),iD.getDefinitionAtPosition(c,O(it),K,Pe,ee)}function te(it,K){return k(),iD.getDefinitionAndBoundSpan(c,O(it),K)}function Qe(it,K){return k(),iD.getTypeDefinitionAtPosition(c.getTypeChecker(),O(it),K)}function Ve(it,K){return k(),_l.getImplementationsAtPosition(c,v,c.getSourceFiles(),O(it),K)}function Ge(it,K){return Ga(ze(it,K,[it]),Pe=>Pe.highlightSpans.map(ee=>Ti(Ti({fileName:Pe.fileName,textSpan:ee.textSpan,isWriteAccess:ee.kind==="writtenReference"},ee.isInString&&{isInString:!0}),ee.contextSpan&&{contextSpan:ee.contextSpan})))}function ze(it,K,Pe){const ee=Ko(it);D.assert(Pe.some(Rt=>Ko(Rt)===ee)),k();const Re=pa(Pe,Rt=>c.getSourceFile(Rt)),q=O(it);return tB.getDocumentHighlights(c,v,q,K,Re)}function Oe(it,K,Pe,ee,Re){k();const q=O(it),Rt=h9(Vf(q,K));if(PU.nodeIsEligibleForRename(Rt))if(je(Rt)&&(Gh(Rt.parent)||Zx(Rt.parent))&&yk(Rt.escapedText)){const{openingElement:gt,closingElement:ft}=Rt.parent.parent;return[gt,ft].map(fn=>{const $n=dd(fn.tagName,q);return Ti({fileName:q.fileName,textSpan:$n},_l.toContextSpan($n,q,fn.parent))})}else return Ye(Rt,K,{findInStrings:Pe,findInComments:ee,providePrefixAndSuffixTextForRename:Re,use:_l.FindReferencesUse.Rename},(gt,ft,fn)=>_l.toRenameLocation(gt,ft,fn,Re||!1))}function Me(it,K){return k(),Ye(Vf(O(it),K),K,{use:_l.FindReferencesUse.References},_l.toReferenceEntry)}function Ye(it,K,Pe,ee){k();const Re=Pe&&Pe.use===_l.FindReferencesUse.Rename?c.getSourceFiles().filter(q=>!c.isSourceFileDefaultLibrary(q)):c.getSourceFiles();return _l.findReferenceOrRenameEntries(c,v,Re,it,K,Pe,ee)}function We(it,K){return k(),_l.findReferencedSymbols(c,v,c.getSourceFiles(),O(it),K)}function Fe(it){return k(),_l.Core.getReferencesForFileName(it,c,c.getSourceFiles()).map(_l.toReferenceEntry)}function st(it,K,Pe,ee=!1){k();const Re=Pe?[O(Pe)]:c.getSourceFiles();return P1e(Re,c.getTypeChecker(),v,it,K,ee)}function Ct(it,K,Pe){k();const ee=O(it),Re=e.getCustomTransformers&&e.getCustomTransformers();return Ave(c,ee,!!K,v,Re,Pe)}function Et(it,K,{triggerReason:Pe}=mm){k();const ee=O(it);return xP.getSignatureHelpItems(c,ee,K,Pe,v)}function Vt(it){return s.getCurrentSourceFile(it)}function tt(it,K,Pe){const ee=s.getCurrentSourceFile(it),Re=Vf(ee,K);if(Re===ee)return;switch(Re.kind){case 208:case 163:case 10:case 95:case 110:case 104:case 106:case 108:case 194:case 79:break;default:return}let q=Re;for(;;)if(cL(q)||J0e(q))q=q.parent;else if(vQ(q))if(q.parent.parent.kind===264&&q.parent.parent.body===q.parent)q=q.parent.parent.name;else break;else break;return Tc(q.getStart(),Re.getEnd())}function at(it,K){const Pe=s.getCurrentSourceFile(it);return ree.spanInSourceFileAtLocation(Pe,K)}function on(it){return G1e(s.getCurrentSourceFile(it),v)}function Qt(it){return U1e(s.getCurrentSourceFile(it),v)}function Pn(it,K,Pe){return k(),(Pe||"original")==="2020"?AB.v2020.getSemanticClassifications(c,v,O(it),K):t1e(c.getTypeChecker(),v,O(it),c.getClassifiableNames(),K)}function Hn(it,K,Pe){return k(),(Pe||"original")==="original"?yZ(c.getTypeChecker(),v,O(it),c.getClassifiableNames(),K):AB.v2020.getEncodedSemanticClassifications(c,v,O(it),K)}function kn(it,K){return a1e(v,s.getCurrentSourceFile(it),K)}function Zt(it,K){return vZ(v,s.getCurrentSourceFile(it),K)}function _r(it){const K=s.getCurrentSourceFile(it);return nre.collectElements(K,v)}const wi=new Map(Object.entries({18:19,20:21,22:23,31:29}));wi.forEach((it,K)=>wi.set(it.toString(),Number(K)));function Qi(it,K){const Pe=s.getCurrentSourceFile(it),ee=Mw(Pe,K),Re=ee.getStart(Pe)===K?wi.get(ee.kind.toString()):void 0,q=Re&&Es(ee.parent,Re,Pe);return q?[dd(ee,Pe),dd(q,Pe)].sort((Rt,gt)=>Rt.start-gt.start):rt}function Zi(it,K,Pe){let ee=sl();const Re=U6(Pe),q=s.getCurrentSourceFile(it);E("getIndentationAtPosition: getCurrentSourceFile: "+(sl()-ee)),ee=sl();const Rt=Rc.SmartIndenter.getIndentation(K,q,Re);return E("getIndentationAtPosition: computeIndentation : "+(sl()-ee)),Rt}function Or(it,K,Pe,ee){const Re=s.getCurrentSourceFile(it);return Rc.formatSelection(K,Pe,Re,Rc.getFormatContext(U6(ee),e))}function At(it,K){return Rc.formatDocument(s.getCurrentSourceFile(it),Rc.getFormatContext(U6(K),e))}function vn(it,K,Pe,ee){const Re=s.getCurrentSourceFile(it),q=Rc.getFormatContext(U6(ee),e);if(!Vy(Re,K))switch(Pe){case"{":return Rc.formatOnOpeningCurly(K,Re,q);case"}":return Rc.formatOnClosingCurly(K,Re,q);case";":return Rc.formatOnSemicolon(K,Re,q);case`
- `:return Rc.formatOnEnter(K,Re,q)}return[]}function Ht(it,K,Pe,ee,Re,q=mm){k();const Rt=O(it),gt=Tc(K,Pe),ft=Rc.getFormatContext(Re,e);return Ga(NA(ee,tb,qs),fn=>(v.throwIfCancellationRequested(),Yu.getFixes({errorCode:fn,sourceFile:Rt,span:gt,program:c,host:e,cancellationToken:v,formatContext:ft,preferences:q})))}function un(it,K,Pe,ee=mm){k(),D.assert(it.type==="file");const Re=O(it.fileName),q=Rc.getFormatContext(Pe,e);return Yu.getAllFixes({fixId:K,sourceFile:Re,program:c,host:e,cancellationToken:v,formatContext:q,preferences:ee})}function ir(it,K,Pe=mm){var ee;k(),D.assert(it.type==="file");const Re=O(it.fileName),q=Rc.getFormatContext(K,e),Rt=(ee=it.mode)!=null?ee:it.skipDestructiveCodeActions?"SortAndCombine":"All";return ap.organizeImports(Re,q,e,c,Pe,Rt)}function cr(it,K,Pe,ee=mm){return c1e(G(),it,K,e,Rc.getFormatContext(Pe,e),ee,I)}function Mi(it,K){const Pe=typeof it=="string"?K:it;return Va(Pe)?Promise.all(Pe.map(ee=>vi(ee))):vi(Pe)}function vi(it){const K=Pe=>Js(Pe,h,L);return D.assertEqual(it.type,"install package"),e.installPackage?e.installPackage({fileName:K(it.file),packageName:it.packageName}):Promise.reject("Host does not implement `installPackage`")}function Nn(it,K,Pe,ee){const Re=ee?Rc.getFormatContext(ee,e).options:void 0;return Cb.getDocCommentTemplateAtPosition(Tb(e,Re),s.getCurrentSourceFile(it),K,Pe)}function rn(it,K,Pe){if(Pe===60)return!1;const ee=s.getCurrentSourceFile(it);if(lS(ee,K))return!1;if(ibe(ee,K))return Pe===123;if(LQ(ee,K))return!1;switch(Pe){case 39:case 34:case 96:return!Vy(ee,K)}return!0}function Mn(it,K){const Pe=s.getCurrentSourceFile(it),ee=Dc(K,Pe);if(!ee)return;const Re=ee.kind===31&&Gh(ee.parent)?ee.parent.parent:Vx(ee)&&Fy(ee.parent)?ee.parent:void 0;if(Re&&Ce(Re))return{newText:`</${Re.openingElement.tagName.getText(Pe)}>`};const q=ee.kind===31&&t2(ee.parent)?ee.parent.parent:Vx(ee)&&e2(ee.parent)?ee.parent:void 0;if(q&&pt(q))return{newText:"</>"}}function Ar(it,K){return{lineStarts:it.getLineStarts(),firstLine:it.getLineAndCharacterOfPosition(K.pos).line,lastLine:it.getLineAndCharacterOfPosition(K.end).line}}function Hr(it,K,Pe){const ee=s.getCurrentSourceFile(it),Re=[],{lineStarts:q,firstLine:Rt,lastLine:gt}=Ar(ee,K);let ft=Pe||!1,fn=Number.MAX_VALUE;const $n=new Map,li=new RegExp(/\S/),Ii=y9(ee,q[Rt]),ki=Ii?"{/*":"//";for(let Hi=Rt;Hi<=gt;Hi++){const ho=ee.text.substring(q[Hi],ee.getLineEndOfPosition(q[Hi])),So=li.exec(ho);So&&(fn=Math.min(fn,So.index),$n.set(Hi.toString(),So.index),ho.substr(So.index,ki.length)!==ki&&(ft=Pe===void 0||Pe))}for(let Hi=Rt;Hi<=gt;Hi++){if(Rt!==gt&&q[Hi]===K.end)continue;const ho=$n.get(Hi.toString());ho!==void 0&&(Ii?Re.push.apply(Re,we(it,{pos:q[Hi]+fn,end:ee.getLineEndOfPosition(q[Hi])},ft,Ii)):ft?Re.push({newText:ki,span:{length:0,start:q[Hi]+fn}}):ee.text.substr(q[Hi]+ho,ki.length)===ki&&Re.push({newText:"",span:{length:ki.length,start:q[Hi]+ho}}))}return Re}function we(it,K,Pe,ee){var Re;const q=s.getCurrentSourceFile(it),Rt=[],{text:gt}=q;let ft=!1,fn=Pe||!1;const $n=[];let{pos:li}=K;const Ii=ee!==void 0?ee:y9(q,li),ki=Ii?"{/*":"/*",Hi=Ii?"*/}":"*/",ho=Ii?"\\{\\/\\*":"\\/\\*",So=Ii?"\\*\\/\\}":"\\*\\/";for(;li<=K.end;){const oo=gt.substr(li,ki.length)===ki?ki.length:0,ca=Vy(q,li+oo);if(ca)Ii&&(ca.pos--,ca.end++),$n.push(ca.pos),ca.kind===3&&$n.push(ca.end),ft=!0,li=ca.end+1;else{const Wi=gt.substring(li,K.end).search(`(${ho})|(${So})`);fn=Pe!==void 0?Pe:fn||!vbe(gt,li,Wi===-1?K.end:li+Wi),li=Wi===-1?K.end+1:li+Wi+Hi.length}}if(fn||!ft){((Re=Vy(q,K.pos))==null?void 0:Re.kind)!==2&&Iv($n,K.pos,qs),Iv($n,K.end,qs);const oo=$n[0];gt.substr(oo,ki.length)!==ki&&Rt.push({newText:ki,span:{length:0,start:oo}});for(let ca=1;ca<$n.length-1;ca++)gt.substr($n[ca]-Hi.length,Hi.length)!==Hi&&Rt.push({newText:Hi,span:{length:0,start:$n[ca]}}),gt.substr($n[ca],ki.length)!==ki&&Rt.push({newText:ki,span:{length:0,start:$n[ca]}});Rt.length%2!==0&&Rt.push({newText:Hi,span:{length:0,start:$n[$n.length-1]}})}else for(const oo of $n){const ca=oo-Hi.length>0?oo-Hi.length:0,Wi=gt.substr(ca,Hi.length)===Hi?Hi.length:0;Rt.push({newText:"",span:{length:ki.length,start:oo-Wi}})}return Rt}function yt(it,K){const Pe=s.getCurrentSourceFile(it),{firstLine:ee,lastLine:Re}=Ar(Pe,K);return ee===Re&&K.pos!==K.end?we(it,K,!0):Hr(it,K,!0)}function Nt(it,K){const Pe=s.getCurrentSourceFile(it),ee=[],{pos:Re}=K;let{end:q}=K;Re===q&&(q+=y9(Pe,Re)?2:1);for(let Rt=Re;Rt<=q;Rt++){const gt=Vy(Pe,Rt);if(gt){switch(gt.kind){case 2:ee.push.apply(ee,Hr(it,{end:gt.end,pos:gt.pos+1},!1));break;case 3:ee.push.apply(ee,we(it,{end:gt.end,pos:gt.pos+1},!1))}Rt=gt.end+1}}return ee}function Ce({openingElement:it,closingElement:K,parent:Pe}){return!bb(it.tagName,K.tagName)||Fy(Pe)&&bb(it.tagName,Pe.openingElement.tagName)&&Ce(Pe)}function pt({closingFragment:it,parent:K}){return!!(it.flags&131072)||e2(K)&&pt(K)}function pe(it,K,Pe){const ee=s.getCurrentSourceFile(it),Re=Rc.getRangeOfEnclosingComment(ee,K);return Re&&(!Pe||Re.kind===3)?r0(Re):void 0}function ie(it,K){k();const Pe=O(it);v.throwIfCancellationRequested();const ee=Pe.text,Re=[];if(K.length>0&&!ft(Pe.fileName)){const fn=Rt();let $n;for(;$n=fn.exec(ee);){v.throwIfCancellationRequested();const li=3;D.assert($n.length===K.length+li);const Ii=$n[1],ki=$n.index+Ii.length;if(!Vy(Pe,ki))continue;let Hi;for(let So=0;So<K.length;So++)$n[So+li]&&(Hi=K[So]);if(Hi===void 0)return D.fail();if(gt(ee.charCodeAt(ki+Hi.text.length)))continue;const ho=$n[2];Re.push({descriptor:Hi,message:ho,position:ki})}}return Re;function q(fn){return fn.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Rt(){const fn=/(?:\/\/+\s*)/.source,$n=/(?:\/\*+\s*)/.source,Ii="("+/(?:^(?:\s|\*)*)/.source+"|"+fn+"|"+$n+")",ki="(?:"+zt(K,ca=>"("+q(ca.text)+")").join("|")+")",Hi=/(?:$|\*\/)/.source,ho=/(?:.*?)/.source,So="("+ki+ho+")",oo=Ii+So+Hi;return new RegExp(oo,"gim")}function gt(fn){return fn>=97&&fn<=122||fn>=65&&fn<=90||fn>=48&&fn<=57}function ft(fn){return bu(fn,"/node_modules/")}}function he(it,K,Pe){return k(),PU.getRenameInfo(c,O(it),K,Pe||{})}function j(it,K,Pe,ee,Re,q){const[Rt,gt]=typeof K=="number"?[K,void 0]:[K.pos,K.end];return{file:it,startPosition:Rt,endPosition:gt,program:G(),host:e,formatContext:Rc.getFormatContext(ee,e),cancellationToken:v,preferences:Pe,triggerReason:Re,kind:q}}function He(it,K,Pe){return{file:it,program:G(),host:e,span:K,preferences:Pe,cancellationToken:v}}function Ze(it,K){return Nre.getSmartSelectionRange(K,s.getCurrentSourceFile(it))}function Xe(it,K,Pe=mm,ee,Re){k();const q=O(it);return _D.getApplicableRefactors(j(q,K,Pe,mm,ee,Re))}function Ut(it,K,Pe,ee,Re,q=mm){k();const Rt=O(it);return _D.getEditsForRefactor(j(Rt,Pe,q,K),ee,Re)}function ln(it,K){return K===0?{line:0,character:0}:I.toLineColumnOffset(it,K)}function Sn(it,K){k();const Pe=y2.resolveCallHierarchyDeclaration(c,Vf(O(it),K));return Pe&&Hbe(Pe,ee=>y2.createCallHierarchyItem(c,ee))}function Er(it,K){k();const Pe=O(it),ee=sZ(y2.resolveCallHierarchyDeclaration(c,K===0?Pe:Vf(Pe,K)));return ee?y2.getIncomingCalls(c,ee,v):[]}function ue(it,K){k();const Pe=O(it),ee=sZ(y2.resolveCallHierarchyDeclaration(c,K===0?Pe:Vf(Pe,K)));return ee?y2.getOutgoingCalls(c,ee):[]}function mt(it,K,Pe=mm){k();const ee=O(it);return zne.provideInlayHints(He(ee,K,Pe))}const Wt={dispose:Y,cleanupSemanticCache:ne,getSyntacticDiagnostics:$,getSemanticDiagnostics:M,getSuggestionDiagnostics:de,getCompilerOptionsDiagnostics:re,getSyntacticClassifications:kn,getSemanticClassifications:Pn,getEncodedSyntacticClassifications:Zt,getEncodedSemanticClassifications:Hn,getCompletionsAtPosition:be,getCompletionEntryDetails:ae,getCompletionEntrySymbol:W,getSignatureHelpItems:Et,getQuickInfoAtPosition:ce,getDefinitionAtPosition:xe,getDefinitionAndBoundSpan:te,getImplementationAtPosition:Ve,getTypeDefinitionAtPosition:Qe,getReferencesAtPosition:Me,findReferences:We,getFileReferences:Fe,getOccurrencesAtPosition:Ge,getDocumentHighlights:ze,getNameOrDottedNameSpan:tt,getBreakpointStatementAtPosition:at,getNavigateToItems:st,getRenameInfo:he,getSmartSelectionRange:Ze,findRenameLocations:Oe,getNavigationBarItems:on,getNavigationTree:Qt,getOutliningSpans:_r,getTodoComments:ie,getBraceMatchingAtPosition:Qi,getIndentationAtPosition:Zi,getFormattingEditsForRange:Or,getFormattingEditsForDocument:At,getFormattingEditsAfterKeystroke:vn,getDocCommentTemplateAtPosition:Nn,isValidBraceCompletionAtPosition:rn,getJsxClosingTagAtPosition:Mn,getSpanOfEnclosingComment:pe,getCodeFixesAtPosition:Ht,getCombinedCodeFix:un,applyCodeActionCommand:Mi,organizeImports:ir,getEditsForFileRename:cr,getEmitOutput:Ct,getNonBoundSourceFile:Vt,getProgram:G,getCurrentProgram:()=>c,getAutoImportProvider:V,updateIsDefinitionOfReferencedSymbols:H,getApplicableRefactors:Xe,getEditsForRefactor:Ut,toLineColumnOffset:ln,getSourceMapper:()=>I,clearSourceMapperCache:()=>I.clearCache(),prepareCallHierarchy:Sn,provideCallHierarchyIncomingCalls:Er,provideCallHierarchyOutgoingCalls:ue,toggleLineComment:Hr,toggleMultilineComment:we,commentSelection:yt,uncommentSelection:Nt,provideInlayHints:mt,getSupportedCodeFixes:fEe};switch(o){case 0:break;case 1:$Z.forEach(it=>Wt[it]=()=>{throw new Error(`LanguageService Operation: ${it} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:SEe.forEach(it=>Wt[it]=()=>{throw new Error(`LanguageService Operation: ${it} not allowed in LanguageServiceMode.Syntactic`)});break;default:D.assertNever(o)}return Wt}function JZ(e){return e.nameTable||_Ue(e),e.nameTable}function _Ue(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(je(i)&&!gQ(i)&&i.escapedText||i_(i)&&pUe(i)){const o=hk(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Oi(i)){const o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Pa(i,r),Of(i))for(const o of i.jsDoc)Pa(o,r)})}function pUe(e){return Ag(e)||e.parent.kind===280||gUe(e)||QN(e)}function V6(e){const t=mUe(e);return t&&(Is(t.parent)||$1(t.parent))?t:void 0}function mUe(e){switch(e.kind){case 10:case 14:case 8:if(e.parent.kind===164)return Iz(e.parent.parent)?e.parent.parent:void 0;case 79:return Iz(e.parent)&&(e.parent.parent.kind===207||e.parent.parent.kind===289)&&e.parent.name===e?e.parent:void 0}}function hUe(e,t){const r=V6(e);if(r){const i=t.getContextualType(r.parent),o=i&&hB(r,t,i,!1);if(o&&o.length===1)return ds(o)}return t.getSymbolAtLocation(e)}function hB(e,t,r,i){const o=C6(e.name);if(!o)return rt;if(!r.isUnion()){const c=r.getProperty(o);return c?[c]:rt}const s=pa(r.types,c=>(Is(e.parent)||$1(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(c,e.parent)?void 0:c.getProperty(o));if(i&&(s.length===0||s.length===r.types.length)){const c=r.getProperty(o);if(c)return[c]}return s.length===0?pa(r.types,c=>c.getProperty(o)):s}function gUe(e){return e&&e.parent&&e.parent.kind===209&&e.parent.argumentExpression===e}function yUe(e){if(nu)return Bi(yi(Ko(nu.getExecutingFilePath())),QM(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var KZ,gB,yB,mEe,XZ,vB,bB,hEe,gEe,yEe,vEe,bEe,EEe,TEe,YZ,$Z,SEe,vUe=S({"src/services/services.ts"(){Qr(),Qr(),B1e(),oEe(),KZ="0.8",gB=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){D.assert(!lm(this.pos)&&!lm(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return er(this)}getStart(e,t){return this.assertHasRealPosition(),ST(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=uUe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=In(t,i=>i.kind<312||i.kind>353);return r.kind<163?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=rl(t);if(r)return r.kind<163?r:r.getLastToken(e)}forEachChild(e,t){return Pa(this,e,t)}},yB=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return er(this)}getStart(e,t){return ST(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||rt}getFirstToken(){}getLastToken(){}forEachChild(){}},mEe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Gl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=rt,!this.declarations&&Hm(this)&&this.links.target&&Hm(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=G6([t],e)}else this.documentationComment=G6(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Gv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=G6(yn(this.declarations,Gv),t)),Le(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Iy(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=G6(yn(this.declarations,Iy),t)),Le(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=_B(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Gv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=_B(yn(this.declarations,Gv),t)),Le(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Iy(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=_B(yn(this.declarations,Iy),t)),Le(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},XZ=class extends yB{constructor(e,t,r){super(t,r),this.kind=e}},vB=class extends yB{constructor(e,t,r){super(t,r),this.kind=79}get text(){return Mr(this)}},vB.prototype.kind=79,bB=class extends yB{constructor(e,t,r){super(t,r),this.kind=80}get text(){return Mr(this)}},bB.prototype.kind=80,hEe=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(ri(this)&3)}isClass(){return!!(ri(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(ri(this)&4)return this.checker.getTypeArguments(this)}},gEe=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&Hk(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=G6(dT(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=_B(dT(this.declaration),this.checker))}},yEe=class extends gB{constructor(e,t,r){super(e,t,r),this.kind=308}update(e,t){return HK(this,e,t)}getLineAndCharacterOfPosition(e){return cl(this,e)}getLineStarts(){return hg(this)}getPositionOfLineAndCharacter(e,t,r){return KW(hg(this),e,t,this.text,r)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts();let i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);const o=this.getFullText();return o[i]===`
- `&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=b_();return this.forEachChild(o),e;function t(s){const c=i(s);c&&e.add(c,s)}function r(s){let c=e.get(s);return c||e.set(s,c=[]),c}function i(s){const c=nz(s);return c&&(Cs(c)&&Fr(c.expression)?c.expression.name.text:El(c)?C6(c):void 0)}function o(s){switch(s.kind){case 259:case 215:case 171:case 170:const c=s,f=i(c);if(f){const h=r(f),E=rl(h);E&&c.parent===E.parent&&c.symbol===E.symbol?c.body&&!E.body&&(h[h.length-1]=c):h.push(c)}Pa(s,o);break;case 260:case 228:case 261:case 262:case 263:case 264:case 268:case 278:case 273:case 270:case 271:case 174:case 175:case 184:t(s),Pa(s,o);break;case 166:if(!$r(s,16476))break;case 257:case 205:{const h=s;if(Ya(h.name)){Pa(h.name,o);break}h.initializer&&o(h.initializer)}case 302:case 169:case 168:t(s);break;case 275:const d=s;d.exportClause&&(tp(d.exportClause)?Je(d.exportClause.elements,o):o(d.exportClause.name));break;case 269:const v=s.importClause;v&&(v.name&&t(v.name),v.namedBindings&&(v.namedBindings.kind===271?t(v.namedBindings):Je(v.namedBindings.elements,o)));break;case 223:wl(s)!==0&&t(s);default:Pa(s,o)}}}},vEe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return cl(this,e)}},bEe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,c,f,d;const v=this.host.getScriptSnapshot(e);if(!v)throw new Error("Could not find file: '"+e+"'.");const h=KQ(e,this.host),E=this.host.getScriptVersion(e);let C;if(this.currentFileName!==e){const L={languageVersion:99,impliedNodeFormat:FF(Js(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||db(this.host)),(d=(f=(c=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:c.getModuleResolutionCache)==null?void 0:f.call(c))==null?void 0:d.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:yO(this.host.getCompilationSettings())};C=mB(e,v,L,E,!0,h)}else if(this.currentFileVersion!==E){const L=v.getChangeRange(this.currentFileScriptSnapshot);C=qZ(this.currentSourceFile,v,E,L)}return C&&(this.currentFileVersion=E,this.currentFileName=e,this.currentFileScriptSnapshot=v,this.currentSourceFile=C),this.currentSourceFile}},EEe={isCancellationRequested:v1,throwIfCancellationRequested:lo},TEe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Si)==null||e.instant(Si.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new PI}},YZ=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=sl();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Si)==null||e.instant(Si.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new PI}},$Z=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],SEe=[...$Z,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],j_e(fUe())}});function bUe(e,t,r){const i=[];r=OZ(r,i);const o=Va(e)?e:[e],s=K8(void 0,void 0,N,r,o,t,!0);return s.diagnostics=ya(s.diagnostics,i),s}var EUe=S({"src/services/transform.ts"(){Qr()}});function EB(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function TUe(e,t,r,i){let o;i&&(e.log(t),o=sl());const s=r();if(i){const c=sl();if(e.log(`${t} completed in ${c-o} msec`),Ha(s)){let f=s;f.length>128&&(f=f.substring(0,128)+"..."),e.log(` result.length=${f.length}, result='${JSON.stringify(f)}'`)}}return s}function QZ(e,t,r,i){return xEe(e,t,!0,r,i)}function xEe(e,t,r,i,o){try{const s=TUe(e,t,i,o);return r?JSON.stringify({result:s}):s}catch(s){return s instanceof PI?JSON.stringify({canceled:!0}):(EB(e,s),s.description=t,JSON.stringify({error:s}))}}function ZZ(e,t){return e.map(r=>SUe(r,t))}function SUe(e,t){return{message:t0(e.messageText,t),start:e.start,length:e.length,category:kM(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function eee(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var TB,AEe,tee,nee,SB,CEe,LEe,IEe,kEe,xUe=S({"src/services/shims.ts"(){Qr(),TB=function(){return this}(),AEe=class{constructor(e){this.scriptSnapshotShim=e}getText(e,t){return this.scriptSnapshotShim.getText(e,t)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(e){const t=e,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(r===null)return null;const i=JSON.parse(r);return lN(Pc(i.span.start,i.span.length),i.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},tee=class{constructor(e){this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(t,r)=>{const i=JSON.parse(this.shimHost.getModuleResolutionsForFile(r));return zt(t,o=>{const s=wR(i,o);return s?{resolvedFileName:s,extension:LO(s),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=t=>this.shimHost.directoryExists(t)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(t,r)=>{const i=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return zt(t,o=>wR(i,Ha(o)?o:V_(o.fileName)))})}log(e){this.loggingEnabled&&this.shimHost.log(e)}trace(e){this.tracingEnabled&&this.shimHost.trace(e)}error(e){this.shimHost.error(e)}getProjectVersion(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1}getCompilationSettings(){const e=this.shimHost.getCompilationSettings();if(e===null||e==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");const t=JSON.parse(e);return t.allowNonTsExtensions=!0,t}getScriptFileNames(){const e=this.shimHost.getScriptFileNames();return JSON.parse(e)}getScriptSnapshot(e){const t=this.shimHost.getScriptSnapshot(e);return t&&new AEe(t)}getScriptKind(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0}getScriptVersion(e){return this.shimHost.getScriptVersion(e)}getLocalizedDiagnosticMessages(){const e=this.shimHost.getLocalizedDiagnosticMessages();if(e===null||e==="")return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}}getCancellationToken(){const e=this.shimHost.getCancellationToken();return new YZ(e)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}getDefaultLibFileName(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))}readDirectory(e,t,r,i,o){const s=Pk(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(s.basePaths),s.excludePattern,s.includeFilePattern,s.includeDirectoryPattern,o))}readFile(e,t){return this.shimHost.readFile(e,t)}fileExists(e){return this.shimHost.fileExists(e)}},nee=class{constructor(e){this.shimHost=e,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=t=>this.shimHost.directoryExists(t):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=t=>this.shimHost.realpath(t):this.realpath=void 0}readDirectory(e,t,r,i,o){const s=Pk(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(s.basePaths),s.excludePattern,s.includeFilePattern,s.includeDirectoryPattern,o))}fileExists(e){return this.shimHost.fileExists(e)}readFile(e){return this.shimHost.readFile(e)}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}},SB=class{constructor(e){this.factory=e,e.registerShim(this)}dispose(e){this.factory.unregisterShim(this)}},CEe=class extends SB{constructor(e,t,r){super(e),this.host=t,this.languageService=r,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(e,t){return QZ(this.logger,e,t,this.logPerformance)}dispose(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,TB&&TB.CollectGarbage&&(TB.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(e)}refresh(e){this.forwardJSONCall(`refresh(${e})`,()=>null)}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",()=>(this.languageService.cleanupSemanticCache(),null))}realizeDiagnostics(e){const t=Tb(this.host,void 0);return ZZ(e,t)}getSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getSyntacticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSyntacticClassifications(e,Pc(t,r)))}getSemanticClassifications(e,t,r){return this.forwardJSONCall(`getSemanticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSemanticClassifications(e,Pc(t,r)))}getEncodedSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${e}', ${t}, ${r})`,()=>eee(this.languageService.getEncodedSyntacticClassifications(e,Pc(t,r))))}getEncodedSemanticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSemanticClassifications('${e}', ${t}, ${r})`,()=>eee(this.languageService.getEncodedSemanticClassifications(e,Pc(t,r))))}getSyntacticDiagnostics(e){return this.forwardJSONCall(`getSyntacticDiagnostics('${e}')`,()=>{const t=this.languageService.getSyntacticDiagnostics(e);return this.realizeDiagnostics(t)})}getSemanticDiagnostics(e){return this.forwardJSONCall(`getSemanticDiagnostics('${e}')`,()=>{const t=this.languageService.getSemanticDiagnostics(e);return this.realizeDiagnostics(t)})}getSuggestionDiagnostics(e){return this.forwardJSONCall(`getSuggestionDiagnostics('${e}')`,()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(e)))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",()=>{const e=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(e)})}getQuickInfoAtPosition(e,t){return this.forwardJSONCall(`getQuickInfoAtPosition('${e}', ${t})`,()=>this.languageService.getQuickInfoAtPosition(e,t))}getNameOrDottedNameSpan(e,t,r){return this.forwardJSONCall(`getNameOrDottedNameSpan('${e}', ${t}, ${r})`,()=>this.languageService.getNameOrDottedNameSpan(e,t,r))}getBreakpointStatementAtPosition(e,t){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${e}', ${t})`,()=>this.languageService.getBreakpointStatementAtPosition(e,t))}getSignatureHelpItems(e,t,r){return this.forwardJSONCall(`getSignatureHelpItems('${e}', ${t})`,()=>this.languageService.getSignatureHelpItems(e,t,r))}getDefinitionAtPosition(e,t){return this.forwardJSONCall(`getDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getDefinitionAtPosition(e,t))}getDefinitionAndBoundSpan(e,t){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${e}', ${t})`,()=>this.languageService.getDefinitionAndBoundSpan(e,t))}getTypeDefinitionAtPosition(e,t){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getTypeDefinitionAtPosition(e,t))}getImplementationAtPosition(e,t){return this.forwardJSONCall(`getImplementationAtPosition('${e}', ${t})`,()=>this.languageService.getImplementationAtPosition(e,t))}getRenameInfo(e,t,r){return this.forwardJSONCall(`getRenameInfo('${e}', ${t})`,()=>this.languageService.getRenameInfo(e,t,r))}getSmartSelectionRange(e,t){return this.forwardJSONCall(`getSmartSelectionRange('${e}', ${t})`,()=>this.languageService.getSmartSelectionRange(e,t))}findRenameLocations(e,t,r,i,o){return this.forwardJSONCall(`findRenameLocations('${e}', ${t}, ${r}, ${i}, ${o})`,()=>this.languageService.findRenameLocations(e,t,r,i,o))}getBraceMatchingAtPosition(e,t){return this.forwardJSONCall(`getBraceMatchingAtPosition('${e}', ${t})`,()=>this.languageService.getBraceMatchingAtPosition(e,t))}isValidBraceCompletionAtPosition(e,t,r){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${e}', ${t}, ${r})`,()=>this.languageService.isValidBraceCompletionAtPosition(e,t,r))}getSpanOfEnclosingComment(e,t,r){return this.forwardJSONCall(`getSpanOfEnclosingComment('${e}', ${t})`,()=>this.languageService.getSpanOfEnclosingComment(e,t,r))}getIndentationAtPosition(e,t,r){return this.forwardJSONCall(`getIndentationAtPosition('${e}', ${t})`,()=>{const i=JSON.parse(r);return this.languageService.getIndentationAtPosition(e,t,i)})}getReferencesAtPosition(e,t){return this.forwardJSONCall(`getReferencesAtPosition('${e}', ${t})`,()=>this.languageService.getReferencesAtPosition(e,t))}findReferences(e,t){return this.forwardJSONCall(`findReferences('${e}', ${t})`,()=>this.languageService.findReferences(e,t))}getFileReferences(e){return this.forwardJSONCall(`getFileReferences('${e})`,()=>this.languageService.getFileReferences(e))}getOccurrencesAtPosition(e,t){return this.forwardJSONCall(`getOccurrencesAtPosition('${e}', ${t})`,()=>this.languageService.getOccurrencesAtPosition(e,t))}getDocumentHighlights(e,t,r){return this.forwardJSONCall(`getDocumentHighlights('${e}', ${t})`,()=>{const i=this.languageService.getDocumentHighlights(e,t,JSON.parse(r)),o=V_(ru(e));return yn(i,s=>V_(ru(s.fileName))===o)})}getCompletionsAtPosition(e,t,r,i){return this.forwardJSONCall(`getCompletionsAtPosition('${e}', ${t}, ${r}, ${i})`,()=>this.languageService.getCompletionsAtPosition(e,t,r,i))}getCompletionEntryDetails(e,t,r,i,o,s,c){return this.forwardJSONCall(`getCompletionEntryDetails('${e}', ${t}, '${r}')`,()=>{const f=i===void 0?void 0:JSON.parse(i);return this.languageService.getCompletionEntryDetails(e,t,r,f,o,s,c)})}getFormattingEditsForRange(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsForRange('${e}', ${t}, ${r})`,()=>{const o=JSON.parse(i);return this.languageService.getFormattingEditsForRange(e,t,r,o)})}getFormattingEditsForDocument(e,t){return this.forwardJSONCall(`getFormattingEditsForDocument('${e}')`,()=>{const r=JSON.parse(t);return this.languageService.getFormattingEditsForDocument(e,r)})}getFormattingEditsAfterKeystroke(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${e}', ${t}, '${r}')`,()=>{const o=JSON.parse(i);return this.languageService.getFormattingEditsAfterKeystroke(e,t,r,o)})}getDocCommentTemplateAtPosition(e,t,r,i){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${e}', ${t})`,()=>this.languageService.getDocCommentTemplateAtPosition(e,t,r,i))}getNavigateToItems(e,t,r){return this.forwardJSONCall(`getNavigateToItems('${e}', ${t}, ${r})`,()=>this.languageService.getNavigateToItems(e,t,r))}getNavigationBarItems(e){return this.forwardJSONCall(`getNavigationBarItems('${e}')`,()=>this.languageService.getNavigationBarItems(e))}getNavigationTree(e){return this.forwardJSONCall(`getNavigationTree('${e}')`,()=>this.languageService.getNavigationTree(e))}getOutliningSpans(e){return this.forwardJSONCall(`getOutliningSpans('${e}')`,()=>this.languageService.getOutliningSpans(e))}getTodoComments(e,t){return this.forwardJSONCall(`getTodoComments('${e}')`,()=>this.languageService.getTodoComments(e,JSON.parse(t)))}prepareCallHierarchy(e,t){return this.forwardJSONCall(`prepareCallHierarchy('${e}', ${t})`,()=>this.languageService.prepareCallHierarchy(e,t))}provideCallHierarchyIncomingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyIncomingCalls(e,t))}provideCallHierarchyOutgoingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyOutgoingCalls(e,t))}provideInlayHints(e,t,r){return this.forwardJSONCall(`provideInlayHints('${e}', '${JSON.stringify(t)}', ${JSON.stringify(r)})`,()=>this.languageService.provideInlayHints(e,t,r))}getEmitOutput(e){return this.forwardJSONCall(`getEmitOutput('${e}')`,()=>{const i=this.languageService.getEmitOutput(e),{diagnostics:t}=i,r=Dj(i,["diagnostics"]);return Ka(Ti({},r),{diagnostics:this.realizeDiagnostics(t)})})}getEmitOutputObject(e){return xEe(this.logger,`getEmitOutput('${e}')`,!1,()=>this.languageService.getEmitOutput(e),this.logPerformance)}toggleLineComment(e,t){return this.forwardJSONCall(`toggleLineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleLineComment(e,t))}toggleMultilineComment(e,t){return this.forwardJSONCall(`toggleMultilineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleMultilineComment(e,t))}commentSelection(e,t){return this.forwardJSONCall(`commentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.commentSelection(e,t))}uncommentSelection(e,t){return this.forwardJSONCall(`uncommentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.uncommentSelection(e,t))}},LEe=class extends SB{constructor(e,t){super(e),this.logger=t,this.logPerformance=!1,this.classifier=e1e()}getEncodedLexicalClassifications(e,t,r=!1){return QZ(this.logger,"getEncodedLexicalClassifications",()=>eee(this.classifier.getEncodedLexicalClassifications(e,t,r)),this.logPerformance)}getClassificationsForLine(e,t,r=!1){const i=this.classifier.getClassificationsForLine(e,t,r);let o="";for(const s of i.entries)o+=s.length+`
- `,o+=s.classification+`
- `;return o+=i.finalLexState,o}},IEe=class extends SB{constructor(e,t,r){super(e),this.logger=t,this.host=r,this.logPerformance=!1}forwardJSONCall(e,t){return QZ(this.logger,e,t,this.logPerformance)}resolveModuleName(e,t,r){return this.forwardJSONCall(`resolveModuleName('${e}')`,()=>{const i=JSON.parse(r),o=gw(t,ru(e),i,this.host);let s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&o.resolvedModule.extension!==".ts"&&o.resolvedModule.extension!==".tsx"&&o.resolvedModule.extension!==".d.ts"&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations,affectingLocations:o.affectingLocations}})}resolveTypeReferenceDirective(e,t,r){return this.forwardJSONCall(`resolveTypeReferenceDirective(${e})`,()=>{const i=JSON.parse(r),o=TX(t,ru(e),i,this.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:o.failedLookupLocations}})}getPreProcessedFileInfo(e,t){return this.forwardJSONCall(`getPreProcessedFileInfo('${e}')`,()=>{const r=S1e(x9(t),!0,!0);return{referencedFiles:this.convertFileReferences(r.referencedFiles),importedFiles:this.convertFileReferences(r.importedFiles),ambientExternalModules:r.ambientExternalModules,isLibFile:r.isLibFile,typeReferenceDirectives:this.convertFileReferences(r.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(r.libReferenceDirectives)}})}getAutomaticTypeDirectiveNames(e){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${e}')`,()=>{const t=JSON.parse(e);return Q5(t,this.host)})}convertFileReferences(e){if(!e)return;const t=[];for(const r of e)t.push({path:ru(r.fileName),position:r.pos,length:r.end-r.pos});return t}getTSConfigFileInfo(e,t){return this.forwardJSONCall(`getTSConfigFileInfo('${e}')`,()=>{const r=h8(e,x9(t)),i=ru(e),o=E8(r,this.host,yi(i),{},i);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:ZZ([...r.parseDiagnostics,...o.errors],`\r
- `)}})}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",()=>pB())}discoverTypings(e){const t=cu(!1);return this.forwardJSONCall("discoverTypings()",()=>{const r=JSON.parse(e);return this.safeList===void 0&&(this.safeList=iS.loadSafeList(this.host,Js(r.safeListPath,r.safeListPath,t))),iS.discoverTypings(this.host,i=>this.logger.log(i),r.fileNames,Js(r.projectRootPath,r.projectRootPath,t),this.safeList,r.packageNameToTypingLocation,r.typeAcquisition,r.unresolvedImports,r.typesRegistry,mm)})}},kEe=class{constructor(){this._shims=[]}getServicesVersion(){return KZ}createLanguageServiceShim(e){try{this.documentRegistry===void 0&&(this.documentRegistry=bZ(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));const t=new tee(e),r=pEe(t,this.documentRegistry,!1);return new CEe(this,e,r)}catch(t){throw EB(e,t),t}}createClassifierShim(e){try{return new LEe(this,e)}catch(t){throw EB(e,t),t}}createCoreServicesShim(e){try{const t=new nee(e);return new IEe(this,e,t)}catch(t){throw EB(e,t),t}}close(){Aa(this._shims),this.documentRegistry=void 0}registerShim(e){this._shims.push(e)}unregisterShim(e){for(let t=0;t<this._shims.length;t++)if(this._shims[t]===e){delete this._shims[t];return}throw new Error("Invalid operation")}}}});function AUe(e,t){if(e.isDeclarationFile)return;let r=oa(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const E=Dc(r.pos,e);if(!E||e.getLineAndCharacterOfPosition(E.getEnd()).line!==i)return;r=E}if(r.flags&16777216)return;return h(r);function o(E,C){const L=i2(E)?Yr(E.modifiers,Wu):void 0,I=L?Xo(e.text,L.end):E.getStart(e);return Tc(I,(C||E).getEnd())}function s(E,C){return o(E,sS(C,C.parent,e))}function c(E,C){return E&&i===e.getLineAndCharacterOfPosition(E.getStart(e)).line?h(E):h(C)}function f(E,C,L){if(E){const I=E.indexOf(C);if(I>=0){let O=I,k=I+1;for(;O>0&&L(E[O-1]);)O--;for(;k<E.length&&L(E[k]);)k++;return Tc(Xo(e.text,E[O].pos),E[k-1].end)}}return o(C)}function d(E){return h(Dc(E.pos,e))}function v(E){return h(sS(E,E.parent,e))}function h(E){if(E){const{parent:te}=E;switch(E.kind){case 240:return L(E.declarationList.declarations[0]);case 257:case 169:case 168:return L(E);case 166:return O(E);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:return G(E);case 238:if(CT(E))return V(E);case 265:return H(E);case 295:return H(E.block);case 241:return o(E.expression);case 250:return o(E.getChildAt(0),E.expression);case 244:return s(E,E.expression);case 243:return h(E.statement);case 256:return o(E.getChildAt(0));case 242:return s(E,E.expression);case 253:return h(E.statement);case 249:case 248:return o(E.getChildAt(0),E.label);case 245:return Y(E);case 246:return s(E,E.expression);case 247:return ne(E);case 252:return s(E,E.expression);case 292:case 293:return h(E.statements[0]);case 255:return H(E.tryBlock);case 254:return o(E,E.expression);case 274:return o(E,E.expression);case 268:return o(E,E.moduleReference);case 269:return o(E,E.moduleSpecifier);case 275:return o(E,E.moduleSpecifier);case 264:if(Dg(E)!==1)return;case 260:case 263:case 302:case 205:return o(E);case 251:return h(E.statement);case 167:return f(te.modifiers,E,Wu);case 203:case 204:return $(E);case 261:case 262:return;case 26:case 1:return c(Dc(E.pos,e));case 27:return d(E);case 18:return de(E);case 19:return re(E);case 23:return be(E);case 20:return ae(E);case 21:return W(E);case 58:return ce(E);case 31:case 29:return me(E);case 115:return Ee(E);case 91:case 83:case 96:return v(E);case 162:return xe(E);default:if(jy(E))return M(E);if((E.kind===79||E.kind===227||E.kind===299||E.kind===300)&&jy(te))return o(E);if(E.kind===223){const{left:Qe,operatorToken:Ve}=E;if(jy(Qe))return M(Qe);if(Ve.kind===63&&jy(E.parent))return o(E);if(Ve.kind===27)return h(Qe)}if(Sg(E))switch(te.kind){case 243:return d(E);case 167:return h(E.parent);case 245:case 247:return o(E);case 223:if(E.parent.operatorToken.kind===27)return o(E);break;case 216:if(E.parent.body===E)return o(E);break}switch(E.parent.kind){case 299:if(E.parent.name===E&&!jy(E.parent.parent))return h(E.parent.initializer);break;case 213:if(E.parent.type===E)return v(E.parent.type);break;case 257:case 166:{const{initializer:Qe,type:Ve}=E.parent;if(Qe===E||Ve===E||wy(E.kind))return d(E);break}case 223:{const{left:Qe}=E.parent;if(jy(Qe)&&E!==Qe)return d(E);break}default:if(Xa(E.parent)&&E.parent.type===E)return d(E)}return h(E.parent)}}function C(te){return Ju(te.parent)&&te.parent.declarations[0]===te?o(Dc(te.pos,e,te.parent),te):o(te)}function L(te){if(te.parent.parent.kind===246)return h(te.parent.parent);const Qe=te.parent;if(Ya(te.name))return $(te.name);if(ET(te)&&te.initializer||$r(te,1)||Qe.parent.kind===247)return C(te);if(Ju(te.parent)&&te.parent.declarations[0]!==te)return h(Dc(te.pos,e,te.parent))}function I(te){return!!te.initializer||te.dotDotDotToken!==void 0||$r(te,12)}function O(te){if(Ya(te.name))return $(te.name);if(I(te))return o(te);{const Qe=te.parent,Ve=Qe.parameters.indexOf(te);return D.assert(Ve!==-1),Ve!==0?O(Qe.parameters[Ve-1]):h(Qe.body)}}function k(te){return $r(te,1)||te.parent.kind===260&&te.kind!==173}function G(te){if(te.body)return k(te)?o(te):h(te.body)}function V(te){const Qe=te.statements.length?te.statements[0]:te.getLastToken();return k(te.parent)?c(te.parent,Qe):h(Qe)}function H(te){switch(te.parent.kind){case 264:if(Dg(te.parent)!==1)return;case 244:case 242:case 246:return c(te.parent,te.statements[0]);case 245:case 247:return c(Dc(te.pos,e,te.parent),te.statements[0])}return h(te.statements[0])}function ne(te){if(te.initializer.kind===258){const Qe=te.initializer;if(Qe.declarations.length>0)return h(Qe.declarations[0])}else return h(te.initializer)}function Y(te){if(te.initializer)return ne(te);if(te.condition)return o(te.condition);if(te.incrementor)return o(te.incrementor)}function $(te){const Qe=Je(te.elements,Ve=>Ve.kind!==229?Ve:void 0);return Qe?h(Qe):te.parent.kind===205?o(te.parent):C(te.parent)}function M(te){D.assert(te.kind!==204&&te.kind!==203);const Qe=te.kind===206?te.elements:te.properties,Ve=Je(Qe,Ge=>Ge.kind!==229?Ge:void 0);return Ve?h(Ve):o(te.parent.kind===223?te.parent:te)}function de(te){switch(te.parent.kind){case 263:const Qe=te.parent;return c(Dc(te.pos,e,te.parent),Qe.members.length?Qe.members[0]:Qe.getLastToken(e));case 260:const Ve=te.parent;return c(Dc(te.pos,e,te.parent),Ve.members.length?Ve.members[0]:Ve.getLastToken(e));case 266:return c(te.parent.parent,te.parent.clauses[0])}return h(te.parent)}function re(te){switch(te.parent.kind){case 265:if(Dg(te.parent.parent)!==1)return;case 263:case 260:return o(te);case 238:if(CT(te.parent))return o(te);case 295:return h(rl(te.parent.statements));case 266:const Qe=te.parent,Ve=rl(Qe.clauses);return Ve?h(rl(Ve.statements)):void 0;case 203:const Ge=te.parent;return h(rl(Ge.elements)||Ge);default:if(jy(te.parent)){const ze=te.parent;return o(rl(ze.properties)||ze)}return h(te.parent)}}function be(te){switch(te.parent.kind){case 204:const Qe=te.parent;return o(rl(Qe.elements)||Qe);default:if(jy(te.parent)){const Ve=te.parent;return o(rl(Ve.elements)||Ve)}return h(te.parent)}}function ae(te){return te.parent.kind===243||te.parent.kind===210||te.parent.kind===211?d(te):te.parent.kind===214?v(te):h(te.parent)}function W(te){switch(te.parent.kind){case 215:case 259:case 216:case 171:case 170:case 174:case 175:case 173:case 244:case 243:case 245:case 247:case 210:case 211:case 214:return d(te);default:return h(te.parent)}}function ce(te){return Xa(te.parent)||te.parent.kind===299||te.parent.kind===166?d(te):h(te.parent)}function me(te){return te.parent.kind===213?v(te):h(te.parent)}function Ee(te){return te.parent.kind===243?s(te,te.parent.expression):h(te.parent)}function xe(te){return te.parent.kind===247?v(te):h(te.parent)}}}var CUe=S({"src/services/breakpoints.ts"(){Qr()}}),ree={};X(ree,{spanInSourceFileAtLocation:()=>AUe});var LUe=S({"src/services/_namespaces/ts.BreakpointResolver.ts"(){CUe()}});function IUe(e){return(Us(e)||qu(e))&&Su(e)}function Kw(e){return(Us(e)||Xs(e)||qu(e))&&Xi(e.parent)&&e===e.parent.initializer&&je(e.parent.name)&&!!(xp(e.parent)&2)}function wEe(e){return Ji(e)||$l(e)||xc(e)||Us(e)||Bc(e)||qu(e)||Rl(e)||uc(e)||Ph(e)||Z_(e)||c_(e)}function g2(e){return Ji(e)||$l(e)&&je(e.name)||xc(e)||Bc(e)||Rl(e)||uc(e)||Ph(e)||Z_(e)||c_(e)||IUe(e)||Kw(e)}function DEe(e){return Ji(e)?e:Su(e)?e.name:Kw(e)?e.parent.name:D.checkDefined(e.modifiers&&In(e.modifiers,REe))}function REe(e){return e.kind===88}function NEe(e,t){const r=DEe(t);return r&&e.getSymbolAtLocation(r)}function kUe(e,t){if(Ji(t))return{text:t.fileName,pos:0,end:0};if((xc(t)||Bc(t))&&!Su(t)){const o=t.modifiers&&In(t.modifiers,REe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Rl(t)){const o=t.getSourceFile(),s=Xo(o.text,sm(t).pos),c=s+6,f=e.getTypeChecker(),d=f.getSymbolAtLocation(t.parent);return{text:`${d?`${f.symbolToString(d,t.parent)} `:""}static {}`,pos:s,end:c}}const r=Kw(t)?t.parent.name:D.checkDefined(Ia(t),"Expected call hierarchy item to have a name");let i=je(r)?Mr(r):i_(r)?r.text:Cs(r)&&i_(r.expression)?r.expression.text:void 0;if(i===void 0){const o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){const o=$8();i=rk(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function wUe(e){var t,r;if(Kw(e))return dm(e.parent.parent.parent.parent)&&je(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 174:case 175:case 171:return e.parent.kind===207?(t=rz(e.parent))==null?void 0:t.getText():(r=Ia(e.parent))==null?void 0:r.getText();case 259:case 260:case 264:if(dm(e.parent)&&je(e.parent.parent.name))return e.parent.parent.name.getText()}}function OEe(e,t){if(t.body)return t;if(Yl(t))return Dh(t.parent);if(xc(t)||uc(t)){const r=NEe(e,t);return r&&r.valueDeclaration&&el(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function PEe(e,t){const r=NEe(e,t);let i;if(r&&r.declarations){const o=LR(r.declarations),s=zt(r.declarations,d=>({file:d.getSourceFile().fileName,pos:d.pos}));o.sort((d,v)=>Uu(s[d].file,s[v].file)||s[d].pos-s[v].pos);const c=zt(o,d=>r.declarations[d]);let f;for(const d of c)g2(d)&&((!f||f.parent!==d.parent||f.end!==d.pos)&&(i=Bn(i,d)),f=d)}return i}function xB(e,t){var r,i,o;return Rl(t)?t:el(t)?(i=(r=OEe(e,t))!=null?r:PEe(e,t))!=null?i:t:(o=PEe(e,t))!=null?o:t}function MEe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(g2(t))return xB(r,t);if(wEe(t)){const o=rr(t,g2);return o&&xB(r,o)}if(Ag(t)){if(g2(t.parent))return xB(r,t.parent);if(wEe(t.parent)){const o=rr(t.parent,g2);return o&&xB(r,o)}return Xi(t.parent)&&t.parent.initializer&&Kw(t.parent.initializer)?t.parent.initializer:void 0}if(Yl(t))return g2(t.parent)?t.parent:void 0;if(t.kind===124&&Rl(t.parent)){t=t.parent;continue}if(Xi(t)&&t.initializer&&Kw(t.initializer))return t.initializer;if(!i){let o=r.getSymbolAtLocation(t);if(o&&(o.flags&2097152&&(o=r.getAliasedSymbol(o)),o.valueDeclaration)){i=!0,t=o.valueDeclaration;continue}}return}}function iee(e,t){const r=t.getSourceFile(),i=kUe(e,t),o=wUe(t),s=cE(t),c=Fw(t),f=Tc(Xo(r.text,t.getFullStart(),!1,!0),t.getEnd()),d=Tc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:c,name:i.text,containerName:o,span:f,selectionSpan:d}}function DUe(e){return e!==void 0}function RUe(e){if(e.kind===_l.EntryKind.Node){const{node:t}=e;if(pQ(t,!0,!0)||H0e(t,!0,!0)||W0e(t,!0,!0)||z0e(t,!0,!0)||cL(t)||yQ(t)){const r=t.getSourceFile();return{declaration:rr(t,g2)||r,range:PQ(t,r)}}}}function FEe(e){return hs(e.declaration)}function NUe(e,t){return{from:e,fromSpans:t}}function OUe(e,t){return NUe(iee(e,t[0].declaration),zt(t,r=>r0(r.range)))}function PUe(e,t,r){if(Ji(t)||$l(t)||Rl(t))return[];const i=DEe(t),o=yn(_l.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:_l.FindReferencesUse.References},RUe),DUe);return o?wI(o,FEe,s=>OUe(e,s)):[]}function MUe(e,t){function r(o){const s=VT(o)?o.tag:od(o)?o.tagName:dl(o)||Rl(o)?o:o.expression,c=MEe(e,s);if(c){const f=PQ(s,o.getSourceFile());if(Va(c))for(const d of c)t.push({declaration:d,range:f});else t.push({declaration:c,range:f})}}function i(o){if(o&&!(o.flags&16777216)){if(g2(o)){if(_i(o))for(const s of o.members)s.name&&Cs(s.name)&&i(s.name.expression);return}switch(o.kind){case 79:case 268:case 269:case 275:case 261:case 262:return;case 172:r(o);return;case 213:case 231:i(o.expression);return;case 257:case 166:i(o.name),i(o.initializer);return;case 210:r(o),i(o.expression),Je(o.arguments,i);return;case 211:r(o),i(o.expression),Je(o.arguments,i);return;case 212:r(o),i(o.tag),i(o.template);return;case 283:case 282:r(o),i(o.tagName),i(o.attributes);return;case 167:r(o),i(o.expression);return;case 208:case 209:r(o),Pa(o,i);break;case 235:i(o.expression);return}Ih(o)||Pa(o,i)}}return i}function FUe(e,t){Je(e.statements,t)}function BUe(e,t){!$r(e,2)&&e.body&&dm(e.body)&&Je(e.body.statements,t)}function GUe(e,t,r){const i=OEe(e,t);i&&(Je(i.parameters,r),r(i.body))}function UUe(e,t){t(e.body)}function VUe(e,t){Je(e.modifiers,t);const r=G1(e);r&&t(r.expression);for(const i of e.members)np(i)&&Je(i.modifiers,t),ro(i)?t(i.initializer):Yl(i)&&i.body?(Je(i.parameters,t),t(i.body)):Rl(i)&&t(i)}function jUe(e,t){const r=[],i=MUe(e,r);switch(t.kind){case 308:FUe(t,i);break;case 264:BUe(t,i);break;case 259:case 215:case 216:case 171:case 174:case 175:GUe(e.getTypeChecker(),t,i);break;case 260:case 228:VUe(t,i);break;case 172:UUe(t,i);break;default:D.assertNever(t)}return r}function HUe(e,t){return{to:e,fromSpans:t}}function WUe(e,t){return HUe(iee(e,t[0].declaration),zt(t,r=>r0(r.range)))}function zUe(e,t){return t.flags&16777216||Ph(t)?[]:wI(jUe(e,t),FEe,r=>WUe(e,r))}var qUe=S({"src/services/callHierarchy.ts"(){Qr()}}),y2={};X(y2,{createCallHierarchyItem:()=>iee,getIncomingCalls:()=>PUe,getOutgoingCalls:()=>zUe,resolveCallHierarchyDeclaration:()=>MEe});var JUe=S({"src/services/_namespaces/ts.CallHierarchy.ts"(){qUe()}});function KUe(e,t,r,i){const o=BEe(e,t,r,i);D.assert(o.spans.length%3===0);const s=o.spans,c=[];for(let f=0;f<s.length;f+=3)c.push({textSpan:Pc(s[f],s[f+1]),classificationType:s[f+2]});return c}function BEe(e,t,r,i){return{spans:XUe(e,r,i,t),endOfLineState:0}}function XUe(e,t,r,i){const o=[];return e&&t&&YUe(e,t,r,(c,f,d)=>{o.push(c.getStart(t),c.getWidth(t),(f+1<<8)+d)},i),o}function YUe(e,t,r,i,o){const s=e.getTypeChecker();let c=!1;function f(d){switch(d.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 216:o.throwIfCancellationRequested()}if(!d||!e3(r,d.pos,d.getFullWidth())||d.getFullWidth()===0)return;const v=c;if((Fy(d)||Qx(d))&&(c=!0),aw(d)&&(c=!1),je(d)&&!c&&!eVe(d)&&!jk(d.escapedText)){let h=s.getSymbolAtLocation(d);if(h){h.flags&2097152&&(h=s.getAliasedSymbol(h));let E=$Ue(h,aS(d));if(E!==void 0){let C=0;d.parent&&(ms(d.parent)||lee.get(d.parent.kind)===E)&&d.parent.name===d&&(C=1),E===6&&UEe(d)&&(E=9),E=QUe(s,d,E);const L=h.valueDeclaration;if(L){const I=Ay(L),O=xp(L);I&32&&(C|=2),I&512&&(C|=4),E!==0&&E!==2&&(I&64||O&2||h.getFlags()&8)&&(C|=8),(E===7||E===10)&&ZUe(L,t)&&(C|=32),e.isSourceFileDefaultLibrary(L.getSourceFile())&&(C|=16)}else h.declarations&&h.declarations.some(I=>e.isSourceFileDefaultLibrary(I.getSourceFile()))&&(C|=16);i(d,E,C)}}}Pa(d,f),c=v}f(t)}function $Ue(e,t){const r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&ms(i)&&(i=GEe(i)),i&&lee.get(i.kind)}function QUe(e,t,r){if(r===7||r===9||r===6){const i=e.getTypeAtLocation(t);if(i){const o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||tVe(t))return r===9?11:10}}return r}function ZUe(e,t){return ms(e)&&(e=GEe(e)),Xi(e)?(!Ji(e.parent.parent.parent)||jC(e.parent))&&e.getSourceFile()===t:xc(e)?!Ji(e.parent)&&e.getSourceFile()===t:!1}function GEe(e){for(;;)if(ms(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function eVe(e){const t=e.parent;return t&&(Zm(t)||Nd(t)||Yv(t))}function tVe(e){for(;UEe(e);)e=e.parent;return io(e.parent)&&e.parent.expression===e}function UEe(e){return Rd(e.parent)&&e.parent.right===e||Fr(e.parent)&&e.parent.name===e}var aee,oee,see,lee,nVe=S({"src/services/classifier2020.ts"(){Qr(),aee=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(aee||{}),oee=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(oee||{}),see=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(see||{}),lee=new Map([[257,7],[166,6],[169,9],[264,3],[263,1],[302,8],[260,0],[171,11],[259,10],[215,10],[170,11],[174,9],[175,9],[168,9],[261,2],[262,5],[165,4],[299,9],[300,9]])}}),VEe={};X(VEe,{TokenEncodingConsts:()=>aee,TokenModifier:()=>see,TokenType:()=>oee,getEncodedSemanticClassifications:()=>BEe,getSemanticClassifications:()=>KUe});var rVe=S({"src/services/_namespaces/ts.classifier.v2020.ts"(){nVe()}}),AB={};X(AB,{v2020:()=>VEe});var iVe=S({"src/services/_namespaces/ts.classifier.ts"(){rVe()}});function Np(e,t,r){return uee(e,p2(r),t,void 0,void 0)}function ao(e,t,r,i,o,s){return uee(e,p2(r),t,i,p2(o),s)}function cee(e,t,r,i,o,s){return uee(e,p2(r),t,i,o&&p2(o),s)}function uee(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function mo(e){for(const t of e.errorCodes)CB.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)D.assert(!LB.has(t)),LB.set(t,e)}function aVe(){return No(CB.keys())}function oVe(e,t){const{errorCodes:r}=e;let i=0;for(const s of t)if(Ur(r,s.code)&&i++,i>1)break;const o=i<2;return d=>{var v=d,{fixId:s,fixAllDescription:c}=v,f=Dj(v,["fixId","fixAllDescription"]);return o?f:Ka(Ti({},f),{fixId:s,fixAllDescription:c})}}function sVe(e){const t=HEe(e),r=CB.get(String(e.errorCode));return Ga(r,i=>zt(i.getCodeActions(e),oVe(i,t)))}function lVe(e){return LB.get(so(e.fixId,Ha)).getAllCodeActions(e)}function v2(e,t){return{changes:e,commands:t}}function jEe(e,t){return{fileName:e,textChanges:t}}function Ls(e,t,r){const i=[],o=gr.ChangeTracker.with(e,s=>b2(e,t,c=>r(s,c,i)));return v2(o,i.length===0?void 0:i)}function b2(e,t,r){for(const i of HEe(e))Ur(t,i.code)&&r(i)}function HEe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...wZ(t,e,r)]}var CB,LB,cVe=S({"src/services/codeFixProvider.ts"(){Qr(),CB=b_(),LB=new Map}});function WEe(e,t,r){const i=$O(r)?N.createAsExpression(r.expression,N.createKeywordTypeNode(157)):N.createTypeAssertion(N.createKeywordTypeNode(157),r.expression);e.replaceNode(t,r.expression,i)}function zEe(e,t){if(!fr(e))return rr(oa(e,t),r=>$O(r)||fme(r))}var IB,dee,uVe=S({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){Qr(),To(),IB="addConvertToUnknownForNonOverlappingTypes",dee=[_.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],mo({errorCodes:dee,getCodeActions:function(t){const r=zEe(t.sourceFile,t.span.start);if(r===void 0)return;const i=gr.ChangeTracker.with(t,o=>WEe(o,t.sourceFile,r));return[ao(IB,i,_.Add_unknown_conversion_for_non_overlapping_types,IB,_.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[IB],getAllCodeActions:e=>Ls(e,dee,(t,r)=>{const i=zEe(r.file,r.start);i&&WEe(t,r.file,i)})})}}),dVe=S({"src/services/codefixes/addEmptyExportDeclaration.ts"(){Qr(),To(),mo({errorCodes:[_.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,_.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){const{sourceFile:r}=t,i=gr.ChangeTracker.with(t,o=>{const s=N.createExportDeclaration(void 0,!1,N.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[Np("addEmptyExportDeclaration",i,_.Add_export_to_make_this_file_into_a_module)]}})}});function qEe(e,t,r,i){const o=r(s=>fVe(s,e.sourceFile,t,i));return ao(kB,o,_.Add_async_modifier_to_containing_function,kB,_.Add_all_missing_async_modifiers)}function fVe(e,t,r,i){if(i&&i.has(hs(r)))return;i==null||i.add(hs(r));const o=N.updateModifiers(Ol(r,!0),N.createNodeArray(N.createModifiersFromModifierFlags(Wv(r)|512)));e.replaceNode(t,r,o)}function JEe(e,t){if(!t)return;const r=oa(e,t.start);return rr(r,o=>o.getStart(e)<t.start||o.getEnd()>uu(t)?"quit":(Xs(o)||uc(o)||Us(o)||xc(o))&&_L(t,dd(o,e)))}function _Ve(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>by(r)&&by(i)&&_L({start:r,length:i},e)&&s===t&&!!o&&kt(o,c=>c.code===_.Did_you_mean_to_mark_this_function_as_async.code)}var kB,fee,pVe=S({"src/services/codefixes/addMissingAsync.ts"(){Qr(),To(),kB="addMissingAsync",fee=[_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_.Type_0_is_not_assignable_to_type_1.code,_.Type_0_is_not_comparable_to_type_1.code],mo({fixIds:[kB],errorCodes:fee,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:c}=t,f=In(s.getTypeChecker().getDiagnostics(r,o),_Ve(c,i)),d=f&&f.relatedInformation&&In(f.relatedInformation,E=>E.code===_.Did_you_mean_to_mark_this_function_as_async.code),v=JEe(r,d);return v?[qEe(t,v,E=>gr.ChangeTracker.with(t,E))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return Ls(e,fee,(i,o)=>{const s=o.relatedInformation&&In(o.relatedInformation,d=>d.code===_.Did_you_mean_to_mark_this_function_as_async.code),c=JEe(t,s);return c?qEe(e,c,d=>(d(i),[]),r):void 0})}})}});function KEe(e,t,r,i,o){const s=oZ(e,r);return s&&mVe(e,t,r,i,o)&&$Ee(s)?s:void 0}function XEe(e,t,r,i,o,s){const{sourceFile:c,program:f,cancellationToken:d}=e,v=hVe(t,c,d,f,i);if(v){const h=o(E=>{Je(v.initializers,({expression:C})=>_ee(E,r,c,i,C,s)),s&&v.needsSecondPassForFixAll&&_ee(E,r,c,i,t,s)});return Np("addMissingAwaitToInitializer",h,v.initializers.length===1?[_.Add_await_to_initializer_for_0,v.initializers[0].declarationSymbol.name]:_.Add_await_to_initializers)}}function YEe(e,t,r,i,o,s){const c=o(f=>_ee(f,r,e.sourceFile,i,t,s));return ao(wB,c,_.Add_await,wB,_.Fix_all_expressions_possibly_missing_await)}function mVe(e,t,r,i,o){const c=o.getTypeChecker().getDiagnostics(e,i);return kt(c,({start:f,length:d,relatedInformation:v,code:h})=>by(f)&&by(d)&&_L({start:f,length:d},r)&&h===t&&!!v&&kt(v,E=>E.code===_.Did_you_forget_to_use_await.code))}function hVe(e,t,r,i,o){const s=gVe(e,o);if(!s)return;let c=s.isCompleteFix,f;for(const d of s.identifiers){const v=o.getSymbolAtLocation(d);if(!v)continue;const h=si(v.valueDeclaration,Xi),E=h&&si(h.name,je),C=ub(h,240);if(!h||!C||h.type||!h.initializer||C.getSourceFile()!==t||$r(C,1)||!E||!$Ee(h.initializer)){c=!1;continue}const L=i.getSemanticDiagnostics(t,r);if(_l.Core.eachSymbolReferenceInFile(E,o,t,O=>d!==O&&!yVe(O,L,t,o))){c=!1;continue}(f||(f=[])).push({expression:h.initializer,declarationSymbol:v})}return f&&{initializers:f,needsSecondPassForFixAll:!c}}function gVe(e,t){if(Fr(e.parent)&&je(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(je(e))return{identifiers:[e],isCompleteFix:!0};if(br(e)){let r,i=!0;for(const o of[e.left,e.right]){const s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!je(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function yVe(e,t,r,i){const o=Fr(e.parent)?e.parent.name:br(e.parent)?e.parent:e,s=In(t,c=>c.start===o.getStart(r)&&c.start+c.length===o.getEnd());return s&&Ur(DB,s.code)||i.getTypeAtLocation(o).flags&1}function $Ee(e){return e.kind&32768||!!rr(e,t=>t.parent&&Xs(t.parent)&&t.parent.body===t||uo(t)&&(t.parent.kind===259||t.parent.kind===215||t.parent.kind===216||t.parent.kind===171))}function _ee(e,t,r,i,o,s){if(QO(o.parent)&&!o.parent.awaitModifier){const c=i.getTypeAtLocation(o),f=i.getAsyncIterableType();if(f&&i.isTypeAssignableTo(c,f)){const d=o.parent;e.replaceNode(r,d,N.updateForOfStatement(d,N.createToken(133),d.initializer,d.expression,d.statement));return}}if(br(o))for(const c of[o.left,o.right]){if(s&&je(c)){const v=i.getSymbolAtLocation(c);if(v&&s.has(Eo(v)))continue}const f=i.getTypeAtLocation(c),d=i.getPromisedTypeOfPromise(f)?N.createAwaitExpression(c):c;e.replaceNode(r,c,d)}else if(t===pee&&Fr(o.parent)){if(s&&je(o.parent.expression)){const c=i.getSymbolAtLocation(o.parent.expression);if(c&&s.has(Eo(c)))return}e.replaceNode(r,o.parent.expression,N.createParenthesizedExpression(N.createAwaitExpression(o.parent.expression))),QEe(e,o.parent.expression,r)}else if(Ur(mee,t)&&bg(o.parent)){if(s&&je(o)){const c=i.getSymbolAtLocation(o);if(c&&s.has(Eo(c)))return}e.replaceNode(r,o,N.createParenthesizedExpression(N.createAwaitExpression(o))),QEe(e,o,r)}else{if(s&&Xi(o.parent)&&je(o.parent.name)){const c=i.getSymbolAtLocation(o.parent.name);if(c&&!g1(s,Eo(c)))return}e.replaceNode(r,o,N.createAwaitExpression(o))}}function QEe(e,t,r){const i=Dc(t.pos,r);i&&F9(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var wB,pee,mee,DB,vVe=S({"src/services/codefixes/addMissingAwait.ts"(){Qr(),To(),wB="addMissingAwait",pee=_.Property_0_does_not_exist_on_type_1.code,mee=[_.This_expression_is_not_callable.code,_.This_expression_is_not_constructable.code],DB=[_.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,_.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_.Operator_0_cannot_be_applied_to_type_1.code,_.Operator_0_cannot_be_applied_to_types_1_and_2.code,_.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,_.This_condition_will_always_return_true_since_this_0_is_always_defined.code,_.Type_0_is_not_an_array_type.code,_.Type_0_is_not_an_array_type_or_a_string_type.code,_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,_.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,pee,...mee],mo({fixIds:[wB],errorCodes:DB,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:c}=t,f=KEe(r,i,o,s,c);if(!f)return;const d=t.program.getTypeChecker(),v=h=>gr.ChangeTracker.with(t,h);return kR([XEe(t,f,i,d,v),YEe(t,f,i,d,v)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return Ls(e,DB,(c,f)=>{const d=KEe(t,f.code,f,i,r);if(!d)return;const v=h=>(h(c),[]);return XEe(e,d,f.code,o,v,s)||YEe(e,d,f.code,o,v,s)})}})}});function ZEe(e,t,r,i,o){const s=oa(t,r),c=rr(s,v=>JA(v.parent)?v.parent.initializer===v:bVe(v)?!1:"quit");if(c)return RB(e,c,t,o);const f=s.parent;if(br(f)&&f.operatorToken.kind===63&&fu(f.parent))return RB(e,s,t,o);if(zu(f)){const v=i.getTypeChecker();return Zn(f.elements,h=>EVe(h,v))?RB(e,f,t,o):void 0}const d=rr(s,v=>fu(v.parent)?!0:TVe(v)?!1:"quit");if(d){const v=i.getTypeChecker();return eTe(d,v)?RB(e,d,t,o):void 0}}function RB(e,t,r,i){(!i||g1(i,t))&&e.insertModifierBefore(r,85,t)}function bVe(e){switch(e.kind){case 79:case 206:case 207:case 299:case 300:return!0;default:return!1}}function EVe(e,t){const r=je(e)?e:ld(e,!0)&&je(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function TVe(e){switch(e.kind){case 79:case 223:case 27:return!0;default:return!1}}function eTe(e,t){return br(e)?e.operatorToken.kind===27?Zn([e.left,e.right],r=>eTe(r,t)):e.operatorToken.kind===63&&je(e.left)&&!t.getSymbolAtLocation(e.left):!1}var NB,hee,SVe=S({"src/services/codefixes/addMissingConst.ts"(){Qr(),To(),NB="addMissingConst",hee=[_.Cannot_find_name_0.code,_.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],mo({errorCodes:hee,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>ZEe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[ao(NB,r,_.Add_const_to_unresolved_variable,NB,_.Add_const_to_all_unresolved_variables)]},fixIds:[NB],getAllCodeActions:e=>{const t=new Set;return Ls(e,hee,(r,i)=>ZEe(r,i.file,i.start,e.program,t))}})}});function tTe(e,t,r,i){const o=oa(t,r);if(!je(o))return;const s=o.parent;s.kind===169&&(!i||g1(i,s))&&e.insertModifierBefore(t,136,s)}var OB,gee,xVe=S({"src/services/codefixes/addMissingDeclareProperty.ts"(){Qr(),To(),OB="addMissingDeclareProperty",gee=[_.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],mo({errorCodes:gee,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>tTe(i,t.sourceFile,t.span.start));if(r.length>0)return[ao(OB,r,_.Prefix_with_declare,OB,_.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[OB],getAllCodeActions:e=>{const t=new Set;return Ls(e,gee,(r,i)=>tTe(r,i.file,i.start,t))}})}});function nTe(e,t,r){const i=oa(t,r),o=rr(i,Wu);D.assert(!!o,"Expected position to be owned by a decorator.");const s=N.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var PB,yee,AVe=S({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){Qr(),To(),PB="addMissingInvocationForDecorator",yee=[_._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],mo({errorCodes:yee,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>nTe(i,t.sourceFile,t.span.start));return[ao(PB,r,_.Call_decorator_expression,PB,_.Add_to_all_uncalled_decorators)]},fixIds:[PB],getAllCodeActions:e=>Ls(e,yee,(t,r)=>nTe(t,r.file,r.start))})}});function rTe(e,t,r){const i=oa(t,r),o=i.parent;if(!Fa(o))return D.fail("Tried to add a parameter name to a non-parameter: "+D.formatSyntaxKind(i.kind));const s=o.parent.parameters.indexOf(o);D.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),D.assert(s>-1,"Parameter not found in parent parameter list.");const c=N.createTypeReferenceNode(o.name,void 0),f=N.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken?N.createArrayTypeNode(c):c,o.initializer);e.replaceNode(t,o,f)}var MB,vee,CVe=S({"src/services/codefixes/addNameToNamelessParameter.ts"(){Qr(),To(),MB="addNameToNamelessParameter",vee=[_.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],mo({errorCodes:vee,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>rTe(i,t.sourceFile,t.span.start));return[ao(MB,r,_.Add_parameter_name,MB,_.Add_names_to_all_parameters_without_names)]},fixIds:[MB],getAllCodeActions:e=>Ls(e,vee,(t,r)=>rTe(t,r.file,r.start))})}});function LVe(e,t,r){var i,o;const s=iTe(oZ(e,t),r);if(!s)return rt;const{source:c,target:f}=s,d=IVe(c,f,r)?r.getTypeAtLocation(f.expression):r.getTypeAtLocation(f);return(o=(i=d.symbol)==null?void 0:i.declarations)!=null&&o.some(v=>er(v).fileName.match(/\.d\.ts$/))?rt:r.getExactOptionalProperties(d)}function IVe(e,t,r){return Fr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function iTe(e,t){var r;if(e){if(br(e.parent)&&e.parent.operatorToken.kind===63)return{source:e.parent.right,target:e.parent.left};if(Xi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(io(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!gx(i.valueDeclaration.kind)||!vt(e))return;const o=e.parent.arguments.indexOf(e);if(o===-1)return;const s=i.valueDeclaration.parameters[o].name;if(je(s))return{source:e,target:s}}else if($c(e.parent)&&je(e.parent.name)||u_(e.parent)){const i=iTe(e.parent.parent,t);if(!i)return;const o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o==null?void 0:o.declarations)==null?void 0:r[0];return s?{source:$c(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function kVe(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(Bf(i)||ro(i))&&i.type){const o=N.createUnionTypeNode([...i.type.kind===189?i.type.types:[i.type],N.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var bee,aTe,wVe=S({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){Qr(),To(),bee="addOptionalPropertyUndefined",aTe=[_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],mo({errorCodes:aTe,getCodeActions(e){const t=e.program.getTypeChecker(),r=LVe(e.sourceFile,e.span,t);if(!r.length)return;const i=gr.ChangeTracker.with(e,o=>kVe(o,r));return[Np(bee,i,_.Add_undefined_to_optional_property_type)]},fixIds:[bee]})}});function oTe(e,t){const r=oa(e,t);return si(Fa(r.parent)?r.parent.parent:r.parent,sTe)}function sTe(e){return DVe(e)&&lTe(e)}function lTe(e){return el(e)?e.parameters.some(lTe)||!e.type&&!!uN(e):!e.type&&!!Pv(e)}function cTe(e,t,r){if(el(r)&&(uN(r)||r.parameters.some(i=>!!Pv(i)))){if(!r.typeParameters){const o=i7(r);o.length&&e.insertTypeParameters(t,r,o)}const i=Xs(r)&&!Es(r,20,t);i&&e.insertNodeBefore(t,ds(r.parameters),N.createToken(20));for(const o of r.parameters)if(!o.type){const s=Pv(o);s&&e.tryInsertTypeAnnotation(t,o,lt(s,Ab,Gi))}if(i&&e.insertNodeAfter(t,Jo(r.parameters),N.createToken(21)),!r.type){const o=uN(r);o&&e.tryInsertTypeAnnotation(t,r,lt(o,Ab,Gi))}}else{const i=D.checkDefined(Pv(r),"A JSDocType for this declaration should exist");D.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,lt(i,Ab,Gi))}}function DVe(e){return el(e)||e.kind===257||e.kind===168||e.kind===169}function Ab(e){switch(e.kind){case 315:case 316:return N.createTypeReferenceNode("any",rt);case 319:return NVe(e);case 318:return Ab(e.type);case 317:return OVe(e);case 321:return PVe(e);case 320:return MVe(e);case 180:return BVe(e);case 325:return RVe(e);default:const t=Gn(e,Ab,Rg);return sr(t,1),t}}function RVe(e){const t=N.createTypeLiteralNode(zt(e.jsDocPropertyTags,r=>N.createPropertySignature(void 0,je(r.name)?r.name:r.name.right,wO(r)?N.createToken(57):void 0,r.typeExpression&<(r.typeExpression.type,Ab,Gi)||N.createKeywordTypeNode(131))));return sr(t,1),t}function NVe(e){return N.createUnionTypeNode([lt(e.type,Ab,Gi),N.createTypeReferenceNode("undefined",rt)])}function OVe(e){return N.createUnionTypeNode([lt(e.type,Ab,Gi),N.createTypeReferenceNode("null",rt)])}function PVe(e){return N.createArrayTypeNode(lt(e.type,Ab,Gi))}function MVe(e){var t;return N.createFunctionTypeNode(rt,e.parameters.map(FVe),(t=e.type)!=null?t:N.createKeywordTypeNode(131))}function FVe(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===321&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?N.createToken(25):e.dotDotDotToken;return N.createParameterDeclaration(e.modifiers,o,i,e.questionToken,lt(e.type,Ab,Gi),e.initializer)}function BVe(e){let t=e.typeName,r=e.typeArguments;if(je(e.typeName)){if(H3(e))return GVe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=N.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=N.createNodeArray([N.createTypeReferenceNode("any",rt)]):r=Kn(e.typeArguments,Ab,Gi)}return N.createTypeReferenceNode(t,r)}function GVe(e){const t=N.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===148?"n":"s",void 0,N.createTypeReferenceNode(e.typeArguments[0].kind===148?"number":"string",[]),void 0),r=N.createTypeLiteralNode([N.createIndexSignature(void 0,[t],e.typeArguments[1])]);return sr(r,1),r}var FB,Eee,UVe=S({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){Qr(),To(),FB="annotateWithTypeFromJSDoc",Eee=[_.JSDoc_types_may_be_moved_to_TypeScript_types.code],mo({errorCodes:Eee,getCodeActions(e){const t=oTe(e.sourceFile,e.span.start);if(!t)return;const r=gr.ChangeTracker.with(e,i=>cTe(i,e.sourceFile,t));return[ao(FB,r,_.Annotate_with_type_from_JSDoc,FB,_.Annotate_everything_with_types_from_JSDoc)]},fixIds:[FB],getAllCodeActions:e=>Ls(e,Eee,(t,r)=>{const i=oTe(r.file,r.start);i&&cTe(t,r.file,i)})})}});function uTe(e,t,r,i,o,s){const c=i.getSymbolAtLocation(oa(t,r));if(!c||!c.valueDeclaration||!(c.flags&19))return;const f=c.valueDeclaration;if(xc(f)||Us(f))e.replaceNode(t,f,h(f));else if(Xi(f)){const E=v(f);if(!E)return;const C=f.parent.parent;Ju(f.parent)&&f.parent.declarations.length>1?(e.delete(t,f),e.insertNodeAfter(t,C,E)):e.replaceNode(t,C,E)}function d(E){const C=[];return E.exports&&E.exports.forEach(O=>{if(O.name==="prototype"&&O.declarations){const k=O.declarations[0];if(O.declarations.length===1&&Fr(k)&&br(k.parent)&&k.parent.operatorToken.kind===63&&Is(k.parent.right)){const G=k.parent.right;I(G.symbol,void 0,C)}}else I(O,[N.createToken(124)],C)}),E.members&&E.members.forEach((O,k)=>{var G,V,H,ne;if(k==="constructor"&&O.valueDeclaration){const Y=(ne=(H=(V=(G=E.exports)==null?void 0:G.get("prototype"))==null?void 0:V.declarations)==null?void 0:H[0])==null?void 0:ne.parent;Y&&br(Y)&&Is(Y.right)&&kt(Y.right.properties,GB)||e.delete(t,O.valueDeclaration.parent);return}I(O,void 0,C)}),C;function L(O,k){return dl(O)?Fr(O)&&GB(O)?!0:Xa(k):Zn(O.properties,G=>!!(uc(G)||i3(G)||$c(G)&&Us(G.initializer)&&G.name||GB(G)))}function I(O,k,G){if(!(O.flags&8192)&&!(O.flags&4096))return;const V=O.valueDeclaration,H=V.parent,ne=H.right;if(!L(V,ne)||kt(G,re=>{const be=Ia(re);return!!(be&&je(be)&&Mr(be)===Gl(O))}))return;const Y=H.parent&&H.parent.kind===241?H.parent:H;if(e.delete(t,Y),!ne){G.push(N.createPropertyDeclaration(k,O.name,void 0,void 0,void 0));return}if(dl(V)&&(Us(ne)||Xs(ne))){const re=Rp(t,o),be=VVe(V,s,re);be&&$(G,ne,be);return}else if(Is(ne)){Je(ne.properties,re=>{(uc(re)||i3(re))&&G.push(re),$c(re)&&Us(re.initializer)&&$(G,re.initializer,re.name),GB(re)});return}else{if(sd(t)||!Fr(V))return;const re=N.createPropertyDeclaration(k,V.name,void 0,void 0,ne);mL(H.parent,re,t),G.push(re);return}function $(re,be,ae){return Us(be)?M(re,be,ae):de(re,be,ae)}function M(re,be,ae){const W=ya(k,BB(be,132)),ce=N.createMethodDeclaration(W,void 0,ae,void 0,void 0,be.parameters,void 0,be.body);mL(H,ce,t),re.push(ce)}function de(re,be,ae){const W=be.body;let ce;W.kind===238?ce=W:ce=N.createBlock([N.createReturnStatement(W)]);const me=ya(k,BB(be,132)),Ee=N.createMethodDeclaration(me,void 0,ae,void 0,void 0,be.parameters,void 0,ce);mL(H,Ee,t),re.push(Ee)}}}function v(E){const C=E.initializer;if(!C||!Us(C)||!je(E.name))return;const L=d(E.symbol);C.body&&L.unshift(N.createConstructorDeclaration(void 0,C.parameters,C.body));const I=BB(E.parent.parent,93);return N.createClassDeclaration(I,E.name,void 0,void 0,L)}function h(E){const C=d(c);E.body&&C.unshift(N.createConstructorDeclaration(void 0,E.parameters,E.body));const L=BB(E,93);return N.createClassDeclaration(L,E.name,void 0,void 0,C)}}function BB(e,t){return np(e)?yn(e.modifiers,r=>r.kind===t):void 0}function GB(e){return e.name?!!(je(e.name)&&e.name.text==="constructor"):!1}function VVe(e,t,r){if(Fr(e))return e.name;const i=e.argumentExpression;if(L_(i))return i;if(As(i))return H_(i.text,ts(t))?N.createIdentifier(i.text):jx(i)?N.createStringLiteral(i.text,r===0):i}var UB,Tee,jVe=S({"src/services/codefixes/convertFunctionToEs6Class.ts"(){Qr(),To(),UB="convertFunctionToEs6Class",Tee=[_.This_constructor_function_may_be_converted_to_a_class_declaration.code],mo({errorCodes:Tee,getCodeActions(e){const t=gr.ChangeTracker.with(e,r=>uTe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[ao(UB,t,_.Convert_function_to_an_ES2015_class,UB,_.Convert_all_constructor_functions_to_classes)]},fixIds:[UB],getAllCodeActions:e=>Ls(e,Tee,(t,r)=>uTe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function dTe(e,t,r,i){const o=oa(t,r);let s;if(je(o)&&Xi(o.parent)&&o.parent.initializer&&el(o.parent.initializer)?s=o.parent.initializer:s=si(Mf(oa(t,r)),NZ),!s)return;const c=new Map,f=fr(s),d=WVe(s,i),v=zVe(s,i,c);if(!DZ(v,i))return;const h=v.body&&uo(v.body)?HVe(v.body,i):rt,E={checker:i,synthNamesMap:c,setOfExpressionsToReturn:d,isInJSFile:f};if(!h.length)return;const C=Xo(t.text,sm(s).pos);e.insertModifierAt(t,C,132,{suffix:" "});for(const L of h)if(Pa(L,function I(O){if(io(O)){const k=E2(O,O,E,!1);if(fS())return!0;e.replaceNodeWithNodes(t,L,k)}else if(!Xa(O)&&(Pa(O,I),fS()))return!0}),fS())return}function HVe(e,t){const r=[];return AT(e,i=>{oB(i,t)&&r.push(i)}),r}function WVe(e,t){if(!e.body)return new Set;const r=new Set;return Pa(e.body,function i(o){Xw(o,t,"then")?(r.add(hs(o)),Je(o.arguments,i)):Xw(o,t,"catch")||Xw(o,t,"finally")?(r.add(hs(o)),Pa(o,i)):_Te(o,t)?r.add(hs(o)):Pa(o,i)}),r}function Xw(e,t,r){if(!io(e))return!1;const o=p6(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function fTe(e,t){return(ri(e)&4)!==0&&e.target===t}function VB(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(fTe(i,r.getPromiseType())||fTe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Ey(e.arguments,0))return Ey(e.typeArguments,0);if(t===Ey(e.arguments,1))return Ey(e.typeArguments,1)}else return Ey(e.typeArguments,0)}function _Te(e,t){return vt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function zVe(e,t,r){const i=new Map,o=b_();return Pa(e,function s(c){if(!je(c)){Pa(c,s);return}const f=t.getSymbolAtLocation(c);if(f){const d=t.getTypeAtLocation(c),v=vTe(d,t),h=Eo(f).toString();if(v&&!Fa(c.parent)&&!el(c.parent)&&!r.has(h)){const E=tu(v.parameters),C=(E==null?void 0:E.valueDeclaration)&&Fa(E.valueDeclaration)&&si(E.valueDeclaration.name,je)||N.createUniqueName("result",16),L=pTe(C,o);r.set(h,L),o.add(C.text,f)}else if(c.parent&&(Fa(c.parent)||Xi(c.parent)||ms(c.parent))){const E=c.text,C=o.get(E);if(C&&C.some(L=>L!==f)){const L=pTe(c,o);i.set(h,L.identifier),r.set(h,L),o.add(E,f)}else{const L=Ol(c);r.set(h,yL(L)),o.add(E,f)}}}}),D6(e,!0,s=>{if(ms(s)&&je(s.name)&&Qm(s.parent)){const c=t.getSymbolAtLocation(s.name),f=c&&i.get(String(Eo(c)));if(f&&f.text!==(s.name||s.propertyName).getText())return N.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,f,s.initializer)}else if(je(s)){const c=t.getSymbolAtLocation(s),f=c&&i.get(String(Eo(c)));if(f)return N.createIdentifier(f.text)}})}function pTe(e,t){const r=(t.get(e.text)||rt).length,i=r===0?e:N.createIdentifier(e.text+"_"+r);return yL(i)}function fS(){return!H6}function s0(){return H6=!1,rt}function E2(e,t,r,i,o){if(Xw(t,r.checker,"then"))return KVe(t,Ey(t.arguments,0),Ey(t.arguments,1),r,i,o);if(Xw(t,r.checker,"catch"))return gTe(t,Ey(t.arguments,0),r,i,o);if(Xw(t,r.checker,"finally"))return JVe(t,Ey(t.arguments,0),r,i,o);if(Fr(t))return E2(e,t.expression,r,i,o);const s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(D.assertNode(Cl(t).parent,Fr),XVe(e,t,r,i,o)):s0()}function jB({checker:e},t){if(t.kind===104)return!0;if(je(t)&&!Ll(t)&&Mr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function qVe(e){const t=N.createUniqueName(e.identifier.text,16);return yL(t)}function mTe(e,t,r){let i;return r&&!$w(e,t)&&(Yw(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){const c=qVe(r);t.synthNamesMap.set(s,c)}})):i=yL(N.createUniqueName("result",16),r.types),Cee(i)),i}function hTe(e,t,r,i,o){const s=[];let c;if(i&&!$w(e,t)){c=Ol(Cee(i));const f=i.types,d=t.checker.getUnionType(f,2),v=t.isInJSFile?void 0:t.checker.typeToTypeNode(d,void 0,void 0),h=[N.createVariableDeclaration(c,void 0,v)],E=N.createVariableStatement(void 0,N.createVariableDeclarationList(h,1));s.push(E)}return s.push(r),o&&c&&QVe(o)&&s.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(Ol(STe(o)),void 0,void 0,c)],2))),s}function JVe(e,t,r,i,o){if(!t||jB(r,t))return E2(e,e.expression.expression,r,i,o);const s=mTe(e,r,o),c=E2(e,e.expression.expression,r,!0,s);if(fS())return s0();const f=xee(t,i,void 0,void 0,e,r);if(fS())return s0();const d=N.createBlock(c),v=N.createBlock(f),h=N.createTryStatement(d,void 0,v);return hTe(e,r,h,s,o)}function gTe(e,t,r,i,o){if(!t||jB(r,t))return E2(e,e.expression.expression,r,i,o);const s=ETe(t,r),c=mTe(e,r,o),f=E2(e,e.expression.expression,r,!0,c);if(fS())return s0();const d=xee(t,i,c,s,e,r);if(fS())return s0();const v=N.createBlock(f),h=N.createCatchClause(s&&Ol(j6(s)),N.createBlock(d)),E=N.createTryStatement(v,h,void 0);return hTe(e,r,E,c,o)}function KVe(e,t,r,i,o,s){if(!t||jB(i,t))return gTe(e,r,i,o,s);if(r&&!jB(i,r))return s0();const c=ETe(t,i),f=E2(e.expression.expression,e.expression.expression,i,!0,c);if(fS())return s0();const d=xee(t,o,s,c,e,i);return fS()?s0():ya(f,d)}function XVe(e,t,r,i,o){if($w(e,r)){let s=Ol(t);return i&&(s=N.createAwaitExpression(s)),[N.createReturnStatement(s)]}return HB(o,N.createAwaitExpression(t),void 0)}function HB(e,t,r){return!e||TTe(e)?[N.createExpressionStatement(t)]:Yw(e)&&e.hasBeenDeclared?[N.createExpressionStatement(N.createAssignment(Ol(Aee(e)),t))]:[N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(Ol(j6(e)),void 0,r,t)],2))]}function See(e,t){if(t&&e){const r=N.createUniqueName("result",16);return[...HB(yL(r),e,t),N.createReturnStatement(r)]}return[N.createReturnStatement(e)]}function xee(e,t,r,i,o,s){var c;switch(e.kind){case 104:break;case 208:case 79:if(!i)break;const f=N.createCallExpression(Ol(e),void 0,Yw(i)?[Aee(i)]:[]);if($w(o,s))return See(f,VB(o,e,s.checker));const d=s.checker.getTypeAtLocation(e),v=s.checker.getSignaturesOfType(d,0);if(!v.length)return s0();const h=v[0].getReturnType(),E=HB(r,N.createAwaitExpression(f),VB(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(h)||h),E;case 215:case 216:{const C=e.body,L=(c=vTe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:c.getReturnType();if(uo(C)){let I=[],O=!1;for(const k of C.statements)if(Ip(k))if(O=!0,oB(k,s.checker))I=I.concat(bTe(s,k,t,r));else{const G=L&&k.expression?yTe(s.checker,L,k.expression):k.expression;I.push(...See(G,VB(o,e,s.checker)))}else{if(t&&AT(k,b1))return s0();I.push(k)}return $w(o,s)?I.map(k=>Ol(k)):YVe(I,r,s,O)}else{const I=RZ(C,s.checker)?bTe(s,N.createReturnStatement(C),t,r):rt;if(I.length>0)return I;if(L){const O=yTe(s.checker,L,C);if($w(o,s))return See(O,VB(o,e,s.checker));{const k=HB(r,O,void 0);return r&&r.types.push(s.checker.getAwaitedType(L)||L),k}}else return s0()}}default:return s0()}return rt}function yTe(e,t,r){const i=Ol(r);return e.getPromisedTypeOfPromise(t)?N.createAwaitExpression(i):i}function vTe(e,t){const r=t.getSignaturesOfType(e,0);return rl(r)}function YVe(e,t,r,i){const o=[];for(const s of e)if(Ip(s)){if(s.expression){const c=_Te(s.expression,r.checker)?N.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(N.createExpressionStatement(c)):Yw(t)&&t.hasBeenDeclared?o.push(N.createExpressionStatement(N.createAssignment(Aee(t),c))):o.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(j6(t),void 0,void 0,c)],2)))}}else o.push(Ol(s));return!i&&t!==void 0&&o.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(j6(t),void 0,void 0,N.createIdentifier("undefined"))],2))),o}function bTe(e,t,r,i){let o=[];return Pa(t,function s(c){if(io(c)){const f=E2(c,c,e,r,i);if(o=o.concat(f),o.length>0)return}else Xa(c)||Pa(c,s)}),o}function ETe(e,t){const r=[];let i;if(el(e)){if(e.parameters.length>0){const d=e.parameters[0].name;i=o(d)}}else je(e)?i=s(e):Fr(e)&&je(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(d){if(je(d))return s(d);const v=Ga(d.elements,h=>Fc(h)?[]:[o(h.name)]);return $Ve(d,v)}function s(d){const v=f(d),h=c(v);return h&&t.synthNamesMap.get(Eo(h).toString())||yL(d,r)}function c(d){var v,h;return(h=(v=si(d,Vm))==null?void 0:v.symbol)!=null?h:t.checker.getSymbolAtLocation(d)}function f(d){return d.original?d.original:d}}function TTe(e){return e?Yw(e)?!e.identifier.text:Zn(e.elements,TTe):!0}function yL(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function $Ve(e,t=rt,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Aee(e){return e.hasBeenReferenced=!0,e.identifier}function j6(e){return Yw(e)?Cee(e):STe(e)}function STe(e){for(const t of e.elements)j6(t);return e.bindingPattern}function Cee(e){return e.hasBeenDeclared=!0,e.identifier}function Yw(e){return e.kind===0}function QVe(e){return e.kind===1}function $w(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(hs(e.original))}var WB,Lee,H6,ZVe=S({"src/services/codefixes/convertToAsyncFunction.ts"(){Qr(),To(),WB="convertToAsyncFunction",Lee=[_.This_may_be_converted_to_an_async_function.code],H6=!0,mo({errorCodes:Lee,getCodeActions(e){H6=!0;const t=gr.ChangeTracker.with(e,r=>dTe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return H6?[ao(WB,t,_.Convert_to_async_function,WB,_.Convert_all_to_async_functions)]:[]},fixIds:[WB],getAllCodeActions:e=>Ls(e,Lee,(t,r)=>dTe(t,r.file,r.start,e.program.getTypeChecker()))})}});function eje(e,t,r,i){for(const o of e.imports){const s=YA(e,o.text,wp(e,o));if(!s||s.resolvedFileName!==t.fileName)continue;const c=WN(o);switch(c.kind){case 268:r.replaceNode(e,c,Hy(c.name,void 0,o,i));break;case 210:wd(c,!1)&&r.replaceNode(e,c,N.createPropertyAccessExpression(Ol(c),"default"));break}}}function tje(e,t,r,i,o){const s={original:pje(e),additional:new Set},c=nje(e,t,s);rje(e,c,r);let f=!1,d;for(const v of yn(e.statements,gc)){const h=ATe(e,v,r,t,s,i,o);h&&EN(h,d!=null?d:d=new Map)}for(const v of yn(e.statements,h=>!gc(h))){const h=ije(e,v,t,r,s,i,c,d,o);f=f||h}return d==null||d.forEach((v,h)=>{r.replaceNode(e,h,v)}),f}function nje(e,t,r){const i=new Map;return xTe(e,o=>{const{text:s}=o.name;!i.has(s)&&($3(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,zB(`_${s}`,r))}),i}function rje(e,t,r){xTe(e,(i,o)=>{if(o)return;const{text:s}=i.name;r.replaceNode(e,i,N.createIdentifier(t.get(s)||s))})}function xTe(e,t){e.forEachChild(function r(i){if(Fr(i)&&tE(e,i.expression)&&je(i.name)){const{parent:o}=i;t(i,br(o)&&o.left===i&&o.operatorToken.kind===63)}i.forEachChild(r)})}function ije(e,t,r,i,o,s,c,f,d){switch(t.kind){case 240:return ATe(e,t,i,r,o,s,d),!1;case 241:{const{expression:v}=t;switch(v.kind){case 210:return wd(v,!0)&&i.replaceNode(e,t,Hy(void 0,void 0,v.arguments[0],d)),!1;case 223:{const{operatorToken:h}=v;return h.kind===63&&oje(e,r,v,i,c,f)}}}default:return!1}}function ATe(e,t,r,i,o,s,c){const{declarationList:f}=t;let d=!1;const v=zt(f.declarations,h=>{const{name:E,initializer:C}=h;if(C){if(tE(e,C))return d=!0,vL([]);if(wd(C,!0))return d=!0,fje(E,C.arguments[0],i,o,s,c);if(Fr(C)&&wd(C.expression,!0))return d=!0,aje(E,C.name.text,C.expression.arguments[0],o,c)}return vL([N.createVariableStatement(void 0,N.createVariableDeclarationList([h],f.flags))])});if(d){r.replaceNodeWithNodes(e,t,Ga(v,E=>E.newImports));let h;return Je(v,E=>{E.useSitesToUnqualify&&EN(E.useSitesToUnqualify,h!=null?h:h=new Map)}),h}}function aje(e,t,r,i,o){switch(e.kind){case 203:case 204:{const s=zB(t,i);return vL([kTe(s,t,r,o),qB(void 0,e,N.createIdentifier(s))])}case 79:return vL([kTe(e.text,t,r,o)]);default:return D.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function oje(e,t,r,i,o,s){const{left:c,right:f}=r;if(!Fr(c))return!1;if(tE(e,c))if(tE(e,f))i.delete(e,r.parent);else{const d=Is(f)?sje(f,s):wd(f,!0)?cje(f.arguments[0],t):void 0;return d?(i.replaceNodeWithNodes(e,r.parent,d[0]),d[1]):(i.replaceRangeWithText(e,x_(c.getStart(e),f.pos),"export default"),!0)}else tE(e,c.expression)&&lje(e,r,i,o);return!1}function sje(e,t){const r=Z0(e.properties,i=>{switch(i.kind){case 174:case 175:case 300:case 301:return;case 299:return je(i.name)?dje(i.name.text,i.initializer,t):void 0;case 171:return je(i.name)?ITe(i.name.text,[N.createToken(93)],i,t):void 0;default:D.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function lje(e,t,r,i){const{text:o}=t.left.name,s=i.get(o);if(s!==void 0){const c=[qB(void 0,s,t.right),wee([N.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,c)}else uje(t,e,r)}function cje(e,t){const r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:SM;return o.has("export=")?[[Iee(r)],!0]:o.has("default")?o.size>1?[[CTe(r),Iee(r)],!0]:[[Iee(r)],!0]:[[CTe(r)],!1]}function CTe(e){return wee(void 0,e)}function Iee(e){return wee([N.createExportSpecifier(!1,void 0,"default")],e)}function uje({left:e,right:t,parent:r},i,o){const s=e.name.text;if((Us(t)||Xs(t)||qu(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},N.createToken(93),{suffix:" "}),t.name||o.insertName(i,t,s);const c=Es(r,26,i);c&&o.delete(i,c)}else o.replaceNodeRangeWithNodes(i,e.expression,Es(e,24,i),[N.createToken(93),N.createToken(85)],{joiner:" ",suffix:" "})}function dje(e,t,r){const i=[N.createToken(93)];switch(t.kind){case 215:{const{name:s}=t;if(s&&s.text!==e)return o()}case 216:return ITe(e,i,t,r);case 228:return hje(e,i,t,r);default:return o()}function o(){return qB(i,N.createIdentifier(e),kee(t,r))}}function kee(e,t){if(!t||!kt(No(t.keys()),i=>vf(e,i)))return e;return Va(e)?YQ(e,!0,r):D6(e,!0,r);function r(i){if(i.kind===208){const o=t.get(i);return t.delete(i),o}}}function fje(e,t,r,i,o,s){switch(e.kind){case 203:{const c=Z0(e.elements,f=>f.dotDotDotToken||f.initializer||f.propertyName&&!je(f.propertyName)||!je(f.name)?void 0:wTe(f.propertyName&&f.propertyName.text,f.name.text));if(c)return vL([Hy(void 0,c,t,s)])}case 204:{const c=zB(Vee(t.text,o),i);return vL([Hy(N.createIdentifier(c),void 0,t,s),qB(void 0,Ol(e),N.createIdentifier(c))])}case 79:return _je(e,t,r,i,s);default:return D.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function _je(e,t,r,i,o){const s=r.getSymbolAtLocation(e),c=new Map;let f=!1,d;for(const h of i.original.get(e.text)){if(r.getSymbolAtLocation(h)!==s||h===e)continue;const{parent:E}=h;if(Fr(E)){const{name:{text:C}}=E;if(C==="default"){f=!0;const L=h.getText();(d!=null?d:d=new Map).set(E,N.createIdentifier(L))}else{D.assert(E.expression===h,"Didn't expect expression === use");let L=c.get(C);L===void 0&&(L=zB(C,i),c.set(C,L)),(d!=null?d:d=new Map).set(E,N.createIdentifier(L))}}else f=!0}const v=c.size===0?void 0:No(us(c.entries(),([h,E])=>N.createImportSpecifier(!1,h===E?void 0:N.createIdentifier(h),N.createIdentifier(E))));return v||(f=!0),vL([Hy(f?Ol(e):void 0,v,t,o)],d)}function zB(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function pje(e){const t=b_();return LTe(e,r=>t.add(r.text,r)),t}function LTe(e,t){je(e)&&mje(e)&&t(e),e.forEachChild(r=>LTe(r,t))}function mje(e){const{parent:t}=e;switch(t.kind){case 208:return t.name!==e;case 205:return t.propertyName!==e;case 273:return t.propertyName!==e;default:return!0}}function ITe(e,t,r,i){return N.createFunctionDeclaration(ya(t,uE(r.modifiers)),Ol(r.asteriskToken),e,uE(r.typeParameters),uE(r.parameters),Ol(r.type),N.converters.convertToFunctionBlock(kee(r.body,i)))}function hje(e,t,r,i){return N.createClassDeclaration(ya(t,uE(r.modifiers)),e,uE(r.typeParameters),uE(r.heritageClauses),kee(r.members,i))}function kTe(e,t,r,i){return t==="default"?Hy(N.createIdentifier(e),void 0,r,i):Hy(void 0,[wTe(t,e)],r,i)}function wTe(e,t){return N.createImportSpecifier(!1,e!==void 0&&e!==t?N.createIdentifier(e):void 0,N.createIdentifier(t))}function qB(e,t,r){return N.createVariableStatement(e,N.createVariableDeclarationList([N.createVariableDeclaration(t,void 0,void 0,r)],2))}function wee(e,t){return N.createExportDeclaration(void 0,!1,e&&N.createNamedExports(e),t===void 0?void 0:N.createStringLiteral(t))}function vL(e,t){return{newImports:e,useSitesToUnqualify:t}}var gje=S({"src/services/codefixes/convertToEsModule.ts"(){Qr(),To(),mo({errorCodes:[_.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:r,preferences:i}=e,o=gr.ChangeTracker.with(e,s=>{if(tje(t,r.getTypeChecker(),s,ts(r.getCompilerOptions()),Rp(t,i)))for(const f of r.getSourceFiles())eje(f,t,s,Rp(f,i))});return[Np("convertToEsModule",o,_.Convert_to_ES_module)]}})}});function DTe(e,t){const r=rr(oa(e,t),Rd);return D.assert(!!r,"Expected position to be owned by a qualified name."),je(r.left)?r:void 0}function RTe(e,t,r){const i=r.right.text,o=N.createIndexedAccessTypeNode(N.createTypeReferenceNode(r.left,void 0),N.createLiteralTypeNode(N.createStringLiteral(i)));e.replaceNode(t,r,o)}var JB,Dee,yje=S({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){Qr(),To(),JB="correctQualifiedNameToIndexedAccessType",Dee=[_.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],mo({errorCodes:Dee,getCodeActions(e){const t=DTe(e.sourceFile,e.span.start);if(!t)return;const r=gr.ChangeTracker.with(e,o=>RTe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[ao(JB,r,[_.Rewrite_as_the_indexed_access_type_0,i],JB,_.Rewrite_all_as_indexed_access_types)]},fixIds:[JB],getAllCodeActions:e=>Ls(e,Dee,(t,r)=>{const i=DTe(r.file,r.start);i&&RTe(t,r.file,i)})})}});function NTe(e,t){return si(oa(t,e.start).parent,gd)}function OTe(e,t,r){if(!t)return;const i=t.parent,o=i.parent,s=vje(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,154,i);else{const c=N.updateExportDeclaration(o,o.modifiers,!1,N.updateNamedExports(i,yn(i.elements,d=>!Ur(s,d))),o.moduleSpecifier,void 0),f=N.createExportDeclaration(void 0,!0,N.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,c,{leadingTriviaOption:gr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,f)}}function vje(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=jbe(dd(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return yn(r.elements,o=>{var s;return o===e||((s=Vbe(o,i))==null?void 0:s.code)===KB[0]})}var KB,XB,bje=S({"src/services/codefixes/convertToTypeOnlyExport.ts"(){Qr(),To(),KB=[_.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],XB="convertToTypeOnlyExport",mo({errorCodes:KB,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>OTe(i,NTe(t.span,t.sourceFile),t));if(r.length)return[ao(XB,r,_.Convert_to_type_only_export,XB,_.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[XB],getAllCodeActions:function(t){const r=new Map;return Ls(t,KB,(i,o)=>{const s=NTe(o,t.sourceFile);s&&Lp(r,hs(s.parent.parent))&&OTe(i,s,t)})}})}});function PTe(e,t){const{parent:r}=oa(e,t);return Nd(r)||Yc(r)&&r.importClause?r:void 0}function MTe(e,t,r){if(Nd(r))e.replaceNode(t,r,N.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const i=r.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,r,[N.createImportDeclaration(uE(r.modifiers,!0),N.createImportClause(!0,Ol(i.name,!0),void 0),Ol(r.moduleSpecifier,!0),Ol(r.assertClause,!0)),N.createImportDeclaration(uE(r.modifiers,!0),N.createImportClause(!0,void 0,Ol(i.namedBindings,!0)),Ol(r.moduleSpecifier,!0),Ol(r.assertClause,!0))]);else{const o=N.updateImportDeclaration(r,r.modifiers,N.updateImportClause(i,!0,i.name,i.namedBindings),r.moduleSpecifier,r.assertClause);e.replaceNode(t,r,o)}}}var Ree,YB,Eje=S({"src/services/codefixes/convertToTypeOnlyImport.ts"(){Qr(),To(),Ree=[_.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,_._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],YB="convertToTypeOnlyImport",mo({errorCodes:Ree,getCodeActions:function(t){const r=PTe(t.sourceFile,t.span.start);if(r){const i=gr.ChangeTracker.with(t,o=>MTe(o,t.sourceFile,r));return[ao(YB,i,_.Convert_to_type_only_import,YB,_.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]}},fixIds:[YB],getAllCodeActions:function(t){return Ls(t,Ree,(r,i)=>{const o=PTe(i.file,i.start);o&&MTe(r,i.file,o)})}})}});function FTe(e,t){const r=oa(e,t);if(je(r)){const i=so(r.parent.parent,Bf),o=r.getText(e);return{container:so(i.parent,yf),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function BTe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,N.createMappedTypeNode(void 0,N.createTypeParameterDeclaration(void 0,s,N.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var $B,Nee,Tje=S({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){Qr(),To(),$B="convertLiteralTypeToMappedType",Nee=[_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],mo({errorCodes:Nee,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=FTe(r,i.start);if(!o)return;const{name:s,constraint:c}=o,f=gr.ChangeTracker.with(t,d=>BTe(d,r,o));return[ao($B,f,[_.Convert_0_to_1_in_0,c,s],$B,_.Convert_all_type_literals_to_mapped_type)]},fixIds:[$B],getAllCodeActions:e=>Ls(e,Nee,(t,r)=>{const i=FTe(r.file,r.start);i&&BTe(t,r.file,i)})})}});function GTe(e,t){return D.checkDefined(wc(oa(e,t)),"There should be a containing class")}function UTe(e){return!e.valueDeclaration||!(Hu(e.valueDeclaration)&8)}function VTe(e,t,r,i,o,s){const c=e.program.getTypeChecker(),f=Sje(i,c),d=c.getTypeAtLocation(t),h=c.getPropertiesOfType(d).filter(bM(UTe,k=>!f.has(k.escapedName))),E=c.getTypeAtLocation(i),C=In(i.members,k=>Yl(k));E.getNumberIndexType()||I(d,1),E.getStringIndexType()||I(d,0);const L=_S(r,e.program,s,e.host);Gte(i,h,r,e,s,L,k=>O(r,i,k)),L.writeFixes(o);function I(k,G){const V=c.getIndexInfoOfType(k,G);V&&O(r,i,c.indexInfoToIndexSignatureDeclaration(V,i,void 0,T2(e)))}function O(k,G,V){C?o.insertNodeAfter(k,C,V):o.insertMemberAtStart(k,G,V)}}function Sje(e,t){const r=am(e);if(!r)return co();const i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return co(o.filter(UTe))}var Oee,QB,xje=S({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){Qr(),To(),Oee=[_.Class_0_incorrectly_implements_interface_1.code,_.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],QB="fixClassIncorrectlyImplementsInterface",mo({errorCodes:Oee,getCodeActions(e){const{sourceFile:t,span:r}=e,i=GTe(t,r.start);return pa(_C(i),o=>{const s=gr.ChangeTracker.with(e,c=>VTe(e,o,t,i,c,e.preferences));return s.length===0?void 0:ao(QB,s,[_.Implement_interface_0,o.getText(t)],QB,_.Implement_all_unimplemented_interfaces)})},fixIds:[QB],getAllCodeActions(e){const t=new Map;return Ls(e,Oee,(r,i)=>{const o=GTe(i.file,i.start);if(Lp(t,hs(o)))for(const s of _C(o))VTe(e,s,i.file,o,r,e.preferences)})}})}});function _S(e,t,r,i,o){return jTe(e,t,!1,r,i,o)}function jTe(e,t,r,i,o,s){const c=t.getCompilerOptions(),f=[],d=[],v=new Map,h=new Map;return{addImportFromDiagnostic:E,addImportFromExportedSymbol:C,writeFixes:I,hasFixes:O};function E(k,G){const V=KTe(G,k.code,k.start,r);!V||!V.length||L(ds(V))}function C(k,G){const V=D.checkDefined(k.parent),H=z9(k,ts(c)),ne=t.getTypeChecker(),Y=ne.getMergedSymbol(gf(k,ne)),$=zTe(e,Y,H,V,!1,t,o,i,s),M=eG(e,t),de=HTe(e,D.checkDefined($),t,void 0,!!G,M,o,i);de&&L({fix:de,symbolName:H,errorIdentifierText:void 0})}function L(k){var G,V;const{fix:H,symbolName:ne}=k;switch(H.kind){case 0:f.push(H);break;case 1:d.push(H);break;case 2:{const{importClauseOrBindingPattern:de,importKind:re,addAsTypeOnly:be}=H,ae=String(hs(de));let W=v.get(ae);if(W||v.set(ae,W={importClauseOrBindingPattern:de,defaultImport:void 0,namedImports:new Map}),re===0){const ce=W==null?void 0:W.namedImports.get(ne);W.namedImports.set(ne,Y(ce,be))}else D.assert(W.defaultImport===void 0||W.defaultImport.name===ne,"(Add to Existing) Default import should be missing or match symbolName"),W.defaultImport={name:ne,addAsTypeOnly:Y((G=W.defaultImport)==null?void 0:G.addAsTypeOnly,be)};break}case 3:{const{moduleSpecifier:de,importKind:re,useRequire:be,addAsTypeOnly:ae}=H,W=$(de,re,be,ae);switch(D.assert(W.useRequire===be,"(Add new) Tried to add an `import` and a `require` for the same module"),re){case 1:D.assert(W.defaultImport===void 0||W.defaultImport.name===ne,"(Add new) Default import should be missing or match symbolName"),W.defaultImport={name:ne,addAsTypeOnly:Y((V=W.defaultImport)==null?void 0:V.addAsTypeOnly,ae)};break;case 0:const ce=(W.namedImports||(W.namedImports=new Map)).get(ne);W.namedImports.set(ne,Y(ce,ae));break;case 3:case 2:D.assert(W.namespaceLikeImport===void 0||W.namespaceLikeImport.name===ne,"Namespacelike import shoudl be missing or match symbolName"),W.namespaceLikeImport={importKind:re,name:ne,addAsTypeOnly:ae};break}break}case 4:break;default:D.assertNever(H,`fix wasn't never - got kind ${H.kind}`)}function Y(de,re){return Math.max(de!=null?de:0,re)}function $(de,re,be,ae){const W=M(de,!0),ce=M(de,!1),me=h.get(W),Ee=h.get(ce),xe={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:be};return re===1&&ae===2?me||(h.set(W,xe),xe):ae===1&&(me||Ee)?me||Ee:Ee||(h.set(ce,xe),xe)}function M(de,re){return`${re?1:0}|${de}`}}function I(k){const G=Rp(e,i);for(const H of f)Gee(k,e,H);for(const H of d)tSe(k,e,H,G);v.forEach(({importClauseOrBindingPattern:H,defaultImport:ne,namedImports:Y})=>{eSe(k,e,H,ne,No(Y.entries(),([$,M])=>({addAsTypeOnly:M,name:$})),c,i)});let V;h.forEach(({useRequire:H,defaultImport:ne,namedImports:Y,namespaceLikeImport:$},M)=>{const de=M.slice(2),be=(H?iSe:rSe)(de,G,ne,Y&&No(Y.entries(),([ae,W])=>({addAsTypeOnly:W,name:ae})),$,c);V=OA(V,be)}),V&&D9(k,e,V,!0,i)}function O(){return f.length>0||d.length>0||v.size>0||h.size>0}}function Aje(e,t,r,i){const o=Ww(e,i,r),s=qTe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:c};function c(f,d,v,h){const{fixes:E,computedWithoutCacheCount:C}=ZB(f,d,v,!1,t,e,r,i,s,h),L=XTe(E,e,t,o,r);return L&&Ka(Ti({},L),{computedWithoutCacheCount:C})}}function Cje(e,t,r,i,o,s,c,f,d,v,h,E){const C=f.getCompilerOptions();let L;r?(L=P6(i,c,f,h,E).get(i.path,r),D.assertIsDefined(L,"Some exportInfo should match the specified exportMapKey")):(L=VW(X_(t.name))?[Ije(e,o,t,f,c)]:zTe(i,e,o,t,s,f,c,h,E),D.assertIsDefined(L,"Some exportInfo should match the specified symbol / moduleSymbol"));const I=eG(i,f),O=Fx(oa(i,v)),k=D.checkDefined(HTe(i,L,f,v,O,I,c,h));return{moduleSpecifier:k.moduleSpecifier,codeAction:WTe(Bee({host:c,formatContext:d,preferences:h},i,o,k,!1,C,h))}}function Lje(e,t,r,i,o,s){const c=r.getCompilerOptions(),f=yH(Fee(e,r.getTypeChecker(),t,c)),d=QTe(e,t,f,r),v=f!==t.text;return d&&WTe(Bee({host:i,formatContext:o,preferences:s},e,f,d,v,c,s))}function HTe(e,t,r,i,o,s,c,f){const d=Ww(e,f,c);return XTe(ZB(t,i,o,s,r,e,c,f).fixes,e,r,d,c)}function WTe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function zTe(e,t,r,i,o,s,c,f,d){const v=JTe(s,c);return P6(e,c,s,f,d).search(e.path,o,h=>h===r,h=>{if(gf(h[0].symbol,v(h[0].isFromPackageJson))===t&&h.some(E=>E.moduleSymbol===i||E.symbol.parent===i))return h})}function Ije(e,t,r,i,o){var s,c;const f=i.getCompilerOptions(),d=h(i.getTypeChecker(),!1);if(d)return d;const v=(c=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:c.getTypeChecker();return D.checkDefined(v&&h(v,!0),"Could not find symbol in specified module for code actions");function h(E,C){const L=Z9(r,E,f);if(L&&gf(L.symbol,E)===e)return{symbol:L.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:L.exportKind,targetFlags:gf(e,E).flags,isFromPackageJson:C};const I=E.tryGetMemberInModuleExportsAndProperties(t,r);if(I&&gf(I,E)===e)return{symbol:I,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:gf(e,E).flags,isFromPackageJson:C}}}function ZB(e,t,r,i,o,s,c,f,d=qTe(o.getTypeChecker(),s,o.getCompilerOptions()),v){const h=o.getTypeChecker(),E=Ga(e,d.getImportsForExportInfo),C=t!==void 0&&kje(E,t),L=Dje(E,r,h,o.getCompilerOptions());if(L)return{computedWithoutCacheCount:0,fixes:[...C?[C]:rt,L]};const{fixes:I,computedWithoutCacheCount:O=0}=Nje(e,E,o,s,t,r,i,c,f,v);return{computedWithoutCacheCount:O,fixes:[...C?[C]:rt,...I]}}function kje(e,t){return Jt(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;const s=wje(r),c=s&&((o=HN(r))==null?void 0:o.text);if(c)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:c}})}function wje(e){var t,r,i;switch(e.kind){case 257:return(t=si(e.name,je))==null?void 0:t.text;case 268:return e.name.text;case 269:return(i=si((r=e.importClause)==null?void 0:r.namedBindings,Yv))==null?void 0:i.name.text;default:return D.assertNever(e)}}function Pee(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||_7(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function Dje(e,t,r,i){return Jt(e,({declaration:o,importKind:s,symbol:c,targetFlags:f})=>{if(s===3||s===2||o.kind===268)return;if(o.kind===257)return(s===0||s===1)&&o.name.kind===203?{kind:2,importClauseOrBindingPattern:o.name,importKind:s,moduleSpecifier:o.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:d}=o;if(!d||!As(o.moduleSpecifier))return;const{name:v,namedBindings:h}=d;if(d.isTypeOnly&&!(s===0&&h))return;const E=Pee(t,!1,c,f,r,i);if(!(s===1&&(v||E===2&&h))&&!(s===0&&(h==null?void 0:h.kind)===271))return{kind:2,importClauseOrBindingPattern:d,importKind:s,moduleSpecifier:o.moduleSpecifier.text,addAsTypeOnly:E}})}function qTe(e,t,r){let i;for(const o of t.imports){const s=WN(o);if(lq(s.parent)){const c=e.resolveExternalModuleName(o);c&&(i||(i=b_())).add(Eo(c),s.parent)}else if(s.kind===269||s.kind===268){const c=e.getSymbolAtLocation(o);c&&(i||(i=b_())).add(Eo(c),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:c,symbol:f})=>{if(!(c&111551)&&sd(t))return rt;const d=i==null?void 0:i.get(Eo(o));if(!d)return rt;const v=Mee(t,s,r);return d.map(h=>({declaration:h,importKind:v,symbol:f,targetFlags:c}))}}}function eG(e,t){if(!sd(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const r=t.getCompilerOptions();if(r.configFile)return du(r)<5;for(const i of t.getSourceFiles())if(!(i===e||!sd(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function JTe(e,t){return Mm(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function Rje(e,t,r,i,o,s,c,f,d){const v=sd(t),h=e.getCompilerOptions(),E=f2(e,c),C=JTe(e,c),L=Tl(h),I=A9(L),O=d?V=>({moduleSpecifiers:nE.tryGetModuleSpecifiersFromCache(V,t,E,f),computedWithoutCache:!1}):(V,H)=>nE.getModuleSpecifiersWithCacheInfo(V,H,h,t,E,f);let k=0;const G=Ga(s,(V,H)=>{const ne=C(V.isFromPackageJson),{computedWithoutCache:Y,moduleSpecifiers:$}=O(V.moduleSymbol,ne),M=!!(V.targetFlags&111551),de=Pee(i,!0,V.symbol,V.targetFlags,ne,h);return k+=Y?1:0,pa($,re=>{var be;if(I&&s2(re))return;if(!M&&v&&r!==void 0)return{kind:1,moduleSpecifier:re,usagePosition:r,exportInfo:V,isReExport:H>0};const ae=Mee(t,V.exportKind,h);let W;if(r!==void 0&&ae===3&&V.exportKind===0){const ce=ne.resolveExternalModuleSymbol(V.moduleSymbol);let me;ce!==V.moduleSymbol&&(me=(be=eB(ce,ne,h))==null?void 0:be.name),me||(me=Uee(V.moduleSymbol,ts(h),!1)),W={namespacePrefix:me,usagePosition:r}}return{kind:3,moduleSpecifier:re,importKind:ae,useRequire:o,addAsTypeOnly:de,exportInfo:V,isReExport:H>0,qualification:W}})});return{computedWithoutCacheCount:k,fixes:G}}function Nje(e,t,r,i,o,s,c,f,d,v){const h=Jt(t,E=>Oje(E,s,c,r.getTypeChecker(),r.getCompilerOptions()));return h?{fixes:[h]}:Rje(r,i,o,s,c,e,f,d,v)}function Oje({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,c,f){var d;const v=(d=HN(e))==null?void 0:d.text;if(v){const h=s?4:Pee(o,!0,r,i,c,f);return{kind:3,moduleSpecifier:v,importKind:t,addAsTypeOnly:h,useRequire:s}}}function KTe(e,t,r,i){const o=oa(e.sourceFile,r);let s;if(t===_._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=Bje(e,o);else if(je(o))if(t===_._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const f=yH(Fee(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),d=QTe(e.sourceFile,o,f,e.program);return d&&[{fix:d,symbolName:f,errorIdentifierText:o.text}]}else s=Vje(e,o,i);else return;const c=Ww(e.sourceFile,e.preferences,e.host);return s&&Pje(s,e.sourceFile,e.program,c,e.host)}function Pje(e,t,r,i,o){const s=c=>Js(c,o.getCurrentDirectory(),db(o));return kI(e,(c,f)=>E1(!!c.isJsxNamespaceFix,!!f.isJsxNamespaceFix)||qs(c.fix.kind,f.fix.kind)||YTe(c.fix,f.fix,t,r,i.allowsImportingSpecifier,s))}function XTe(e,t,r,i,o){if(kt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,c)=>YTe(c,s,t,r,i.allowsImportingSpecifier,f=>Js(f,o.getCurrentDirectory(),db(o)))===-1?c:s)}function YTe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?E1(o(t.moduleSpecifier),o(e.moduleSpecifier))||Fje(e.moduleSpecifier,t.moduleSpecifier,r,i)||E1($Te(e,r,i.getCompilerOptions(),s),$Te(t,r,i.getCompilerOptions(),s))||xO(e.moduleSpecifier,t.moduleSpecifier):0}function $Te(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&Tl(r)===2&&Mje(e.exportInfo.moduleFileName)){const s=i(yi(e.exportInfo.moduleFileName));return Ta(t.path,s)}return!1}function Mje(e){return Eu(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function Fje(e,t,r,i){return Ta(e,"node:")&&!Ta(t,"node:")?J9(r,i)?-1:1:Ta(t,"node:")&&!Ta(e,"node:")?J9(r,i)?1:-1:0}function Bje({sourceFile:e,program:t,host:r,preferences:i},o){const s=t.getTypeChecker(),c=Gje(o,s);if(!c)return;const f=s.getAliasedSymbol(c),d=c.name,v=[{symbol:c,moduleSymbol:f,moduleFileName:void 0,exportKind:3,targetFlags:f.flags,isFromPackageJson:!1}],h=eG(e,t);return ZB(v,void 0,!1,h,t,e,r,i).fixes.map(C=>{var L;return{fix:C,symbolName:d,errorIdentifierText:(L=si(o,je))==null?void 0:L.text}})}function Gje(e,t){const r=je(e)?t.getSymbolAtLocation(e):void 0;if(c7(r))return r;const{parent:i}=e;if(od(i)&&i.tagName===e||t2(i)){const o=t.resolveName(t.getJsxNamespace(i),od(i)?e:i,111551,!1);if(c7(o))return o}}function Mee(e,t,r,i){if(r.verbatimModuleSyntax&&(du(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return Wje(e,r,!!i);case 3:return Uje(e,r,!!i);default:return D.assertNever(t)}}function Uje(e,t,r){if(FT(t))return 1;const i=du(t);switch(i){case 2:case 1:case 3:return fr(e)&&(rc(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return D.assertNever(i,`Unexpected moduleKind ${i}`)}}function Vje({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,c){const f=t.getTypeChecker(),d=t.getCompilerOptions();return Ga(Fee(e,f,s,d),v=>{if(v==="default")return;const h=Fx(s),E=eG(e,t),C=Hje(v,uk(s),aS(s),r,e,t,c,i,o);return No(m1(C.values(),L=>ZB(L,s.getStart(e),h,E,t,e,i,o).fixes),L=>({fix:L,symbolName:v,errorIdentifierText:s.text,isJsxNamespaceFix:v!==s.text}))})}function QTe(e,t,r,i){const o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;const c=o.getTypeOnlyAliasDeclaration(s);if(!(!c||er(c)!==e))return{kind:4,typeOnlyAliasDeclaration:c}}function Fee(e,t,r,i){const o=r.parent;if((od(o)||Zx(o))&&o.tagName===r&&uZ(i.jsx)){const s=t.getJsxNamespace(e);if(jje(s,r,t))return!yk(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function jje(e,t,r){if(yk(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||kt(i.declarations,D1)&&!(i.flags&111551)}function Hje(e,t,r,i,o,s,c,f,d){var v;const h=b_(),E=Ww(o,d,f),C=(v=f.getModuleSpecifierCache)==null?void 0:v.call(f),L=Mm(O=>f2(O?f.getPackageJsonAutoImportProvider():s,f));function I(O,k,G,V,H,ne){const Y=L(ne);if(k&&pZ(H,o,k,d,E,Y,C)||!k&&E.allowsImportingAmbientModule(O,Y)){const $=H.getTypeChecker();h.add(wbe(G,$).toString(),{symbol:G,moduleSymbol:O,moduleFileName:k==null?void 0:k.fileName,exportKind:V,targetFlags:gf(G,$).flags,isFromPackageJson:ne})}}return mZ(s,f,d,c,(O,k,G,V)=>{const H=G.getTypeChecker();i.throwIfCancellationRequested();const ne=G.getCompilerOptions(),Y=Z9(O,H,ne);Y&&(Y.name===e||Uee(O,ts(ne),t)===e)&&oSe(Y.resolvedSymbol,r)&&I(O,k,Y.symbol,Y.exportKind,G,V);const $=H.tryGetMemberInModuleExportsAndProperties(e,O);$&&oSe($,r)&&I(O,k,$,0,G,V)}),h}function Wje(e,t,r){const i=FT(t),o=fr(e);if(!o&&du(t)>=5)return i?1:2;if(o)return rc(e)||r?i?1:2:3;for(const s of e.statements)if(_u(s)&&!kl(s.moduleReference))return 3;return i?1:3}function Bee(e,t,r,i,o,s,c){let f;const d=gr.ChangeTracker.with(e,v=>{f=zje(v,t,r,i,o,s,c)});return ao(jee,d,f,Hee,_.Add_all_missing_imports)}function zje(e,t,r,i,o,s,c){const f=Rp(t,c);switch(i.kind){case 0:return Gee(e,t,i),[_.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return tSe(e,t,i,f),[_.Change_0_to_1,r,nSe(i.moduleSpecifier,f)+r];case 2:{const{importClauseOrBindingPattern:d,importKind:v,addAsTypeOnly:h,moduleSpecifier:E}=i;eSe(e,t,d,v===1?{name:r,addAsTypeOnly:h}:void 0,v===0?[{name:r,addAsTypeOnly:h}]:rt,s,c);const C=X_(E);return o?[_.Import_0_from_1,r,C]:[_.Update_import_from_0,C]}case 3:{const{importKind:d,moduleSpecifier:v,addAsTypeOnly:h,useRequire:E,qualification:C}=i,L=E?iSe:rSe,I=d===1?{name:r,addAsTypeOnly:h}:void 0,O=d===0?[{name:r,addAsTypeOnly:h}]:void 0,k=d===2||d===3?{importKind:d,name:(C==null?void 0:C.namespacePrefix)||r,addAsTypeOnly:h}:void 0;return D9(e,t,L(v,f,I,O,k,s),!0,c),C&&Gee(e,t,C),o?[_.Import_0_from_1,r,v]:[_.Add_import_from_0,v]}case 4:{const{typeOnlyAliasDeclaration:d}=i,v=qje(e,d,s,t,c);return v.kind===273?[_.Remove_type_from_import_of_0_from_1,r,ZTe(v.parent.parent)]:[_.Remove_type_from_import_declaration_from_0,ZTe(v)]}default:return D.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function ZTe(e){var t,r;return e.kind===268?((r=si((t=si(e.moduleReference,eh))==null?void 0:t.expression,As))==null?void 0:r.text)||e.moduleReference.getText():so(e.parent.moduleSpecifier,Ho).text}function qje(e,t,r,i,o){const s=_7(r);switch(t.kind){case 273:if(t.isTypeOnly){const f=ap.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&f){e.delete(i,t);const d=N.updateImportSpecifier(t,!1,t.propertyName,t.name),v=ap.getOrganizeImportsComparer(o,f===2),h=ap.getImportSpecifierInsertionIndex(t.parent.elements,d,v);e.insertImportSpecifierAtIndex(i,d,t.parent,h)}else e.deleteRange(i,t.getFirstToken());return t}else return D.assert(t.parent.parent.isTypeOnly),c(t.parent.parent),t.parent.parent;case 270:return c(t),t;case 271:return c(t.parent),t.parent;case 268:return e.deleteRange(i,t.getChildAt(1)),t;default:D.failBadSyntaxKind(t)}function c(f){if(e.delete(i,VQ(f,i)),s){const d=si(f.namedBindings,My);if(d&&d.elements.length>1){ap.detectImportSpecifierSorting(d.elements,o)&&t.kind===273&&d.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,d,0));for(const v of d.elements)v!==t&&!v.isTypeOnly&&e.insertModifierBefore(i,154,v)}}}}function eSe(e,t,r,i,o,s,c){var f;if(r.kind===203){i&&E(r,i.name,"default");for(const C of o)E(r,C.name,void 0);return}const d=r.isTypeOnly&&kt([i,...o],C=>(C==null?void 0:C.addAsTypeOnly)===4),v=r.namedBindings&&((f=si(r.namedBindings,My))==null?void 0:f.elements),h=d&&_7(s);if(i&&(D.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),N.createIdentifier(i.name),{suffix:", "})),o.length){let C;if(typeof c.organizeImportsIgnoreCase=="boolean")C=c.organizeImportsIgnoreCase;else if(v){const k=ap.detectImportSpecifierSorting(v,c);k!==3&&(C=k===2)}C===void 0&&(C=ap.detectSorting(t,c)===2);const L=ap.getOrganizeImportsComparer(c,C),I=vy(o.map(k=>N.createImportSpecifier((!r.isTypeOnly||d)&&W6(k),void 0,N.createIdentifier(k.name))),(k,G)=>ap.compareImportOrExportSpecifiers(k,G,L)),O=(v==null?void 0:v.length)&&ap.detectImportSpecifierSorting(v,c);if(O&&!(C&&O===1))for(const k of I){const G=h&&!k.isTypeOnly?0:ap.getImportSpecifierInsertionIndex(v,k,L);e.insertImportSpecifierAtIndex(t,k,r.namedBindings,G)}else if(v!=null&&v.length)for(const k of I)e.insertNodeInListAfter(t,Jo(v),k,v);else if(I.length){const k=N.createNamedImports(I);r.namedBindings?e.replaceNode(t,r.namedBindings,k):e.insertNodeAfter(t,D.checkDefined(r.name,"Import clause must have either named imports or a default import"),k)}}if(d&&(e.delete(t,VQ(r,t)),h&&v))for(const C of v)e.insertModifierBefore(t,154,C);function E(C,L,I){const O=N.createBindingElement(void 0,I,L);C.elements.length?e.insertNodeInListAfter(t,Jo(C.elements),O):e.replaceNode(t,C,N.createObjectBindingPattern([O]))}}function Gee(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function tSe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,nSe(r,o))}function nSe(e,t){const r=ybe(t);return`import(${r}${e}${r}).`}function W6({addAsTypeOnly:e}){return e===2}function rSe(e,t,r,i,o,s){const c=C9(e,t);let f;if(r!==void 0||i!=null&&i.length){const d=(!r||W6(r))&&Zn(i,W6)||s.verbatimModuleSyntax&&(r==null?void 0:r.addAsTypeOnly)!==4&&!kt(i,v=>v.addAsTypeOnly===4);f=OA(f,Hy(r&&N.createIdentifier(r.name),i==null?void 0:i.map(({addAsTypeOnly:v,name:h})=>N.createImportSpecifier(!d&&v===2,void 0,N.createIdentifier(h))),e,t,d))}if(o){const d=o.importKind===3?N.createImportEqualsDeclaration(void 0,W6(o),N.createIdentifier(o.name),N.createExternalModuleReference(c)):N.createImportDeclaration(void 0,N.createImportClause(W6(o),void 0,N.createNamespaceImport(N.createIdentifier(o.name))),c,void 0);f=OA(f,d)}return D.checkDefined(f)}function iSe(e,t,r,i,o){const s=C9(e,t);let c;if(r||i!=null&&i.length){const f=(i==null?void 0:i.map(({name:v})=>N.createBindingElement(void 0,void 0,v)))||[];r&&f.unshift(N.createBindingElement(void 0,"default",r.name));const d=aSe(N.createObjectBindingPattern(f),s);c=OA(c,d)}if(o){const f=aSe(o.name,s);c=OA(c,f)}return D.checkDefined(c)}function aSe(e,t){return N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(typeof e=="string"?N.createIdentifier(e):e,void 0,void 0,N.createCallExpression(N.createIdentifier("require"),void 0,[t]))],2))}function oSe({declarations:e},t){return kt(e,r=>!!(_6(r)&t))}function Uee(e,t,r){return Vee(qd(X_(e.name)),t,r)}function Vee(e,t,r){const i=Eu(PA(e,"/index"));let o="",s=!0;const c=i.charCodeAt(0);Ah(c,t)?(o+=String.fromCharCode(c),r&&(o=o.toUpperCase())):s=!1;for(let f=1;f<i.length;f++){const d=i.charCodeAt(f),v=rb(d,t);if(v){let h=String.fromCharCode(d);s||(h=h.toUpperCase()),o+=h}s=v}return Lx(o)?`_${o}`:o||"_"}var jee,Hee,Wee,Jje=S({"src/services/codefixes/importFixes.ts"(){Qr(),To(),jee="import",Hee="fixMissingImport",Wee=[_.Cannot_find_name_0.code,_.Cannot_find_name_0_Did_you_mean_1.code,_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_.Cannot_find_namespace_0.code,_._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,_.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,_._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code],mo({errorCodes:Wee,getCodeActions(e){const{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,c=KTe(e,t,o.start,!0);if(c)return c.map(({fix:f,symbolName:d,errorIdentifierText:v})=>Bee(e,i,d,f,d!==v,s.getCompilerOptions(),r))},fixIds:[Hee],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,c=jTe(t,r,!0,i,o,s);return b2(e,Wee,f=>c.addImportFromDiagnostic(f,e)),v2(gr.ChangeTracker.with(e,c.writeFixes))}})}});function sSe(e,t,r){const i=In(e.getSemanticDiagnostics(t),c=>c.start===r.start&&c.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=In(i.relatedInformation,c=>c.code===_.This_type_parameter_might_need_an_extends_0_constraint.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=qte(o.file,Pc(o.start,o.length));if(s!==void 0&&(je(s)&&Ul(s.parent)&&(s=s.parent),Ul(s))){if(tw(s.parent))return;const c=oa(t,r.start),f=e.getTypeChecker();return{constraint:Xje(f,c)||Kje(o.messageText),declaration:s,token:c}}}function lSe(e,t,r,i,o,s){const{declaration:c,constraint:f}=s,d=t.getTypeChecker();if(Ha(f))e.insertText(o,c.name.end,` extends ${f}`);else{const v=ts(t.getCompilerOptions()),h=T2({program:t,host:i}),E=_S(o,t,r,i),C=FG(d,E,f,void 0,v,void 0,h);C&&(e.replaceNode(o,c,N.updateTypeParameterDeclaration(c,void 0,c.name,C,c.default)),E.writeFixes(e))}}function Kje(e){const[t,r]=t0(e,`
- `,0).match(/`extends (.*)`/)||[];return r}function Xje(e,t){return Gi(t.parent)?e.getTypeArgumentConstraint(t.parent):(vt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var tG,zee,Yje=S({"src/services/codefixes/fixAddMissingConstraint.ts"(){Qr(),To(),tG="addMissingConstraint",zee=[_.Type_0_is_not_comparable_to_type_1.code,_.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_.Type_0_is_not_assignable_to_type_1.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_.Property_0_is_incompatible_with_index_signature.code,_.Property_0_in_type_1_is_not_assignable_to_type_2.code,_.Type_0_does_not_satisfy_the_constraint_1.code],mo({errorCodes:zee,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,c=sSe(i,t,r);if(c===void 0)return;const f=gr.ChangeTracker.with(e,d=>lSe(d,i,o,s,t,c));return[ao(tG,f,_.Add_extends_constraint,tG,_.Add_extends_constraint_to_all_type_parameters)]},fixIds:[tG],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,o=new Map;return v2(gr.ChangeTracker.with(e,s=>{b2(e,zee,c=>{const f=sSe(t,c.file,Pc(c.start,c.length));if(f&&Lp(o,hs(f.declaration)))return lSe(s,t,r,i,c.file,f)})}))}})}});function cSe(e,t,r,i){switch(r){case _.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case _.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case _.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case _.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case _.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return $je(e,t.sourceFile,i);case _.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case _.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case _.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case _.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return Qje(e,t.sourceFile,i);default:D.fail("Unexpected error code: "+r)}}function $je(e,t,r){const i=dSe(t,r);if(sd(t)){e.addJSDocTags(t,i,[N.createJSDocOverrideTag(N.createIdentifier("override"))]);return}const o=i.modifiers||rt,s=In(o,Hx),c=In(o,sme),f=In(o,E=>RQ(E.kind)),d=Yr(o,Wu),v=c?c.end:s?s.end:f?f.end:d?Xo(t.text,d.end):i.getStart(t),h=f||s||c?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,v,161,h)}function Qje(e,t,r){const i=dSe(t,r);if(sd(t)){e.filterJSDocTags(t,i,EM(b5));return}const o=In(i.modifiers,lme);D.assertIsDefined(o),e.deleteModifier(t,o)}function uSe(e){switch(e.kind){case 173:case 169:case 171:case 174:case 175:return!0;case 166:return df(e,e.parent);default:return!1}}function dSe(e,t){const r=oa(e,t),i=rr(r,o=>_i(o)?"quit":uSe(o));return D.assert(i&&uSe(i)),i}var qee,bL,Qw,Jee,Kee,Zje=S({"src/services/codefixes/fixOverrideModifier.ts"(){Qr(),To(),qee="fixOverrideModifier",bL="fixAddOverrideModifier",Qw="fixRemoveOverrideModifier",Jee=[_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,_.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,_.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Kee={[_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:bL,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:bL,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_.Remove_override_modifier,fixId:Qw,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers},[_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_.Remove_override_modifier,fixId:Qw,fixAllDescriptions:_.Remove_override_modifier},[_.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:bL,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:bL,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:bL,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers},[_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_.Remove_override_modifier,fixId:Qw,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers},[_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_.Remove_override_modifier,fixId:Qw,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers}},mo({errorCodes:Jee,getCodeActions:function(t){const{errorCode:r,span:i}=t,o=Kee[r];if(!o)return rt;const{descriptions:s,fixId:c,fixAllDescriptions:f}=o,d=gr.ChangeTracker.with(t,v=>cSe(v,t,r,i.start));return[cee(qee,d,s,c,f)]},fixIds:[qee,bL,Qw],getAllCodeActions:e=>Ls(e,Jee,(t,r)=>{const{code:i,start:o}=r,s=Kee[i];!s||s.fixId!==e.fixId||cSe(t,e,i,o)})})}});function fSe(e,t,r,i){const o=Rp(t,i),s=N.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,a3(r)?N.createElementAccessChain(r.expression,r.questionDotToken,s):N.createElementAccessExpression(r.expression,s))}function _Se(e,t){return so(oa(e,t).parent,Fr)}var nG,Xee,eHe=S({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){Qr(),To(),nG="fixNoPropertyAccessFromIndexSignature",Xee=[_.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],mo({errorCodes:Xee,fixIds:[nG],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,o=_Se(t,r.start),s=gr.ChangeTracker.with(e,c=>fSe(c,e.sourceFile,o,i));return[ao(nG,s,[_.Use_element_access_for_0,o.name.text],nG,_.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ls(e,Xee,(t,r)=>fSe(t,r.file,_Se(r.file,r.start),e.preferences))})}});function pSe(e,t,r,i){const o=oa(t,r);if(!uL(o))return;const s=kd(o,!1,!1);if(!(!xc(s)&&!Us(s))&&!Ji(kd(s,!1,!1))){const c=D.checkDefined(Es(s,98,t)),{name:f}=s,d=D.checkDefined(s.body);return Us(s)?f&&_l.Core.isSymbolReferencedInFile(f,i,t,d)?void 0:(e.delete(t,c),f&&e.delete(t,f),e.insertText(t,d.pos," =>"),[_.Convert_function_expression_0_to_arrow_function,f?f.text:Q9]):(e.replaceNode(t,c,N.createToken(85)),e.insertText(t,f.end," = "),e.insertText(t,d.pos," =>"),[_.Convert_function_declaration_0_to_arrow_function,f.text])}}var rG,Yee,tHe=S({"src/services/codefixes/fixImplicitThis.ts"(){Qr(),To(),rG="fixImplicitThis",Yee=[_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],mo({errorCodes:Yee,getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t;let s;const c=gr.ChangeTracker.with(t,f=>{s=pSe(f,r,o.start,i.getTypeChecker())});return s?[ao(rG,c,s,rG,_.Fix_all_implicit_this_errors)]:rt},fixIds:[rG],getAllCodeActions:e=>Ls(e,Yee,(t,r)=>{pSe(t,r.file,r.start,e.program.getTypeChecker())})})}});function mSe(e,t,r){var i;const o=oa(e,t);if(je(o)){const s=rr(o,Yc);if(s===void 0)return;const c=Ho(s.moduleSpecifier)?s.moduleSpecifier.text:void 0;if(c===void 0)return;const f=YA(e,c,void 0);if(f===void 0)return;const d=r.getSourceFile(f.resolvedFileName);if(d===void 0||zw(r,d))return;const v=d.symbol,h=(i=si(v.valueDeclaration,jm))==null?void 0:i.locals;if(h===void 0)return;const E=h.get(o.escapedText);if(E===void 0)return;const C=rHe(E);return C===void 0?void 0:{exportName:{node:o,isTypeOnly:LC(C)},node:C,moduleSourceFile:d,moduleSpecifier:c}}}function nHe(e,t,{exportName:r,node:i,moduleSourceFile:o}){const s=iG(o,r.isTypeOnly);s?hSe(e,t,o,s,[r]):kO(i)?e.insertExportModifier(o,i):gSe(e,t,o,[r])}function $ee(e,t,r,i,o){Le(i)&&(o?hSe(e,t,r,o,i):gSe(e,t,r,i))}function iG(e,t){const r=i=>au(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return Yr(e.statements,r)}function hSe(e,t,r,i,o){const s=i.exportClause&&tp(i.exportClause)?i.exportClause.elements:N.createNodeArray([]),c=!i.isTypeOnly&&!!(Y_(t.getCompilerOptions())||In(s,f=>f.isTypeOnly));e.replaceNode(r,i,N.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,N.createNamedExports(N.createNodeArray([...s,...ySe(o,c)],s.hasTrailingComma)),i.moduleSpecifier,i.assertClause))}function gSe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,N.createExportDeclaration(void 0,!1,N.createNamedExports(ySe(i,Y_(t.getCompilerOptions()))),void 0,void 0))}function ySe(e,t){return N.createNodeArray(zt(e,r=>N.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function rHe(e){if(e.valueDeclaration===void 0)return tu(e.declarations);const t=e.valueDeclaration,r=Xi(t)?si(t.parent.parent,gc):void 0;return r&&Le(r.declarationList.declarations)===1?r:t}var aG,Qee,iHe=S({"src/services/codefixes/fixImportNonExportedMember.ts"(){Qr(),To(),aG="fixImportNonExportedMember",Qee=[_.Module_0_declares_1_locally_but_it_is_not_exported.code],mo({errorCodes:Qee,fixIds:[aG],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=mSe(t,r.start,i);if(o===void 0)return;const s=gr.ChangeTracker.with(e,c=>nHe(c,i,o));return[ao(aG,s,[_.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],aG,_.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return v2(gr.ChangeTracker.with(e,r=>{const i=new Map;b2(e,Qee,o=>{const s=mSe(o.file,o.start,t);if(s===void 0)return;const{exportName:c,node:f,moduleSourceFile:d}=s;if(iG(d,c.isTypeOnly)===void 0&&kO(f))r.insertExportModifier(d,f);else{const v=i.get(d)||{typeOnlyExports:[],exports:[]};c.isTypeOnly?v.typeOnlyExports.push(c):v.exports.push(c),i.set(d,v)}}),i.forEach((o,s)=>{const c=iG(s,!0);c&&c.isTypeOnly?($ee(r,t,s,o.typeOnlyExports,c),$ee(r,t,s,o.exports,iG(s,!1))):$ee(r,t,s,[...o.exports,...o.typeOnlyExports],c)})}))}})}});function aHe(e,t){const r=oa(e,t);return rr(r,i=>i.kind===199)}function oHe(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===187||i.kind===188||i.kind===193;)i.kind===187?o=!0:i.kind===188&&(s=!0),i=i.type;const c=N.updateNamedTupleMember(r,r.dotDotDotToken||(s?N.createToken(25):void 0),r.name,r.questionToken||(o?N.createToken(57):void 0),i);c!==r&&e.replaceNode(t,r,c)}var oG,vSe,sHe=S({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){Qr(),To(),oG="fixIncorrectNamedTupleSyntax",vSe=[_.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,_.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],mo({errorCodes:vSe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=aHe(r,i.start),s=gr.ChangeTracker.with(t,c=>oHe(c,r,o));return[ao(oG,s,_.Move_labeled_tuple_element_modifiers_to_labels,oG,_.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[oG]})}});function bSe(e,t,r,i){const o=oa(e,t),s=o.parent;if((i===_.No_overload_matches_this_call.code||i===_.Type_0_is_not_assignable_to_type_1.code)&&!fm(s))return;const c=r.program.getTypeChecker();let f;if(Fr(s)&&s.name===o){D.assert(yg(o),"Expected an identifier for spelling (property access)");let d=c.getTypeAtLocation(s.expression);s.flags&32&&(d=c.getNonNullableType(d)),f=c.getSuggestedSymbolForNonexistentProperty(o,d)}else if(br(s)&&s.operatorToken.kind===101&&s.left===o&&Oi(o)){const d=c.getTypeAtLocation(s.right);f=c.getSuggestedSymbolForNonexistentProperty(o,d)}else if(Rd(s)&&s.right===o){const d=c.getSymbolAtLocation(s.left);d&&d.flags&1536&&(f=c.getSuggestedSymbolForNonexistentModule(s.right,d))}else if(Nd(s)&&s.name===o){D.assertNode(o,je,"Expected an identifier for spelling (import)");const d=rr(o,Yc),v=cHe(e,r,d);v&&v.symbol&&(f=c.getSuggestedSymbolForNonexistentModule(o,v.symbol))}else if(fm(s)&&s.name===o){D.assertNode(o,je,"Expected an identifier for JSX attribute");const d=rr(o,od),v=c.getContextualTypeForArgumentAtIndex(d,0);f=c.getSuggestedSymbolForNonexistentJSXAttribute(o,v)}else if($r(s,16384)&&qc(s)&&s.name===o){const d=rr(o,_i),v=d?am(d):void 0,h=v?c.getTypeAtLocation(v):void 0;h&&(f=c.getSuggestedSymbolForNonexistentClassMember(kc(o),h))}else{const d=aS(o),v=kc(o);D.assert(v!==void 0,"name should be defined"),f=c.getSuggestedSymbolForNonexistentSymbol(o,v,lHe(d))}return f===void 0?void 0:{node:o,suggestedSymbol:f}}function ESe(e,t,r,i,o){const s=Gl(i);if(!H_(s,o)&&Fr(r.parent)){const c=i.valueDeclaration;c&&Su(c)&&Oi(c.name)?e.replaceNode(t,r,N.createIdentifier(s)):e.replaceNode(t,r.parent,N.createElementAccessExpression(r.parent.expression,N.createStringLiteral(s)))}else e.replaceNode(t,r,N.createIdentifier(s))}function lHe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function cHe(e,t,r){if(!r||!As(r.moduleSpecifier))return;const i=YA(e,r.moduleSpecifier.text,wp(e,r.moduleSpecifier));if(i)return t.program.getSourceFile(i.resolvedFileName)}var Zee,ete,uHe=S({"src/services/codefixes/fixSpelling.ts"(){Qr(),To(),Zee="fixSpelling",ete=[_.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,_.Cannot_find_name_0_Did_you_mean_1.code,_.Could_not_find_name_0_Did_you_mean_1.code,_.Cannot_find_namespace_0_Did_you_mean_1.code,_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_._0_has_no_exported_member_named_1_Did_you_mean_2.code,_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,_.No_overload_matches_this_call.code,_.Type_0_is_not_assignable_to_type_1.code],mo({errorCodes:ete,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=bSe(t,e.span.start,e,r);if(!i)return;const{node:o,suggestedSymbol:s}=i,c=ts(e.host.getCompilationSettings()),f=gr.ChangeTracker.with(e,d=>ESe(d,t,o,s,c));return[ao("spelling",f,[_.Change_spelling_to_0,Gl(s)],Zee,_.Fix_all_detected_spelling_errors)]},fixIds:[Zee],getAllCodeActions:e=>Ls(e,ete,(t,r)=>{const i=bSe(r.file,r.start,e,r.code),o=ts(e.host.getCompilationSettings());i&&ESe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function TSe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const o=co([i]);return e.createAnonymousType(void 0,o,[],[],[])}function tte(e,t,r,i){if(!t.body||!uo(t.body)||Le(t.body.statements)!==1)return;const o=ds(t.body.statements);if(fu(o)&&nte(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(Y1(o)&&fu(o.statement)){const s=N.createObjectLiteralExpression([N.createPropertyAssignment(o.label,o.statement.expression)]),c=TSe(e,o.label,o.statement.expression);if(nte(e,t,c,r,i))return Xs(t)?{declaration:t,kind:1,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:s,statement:o,commentSource:o.statement.expression}}else if(uo(o)&&Le(o.statements)===1){const s=ds(o.statements);if(Y1(s)&&fu(s.statement)){const c=N.createObjectLiteralExpression([N.createPropertyAssignment(s.label,s.statement.expression)]),f=TSe(e,s.label,s.statement.expression);if(nte(e,t,f,r,i))return{declaration:t,kind:0,expression:c,statement:o,commentSource:s}}}}function nte(e,t,r,i,o){if(o){const s=e.getSignatureFromDeclaration(t);if(s){$r(t,512)&&(r=e.createPromiseType(r));const c=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,co(),[c],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function SSe(e,t,r,i){const o=oa(t,r);if(!o.parent)return;const s=rr(o.parent,el);switch(i){case _.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!vf(s.type,o)?void 0:tte(e,s,e.getTypeFromTypeNode(s.type),!1);case _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!io(s.parent)||!s.body)return;const c=s.parent.arguments.indexOf(s),f=e.getContextualTypeForArgumentAtIndex(s.parent,c);return f?tte(e,s,f,!0):void 0;case _.Type_0_is_not_assignable_to_type_1.code:if(!Ag(o)||!nC(o.parent)&&!fm(o.parent))return;const d=dHe(o.parent);return!d||!el(d)||!d.body?void 0:tte(e,d,e.getTypeAtLocation(o.parent),!0)}}function dHe(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:return e.initializer;case 288:return e.initializer&&(aw(e.initializer)?e.initializer.expression:void 0);case 300:case 168:case 302:case 351:case 344:return}}function xSe(e,t,r,i){$d(r);const o=B9(t);e.replaceNode(t,i,N.createReturnStatement(r),{leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function ASe(e,t,r,i,o,s){const c=s||ZQ(i)?N.createParenthesizedExpression(i):i;$d(o),cS(o,c),e.replaceNode(t,r.body,c)}function CSe(e,t,r,i){e.replaceNode(t,r.body,N.createParenthesizedExpression(i))}function fHe(e,t,r){const i=gr.ChangeTracker.with(e,o=>xSe(o,e.sourceFile,t,r));return ao(sG,i,_.Add_a_return_statement,lG,_.Add_all_missing_return_statement)}function _He(e,t,r,i){const o=gr.ChangeTracker.with(e,s=>ASe(s,e.sourceFile,t,r,i,!1));return ao(sG,o,_.Remove_braces_from_arrow_function_body,cG,_.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function pHe(e,t,r){const i=gr.ChangeTracker.with(e,o=>CSe(o,e.sourceFile,t,r));return ao(sG,i,_.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,uG,_.Wrap_all_object_literal_with_parentheses)}var sG,lG,cG,uG,rte,mHe=S({"src/services/codefixes/returnValueCorrect.ts"(){Qr(),To(),sG="returnValueCorrect",lG="fixAddReturnStatement",cG="fixRemoveBracesFromArrowFunctionBody",uG="fixWrapTheBlockWithParen",rte=[_.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,_.Type_0_is_not_assignable_to_type_1.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],mo({errorCodes:rte,fixIds:[lG,cG,uG],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,c=SSe(r.getTypeChecker(),i,o,s);if(c)return c.kind===0?Bn([fHe(t,c.expression,c.statement)],Xs(c.declaration)?_He(t,c.declaration,c.expression,c.commentSource):void 0):[pHe(t,c.declaration,c.expression)]},getAllCodeActions:e=>Ls(e,rte,(t,r)=>{const i=SSe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case lG:xSe(t,r.file,i.expression,i.statement);break;case cG:if(!Xs(i.declaration))return;ASe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case uG:if(!Xs(i.declaration))return;CSe(t,r.file,i.declaration,i.expression);break;default:D.fail(JSON.stringify(e.fixId))}})})}});function LSe(e,t,r,i,o){var s;const c=oa(e,t),f=c.parent;if(r===_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(c.kind===18&&Is(f)&&io(f.parent)))return;const L=mi(f.parent.arguments,G=>G===f);if(L<0)return;const I=i.getResolvedSignature(f.parent);if(!(I&&I.declaration&&I.parameters[L]))return;const O=I.parameters[L].valueDeclaration;if(!(O&&Fa(O)&&je(O.name)))return;const k=No(i.getUnmatchedProperties(i.getTypeAtLocation(f),i.getParameterType(I,L),!1,!1));return Le(k)?{kind:3,token:O.name,properties:k,parentDeclaration:f}:void 0}if(!yg(c))return;if(je(c)&&Uv(f)&&f.initializer&&Is(f.initializer)){const L=No(i.getUnmatchedProperties(i.getTypeAtLocation(f.initializer),i.getTypeAtLocation(c),!1,!1));return Le(L)?{kind:3,token:c,properties:L,parentDeclaration:f.initializer}:void 0}if(je(c)&&od(c.parent)){const L=ts(o.getCompilerOptions()),I=THe(i,L,c.parent);return Le(I)?{kind:4,token:c,attributes:I,parentDeclaration:c.parent}:void 0}if(je(c)){const L=(s=i.getContextualType(c))==null?void 0:s.getNonNullableType();if(L&&ri(L)&16){const I=tu(i.getSignaturesOfType(L,0));return I===void 0?void 0:{kind:5,token:c,signature:I,sourceFile:e,parentDeclaration:BSe(c)}}if(io(f)&&f.expression===c)return{kind:2,token:c,call:f,sourceFile:e,modifierFlags:0,parentDeclaration:BSe(c)}}if(!Fr(f))return;const d=FQ(i.getTypeAtLocation(f.expression)),v=d.symbol;if(!v||!v.declarations)return;if(je(c)&&io(f.parent)){const L=In(v.declarations,$l),I=L==null?void 0:L.getSourceFile();if(L&&I&&!zw(o,I))return{kind:2,token:c,call:f.parent,sourceFile:e,modifierFlags:1,parentDeclaration:L};const O=In(v.declarations,Ji);if(e.commonJsModuleIndicator)return;if(O&&!zw(o,O))return{kind:2,token:c,call:f.parent,sourceFile:O,modifierFlags:1,parentDeclaration:O}}const h=In(v.declarations,_i);if(!h&&Oi(c))return;const E=h||In(v.declarations,L=>ud(L)||yf(L));if(E&&!zw(o,E.getSourceFile())){const L=!yf(E)&&(d.target||d)!==i.getDeclaredTypeOfSymbol(v);if(L&&(Oi(c)||ud(E)))return;const I=E.getSourceFile(),O=yf(E)?0:(L?32:0)|(cZ(c.text)?8:0),k=sd(I),G=si(f.parent,io);return{kind:0,token:c,call:G,modifierFlags:O,parentDeclaration:E,declSourceFile:I,isJSFile:k}}const C=In(v.declarations,yb);if(C&&!(d.flags&1056)&&!Oi(c)&&!zw(o,C.getSourceFile()))return{kind:1,token:c,parentDeclaration:C}}function hHe(e,t){return t.isJSFile?dT(gHe(e,t)):yHe(e,t)}function gHe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(ud(t)||yf(t))return;const s=gr.ChangeTracker.with(e,f=>ISe(f,r,t,o,!!(i&32)));if(s.length===0)return;const c=i&32?_.Initialize_static_property_0:Oi(o)?_.Declare_a_private_field_named_0:_.Initialize_property_0_in_the_constructor;return ao(Wy,s,[c,o.text],Wy,_.Add_all_missing_members)}function ISe(e,t,r,i,o){const s=i.text;if(o){if(r.kind===228)return;const c=r.name.getText(),f=kSe(N.createIdentifier(c),s);e.insertNodeAfter(t,r,f)}else if(Oi(i)){const c=N.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),f=RSe(r);f?e.insertNodeAfter(t,f,c):e.insertMemberAtStart(t,r,c)}else{const c=Dh(r);if(!c)return;const f=kSe(N.createThis(),s);e.insertNodeAtConstructorEnd(t,c,f)}}function kSe(e,t){return N.createExpressionStatement(N.createAssignment(N.createPropertyAccessExpression(e,t),pS()))}function yHe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){const s=o.text,c=i&32,f=wSe(e.program.getTypeChecker(),t,o),d=h=>gr.ChangeTracker.with(e,E=>DSe(E,r,t,s,f,h)),v=[ao(Wy,d(i&32),[c?_.Declare_static_property_0:_.Declare_property_0,s],Wy,_.Add_all_missing_members)];return c||Oi(o)||(i&8&&v.unshift(Np(Wy,d(8),[_.Declare_private_property_0,s])),v.push(vHe(e,r,t,o.text,f))),v}function wSe(e,t,r){let i;if(r.parent.parent.kind===223){const o=r.parent.parent,s=r.parent===o.left?o.right:o.left,c=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(c,t,1)}else{const o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||N.createKeywordTypeNode(131)}function DSe(e,t,r,i,o,s){const c=s?N.createNodeArray(N.createModifiersFromModifierFlags(s)):void 0,f=_i(r)?N.createPropertyDeclaration(c,i,void 0,o,void 0):N.createPropertySignature(void 0,i,void 0,o),d=RSe(r);d?e.insertNodeAfter(t,d,f):e.insertMemberAtStart(t,r,f)}function RSe(e){let t;for(const r of e.members){if(!ro(r))break;t=r}return t}function vHe(e,t,r,i,o){const s=N.createKeywordTypeNode(152),c=N.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),f=N.createIndexSignature(void 0,[c],o),d=gr.ChangeTracker.with(e,v=>v.insertMemberAtStart(t,r,f));return Np(Wy,d,[_.Add_index_signature_for_property_0,i])}function bHe(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:c}=t;if(c===void 0||Oi(s))return;const f=s.text,d=h=>gr.ChangeTracker.with(e,E=>NSe(e,E,c,s,h,r,i)),v=[ao(Wy,d(o&32),[o&32?_.Declare_static_method_0:_.Declare_method_0,f],Wy,_.Add_all_missing_members)];return o&8&&v.unshift(Np(Wy,d(8),[_.Declare_private_method_0,f])),v}function NSe(e,t,r,i,o,s,c){const f=_S(c,e.program,e.preferences,e.host),d=_i(s)?171:170,v=Ute(d,e,f,r,i,o,s),h=SHe(s,r);h?t.insertNodeAfter(c,h,v):t.insertMemberAtStart(c,s,v),f.writeFixes(t)}function OSe(e,t,{token:r,parentDeclaration:i}){const o=kt(i.members,c=>{const f=t.getTypeAtLocation(c);return!!(f&&f.flags&402653316)}),s=N.createEnumMember(r,o?N.createStringLiteral(r.text):void 0);e.replaceNode(i.getSourceFile(),i,N.updateEnumDeclaration(i,i.modifiers,i.name,ya(i.members,dT(s))),{leadingTriviaOption:gr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gr.TrailingTriviaOption.Exclude})}function PSe(e,t,r){const i=Rp(t.sourceFile,t.preferences),o=_S(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?Ute(259,t,o,r.call,Mr(r.token),r.modifierFlags,r.parentDeclaration):MG(259,t,i,r.signature,$6(_.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&D.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Ip(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function MSe(e,t,r){const i=_S(t.sourceFile,t.program,t.preferences,t.host),o=Rp(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),c=r.parentDeclaration.attributes,f=kt(c.properties,WT),d=zt(r.attributes,E=>{const C=dG(t,s,i,o,s.getTypeOfSymbol(E),r.parentDeclaration),L=N.createIdentifier(E.name),I=N.createJsxAttribute(L,N.createJsxExpression(void 0,C));return jo(L,I),I}),v=N.createJsxAttributes(f?[...d,...c.properties]:[...c.properties,...d]),h={prefix:c.pos===c.end?" ":void 0};e.replaceNode(t.sourceFile,c,v,h),i.writeFixes(e)}function FSe(e,t,r){const i=_S(t.sourceFile,t.program,t.preferences,t.host),o=Rp(t.sourceFile,t.preferences),s=ts(t.program.getCompilerOptions()),c=t.program.getTypeChecker(),f=zt(r.properties,v=>{const h=dG(t,c,i,o,c.getTypeOfSymbol(v),r.parentDeclaration);return N.createPropertyAssignment(xHe(v,s,o,c),h)}),d={leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,N.createObjectLiteralExpression([...r.parentDeclaration.properties,...f],!0),d),i.writeFixes(e)}function dG(e,t,r,i,o,s){if(o.flags&3)return pS();if(o.flags&134217732)return N.createStringLiteral("",i===0);if(o.flags&8)return N.createNumericLiteral(0);if(o.flags&64)return N.createBigIntLiteral("0n");if(o.flags&16)return N.createFalse();if(o.flags&1056){const c=o.symbol.exports?_M(o.symbol.exports.values()):o.symbol,f=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return c===void 0||f===void 0?N.createNumericLiteral(0):N.createPropertyAccessExpression(f,t.symbolToString(c))}if(o.flags&256)return N.createNumericLiteral(o.value);if(o.flags&2048)return N.createBigIntLiteral(o.value);if(o.flags&128)return N.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?N.createFalse():N.createTrue();if(o.flags&65536)return N.createNull();if(o.flags&1048576){const c=Jt(o.types,f=>dG(e,t,r,i,f,s));return c!=null?c:pS()}if(t.isArrayLikeType(o))return N.createArrayLiteralExpression();if(EHe(o)){const c=zt(t.getPropertiesOfType(o),f=>{const d=dG(e,t,r,i,t.getTypeOfSymbol(f),s);return N.createPropertyAssignment(f.name,d)});return N.createObjectLiteralExpression(c,!0)}if(ri(o)&16){if(In(o.symbol.declarations||rt,Fm(Mh,Ph,uc))===void 0)return pS();const f=t.getSignaturesOfType(o,0);if(f===void 0)return pS();const d=MG(215,e,i,f[0],$6(_.Function_not_implemented.message,i),void 0,void 0,void 0,s,r);return d!=null?d:pS()}if(ri(o)&1){const c=Lg(o.symbol);if(c===void 0||H1(c))return pS();const f=Dh(c);return f&&Le(f.parameters)?pS():N.createNewExpression(N.createIdentifier(o.symbol.name),void 0,void 0)}return pS()}function pS(){return N.createIdentifier("undefined")}function EHe(e){return e.flags&524288&&(ri(e)&128||e.symbol&&si(Om(e.symbol.declarations),yf))}function THe(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return rt;const o=i.getProperties();if(!Le(o))return rt;const s=new Set;for(const c of r.attributes.properties)if(fm(c)&&s.add(c.name.escapedText),WT(c)){const f=e.getTypeAtLocation(c.expression);for(const d of f.getProperties())s.add(d.escapedName)}return yn(o,c=>H_(c.name,t,1)&&!(c.flags&16777216||Dl(c)&48||s.has(c.escapedName)))}function SHe(e,t){if(yf(e))return;const r=rr(t,i=>uc(i)||Yl(i));return r&&r.parent===e?r:void 0}function xHe(e,t,r,i){if(Hm(e)){const o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Cs(o))return o}return x7(e.name,t,r===0)}function BSe(e){if(rr(e,aw)){const t=rr(e.parent,Ip);if(t)return t}return er(e)}var Wy,z6,q6,J6,ite,AHe=S({"src/services/codefixes/fixAddMissingMember.ts"(){Qr(),To(),Wy="fixMissingMember",z6="fixMissingProperties",q6="fixMissingAttributes",J6="fixMissingFunctionDeclaration",ite=[_.Property_0_does_not_exist_on_type_1.code,_.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_.Property_0_is_missing_in_type_1_but_required_in_type_2.code,_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_.Cannot_find_name_0.code],mo({errorCodes:ite,getCodeActions(e){const t=e.program.getTypeChecker(),r=LSe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=gr.ChangeTracker.with(e,o=>FSe(o,e,r));return[ao(z6,i,_.Add_missing_properties,z6,_.Add_all_missing_properties)]}if(r.kind===4){const i=gr.ChangeTracker.with(e,o=>MSe(o,e,r));return[ao(q6,i,_.Add_missing_attributes,q6,_.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=gr.ChangeTracker.with(e,o=>PSe(o,e,r));return[ao(J6,i,[_.Add_missing_function_declaration_0,r.token.text],J6,_.Add_all_missing_function_declarations)]}if(r.kind===1){const i=gr.ChangeTracker.with(e,o=>OSe(o,e.program.getTypeChecker(),r));return[ao(Wy,i,[_.Add_missing_enum_member_0,r.token.text],Wy,_.Add_all_missing_members)]}return ya(bHe(e,r),hHe(e,r))}},fixIds:[Wy,J6,z6,q6],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return v2(gr.ChangeTracker.with(e,c=>{b2(e,ite,f=>{const d=LSe(f.file,f.start,f.code,i,e.program);if(!(!d||!Lp(o,hs(d.parentDeclaration)+"#"+d.token.text))){if(r===J6&&(d.kind===2||d.kind===5))PSe(c,e,d);else if(r===z6&&d.kind===3)FSe(c,e,d);else if(r===q6&&d.kind===4)MSe(c,e,d);else if(d.kind===1&&OSe(c,i,d),d.kind===0){const{parentDeclaration:v,token:h}=d,E=RA(s,v,()=>[]);E.some(C=>C.token.text===h.text)||E.push(d)}}}),s.forEach((f,d)=>{const v=yf(d)?void 0:Kte(d,i);for(const h of f){if(v!=null&&v.some(G=>{const V=s.get(G);return!!V&&V.some(({token:H})=>H.text===h.token.text)}))continue;const{parentDeclaration:E,declSourceFile:C,modifierFlags:L,token:I,call:O,isJSFile:k}=h;if(O&&!Oi(I))NSe(e,c,O,I,L&32,E,C);else if(k&&!ud(E)&&!yf(E))ISe(c,C,E,I,!!(L&32));else{const G=wSe(i,E,I);DSe(c,C,E,I.text,G,L&32)}}})}))}})}});function GSe(e,t,r){const i=so(CHe(t,r),io),o=N.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function CHe(e,t){let r=oa(e,t.start);const i=uu(t);for(;r.end<i;)r=r.parent;return r}var fG,ate,LHe=S({"src/services/codefixes/fixAddMissingNewOperator.ts"(){Qr(),To(),fG="addMissingNewOperator",ate=[_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],mo({errorCodes:ate,getCodeActions(e){const{sourceFile:t,span:r}=e,i=gr.ChangeTracker.with(e,o=>GSe(o,t,r));return[ao(fG,i,_.Add_missing_new_operator_to_call,fG,_.Add_missing_new_operator_to_all_calls)]},fixIds:[fG],getAllCodeActions:e=>Ls(e,ate,(t,r)=>GSe(t,e.sourceFile,r))})}});function USe(e,t){return{type:"install package",file:e,packageName:t}}function VSe(e,t){const r=si(oa(e,t),Ho);if(!r)return;const i=r.text,{packageName:o}=RX(i);return zc(o)?void 0:o}function jSe(e,t,r){var i;return r===ote?iS.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?oF(e):void 0}var HSe,_G,ote,ste,IHe=S({"src/services/codefixes/fixCannotFindModule.ts"(){Qr(),To(),HSe="fixCannotFindModule",_G="installTypesPackage",ote=_.Cannot_find_module_0_or_its_corresponding_type_declarations.code,ste=[ote,_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],mo({errorCodes:ste,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:o}}=t,s=VSe(i,o);if(s===void 0)return;const c=jSe(s,r,t.errorCode);return c===void 0?[]:[ao(HSe,[],[_.Install_0,c],_G,_.Install_all_missing_types_packages,USe(i.fileName,c))]},fixIds:[_G],getAllCodeActions:e=>Ls(e,ste,(t,r,i)=>{const o=VSe(r.file,r.start);if(o!==void 0)switch(e.fixId){case _G:{const s=jSe(o,e.host,r.code);s&&i.push(USe(r.file.fileName,s));break}default:D.fail(`Bad fixId: ${e.fixId}`)}})})}});function WSe(e,t){const r=oa(e,t);return so(r.parent,_i)}function zSe(e,t,r,i,o){const s=am(e),c=r.program.getTypeChecker(),f=c.getTypeAtLocation(s),d=c.getPropertiesOfType(f).filter(kHe),v=_S(t,r.program,o,r.host);Gte(e,d,t,r,o,v,h=>i.insertMemberAtStart(t,e,h)),v.writeFixes(i)}function kHe(e){const t=Wv(ds(e.getDeclarations()));return!(t&8)&&!!(t&256)}var lte,pG,wHe=S({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){Qr(),To(),lte=[_.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,_.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],pG="fixClassDoesntImplementInheritedAbstractMember",mo({errorCodes:lte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=gr.ChangeTracker.with(t,s=>zSe(WSe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[ao(pG,o,_.Implement_inherited_abstract_class,pG,_.Implement_all_inherited_abstract_classes)]},fixIds:[pG],getAllCodeActions:function(t){const r=new Map;return Ls(t,lte,(i,o)=>{const s=WSe(o.file,o.start);Lp(r,hs(s))&&zSe(s,t.sourceFile,t,i,t.preferences)})}})}});function qSe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function JSe(e,t){const r=oa(e,t);if(r.kind!==108)return;const i=Mf(r),o=KSe(i.body);return o&&!o.expression.arguments.some(s=>Fr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function KSe(e){return fu(e)&&eC(e.expression)?e:Xa(e)?void 0:Pa(e,KSe)}var mG,cte,DHe=S({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){Qr(),To(),mG="classSuperMustPrecedeThisAccess",cte=[_.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],mo({errorCodes:cte,getCodeActions(e){const{sourceFile:t,span:r}=e,i=JSe(t,r.start);if(!i)return;const{constructor:o,superCall:s}=i,c=gr.ChangeTracker.with(e,f=>qSe(f,t,o,s));return[ao(mG,c,_.Make_super_call_the_first_statement_in_the_constructor,mG,_.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[mG],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return Ls(e,cte,(i,o)=>{const s=JSe(o.file,o.start);if(!s)return;const{constructor:c,superCall:f}=s;Lp(r,hs(c.parent))&&qSe(i,t,c,f)})}})}});function XSe(e,t){const r=oa(e,t);return D.assert(Yl(r.parent),"token should be at the constructor declaration"),r.parent}function YSe(e,t,r){const i=N.createExpressionStatement(N.createCallExpression(N.createSuper(),void 0,rt));e.insertNodeAtConstructorStart(t,r,i)}var hG,ute,RHe=S({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){Qr(),To(),hG="constructorForDerivedNeedSuperCall",ute=[_.Constructors_for_derived_classes_must_contain_a_super_call.code],mo({errorCodes:ute,getCodeActions(e){const{sourceFile:t,span:r}=e,i=XSe(t,r.start),o=gr.ChangeTracker.with(e,s=>YSe(s,t,i));return[ao(hG,o,_.Add_missing_super_call,hG,_.Add_all_missing_super_calls)]},fixIds:[hG],getAllCodeActions:e=>Ls(e,ute,(t,r)=>YSe(t,e.sourceFile,XSe(r.file,r.start)))})}});function $Se(e,t){Wte(e,t,"jsx",N.createStringLiteral("react"))}var dte,fte,NHe=S({"src/services/codefixes/fixEnableJsxFlag.ts"(){Qr(),To(),dte="fixEnableJsxFlag",fte=[_.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],mo({errorCodes:fte,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=gr.ChangeTracker.with(t,o=>$Se(o,r));return[Np(dte,i,_.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[dte],getAllCodeActions:e=>Ls(e,fte,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&$Se(t,r)})})}});function QSe(e,t,r){const i=In(e.getSemanticDiagnostics(t),c=>c.start===r.start&&c.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=In(i.relatedInformation,c=>c.code===_.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;const s=qte(o.file,Pc(o.start,o.length));if(s!==void 0&&vt(s)&&br(s.parent))return{suggestion:OHe(o.messageText),expression:s.parent,arg:s}}function ZSe(e,t,r,i){const o=N.createCallExpression(N.createPropertyAccessExpression(N.createIdentifier("Number"),N.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===37||s===35?N.createPrefixUnaryExpression(53,o):o)}function OHe(e){const[t,r]=t0(e,`
- `,0).match(/\'(.*)\'/)||[];return r}var gG,_te,PHe=S({"src/services/codefixes/fixNaNEquality.ts"(){Qr(),To(),gG="fixNaNEquality",_te=[_.This_condition_will_always_return_0.code],mo({errorCodes:_te,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=QSe(i,t,r);if(o===void 0)return;const{suggestion:s,expression:c,arg:f}=o,d=gr.ChangeTracker.with(e,v=>ZSe(v,t,f,c));return[ao(gG,d,[_.Use_0,s],gG,_.Use_Number_isNaN_in_all_conditions)]},fixIds:[gG],getAllCodeActions:e=>Ls(e,_te,(t,r)=>{const i=QSe(e.program,r.file,Pc(r.start,r.length));i&&ZSe(t,r.file,i.arg,i.expression)})})}}),MHe=S({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){Qr(),To(),mo({errorCodes:[_.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,_.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const o=[],s=du(r);if(s>=5&&s<99){const v=gr.ChangeTracker.with(t,h=>{Wte(h,i,"module",N.createStringLiteral("esnext"))});o.push(Np("fixModuleOption",v,[_.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const f=ts(r);if(f<4||f>99){const v=gr.ChangeTracker.with(t,h=>{if(!lk(i))return;const C=[["target",N.createStringLiteral("es2017")]];s===1&&C.push(["module",N.createStringLiteral("commonjs")]),Hte(h,i,C)});o.push(Np("fixTargetOption",v,[_.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function exe(e,t,r){e.replaceNode(t,r,N.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function txe(e,t){return so(oa(e,t).parent,u_)}var yG,pte,FHe=S({"src/services/codefixes/fixPropertyAssignment.ts"(){Qr(),To(),yG="fixPropertyAssignment",pte=[_.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],mo({errorCodes:pte,fixIds:[yG],getCodeActions(e){const{sourceFile:t,span:r}=e,i=txe(t,r.start),o=gr.ChangeTracker.with(e,s=>exe(s,e.sourceFile,i));return[ao(yG,o,[_.Change_0_to_1,"=",":"],yG,[_.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ls(e,pte,(t,r)=>exe(t,r.file,txe(r.file,r.start)))})}});function nxe(e,t){const r=oa(e,t),i=wc(r).heritageClauses,o=i[0].getFirstToken();return o.kind===94?{extendsToken:o,heritageClauses:i}:void 0}function rxe(e,t,r,i){if(e.replaceNode(t,r,N.createToken(117)),i.length===2&&i[0].token===94&&i[1].token===117){const o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},N.createToken(27));const c=t.text;let f=o.end;for(;f<c.length&&Um(c.charCodeAt(f));)f++;e.deleteRange(t,{pos:o.getStart(),end:f})}}var vG,mte,BHe=S({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){Qr(),To(),vG="extendsInterfaceBecomesImplements",mte=[_.Cannot_extend_an_interface_0_Did_you_mean_implements.code],mo({errorCodes:mte,getCodeActions(e){const{sourceFile:t}=e,r=nxe(t,e.span.start);if(!r)return;const{extendsToken:i,heritageClauses:o}=r,s=gr.ChangeTracker.with(e,c=>rxe(c,t,i,o));return[ao(vG,s,_.Change_extends_to_implements,vG,_.Change_all_extended_interfaces_to_implements)]},fixIds:[vG],getAllCodeActions:e=>Ls(e,mte,(t,r)=>{const i=nxe(r.file,r.start);i&&rxe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function ixe(e,t,r){const i=oa(e,t);if(je(i)||Oi(i))return{node:i,className:r===hte?wc(i).name.text:void 0}}function axe(e,t,{node:r,className:i}){$d(r),e.replaceNode(t,r,N.createPropertyAccessExpression(i?N.createIdentifier(i):N.createThis(),r))}var bG,hte,gte,GHe=S({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){Qr(),To(),bG="forgottenThisPropertyAccess",hte=_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,gte=[_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,hte],mo({errorCodes:gte,getCodeActions(e){const{sourceFile:t}=e,r=ixe(t,e.span.start,e.errorCode);if(!r)return;const i=gr.ChangeTracker.with(e,o=>axe(o,t,r));return[ao(bG,i,[_.Add_0_to_unresolved_variable,r.className||"this"],bG,_.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[bG],getAllCodeActions:e=>Ls(e,gte,(t,r)=>{const i=ixe(r.file,r.start,r.code);i&&axe(t,e.sourceFile,i)})})}});function UHe(e){return Fs(bte,e)}function yte(e,t,r,i,o){const s=r.getText()[i];if(!UHe(s))return;const c=o?bte[s]:`{${jw(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},c)}var EG,K6,vte,bte,VHe=S({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){Qr(),To(),EG="fixInvalidJsxCharacters_expression",K6="fixInvalidJsxCharacters_htmlEntity",vte=[_.Unexpected_token_Did_you_mean_or_gt.code,_.Unexpected_token_Did_you_mean_or_rbrace.code],mo({errorCodes:vte,fixIds:[EG,K6],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,o=gr.ChangeTracker.with(e,c=>yte(c,r,t,i.start,!1)),s=gr.ChangeTracker.with(e,c=>yte(c,r,t,i.start,!0));return[ao(EG,o,_.Wrap_invalid_character_in_an_expression_container,EG,_.Wrap_all_invalid_characters_in_an_expression_container),ao(K6,s,_.Convert_invalid_character_to_its_html_entity_code,K6,_.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ls(e,vte,(t,r)=>yte(t,e.preferences,r.file,r.start,e.fixId===K6))}}),bte={">":">","}":"}"}}});function jHe(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const o=gr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,c=>c!==i));return ao(X6,o,[_.Delete_unused_param_tag_0,t.getText(e.sourceFile)],X6,_.Delete_all_unused_param_tags)}function HHe(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Le(i.parameters))return;const s=e.sourceFile,c=k1(i),f=new Set;for(const E of c)_m(E)&&je(E.name)&&f.add(E.name.escapedText);const d=Jt(i.parameters,E=>je(E.name)&&!f.has(E.name.escapedText)?E.name.getText(s):void 0);if(d===void 0)return;const v=N.updateJSDocParameterTag(o,o.tagName,N.createIdentifier(d),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),h=gr.ChangeTracker.with(e,E=>E.replaceJSDocComment(s,r,zt(c,C=>C===o?v:C)));return Np(Ete,h,[_.Rename_param_tag_name_0_to_1,t.getText(s),d])}function oxe(e,t){const r=oa(e,t);if(r.parent&&_m(r.parent)&&je(r.parent.name)){const i=r.parent,o=Cx(i),s=cb(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var X6,Ete,Tte,WHe=S({"src/services/codefixes/fixUnmatchedParameter.ts"(){Qr(),To(),X6="deleteUnmatchedParameter",Ete="renameUnmatchedParameter",Tte=[_.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],mo({fixIds:[X6,Ete],errorCodes:Tte,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=[],s=oxe(r,i.start);if(s)return Bn(o,jHe(t,s)),Bn(o,HHe(t,s)),o},getAllCodeActions:function(t){const r=new Map;return v2(gr.ChangeTracker.with(t,i=>{b2(t,Tte,({file:o,start:s})=>{const c=oxe(o,s);c&&r.set(c.signature,Bn(r.get(c.signature),c.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===X6){const c=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,f=>!c.has(f))}})}))}})}});function zHe(e,t,r){const i=si(oa(e,r),je);if(!i||i.parent.kind!==180)return;const s=t.getTypeChecker().getSymbolAtLocation(i);return In((s==null?void 0:s.declarations)||rt,Fm(Zm,Nd,_u))}function qHe(e,t,r,i){if(r.kind===268){e.insertModifierBefore(t,154,r.name);return}const o=r.kind===270?r:r.parent.parent;if(o.name&&o.namedBindings)return;const s=i.getTypeChecker();K3(o,f=>{if(gf(f.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,154,o)}function JHe(e,t,r,i){_D.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var TG,sxe,KHe=S({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){Qr(),To(),TG="fixUnreferenceableDecoratorMetadata",sxe=[_.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],mo({errorCodes:sxe,getCodeActions:e=>{const t=zHe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=gr.ChangeTracker.with(e,s=>t.kind===273&&JHe(s,e.sourceFile,t,e.program)),i=gr.ChangeTracker.with(e,s=>qHe(s,e.sourceFile,t,e.program));let o;return r.length&&(o=Bn(o,Np(TG,r,_.Convert_named_imports_to_namespace_import))),i.length&&(o=Bn(o,Np(TG,i,_.Convert_to_type_only_import))),o},fixIds:[TG]})}});function lxe(e,t,r){e.replaceNode(t,r.parent,N.createKeywordTypeNode(157))}function Zw(e,t){return ao(eD,e,t,AG,_.Delete_all_unused_declarations)}function cxe(e,t,r){e.delete(t,D.checkDefined(so(r.parent,Xz).typeParameters,"The type parameter to delete should exist"))}function Ste(e){return e.kind===100||e.kind===79&&(e.parent.kind===273||e.parent.kind===270)}function uxe(e){return e.kind===100?si(e.parent,Yc):void 0}function dxe(e,t){return Ju(t.parent)&&ds(t.parent.getChildren(e))===t}function fxe(e,t,r){e.delete(t,r.parent.kind===240?r.parent:r)}function XHe(e,t,r){Je(r.elements,i=>e.delete(t,i))}function _xe(e,t,r,i){t!==_.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===138&&(i=so(i.parent,FC).typeParameter.name),je(i)&&YHe(i)&&(e.replaceNode(r,i,N.createIdentifier(`_${i.text}`)),Fa(i.parent)&&qI(i.parent).forEach(o=>{je(o.name)&&e.replaceNode(r,o.name,N.createIdentifier(`_${o.name.text}`))})))}function YHe(e){switch(e.parent.kind){case 166:case 165:return!0;case 257:switch(e.parent.parent.parent.kind){case 247:case 246:return!0}}return!1}function SG(e,t,r,i,o,s,c,f){$He(t,r,e,i,o,s,c,f),je(t)&&_l.Core.eachSymbolReferenceInFile(t,i,e,d=>{Fr(d.parent)&&d.parent.name===d&&(d=d.parent),!f&&tWe(d)&&r.delete(e,d.parent.parent)})}function $He(e,t,r,i,o,s,c,f){const{parent:d}=e;if(Fa(d))QHe(t,r,d,i,o,s,c,f);else if(!(f&&je(e)&&_l.Core.isSymbolReferencedInFile(e,i,r))){const v=Zm(d)?e:Cs(d)?d.parent:d;D.assert(v!==r,"should not delete whole source file"),t.delete(r,v)}}function QHe(e,t,r,i,o,s,c,f=!1){if(ZHe(i,t,r,o,s,c,f))if(r.modifiers&&r.modifiers.length>0&&(!je(r.name)||_l.Core.isSymbolReferencedInFile(r.name,i,t)))for(const d of r.modifiers)_o(d)&&e.deleteModifier(t,d);else!r.initializer&&pxe(r,i,o)&&e.delete(t,r)}function pxe(e,t,r){const i=e.parent.parameters.indexOf(e);return!_l.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function ZHe(e,t,r,i,o,s,c){const{parent:f}=r;switch(f.kind){case 171:case 173:const d=f.parameters.indexOf(r),v=uc(f)?f.name:f,h=_l.Core.getReferencedSymbolsForNode(f.pos,v,o,i,s);if(h){for(const E of h)for(const C of E.references)if(C.kind===_l.EntryKind.Node){const L=Yk(C.node)&&io(C.node.parent)&&C.node.parent.arguments.length>d,I=Fr(C.node.parent)&&Yk(C.node.parent.expression)&&io(C.node.parent.parent)&&C.node.parent.parent.arguments.length>d,O=(uc(C.node.parent)||Ph(C.node.parent))&&C.node.parent!==r.parent&&C.node.parent.parameters.length>d;if(L||I||O)return!1}}return!0;case 259:return f.name&&eWe(e,t,f.name)?mxe(f,r,c):!0;case 215:case 216:return mxe(f,r,c);case 175:return!1;case 174:return!0;default:return D.failBadSyntaxKind(f)}}function eWe(e,t,r){return!!_l.Core.eachSymbolReferenceInFile(r,e,t,i=>je(i)&&io(i.parent)&&i.parent.arguments.indexOf(i)>=0)}function mxe(e,t,r){const i=e.parameters,o=i.indexOf(t);return D.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>je(s.name)&&!s.symbol.isReferenced):o===i.length-1}function tWe(e){return(br(e.parent)&&e.parent.left===e||(_K(e.parent)||Xv(e.parent))&&e.parent.operand===e)&&fu(e.parent.parent)}var eD,xG,AG,Y6,CG,xte,nWe=S({"src/services/codefixes/fixUnusedIdentifier.ts"(){Qr(),To(),eD="unusedIdentifier",xG="unusedIdentifier_prefix",AG="unusedIdentifier_delete",Y6="unusedIdentifier_deleteImports",CG="unusedIdentifier_infer",xte=[_._0_is_declared_but_its_value_is_never_read.code,_._0_is_declared_but_never_used.code,_.Property_0_is_declared_but_its_value_is_never_read.code,_.All_imports_in_import_declaration_are_unused.code,_.All_destructured_elements_are_unused.code,_.All_variables_are_unused.code,_.All_type_parameters_are_unused.code],mo({errorCodes:xte,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),c=i.getSourceFiles(),f=oa(r,e.span.start);if(kp(f))return[Zw(gr.ChangeTracker.with(e,E=>E.delete(r,f)),_.Remove_template_tag)];if(f.kind===29){const E=gr.ChangeTracker.with(e,C=>cxe(C,r,f));return[Zw(E,_.Remove_type_parameters)]}const d=uxe(f);if(d){const E=gr.ChangeTracker.with(e,C=>C.delete(r,d));return[ao(eD,E,[_.Remove_import_from_0,B_e(d)],Y6,_.Delete_all_unused_imports)]}else if(Ste(f)){const E=gr.ChangeTracker.with(e,C=>SG(r,f,C,s,c,i,o,!1));if(E.length)return[ao(eD,E,[_.Remove_unused_declaration_for_Colon_0,f.getText(r)],Y6,_.Delete_all_unused_imports)]}if(Qm(f.parent)||BC(f.parent)){if(Fa(f.parent.parent)){const E=f.parent.elements,C=[E.length>1?_.Remove_unused_declarations_for_Colon_0:_.Remove_unused_declaration_for_Colon_0,zt(E,L=>L.getText(r)).join(", ")];return[Zw(gr.ChangeTracker.with(e,L=>XHe(L,r,f.parent)),C)]}return[Zw(gr.ChangeTracker.with(e,E=>E.delete(r,f.parent.parent)),_.Remove_unused_destructuring_declaration)]}if(dxe(r,f))return[Zw(gr.ChangeTracker.with(e,E=>fxe(E,r,f.parent)),_.Remove_variable_statement)];const v=[];if(f.kind===138){const E=gr.ChangeTracker.with(e,L=>lxe(L,r,f)),C=so(f.parent,FC).typeParameter.name.text;v.push(ao(eD,E,[_.Replace_infer_0_with_unknown,C],CG,_.Replace_all_unused_infer_with_unknown))}else{const E=gr.ChangeTracker.with(e,C=>SG(r,f,C,s,c,i,o,!1));if(E.length){const C=Cs(f.parent)?f.parent:f;v.push(Zw(E,[_.Remove_unused_declaration_for_Colon_0,C.getText(r)]))}}const h=gr.ChangeTracker.with(e,E=>_xe(E,t,r,f));return h.length&&v.push(ao(eD,h,[_.Prefix_0_with_an_underscore,f.getText(r)],xG,_.Prefix_all_unused_declarations_with_where_possible)),v},fixIds:[xG,AG,Y6,CG],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return Ls(e,xte,(c,f)=>{const d=oa(t,f.start);switch(e.fixId){case xG:_xe(c,f.code,t,d);break;case Y6:{const v=uxe(d);v?c.delete(t,v):Ste(d)&&SG(t,d,c,o,s,r,i,!0);break}case AG:{if(d.kind===138||Ste(d))break;if(kp(d))c.delete(t,d);else if(d.kind===29)cxe(c,t,d);else if(Qm(d.parent)){if(d.parent.parent.initializer)break;(!Fa(d.parent.parent)||pxe(d.parent.parent,o,s))&&c.delete(t,d.parent.parent)}else{if(BC(d.parent.parent)&&d.parent.parent.parent.initializer)break;dxe(t,d)?fxe(c,t,d.parent):SG(t,d,c,o,s,r,i,!0)}break}case CG:d.kind===138&&lxe(c,t,d);break;default:D.fail(JSON.stringify(e.fixId))}})}})}});function hxe(e,t,r,i,o){const s=oa(t,r),c=rr(s,ka);if(c.getStart(t)!==s.getStart(t)){const d=JSON.stringify({statementKind:D.formatSyntaxKind(c.kind),tokenKind:D.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});D.fail("Token and statement should start at the same point. "+d)}const f=(uo(c.parent)?c.parent:c).parent;if(!uo(c.parent)||c===ds(c.parent.statements))switch(f.kind){case 242:if(f.elseStatement){if(uo(c.parent))break;e.replaceNode(t,c,N.createBlock(rt));return}case 244:case 245:e.delete(t,f);return}if(uo(c.parent)){const d=r+i,v=D.checkDefined(rWe(pJ(c.parent.statements,c),h=>h.pos<d),"Some statement should be last");e.deleteNodeRange(t,c,v)}else e.delete(t,c)}function rWe(e,t){let r;for(const i of e){if(!t(i))break;r=i}return r}var LG,Ate,iWe=S({"src/services/codefixes/fixUnreachableCode.ts"(){Qr(),To(),LG="fixUnreachableCode",Ate=[_.Unreachable_code_detected.code],mo({errorCodes:Ate,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const r=gr.ChangeTracker.with(e,i=>hxe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[ao(LG,r,_.Remove_unreachable_code,LG,_.Remove_all_unreachable_code)]},fixIds:[LG],getAllCodeActions:e=>Ls(e,Ate,(t,r)=>hxe(t,r.file,r.start,r.length,r.code))})}});function gxe(e,t,r){const i=oa(t,r),o=so(i.parent,Y1),s=i.getStart(t),c=o.statement.getStart(t),f=A_(s,c,t)?c:Xo(t.text,Es(o,58,t).end,!0);e.deleteRange(t,{pos:s,end:f})}var IG,Cte,aWe=S({"src/services/codefixes/fixUnusedLabel.ts"(){Qr(),To(),IG="fixUnusedLabel",Cte=[_.Unused_label.code],mo({errorCodes:Cte,getCodeActions(e){const t=gr.ChangeTracker.with(e,r=>gxe(r,e.sourceFile,e.span.start));return[ao(IG,t,_.Remove_unused_label,IG,_.Remove_all_unused_labels)]},fixIds:[IG],getAllCodeActions:e=>Ls(e,Cte,(t,r)=>gxe(t,r.file,r.start))})}});function yxe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function vxe(e,t,r){const i=rr(oa(e,t),oWe),o=i&&i.type;return o&&{typeNode:o,type:sWe(r,o)}}function oWe(e){switch(e.kind){case 231:case 176:case 177:case 259:case 174:case 178:case 197:case 171:case 170:case 166:case 169:case 168:case 175:case 262:case 213:case 257:return!0;default:return!1}}function sWe(e,t){if(HC(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Bn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Lte,kG,Ite,lWe=S({"src/services/codefixes/fixJSDocTypes.ts"(){Qr(),To(),Lte="fixJSDocTypes_plain",kG="fixJSDocTypes_nullable",Ite=[_.JSDoc_types_can_only_be_used_inside_documentation_comments.code,_._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,_._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],mo({errorCodes:Ite,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=vxe(t,e.span.start,r);if(!i)return;const{typeNode:o,type:s}=i,c=o.getText(t),f=[d(s,Lte,_.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===317&&f.push(d(s,kG,_.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),f;function d(v,h,E){const C=gr.ChangeTracker.with(e,L=>yxe(L,t,o,v,r));return ao("jdocTypes",C,[_.Change_0_to_1,c,r.typeToString(v)],h,E)}},fixIds:[Lte,kG],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return Ls(e,Ite,(s,c)=>{const f=vxe(c.file,c.start,o);if(!f)return;const{typeNode:d,type:v}=f,h=d.kind===317&&t===kG?o.getNullableType(v,32768):v;yxe(s,i,d,h,o)})}})}});function bxe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function Exe(e,t){const r=oa(e,t);if(Fr(r.parent)){let i=r.parent;for(;Fr(i.parent);)i=i.parent;return i.name}if(je(r))return r}var wG,kte,cWe=S({"src/services/codefixes/fixMissingCallParentheses.ts"(){Qr(),To(),wG="fixMissingCallParentheses",kte=[_.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],mo({errorCodes:kte,fixIds:[wG],getCodeActions(e){const{sourceFile:t,span:r}=e,i=Exe(t,r.start);if(!i)return;const o=gr.ChangeTracker.with(e,s=>bxe(s,e.sourceFile,i));return[ao(wG,o,_.Add_missing_call_parentheses,wG,_.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ls(e,kte,(t,r)=>{const i=Exe(r.file,r.start);i&&bxe(t,r.file,i)})})}});function uWe(e){if(e.type)return e.type;if(Xi(e.parent)&&e.parent.type&&Mh(e.parent.type))return e.parent.type.type}function Txe(e,t){const r=oa(e,t),i=Mf(r);if(!i)return;let o;switch(i.kind){case 171:o=i.name;break;case 259:case 215:o=Es(i,98,e);break;case 216:const s=i.typeParameters?29:20;o=Es(i,s,e)||ds(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:uWe(i)}}function Sxe(e,t,{insertBefore:r,returnType:i}){if(i){const o=DN(i);(!o||o.kind!==79||o.text!=="Promise")&&e.replaceNode(t,i,N.createTypeReferenceNode("Promise",N.createNodeArray([i])))}e.insertModifierBefore(t,132,r)}var DG,wte,dWe=S({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){Qr(),To(),DG="fixAwaitInSyncFunction",wte=[_.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],mo({errorCodes:wte,getCodeActions(e){const{sourceFile:t,span:r}=e,i=Txe(t,r.start);if(!i)return;const o=gr.ChangeTracker.with(e,s=>Sxe(s,t,i));return[ao(DG,o,_.Add_async_modifier_to_containing_function,DG,_.Add_all_missing_async_modifiers)]},fixIds:[DG],getAllCodeActions:function(t){const r=new Map;return Ls(t,wte,(i,o)=>{const s=Txe(o.file,o.start);!s||!Lp(r,hs(s.insertBefore))||Sxe(i,t.sourceFile,s)})}})}});function xxe(e,t,r,i,o){let s,c;if(i===_._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,c=t+r;else if(i===_._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const f=o.program.getTypeChecker(),d=oa(e,t).parent;D.assert(ab(d),"error span of fixPropertyOverrideAccessor should only be on an accessor");const v=d.parent;D.assert(_i(v),"erroneous accessors should only be inside classes");const h=Om(Kte(v,f));if(!h)return[];const E=ra(QA(d.name)),C=f.getPropertyOfType(f.getTypeAtLocation(h),E);if(!C||!C.valueDeclaration)return[];s=C.valueDeclaration.pos,c=C.valueDeclaration.end,e=er(C.valueDeclaration)}else D.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return Gxe(e,o.program,s,c,o,_.Generate_get_and_set_accessors.message)}var Dte,RG,fWe=S({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){Qr(),To(),Dte=[_._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,_._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],RG="fixPropertyOverrideAccessor",mo({errorCodes:Dte,getCodeActions(e){const t=xxe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[ao(RG,t,_.Generate_get_and_set_accessors,RG,_.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[RG],getAllCodeActions:e=>Ls(e,Dte,(t,r)=>{const i=xxe(r.file,r.start,r.length,r.code,e);if(i)for(const o of i)t.pushRaw(e.sourceFile,o)})})}});function _We(e,t){switch(e){case _.Parameter_0_implicitly_has_an_1_type.code:case _.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return c_(Mf(t))?_.Infer_type_of_0_from_usage:_.Infer_parameter_types_from_usage;case _.Rest_parameter_0_implicitly_has_an_any_type.code:case _.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Infer_parameter_types_from_usage;case _.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return _.Infer_this_type_of_0_from_usage;default:return _.Infer_type_of_0_from_usage}}function pWe(e){switch(e){case _.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return _.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case _.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Variable_0_implicitly_has_an_1_type.code;case _.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Parameter_0_implicitly_has_an_1_type.code;case _.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Rest_parameter_0_implicitly_has_an_any_type.code;case _.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return _.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case _._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return _._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case _.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return _.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case _.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Member_0_implicitly_has_an_1_type.code}return e}function Axe(e,t,r,i,o,s,c,f,d){if(!QI(r.kind)&&r.kind!==79&&r.kind!==25&&r.kind!==108)return;const{parent:v}=r,h=_S(t,o,d,f);switch(i=pWe(i),i){case _.Member_0_implicitly_has_an_1_type.code:case _.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Xi(v)&&c(v)||ro(v)||Bf(v))return Cxe(e,h,t,v,o,f,s),h.writeFixes(e),v;if(Fr(v)){const L=tD(v.name,o,s),I=Hw(L,v,o,f);if(I){const O=N.createJSDocTypeTag(void 0,N.createJSDocTypeExpression(I),void 0);e.addJSDocTags(t,so(v.parent.parent,fu),[O])}return h.writeFixes(e),v}return;case _.Variable_0_implicitly_has_an_1_type.code:{const L=o.getTypeChecker().getSymbolAtLocation(r);return L&&L.valueDeclaration&&Xi(L.valueDeclaration)&&c(L.valueDeclaration)?(Cxe(e,h,er(L.valueDeclaration),L.valueDeclaration,o,f,s),h.writeFixes(e),L.valueDeclaration):void 0}}const E=Mf(r);if(E===void 0)return;let C;switch(i){case _.Parameter_0_implicitly_has_an_1_type.code:if(c_(E)){Lxe(e,h,t,E,o,f,s),C=E;break}case _.Rest_parameter_0_implicitly_has_an_any_type.code:if(c(E)){const L=so(v,Fa);mWe(e,h,t,L,E,o,f,s),C=L}break;case _.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case _._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Z_(E)&&je(E.name)&&(NG(e,h,t,E,tD(E.name,o,s),o,f),C=E);break;case _.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:c_(E)&&(Lxe(e,h,t,E,o,f,s),C=E);break;case _.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:gr.isThisTypeAnnotatable(E)&&c(E)&&(hWe(e,t,E,o,f,s),C=E);break;default:return D.fail(String(i))}return h.writeFixes(e),C}function Cxe(e,t,r,i,o,s,c){je(i.name)&&NG(e,t,r,i,tD(i.name,o,c),o,s)}function mWe(e,t,r,i,o,s,c,f){if(!je(i.name))return;const d=vWe(o,r,s,f);if(D.assert(o.parameters.length===d.length,"Parameter count and inference count should match"),fr(o))Ixe(e,r,d,s,c);else{const v=Xs(o)&&!Es(o,20,r);v&&e.insertNodeBefore(r,ds(o.parameters),N.createToken(20));for(const{declaration:h,type:E}of d)h&&!h.type&&!h.initializer&&NG(e,t,r,h,E,s,c);v&&e.insertNodeAfter(r,Jo(o.parameters),N.createToken(21))}}function hWe(e,t,r,i,o,s){const c=kxe(r,t,i,s);if(!c||!c.length)return;const f=Nte(i,c,s).thisParameter(),d=Hw(f,r,i,o);d&&(fr(r)?gWe(e,t,r,d):e.tryInsertThisTypeAnnotation(t,r,d))}function gWe(e,t,r,i){e.addJSDocTags(t,r,[N.createJSDocThisTag(void 0,N.createJSDocTypeExpression(i))])}function Lxe(e,t,r,i,o,s,c){const f=tu(i.parameters);if(f&&je(i.name)&&je(f.name)){let d=tD(i.name,o,c);d===o.getTypeChecker().getAnyType()&&(d=tD(f.name,o,c)),fr(i)?Ixe(e,r,[{declaration:f,type:d}],o,s):NG(e,t,r,f,d,o,s)}}function NG(e,t,r,i,o,s,c){const f=Hw(o,i,s,c);if(f)if(fr(r)&&i.kind!==168){const d=Xi(i)?si(i.parent.parent,gc):i;if(!d)return;const v=N.createJSDocTypeExpression(f),h=Z_(i)?N.createJSDocReturnTag(void 0,v,void 0):N.createJSDocTypeTag(void 0,v,void 0);e.addJSDocTags(r,d,[h])}else yWe(f,i,r,e,t,ts(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,f)}function yWe(e,t,r,i,o,s){const c=mS(e,s);return c&&i.tryInsertTypeAnnotation(r,t,c.typeNode)?(Je(c.symbols,f=>o.addImportFromExportedSymbol(f,!0)),!0):!1}function Ixe(e,t,r,i,o){const s=r.length&&r[0].declaration.parent;if(!s)return;const c=pa(r,f=>{const d=f.declaration;if(d.initializer||Pv(d)||!je(d.name))return;const v=f.type&&Hw(f.type,d,i,o);if(v){const h=N.cloneNode(d.name);return sr(h,7168),{name:N.cloneNode(d.name),param:d,isOptional:!!f.isOptional,typeNode:v}}});if(c.length)if(Xs(s)||Us(s)){const f=Xs(s)&&!Es(s,20,t);f&&e.insertNodeBefore(t,ds(s.parameters),N.createToken(20)),Je(c,({typeNode:d,param:v})=>{const h=N.createJSDocTypeTag(void 0,N.createJSDocTypeExpression(d)),E=N.createJSDocComment(void 0,[h]);e.insertNodeAt(t,v.getStart(t),E,{suffix:" "})}),f&&e.insertNodeAfter(t,Jo(s.parameters),N.createToken(21))}else{const f=zt(c,({name:d,typeNode:v,isOptional:h})=>N.createJSDocParameterTag(void 0,d,!!h,N.createJSDocTypeExpression(v),!1,void 0));e.addJSDocTags(t,s,f)}}function Rte(e,t,r){return pa(_l.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==_l.EntryKind.Span?si(i.node,je):void 0)}function tD(e,t,r){const i=Rte(e,t,r);return Nte(t,i,r).single()}function vWe(e,t,r,i){const o=kxe(e,t,r,i);return o&&Nte(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:je(s.name)?tD(s.name,r,i):r.getTypeChecker().getAnyType()}))}function kxe(e,t,r,i){let o;switch(e.kind){case 173:o=Es(e,135,t);break;case 216:case 215:const s=e.parent;o=(Xi(s)||ro(s))&&je(s.name)?s.name:e.name;break;case 259:case 171:case 170:o=e.name;break}if(o)return Rte(o,r,i)}function Nte(e,t,r){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Oe=>i.createArrayType(Oe),Promise:Oe=>i.createPromiseType(Oe)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:d,parameters:v,thisParameter:h};function c(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function f(Oe){const Me=new Map;for(const We of Oe)We.properties&&We.properties.forEach((Fe,st)=>{Me.has(st)||Me.set(st,[]),Me.get(st).push(Fe)});const Ye=new Map;return Me.forEach((We,Fe)=>{Ye.set(Fe,f(We))}),{isNumber:Oe.some(We=>We.isNumber),isString:Oe.some(We=>We.isString),isNumberOrString:Oe.some(We=>We.isNumberOrString),candidateTypes:Ga(Oe,We=>We.candidateTypes),properties:Ye,calls:Ga(Oe,We=>We.calls),constructs:Ga(Oe,We=>We.constructs),numberIndex:Je(Oe,We=>We.numberIndex),stringIndex:Je(Oe,We=>We.stringIndex),candidateThisTypes:Ga(Oe,We=>We.candidateThisTypes),inferredTypes:void 0}}function d(){return re(E(t))}function v(Oe){if(t.length===0||!Oe.parameters)return;const Me=c();for(const We of t)r.throwIfCancellationRequested(),C(We,Me);const Ye=[...Me.constructs||[],...Me.calls||[]];return Oe.parameters.map((We,Fe)=>{const st=[],Ct=Lh(We);let Et=!1;for(const tt of Ye)if(tt.argumentTypes.length<=Fe)Et=fr(Oe),st.push(i.getUndefinedType());else if(Ct)for(let at=Fe;at<tt.argumentTypes.length;at++)st.push(i.getBaseTypeOfLiteralType(tt.argumentTypes[at]));else st.push(i.getBaseTypeOfLiteralType(tt.argumentTypes[Fe]));if(je(We.name)){const tt=E(Rte(We.name,e,r));st.push(...Ct?pa(tt,i.getElementTypeOfArrayType):tt)}const Vt=re(st);return{type:Ct?i.createArrayType(Vt):Vt,isOptional:Et&&!Ct,declaration:We}})}function h(){const Oe=c();for(const Me of t)r.throwIfCancellationRequested(),C(Me,Oe);return re(Oe.candidateThisTypes||rt)}function E(Oe){const Me=c();for(const Ye of Oe)r.throwIfCancellationRequested(),C(Ye,Me);return ae(Me)}function C(Oe,Me){for(;Ak(Oe);)Oe=Oe.parent;switch(Oe.parent.kind){case 241:I(Oe,Me);break;case 222:Me.isNumber=!0;break;case 221:O(Oe.parent,Me);break;case 223:k(Oe,Oe.parent,Me);break;case 292:case 293:G(Oe.parent,Me);break;case 210:case 211:Oe.parent.expression===Oe?V(Oe.parent,Me):L(Oe,Me);break;case 208:H(Oe.parent,Me);break;case 209:ne(Oe.parent,Oe,Me);break;case 299:case 300:Y(Oe.parent,Me);break;case 169:$(Oe.parent,Me);break;case 257:{const{name:Ye,initializer:We}=Oe.parent;if(Oe===Ye){We&&Ge(Me,i.getTypeAtLocation(We));break}}default:return L(Oe,Me)}}function L(Oe,Me){Sg(Oe)&&Ge(Me,i.getContextualType(Oe))}function I(Oe,Me){Ge(Me,io(Oe)?i.getVoidType():i.getAnyType())}function O(Oe,Me){switch(Oe.operator){case 45:case 46:case 40:case 54:Me.isNumber=!0;break;case 39:Me.isNumberOrString=!0;break}}function k(Oe,Me,Ye){switch(Me.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:const We=i.getTypeAtLocation(Me.left===Oe?Me.right:Me.left);We.flags&1056?Ge(Ye,We):Ye.isNumber=!0;break;case 64:case 39:const Fe=i.getTypeAtLocation(Me.left===Oe?Me.right:Me.left);Fe.flags&1056?Ge(Ye,Fe):Fe.flags&296?Ye.isNumber=!0:Fe.flags&402653316?Ye.isString=!0:Fe.flags&1||(Ye.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:Ge(Ye,i.getTypeAtLocation(Me.left===Oe?Me.right:Me.left));break;case 101:Oe===Me.left&&(Ye.isString=!0);break;case 56:case 60:Oe===Me.left&&(Oe.parent.parent.kind===257||ld(Oe.parent.parent,!0))&&Ge(Ye,i.getTypeAtLocation(Me.right));break}}function G(Oe,Me){Ge(Me,i.getTypeAtLocation(Oe.parent.parent.expression))}function V(Oe,Me){const Ye={argumentTypes:[],return_:c()};if(Oe.arguments)for(const We of Oe.arguments)Ye.argumentTypes.push(i.getTypeAtLocation(We));C(Oe,Ye.return_),Oe.kind===210?(Me.calls||(Me.calls=[])).push(Ye):(Me.constructs||(Me.constructs=[])).push(Ye)}function H(Oe,Me){const Ye=ul(Oe.name.text);Me.properties||(Me.properties=new Map);const We=Me.properties.get(Ye)||c();C(Oe,We),Me.properties.set(Ye,We)}function ne(Oe,Me,Ye){if(Me===Oe.argumentExpression){Ye.isNumberOrString=!0;return}else{const We=i.getTypeAtLocation(Oe.argumentExpression),Fe=c();C(Oe,Fe),We.flags&296?Ye.numberIndex=Fe:Ye.stringIndex=Fe}}function Y(Oe,Me){const Ye=Xi(Oe.parent.parent)?Oe.parent.parent:Oe.parent;ze(Me,i.getTypeAtLocation(Ye))}function $(Oe,Me){ze(Me,i.getTypeAtLocation(Oe.parent))}function M(Oe,Me){const Ye=[];for(const We of Oe)for(const{high:Fe,low:st}of Me)Fe(We)&&(D.assert(!st(We),"Priority can't have both low and high"),Ye.push(st));return Oe.filter(We=>Ye.every(Fe=>!Fe(We)))}function de(Oe){return re(ae(Oe))}function re(Oe){if(!Oe.length)return i.getAnyType();const Me=i.getUnionType([i.getStringType(),i.getNumberType()]);let We=M(Oe,[{high:st=>st===i.getStringType()||st===i.getNumberType(),low:st=>st===Me},{high:st=>!(st.flags&16385),low:st=>!!(st.flags&16385)},{high:st=>!(st.flags&114689)&&!(ri(st)&16),low:st=>!!(ri(st)&16)}]);const Fe=We.filter(st=>ri(st)&16);return Fe.length&&(We=We.filter(st=>!(ri(st)&16)),We.push(be(Fe))),i.getWidenedType(i.getUnionType(We.map(i.getBaseTypeOfLiteralType),2))}function be(Oe){if(Oe.length===1)return Oe[0];const Me=[],Ye=[],We=[],Fe=[];let st=!1,Ct=!1;const Et=b_();for(const at of Oe){for(const Pn of i.getPropertiesOfType(at))Et.add(Pn.name,Pn.valueDeclaration?i.getTypeOfSymbolAtLocation(Pn,Pn.valueDeclaration):i.getAnyType());Me.push(...i.getSignaturesOfType(at,0)),Ye.push(...i.getSignaturesOfType(at,1));const on=i.getIndexInfoOfType(at,0);on&&(We.push(on.type),st=st||on.isReadonly);const Qt=i.getIndexInfoOfType(at,1);Qt&&(Fe.push(Qt.type),Ct=Ct||Qt.isReadonly)}const Vt=Gce(Et,(at,on)=>{const Qt=on.length<Oe.length?16777216:0,Pn=i.createSymbol(4|Qt,at);return Pn.links.type=i.getUnionType(on),[at,Pn]}),tt=[];return We.length&&tt.push(i.createIndexInfo(i.getStringType(),i.getUnionType(We),st)),Fe.length&&tt.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(Fe),Ct)),i.createAnonymousType(Oe[0].symbol,Vt,Me,Ye,tt)}function ae(Oe){var Me,Ye,We;const Fe=[];Oe.isNumber&&Fe.push(i.getNumberType()),Oe.isString&&Fe.push(i.getStringType()),Oe.isNumberOrString&&Fe.push(i.getUnionType([i.getStringType(),i.getNumberType()])),Oe.numberIndex&&Fe.push(i.createArrayType(de(Oe.numberIndex))),((Me=Oe.properties)!=null&&Me.size||(Ye=Oe.constructs)!=null&&Ye.length||Oe.stringIndex)&&Fe.push(W(Oe));const st=(Oe.candidateTypes||[]).map(Et=>i.getBaseTypeOfLiteralType(Et)),Ct=(We=Oe.calls)!=null&&We.length?W(Oe):void 0;return Ct&&st?Fe.push(i.getUnionType([Ct,...st],2)):(Ct&&Fe.push(Ct),Le(st)&&Fe.push(...st)),Fe.push(...ce(Oe)),Fe}function W(Oe){const Me=new Map;Oe.properties&&Oe.properties.forEach((st,Ct)=>{const Et=i.createSymbol(4,Ct);Et.links.type=de(st),Me.set(Ct,Et)});const Ye=Oe.calls?[Ve(Oe.calls)]:[],We=Oe.constructs?[Ve(Oe.constructs)]:[],Fe=Oe.stringIndex?[i.createIndexInfo(i.getStringType(),de(Oe.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Me,Ye,We,Fe)}function ce(Oe){if(!Oe.properties||!Oe.properties.size)return[];const Me=s.filter(Ye=>me(Ye,Oe));return 0<Me.length&&Me.length<3?Me.map(Ye=>Ee(Ye,Oe)):[]}function me(Oe,Me){return Me.properties?!pf(Me.properties,(Ye,We)=>{const Fe=i.getTypeOfPropertyOfType(Oe,We);return Fe?Ye.calls?!i.getSignaturesOfType(Fe,0).length||!i.isTypeAssignableTo(Fe,Qe(Ye.calls)):!i.isTypeAssignableTo(Fe,de(Ye)):!0}):!1}function Ee(Oe,Me){if(!(ri(Oe)&4)||!Me.properties)return Oe;const Ye=Oe.target,We=Om(Ye.typeParameters);if(!We)return Oe;const Fe=[];return Me.properties.forEach((st,Ct)=>{const Et=i.getTypeOfPropertyOfType(Ye,Ct);D.assert(!!Et,"generic should have all the properties of its reference."),Fe.push(...xe(Et,de(st),We))}),o[Oe.symbol.escapedName](re(Fe))}function xe(Oe,Me,Ye){if(Oe===Ye)return[Me];if(Oe.flags&3145728)return Ga(Oe.types,st=>xe(st,Me,Ye));if(ri(Oe)&4&&ri(Me)&4){const st=i.getTypeArguments(Oe),Ct=i.getTypeArguments(Me),Et=[];if(st&&Ct)for(let Vt=0;Vt<st.length;Vt++)Ct[Vt]&&Et.push(...xe(st[Vt],Ct[Vt],Ye));return Et}const We=i.getSignaturesOfType(Oe,0),Fe=i.getSignaturesOfType(Me,0);return We.length===1&&Fe.length===1?te(We[0],Fe[0],Ye):[]}function te(Oe,Me,Ye){var We;const Fe=[];for(let Et=0;Et<Oe.parameters.length;Et++){const Vt=Oe.parameters[Et],tt=Me.parameters[Et],at=Oe.declaration&&Lh(Oe.declaration.parameters[Et]);if(!tt)break;let on=Vt.valueDeclaration?i.getTypeOfSymbolAtLocation(Vt,Vt.valueDeclaration):i.getAnyType();const Qt=at&&i.getElementTypeOfArrayType(on);Qt&&(on=Qt);const Pn=((We=si(tt,Hm))==null?void 0:We.links.type)||(tt.valueDeclaration?i.getTypeOfSymbolAtLocation(tt,tt.valueDeclaration):i.getAnyType());Fe.push(...xe(on,Pn,Ye))}const st=i.getReturnTypeOfSignature(Oe),Ct=i.getReturnTypeOfSignature(Me);return Fe.push(...xe(st,Ct,Ye)),Fe}function Qe(Oe){return i.createAnonymousType(void 0,co(),[Ve(Oe)],rt,rt)}function Ve(Oe){const Me=[],Ye=Math.max(...Oe.map(Fe=>Fe.argumentTypes.length));for(let Fe=0;Fe<Ye;Fe++){const st=i.createSymbol(1,ul(`arg${Fe}`));st.links.type=re(Oe.map(Ct=>Ct.argumentTypes[Fe]||i.getUndefinedType())),Oe.some(Ct=>Ct.argumentTypes[Fe]===void 0)&&(st.flags|=16777216),Me.push(st)}const We=de(f(Oe.map(Fe=>Fe.return_)));return i.createSignature(void 0,void 0,void 0,Me,We,void 0,Ye,0)}function Ge(Oe,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(Oe.candidateTypes||(Oe.candidateTypes=[])).push(Me)}function ze(Oe,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(Oe.candidateThisTypes||(Oe.candidateThisTypes=[])).push(Me)}}var OG,Ote,bWe=S({"src/services/codefixes/inferFromUsage.ts"(){Qr(),To(),OG="inferFromUsage",Ote=[_.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,_.Variable_0_implicitly_has_an_1_type.code,_.Parameter_0_implicitly_has_an_1_type.code,_.Rest_parameter_0_implicitly_has_an_any_type.code,_.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,_._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,_.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,_.Member_0_implicitly_has_an_1_type.code,_.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,_.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,_.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,_._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,_.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,_.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],mo({errorCodes:Ote,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:c,preferences:f}=e,d=oa(t,i);let v;const h=gr.ChangeTracker.with(e,C=>{v=Axe(C,t,d,o,r,s,b1,c,f)}),E=v&&Ia(v);return!E||h.length===0?void 0:[ao(OG,h,[_We(o,d),kc(E)],OG,_.Infer_all_types_from_usage)]},fixIds:[OG],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,c=dL();return Ls(e,Ote,(f,d)=>{Axe(f,t,oa(d.file,d.start),d.code,r,i,c,o,s)})}})}});function wxe(e,t,r){if(fr(e))return;const i=oa(e,r),o=rr(i,el),s=o==null?void 0:o.type;if(!s)return;const c=t.getTypeFromTypeNode(s),f=t.getAwaitedType(c)||t.getVoidType(),d=t.typeToTypeNode(f,s,void 0);if(d)return{returnTypeNode:s,returnType:c,promisedTypeNode:d,promisedType:f}}function Dxe(e,t,r,i){e.replaceNode(t,r,N.createTypeReferenceNode("Promise",[i]))}var PG,Pte,EWe=S({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){Qr(),To(),PG="fixReturnTypeInAsyncFunction",Pte=[_.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],mo({errorCodes:Pte,fixIds:[PG],getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),c=wxe(r,i.getTypeChecker(),o.start);if(!c)return;const{returnTypeNode:f,returnType:d,promisedTypeNode:v,promisedType:h}=c,E=gr.ChangeTracker.with(t,C=>Dxe(C,r,f,v));return[ao(PG,E,[_.Replace_0_with_Promise_1,s.typeToString(d),s.typeToString(h)],PG,_.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ls(e,Pte,(t,r)=>{const i=wxe(r.file,e.program.getTypeChecker(),r.start);i&&Dxe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function Rxe(e,t,r,i){const{line:o}=cl(t,r);(!i||g1(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Mte,Fte,Bte,TWe=S({"src/services/codefixes/disableJsDiagnostics.ts"(){Qr(),To(),Mte="disableJsDiagnostics",Fte="disableJsDiagnostics",Bte=pa(Object.keys(_),e=>{const t=_[e];return t.category===1?t.code:void 0}),mo({errorCodes:Bte,getCodeActions:function(t){const{sourceFile:r,program:i,span:o,host:s,formatContext:c}=t;if(!fr(r)||!IO(r,i.getCompilerOptions()))return;const f=r.checkJsDirective?"":Tb(s,c.options),d=[Np(Mte,[jEe(r.fileName,[S6(r.checkJsDirective?Tc(r.checkJsDirective.pos,r.checkJsDirective.end):Pc(0,0),`// @ts-nocheck${f}`)])],_.Disable_checking_for_this_file)];return gr.isValidLocationToAddComment(r,o.start)&&d.unshift(ao(Mte,gr.ChangeTracker.with(t,v=>Rxe(v,r,o.start)),_.Ignore_this_error_message,Fte,_.Add_ts_ignore_to_all_error_messages)),d},fixIds:[Fte],getAllCodeActions:e=>{const t=new Set;return Ls(e,Bte,(r,i)=>{gr.isValidLocationToAddComment(i.file,i.start)&&Rxe(r,i.file,i.start,t)})}})}});function Gte(e,t,r,i,o,s,c){const f=e.symbol.members;for(const d of t)f.has(d.escapedName)||Nxe(d,e,r,i,o,s,c,void 0)}function T2(e){return{trackSymbol:()=>!1,moduleResolverHost:GQ(e.program,e.host)}}function Nxe(e,t,r,i,o,s,c,f,d=3,v=!1){var h;const E=e.getDeclarations(),C=E==null?void 0:E[0],L=i.program.getTypeChecker(),I=ts(i.program.getCompilerOptions()),O=(h=C==null?void 0:C.kind)!=null?h:168,k=Ol(Ia(C),!1),G=C?Hu(C):0;let V=G&4?4:G&16?16:0;C&&_f(C)&&(V|=128);const H=re(),ne=L.getWidenedType(L.getTypeOfSymbolAtLocation(e,t)),Y=!!(e.flags&16777216),$=!!(t.flags&16777216)||v,M=Rp(r,o);switch(O){case 168:case 169:const me=M===0?268435456:void 0;let Ee=L.typeToTypeNode(ne,t,me,T2(i));if(s){const te=mS(Ee,I);te&&(Ee=te.typeNode,S2(s,te.symbols))}c(N.createPropertyDeclaration(H,C?ae(k):e.getName(),Y&&d&2?N.createToken(57):void 0,Ee,void 0));break;case 174:case 175:{D.assertIsDefined(E);let te=L.typeToTypeNode(ne,t,void 0,T2(i));const Qe=PT(E,C),Ve=Qe.secondAccessor?[Qe.firstAccessor,Qe.secondAccessor]:[Qe.firstAccessor];if(s){const Ge=mS(te,I);Ge&&(te=Ge.typeNode,S2(s,Ge.symbols))}for(const Ge of Ve)if(Z_(Ge))c(N.createGetAccessorDeclaration(H,ae(k),rt,ce(te),W(f,M,$)));else{D.assertNode(Ge,c_,"The counterpart to a getter should be a setter");const ze=Ek(Ge),Oe=ze&&je(ze.name)?Mr(ze.name):void 0;c(N.createSetAccessorDeclaration(H,ae(k),Vte(1,[Oe],[ce(te)],1,!1),W(f,M,$)))}break}case 170:case 171:D.assertIsDefined(E);const xe=ne.isUnion()?Ga(ne.types,te=>te.getCallSignatures()):ne.getCallSignatures();if(!kt(xe))break;if(E.length===1){D.assert(xe.length===1,"One declaration implies one signature");const te=xe[0];de(M,te,H,ae(k),W(f,M,$));break}for(const te of xe)de(M,te,H,ae(k));if(!$)if(E.length>xe.length){const te=L.getSignatureFromDeclaration(E[E.length-1]);de(M,te,H,ae(k),W(f,M))}else D.assert(E.length===xe.length,"Declarations and signatures should match count"),c(AWe(L,i,t,xe,ae(k),Y&&!!(d&1),H,M,f));break}function de(me,Ee,xe,te,Qe){const Ve=MG(171,i,me,Ee,Qe,te,xe,Y&&!!(d&1),t,s);Ve&&c(Ve)}function re(){let me;return V&&(me=OA(me,N.createModifiersFromModifierFlags(V))),be()&&(me=Bn(me,N.createToken(161))),me&&N.createNodeArray(me)}function be(){return!!(i.program.getCompilerOptions().noImplicitOverride&&C&&H1(C))}function ae(me){return je(me)&&me.escapedText==="constructor"?N.createComputedPropertyName(N.createStringLiteral(Mr(me),M===0)):Ol(me,!1)}function W(me,Ee,xe){return xe?void 0:Ol(me,!1)||jte(Ee)}function ce(me){return Ol(me,!1)}}function MG(e,t,r,i,o,s,c,f,d,v){const h=t.program,E=h.getTypeChecker(),C=ts(h.getCompilerOptions()),L=fr(d),I=524545|(r===0?268435456:0),O=E.signatureToSignatureDeclaration(i,e,d,I,T2(t));if(!O)return;let k=L?void 0:O.typeParameters,G=O.parameters,V=L?void 0:O.type;if(v){if(k){const $=no(k,M=>{let de=M.constraint,re=M.default;if(de){const be=mS(de,C);be&&(de=be.typeNode,S2(v,be.symbols))}if(re){const be=mS(re,C);be&&(re=be.typeNode,S2(v,be.symbols))}return N.updateTypeParameterDeclaration(M,M.modifiers,M.name,de,re)});k!==$&&(k=ht(N.createNodeArray($,k.hasTrailingComma),k))}const Y=no(G,$=>{let M=L?void 0:$.type;if(M){const de=mS(M,C);de&&(M=de.typeNode,S2(v,de.symbols))}return N.updateParameterDeclaration($,$.modifiers,$.dotDotDotToken,$.name,L?void 0:$.questionToken,M,$.initializer)});if(G!==Y&&(G=ht(N.createNodeArray(Y,G.hasTrailingComma),G)),V){const $=mS(V,C);$&&(V=$.typeNode,S2(v,$.symbols))}}const H=f?N.createToken(57):void 0,ne=O.asteriskToken;if(Us(O))return N.updateFunctionExpression(O,c,O.asteriskToken,si(s,je),k,G,V,o!=null?o:O.body);if(Xs(O))return N.updateArrowFunction(O,c,k,G,V,O.equalsGreaterThanToken,o!=null?o:O.body);if(uc(O))return N.updateMethodDeclaration(O,c,ne,s!=null?s:N.createIdentifier(""),H,k,G,V,o);if(xc(O))return N.updateFunctionDeclaration(O,c,O.asteriskToken,si(s,je),k,G,V,o!=null?o:O.body)}function Ute(e,t,r,i,o,s,c){const f=Rp(t.sourceFile,t.preferences),d=ts(t.program.getCompilerOptions()),v=T2(t),h=t.program.getTypeChecker(),E=fr(c),{typeArguments:C,arguments:L,parent:I}=i,O=E?void 0:h.getContextualType(i),k=zt(L,re=>je(re)?re.text:Fr(re)&&je(re.name)?re.name.text:void 0),G=E?[]:zt(L,re=>h.getTypeAtLocation(re)),{argumentTypeNodes:V,argumentTypeParameters:H}=Mxe(h,r,G,c,d,void 0,v),ne=s?N.createNodeArray(N.createModifiersFromModifierFlags(s)):void 0,Y=m5(I)?N.createToken(41):void 0,$=E?void 0:SWe(h,H,C),M=Vte(L.length,k,V,void 0,E),de=E||O===void 0?void 0:h.typeToTypeNode(O,c,void 0,v);switch(e){case 171:return N.createMethodDeclaration(ne,Y,o,void 0,$,M,de,jte(f));case 170:return N.createMethodSignature(ne,o,void 0,$,M,de===void 0?N.createKeywordTypeNode(157):de);case 259:return N.createFunctionDeclaration(ne,Y,o,$,M,de,$6(_.Function_not_implemented.message,f));default:D.fail("Unexpected kind")}}function SWe(e,t,r){const i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){const s=r.filter(f=>!t.some(d=>{var v;return e.getTypeAtLocation(f)===((v=d[1])==null?void 0:v.argumentType)})),c=i.size+s.length;for(let f=0;i.size<c;f+=1)i.add(Oxe(f))}return No(i.values(),s=>{var c;return N.createTypeParameterDeclaration(void 0,s,(c=o.get(s))==null?void 0:c.constraint)})}function Oxe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function FG(e,t,r,i,o,s,c){let f=e.typeToTypeNode(r,i,s,c);if(f&&kg(f)){const d=mS(f,o);d&&(S2(t,d.symbols),f=d.typeNode)}return Ol(f)}function Pxe(e){return e.isUnionOrIntersection()?e.types.some(Pxe):e.flags&262144}function Mxe(e,t,r,i,o,s,c){const f=[],d=new Map;for(let v=0;v<r.length;v+=1){const h=r[v];if(h.isUnionOrIntersection()&&h.types.some(Pxe)){const O=Oxe(v);f.push(N.createTypeReferenceNode(O)),d.set(O,void 0);continue}const E=e.getBaseTypeOfLiteralType(h),C=FG(e,t,E,i,o,s,c);if(!C)continue;f.push(C);const L=Fxe(h),I=h.isTypeParameter()&&h.constraint&&!xWe(h.constraint)?FG(e,t,h.constraint,i,o,s,c):void 0;L&&d.set(L,{argumentType:h,constraint:I})}return{argumentTypeNodes:f,argumentTypeParameters:No(d.entries())}}function xWe(e){return e.flags&524288&&e.objectFlags===16}function Fxe(e){var t;if(e.flags&3145728)for(const r of e.types){const i=Fxe(r);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function Vte(e,t,r,i,o){const s=[],c=new Map;for(let f=0;f<e;f++){const d=(t==null?void 0:t[f])||`arg${f}`,v=c.get(d);c.set(d,(v||0)+1);const h=N.createParameterDeclaration(void 0,void 0,d+(v||""),i!==void 0&&f>=i?N.createToken(57):void 0,o?void 0:(r==null?void 0:r[f])||N.createKeywordTypeNode(157),void 0);s.push(h)}return s}function AWe(e,t,r,i,o,s,c,f,d){let v=i[0],h=i[0].minArgumentCount,E=!1;for(const O of i)h=Math.min(O.minArgumentCount,h),Lu(O)&&(E=!0),O.parameters.length>=v.parameters.length&&(!Lu(O)||Lu(v))&&(v=O);const C=v.parameters.length-(Lu(v)?1:0),L=v.parameters.map(O=>O.name),I=Vte(C,L,void 0,h,!1);if(E){const O=N.createParameterDeclaration(void 0,N.createToken(25),L[C]||"rest",C>=h?N.createToken(57):void 0,N.createArrayTypeNode(N.createKeywordTypeNode(157)),void 0);I.push(O)}return LWe(c,o,s,void 0,I,CWe(i,e,t,r),f,d)}function CWe(e,t,r,i){if(Le(e)){const o=t.getUnionType(zt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,T2(r))}}function LWe(e,t,r,i,o,s,c,f){return N.createMethodDeclaration(e,void 0,t,r?N.createToken(57):void 0,i,o,s,f||jte(c))}function jte(e){return $6(_.Method_not_implemented.message,e)}function $6(e,t){return N.createBlock([N.createThrowStatement(N.createNewExpression(N.createIdentifier("Error"),void 0,[N.createStringLiteral(e,t===0)]))],!0)}function Hte(e,t,r){const i=lk(t);if(!i)return;const o=zte(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,BG("compilerOptions",N.createObjectLiteralExpression(r.map(([c,f])=>BG(c,f)),!0)));return}const s=o.initializer;if(Is(s))for(const[c,f]of r){const d=zte(s,c);d===void 0?e.insertNodeAtObjectStart(t,s,BG(c,f)):e.replaceNode(t,d.initializer,f)}}function Wte(e,t,r,i){Hte(e,t,[[r,i]])}function BG(e,t){return N.createPropertyAssignment(N.createStringLiteral(e),t)}function zte(e,t){return In(e.properties,r=>$c(r)&&!!r.name&&Ho(r.name)&&r.name.text===t)}function mS(e,t){let r;const i=lt(e,o,Gi);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(ob(s)&&s.qualifier){const c=Ff(s.qualifier),f=z9(c.symbol,t),d=f!==c.text?Bxe(s.qualifier,N.createIdentifier(f)):s.qualifier;r=Bn(r,c.symbol);const v=Kn(s.typeArguments,o,Gi);return N.createTypeReferenceNode(d,v)}return Gn(s,o,Rg)}}function Bxe(e,t){return e.kind===79?t:N.createQualifiedName(Bxe(e.left,t),e.right)}function S2(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function qte(e,t){const r=uu(t);let i=oa(e,t.start);for(;i.end<r;)i=i.parent;return i}var Jte,IWe=S({"src/services/codefixes/helpers.ts"(){Qr(),Jte=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Jte||{})}});function Gxe(e,t,r,i,o,s){const c=jxe(e,t,r,i);if(!c||_D.isRefactorErrorInfo(c))return;const f=gr.ChangeTracker.fromContext(o),{isStatic:d,isReadonly:v,fieldName:h,accessorName:E,originalName:C,type:L,container:I,declaration:O}=c;$d(h),$d(E),$d(O),$d(I);let k,G;if(_i(I)){const H=Hu(O);if(sd(e)){const ne=N.createModifiersFromModifierFlags(H);k=ne,G=ne}else k=N.createModifiersFromModifierFlags(DWe(H)),G=N.createModifiersFromModifierFlags(RWe(H));i2(O)&&(G=ya(Ov(O),G))}FWe(f,e,O,L,h,G);const V=NWe(h,E,L,k,d,I);if($d(V),Hxe(f,e,V,O,I),v){const H=Dh(I);H&&BWe(f,e,H,h.text,C)}else{const H=OWe(h,E,L,k,d,I);$d(H),Hxe(f,e,H,O,I)}return f.getChanges()}function kWe(e){return je(e)||Ho(e)}function wWe(e){return df(e,e.parent)||ro(e)||$c(e)}function Uxe(e,t){return je(t)?N.createIdentifier(e):N.createStringLiteral(e)}function Vxe(e,t,r){const i=t?r.name:N.createThis();return je(e)?N.createPropertyAccessExpression(i,e):N.createElementAccessExpression(i,N.createStringLiteralFromNode(e))}function DWe(e){return e&=-65,e&=-9,e&16||(e|=4),e}function RWe(e){return e&=-5,e&=-17,e|=8,e}function jxe(e,t,r,i,o=!0){const s=oa(e,r),c=r===i&&o,f=rr(s.parent,wWe),d=124;if(!f||!(TQ(f.name,e,r,i)||c))return{error:Po(_.Could_not_find_property_for_which_to_generate_accessor)};if(!kWe(f.name))return{error:Po(_.Name_is_not_valid)};if((Hu(f)&126975|d)!==d)return{error:Po(_.Can_only_convert_property_with_modifier)};const v=f.name.text,h=cZ(v),E=Uxe(h?v:uS(`_${v}`,e),f.name),C=Uxe(h?uS(v.substring(1),e):v,f.name);return{isStatic:Sc(f),isReadonly:Tk(f),type:GWe(f,t),container:f.kind===166?f.parent.parent:f.parent,originalName:f.name.text,declaration:f,fieldName:E,accessorName:C,renameAccessor:h}}function NWe(e,t,r,i,o,s){return N.createGetAccessorDeclaration(i,t,[],r,N.createBlock([N.createReturnStatement(Vxe(e,o,s))],!0))}function OWe(e,t,r,i,o,s){return N.createSetAccessorDeclaration(i,t,[N.createParameterDeclaration(void 0,void 0,N.createIdentifier("value"),void 0,r)],N.createBlock([N.createExpressionStatement(N.createAssignment(Vxe(e,o,s),N.createIdentifier("value")))],!0))}function PWe(e,t,r,i,o,s){const c=N.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,c)}function MWe(e,t,r,i){let o=N.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=N.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function FWe(e,t,r,i,o,s){ro(r)?PWe(e,t,r,i,o,s):$c(r)?MWe(e,t,r,o):e.replaceNode(t,r,N.updateParameterDeclaration(r,s,r.dotDotDotToken,so(o,je),r.questionToken,r.type,r.initializer))}function Hxe(e,t,r,i,o){df(i,i.parent)?e.insertMemberAtStart(t,o,r):$c(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function BWe(e,t,r,i,o){r.body&&r.body.forEachChild(function s(c){fl(c)&&c.expression.kind===108&&Ho(c.argumentExpression)&&c.argumentExpression.text===o&&wk(c)&&e.replaceNode(t,c.argumentExpression,N.createStringLiteral(i)),Fr(c)&&c.expression.kind===108&&c.name.text===o&&wk(c)&&e.replaceNode(t,c.name,N.createIdentifier(i)),!Xa(c)&&!_i(c)&&c.forEachChild(s)})}function GWe(e,t){const r=d_e(e);if(ro(e)&&r&&e.questionToken){const i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){const s=zx(r)?r.types:[r];return N.createUnionTypeNode([...s,N.createKeywordTypeNode(155)])}}return r}function Kte(e,t){const r=[];for(;e;){const i=G1(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;const s=o.flags&2097152?t.getAliasedSymbol(o):o,c=s.declarations&&In(s.declarations,_i);if(!c)break;r.push(c),e=c}return r}var UWe=S({"src/services/codefixes/generateAccessors.ts"(){Qr()}});function VWe(e,t){const r=er(t),i=lC(t),o=e.program.getCompilerOptions(),s=[];return s.push(Wxe(e,r,t,Hy(i.name,void 0,t.moduleSpecifier,Rp(r,e.preferences)))),du(o)===1&&s.push(Wxe(e,r,t,N.createImportEqualsDeclaration(void 0,!1,i.name,N.createExternalModuleReference(t.moduleSpecifier)))),s}function Wxe(e,t,r,i){const o=gr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return Np(Xte,o,[_.Replace_import_with_0,o[0].textChanges[0].newText])}function jWe(e){const t=e.sourceFile,r=_.This_expression_is_not_callable.code===e.errorCode?210:211,i=rr(oa(t,e.span.start),s=>s.kind===r);if(!i)return[];const o=i.expression;return zxe(e,o)}function HWe(e){const t=e.sourceFile,r=rr(oa(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?zxe(e,r):[]}function zxe(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&Hm(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],o=r.symbol.links.originatingImport;if(hf(o)||Ai(i,VWe(e,o)),vt(t)&&!(Su(t.parent)&&t.parent.name===t)){const s=e.sourceFile,c=gr.ChangeTracker.with(e,f=>f.replaceNode(s,t,N.createPropertyAccessExpression(t,"default"),{}));i.push(Np(Xte,c,_.Use_synthetic_default_member))}return i}var Xte,WWe=S({"src/services/codefixes/fixInvalidImportSyntax.ts"(){Qr(),To(),Xte="invalidImportSyntax",mo({errorCodes:[_.This_expression_is_not_callable.code,_.This_expression_is_not_constructable.code],getCodeActions:jWe}),mo({errorCodes:[_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_.Type_0_does_not_satisfy_the_constraint_1.code,_.Type_0_is_not_assignable_to_type_1.code,_.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_.Type_predicate_0_is_not_assignable_to_1.code,_.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,_._0_index_type_1_is_not_assignable_to_2_index_type_3.code,_.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,_.Property_0_in_type_1_is_not_assignable_to_type_2.code,_.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:HWe})}});function qxe(e,t){const r=oa(e,t);if(je(r)&&ro(r.parent)){const i=iu(r.parent);if(i)return{type:i,prop:r.parent,isJs:fr(r.parent)}}}function zWe(e,t){if(t.isJs)return;const r=gr.ChangeTracker.with(e,i=>Jxe(i,e.sourceFile,t.prop));return ao(GG,r,[_.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],UG,_.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function Jxe(e,t,r){$d(r);const i=N.updatePropertyDeclaration(r,r.modifiers,r.name,N.createToken(53),r.type,r.initializer);e.replaceNode(t,r,i)}function qWe(e,t){const r=gr.ChangeTracker.with(e,i=>Kxe(i,e.sourceFile,t));return ao(GG,r,[_.Add_undefined_type_to_property_0,t.prop.name.getText()],VG,_.Add_undefined_type_to_all_uninitialized_properties)}function Kxe(e,t,r){const i=N.createKeywordTypeNode(155),o=zx(r.type)?r.type.types.concat(i):[r.type,i],s=N.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[N.createJSDocTypeTag(void 0,N.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function JWe(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=Yxe(r,t.prop);if(!i)return;const o=gr.ChangeTracker.with(e,s=>Xxe(s,e.sourceFile,t.prop,i));return ao(GG,o,[_.Add_initializer_to_property_0,t.prop.name.getText()],jG,_.Add_initializers_to_all_uninitialized_properties)}function Xxe(e,t,r,i){$d(r);const o=N.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function Yxe(e,t){return $xe(e,e.getTypeFromTypeNode(t.type))}function $xe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?N.createFalse():N.createTrue();if(t.isStringLiteral())return N.createStringLiteral(t.value);if(t.isNumberLiteral())return N.createNumericLiteral(t.value);if(t.flags&2048)return N.createBigIntLiteral(t.value);if(t.isUnion())return Jt(t.types,r=>$xe(e,r));if(t.isClass()){const r=Lg(t.symbol);if(!r||$r(r,256))return;const i=Dh(r);return i&&i.parameters.length?void 0:N.createNewExpression(N.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return N.createArrayLiteralExpression()}var GG,UG,VG,jG,Yte,KWe=S({"src/services/codefixes/fixStrictClassInitialization.ts"(){Qr(),To(),GG="strictClassInitialization",UG="addMissingPropertyDefiniteAssignmentAssertions",VG="addMissingPropertyUndefinedType",jG="addMissingPropertyInitializer",Yte=[_.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],mo({errorCodes:Yte,getCodeActions:function(t){const r=qxe(t.sourceFile,t.span.start);if(!r)return;const i=[];return Bn(i,qWe(t,r)),Bn(i,zWe(t,r)),Bn(i,JWe(t,r)),i},fixIds:[UG,VG,jG],getAllCodeActions:e=>Ls(e,Yte,(t,r)=>{const i=qxe(r.file,r.start);if(i)switch(e.fixId){case UG:Jxe(t,r.file,i.prop);break;case VG:Kxe(t,r.file,i);break;case jG:const o=e.program.getTypeChecker(),s=Yxe(o,i.prop);if(!s)return;Xxe(t,r.file,i.prop,s);break;default:D.fail(JSON.stringify(e.fixId))}})})}});function Qxe(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:c,required:f}=r;e.replaceNode(t,c,o&&!i?N.createImportEqualsDeclaration(void 0,!1,o,N.createExternalModuleReference(f)):N.createImportDeclaration(void 0,N.createImportClause(!1,o,s),f,void 0))}function Zxe(e,t,r){const{parent:i}=oa(e,r);if(!wd(i,!0))throw D.failBadSyntaxKind(i);const o=so(i.parent,Xi),s=si(o.name,je),c=Qm(o.name)?XWe(o.name):void 0;if(s||c)return{allowSyntheticDefaults:FT(t.getCompilerOptions()),defaultImportName:s,namedImports:c,statement:so(o.parent.parent,gc),required:ds(i.arguments)}}function XWe(e){const t=[];for(const r of e.elements){if(!je(r.name)||r.initializer)return;t.push(N.createImportSpecifier(!1,si(r.propertyName,je),r.name))}if(t.length)return N.createNamedImports(t)}var HG,$te,YWe=S({"src/services/codefixes/requireInTs.ts"(){Qr(),To(),HG="requireInTs",$te=[_.require_call_may_be_converted_to_an_import.code],mo({errorCodes:$te,getCodeActions(e){const t=Zxe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=gr.ChangeTracker.with(e,i=>Qxe(i,e.sourceFile,t));return[ao(HG,r,_.Convert_require_to_import,HG,_.Convert_all_require_to_import)]},fixIds:[HG],getAllCodeActions:e=>Ls(e,$te,(t,r)=>{const i=Zxe(r.file,e.program,r.start);i&&Qxe(t,e.sourceFile,i)})})}});function e2e(e,t){const r=oa(e,t);if(!je(r))return;const{parent:i}=r;if(_u(i)&&eh(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Yv(i)){const o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function t2e(e,t,r,i){e.replaceNode(t,r.importNode,Hy(r.name,void 0,r.moduleSpecifier,Rp(t,i)))}var WG,Qte,$We=S({"src/services/codefixes/useDefaultImport.ts"(){Qr(),To(),WG="useDefaultImport",Qte=[_.Import_may_be_converted_to_a_default_import.code],mo({errorCodes:Qte,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=e2e(t,r);if(!i)return;const o=gr.ChangeTracker.with(e,s=>t2e(s,t,i,e.preferences));return[ao(WG,o,_.Convert_to_default_import,WG,_.Convert_all_to_default_imports)]},fixIds:[WG],getAllCodeActions:e=>Ls(e,Qte,(t,r)=>{const i=e2e(r.file,r.start);i&&t2e(t,r.file,i,e.preferences)})})}});function n2e(e,t,r){const i=si(oa(t,r.start),L_);if(!i)return;const o=i.getText(t)+"n";e.replaceNode(t,i,N.createBigIntLiteral(o))}var zG,Zte,QWe=S({"src/services/codefixes/useBigintLiteral.ts"(){Qr(),To(),zG="useBigintLiteral",Zte=[_.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],mo({errorCodes:Zte,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>n2e(i,t.sourceFile,t.span));if(r.length>0)return[ao(zG,r,_.Convert_to_a_bigint_numeric_literal,zG,_.Convert_all_to_bigint_numeric_literals)]},fixIds:[zG],getAllCodeActions:e=>Ls(e,Zte,(t,r)=>n2e(t,r.file,r))})}});function r2e(e,t){const r=oa(e,t);return D.assert(r.kind===100,"This token should be an ImportKeyword"),D.assert(r.parent.kind===202,"Token parent should be an ImportType"),r.parent}function i2e(e,t,r){const i=N.updateImportTypeNode(r,r.argument,r.assertions,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var a2e,qG,ene,ZWe=S({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){Qr(),To(),a2e="fixAddModuleReferTypeMissingTypeof",qG=a2e,ene=[_.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],mo({errorCodes:ene,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=r2e(r,i.start),s=gr.ChangeTracker.with(t,c=>i2e(c,r,o));return[ao(qG,s,_.Add_missing_typeof,qG,_.Add_missing_typeof)]},fixIds:[qG],getAllCodeActions:e=>Ls(e,ene,(t,r)=>i2e(t,e.sourceFile,r2e(r.file,r.start)))})}});function o2e(e,t){let o=oa(e,t).parent.parent;if(!(!br(o)&&(o=o.parent,!br(o)))&&kl(o.operatorToken))return o}function s2e(e,t,r){const i=eze(r);i&&e.replaceNode(t,r,N.createJsxFragment(N.createJsxOpeningFragment(),i,N.createJsxJsxClosingFragment()))}function eze(e){const t=[];let r=e;for(;;)if(br(r)&&kl(r.operatorToken)&&r.operatorToken.kind===27){if(t.push(r.left),bN(r.right))return t.push(r.right),t;if(br(r.right)){r=r.right;continue}else return}else return}var JG,tne,tze=S({"src/services/codefixes/wrapJsxInFragment.ts"(){Qr(),To(),JG="wrapJsxInFragment",tne=[_.JSX_expressions_must_have_one_parent_element.code],mo({errorCodes:tne,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=o2e(r,i.start);if(!o)return;const s=gr.ChangeTracker.with(t,c=>s2e(c,r,o));return[ao(JG,s,_.Wrap_in_JSX_fragment,JG,_.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[JG],getAllCodeActions:e=>Ls(e,tne,(t,r)=>{const i=o2e(e.sourceFile,r.start);i&&s2e(t,e.sourceFile,i)})})}});function l2e(e,t){const r=oa(e,t),i=si(r.parent.parent,Wx);if(!i)return;const o=ud(i.parent)?i.parent:si(i.parent.parent,um);if(o)return{indexSignature:i,container:o}}function nze(e,t){return N.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function c2e(e,t,{indexSignature:r,container:i}){const s=(ud(i)?i.members:i.type.members).filter(h=>!Wx(h)),c=ds(r.parameters),f=N.createTypeParameterDeclaration(void 0,so(c.name,je),c.type),d=N.createMappedTypeNode(Tk(r)?N.createModifier(146):void 0,f,void 0,r.questionToken,r.type,void 0),v=N.createIntersectionTypeNode([...pk(i),d,...s.length?[N.createTypeLiteralNode(s)]:rt]);e.replaceNode(t,i,nze(i,v))}var KG,nne,rze=S({"src/services/codefixes/convertToMappedObjectType.ts"(){Qr(),To(),KG="fixConvertToMappedObjectType",nne=[_.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],mo({errorCodes:nne,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=l2e(r,i.start);if(!o)return;const s=gr.ChangeTracker.with(t,f=>c2e(f,r,o)),c=Mr(o.container.name);return[ao(KG,s,[_.Convert_0_to_mapped_object_type,c],KG,[_.Convert_0_to_mapped_object_type,c])]},fixIds:[KG],getAllCodeActions:e=>Ls(e,nne,(t,r)=>{const i=l2e(r.file,r.start);i&&c2e(t,r.file,i)})})}}),rne,u2e,ize=S({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){Qr(),To(),rne="removeAccidentalCallParentheses",u2e=[_.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],mo({errorCodes:u2e,getCodeActions(e){const t=rr(oa(e.sourceFile,e.span.start),io);if(!t)return;const r=gr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Np(rne,r,_.Remove_parentheses)]},fixIds:[rne]})}});function d2e(e,t,r){const i=si(oa(t,r.start),f=>f.kind===133),o=i&&si(i.parent,UC);if(!o)return;let s=o;if(Jd(o.parent)){const f=Rk(o.expression,!1);if(je(f)){const d=Dc(o.parent.pos,t);d&&d.kind!==103&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var XG,ine,aze=S({"src/services/codefixes/removeUnnecessaryAwait.ts"(){Qr(),To(),XG="removeUnnecessaryAwait",ine=[_.await_has_no_effect_on_the_type_of_this_expression.code],mo({errorCodes:ine,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>d2e(i,t.sourceFile,t.span));if(r.length>0)return[ao(XG,r,_.Remove_unnecessary_await,XG,_.Remove_all_unnecessary_uses_of_await)]},fixIds:[XG],getAllCodeActions:e=>Ls(e,ine,(t,r)=>d2e(t,r.file,r))})}});function f2e(e,t){return rr(oa(e,t.start),Yc)}function _2e(e,t,r){if(!t)return;const i=D.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,N.updateImportDeclaration(t,t.modifiers,N.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.assertClause)),e.insertNodeAfter(r.sourceFile,t,N.createImportDeclaration(void 0,N.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.assertClause))}var ane,YG,oze=S({"src/services/codefixes/splitTypeOnlyImport.ts"(){Qr(),To(),ane=[_.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],YG="splitTypeOnlyImport",mo({errorCodes:ane,fixIds:[YG],getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>_2e(i,f2e(t.sourceFile,t.span),t));if(r.length)return[ao(YG,r,_.Split_into_two_separate_import_declarations,YG,_.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ls(e,ane,(t,r)=>{_2e(t,f2e(e.sourceFile,r),e)})})}});function p2e(e,t,r){var i;const s=r.getTypeChecker().getSymbolAtLocation(oa(e,t));if(s===void 0)return;const c=si((i=s==null?void 0:s.valueDeclaration)==null?void 0:i.parent,Ju);if(c===void 0)return;const f=Es(c,85,e);if(f!==void 0)return{symbol:s,token:f}}function m2e(e,t,r){e.replaceNode(t,r,N.createToken(119))}var $G,one,sze=S({"src/services/codefixes/convertConstToLet.ts"(){Qr(),To(),$G="fixConvertConstToLet",one=[_.Cannot_assign_to_0_because_it_is_a_constant.code],mo({errorCodes:one,getCodeActions:function(t){const{sourceFile:r,span:i,program:o}=t,s=p2e(r,i.start,o);if(s===void 0)return;const c=gr.ChangeTracker.with(t,f=>m2e(f,r,s.token));return[cee($G,c,_.Convert_const_to_let,$G,_.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return v2(gr.ChangeTracker.with(e,i=>{b2(e,one,o=>{const s=p2e(o.file,o.start,t);if(s&&Lp(r,Eo(s.symbol)))return m2e(i,o.file,s.token)})}))},fixIds:[$G]})}});function h2e(e,t,r){const i=oa(e,t);return i.kind===26&&i.parent&&(Is(i.parent)||zu(i.parent))?{node:i}:void 0}function g2e(e,t,{node:r}){const i=N.createToken(27);e.replaceNode(t,r,i)}var QG,y2e,sne,lze=S({"src/services/codefixes/fixExpectedComma.ts"(){Qr(),To(),QG="fixExpectedComma",y2e=_._0_expected.code,sne=[y2e],mo({errorCodes:sne,getCodeActions(e){const{sourceFile:t}=e,r=h2e(t,e.span.start,e.errorCode);if(!r)return;const i=gr.ChangeTracker.with(e,o=>g2e(o,t,r));return[ao(QG,i,[_.Change_0_to_1,";",","],QG,[_.Change_0_to_1,";",","])]},fixIds:[QG],getAllCodeActions:e=>Ls(e,sne,(t,r)=>{const i=h2e(r.file,r.start,r.code);i&&g2e(t,e.sourceFile,i)})})}});function v2e(e,t,r,i,o){const s=oa(t,r.start);if(!je(s)||!io(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;const c=i.getTypeChecker(),f=c.getSymbolAtLocation(s),d=f==null?void 0:f.valueDeclaration;if(!d||!Fa(d)||!X1(d.parent.parent)||o!=null&&o.has(d))return;o==null||o.add(d);const v=cze(d.parent.parent);if(kt(v)){const h=v[0],E=!zx(h)&&!qx(h)&&qx(N.createUnionTypeNode([h,N.createKeywordTypeNode(114)]).types[0]);E&&e.insertText(t,h.pos,"("),e.insertText(t,h.end,E?") | void":" | void")}else{const h=c.getResolvedSignature(s.parent),E=h==null?void 0:h.parameters[0],C=E&&c.getTypeOfSymbolAtLocation(E,d.parent.parent);fr(d)?(!C||C.flags&3)&&(e.insertText(t,d.parent.parent.end,")"),e.insertText(t,Xo(t.text,d.parent.parent.pos),"/** @type {Promise<void>} */(")):(!C||C.flags&2)&&e.insertText(t,d.parent.parent.expression.end,"<void>")}}function cze(e){var t;if(fr(e)){if(Jd(e.parent)){const r=(t=I1(e.parent))==null?void 0:t.typeExpression.type;if(r&&ep(r)&&je(r.typeName)&&Mr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var b2e,lne,cne,uze=S({"src/services/codefixes/fixAddVoidToPromise.ts"(){Qr(),To(),b2e="addVoidToPromise",lne="addVoidToPromise",cne=[_.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,_.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],mo({errorCodes:cne,fixIds:[lne],getCodeActions(e){const t=gr.ChangeTracker.with(e,r=>v2e(r,e.sourceFile,e.span,e.program));if(t.length>0)return[ao(b2e,t,_.Add_void_to_Promise_resolved_without_a_value,lne,_.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ls(e,cne,(t,r)=>v2e(t,r.file,r,e.program,new Set))}})}}),Yu={};X(Yu,{PreserveOptionalFlags:()=>Jte,addNewNodeForMemberSymbol:()=>Nxe,codeFixAll:()=>Ls,createCodeFixAction:()=>ao,createCodeFixActionMaybeFixAll:()=>cee,createCodeFixActionWithoutFixAll:()=>Np,createCombinedCodeActions:()=>v2,createFileTextChanges:()=>jEe,createImportAdder:()=>_S,createImportSpecifierResolver:()=>Aje,createJsonPropertyAssignment:()=>BG,createMissingMemberNodes:()=>Gte,createSignatureDeclarationFromCallExpression:()=>Ute,createSignatureDeclarationFromSignature:()=>MG,createStubbedBody:()=>$6,eachDiagnostic:()=>b2,findAncestorMatchingSpan:()=>qte,findJsonProperty:()=>zte,generateAccessorFromProperty:()=>Gxe,getAccessorConvertiblePropertyAtPosition:()=>jxe,getAllFixes:()=>lVe,getAllSupers:()=>Kte,getArgumentTypesAndTypeParameters:()=>Mxe,getFixes:()=>sVe,getImportCompletionAction:()=>Cje,getImportKind:()=>Mee,getNoopSymbolTrackerWithResolver:()=>T2,getPromoteTypeOnlyCompletionAction:()=>Lje,getSupportedErrorCodes:()=>aVe,importFixName:()=>jee,importSymbols:()=>S2,moduleSpecifierToValidIdentifier:()=>Vee,moduleSymbolToValidIdentifier:()=>Uee,parameterShouldGetTypeFromJSDoc:()=>sTe,registerCodeFix:()=>mo,setJsonCompilerOptionValue:()=>Wte,setJsonCompilerOptionValues:()=>Hte,tryGetAutoImportableReferenceFromTypeNode:()=>mS,typeToAutoImportableTypeNode:()=>FG});var To=S({"src/services/_namespaces/ts.codefix.ts"(){cVe(),uVe(),dVe(),pVe(),vVe(),SVe(),xVe(),AVe(),CVe(),wVe(),UVe(),jVe(),ZVe(),gje(),yje(),bje(),Eje(),Tje(),xje(),Jje(),Yje(),Zje(),eHe(),tHe(),iHe(),sHe(),uHe(),mHe(),AHe(),LHe(),IHe(),wHe(),DHe(),RHe(),NHe(),PHe(),MHe(),FHe(),BHe(),GHe(),VHe(),WHe(),KHe(),nWe(),iWe(),aWe(),lWe(),cWe(),dWe(),fWe(),bWe(),EWe(),TWe(),IWe(),UWe(),WWe(),KWe(),YWe(),$We(),QWe(),ZWe(),tze(),rze(),ize(),aze(),oze(),sze(),lze(),uze()}});function dze(e){return!!(e.kind&1)}function fze(e){return!!(e.kind&2)}function Q6(e){return!!(e&&e.kind&4)}function EL(e){return!!(e&&e.kind===32)}function _ze(e){return Q6(e)||EL(e)||une(e)}function pze(e){return(Q6(e)||EL(e))&&!!e.isFromPackageJson}function mze(e){return!!(e.kind&8)}function hze(e){return!!(e.kind&16)}function E2e(e){return!!(e&&e.kind&64)}function T2e(e){return!!(e&&e.kind&128)}function gze(e){return!!(e&&e.kind&256)}function une(e){return!!(e&&e.kind&512)}function S2e(e,t,r,i,o,s,c,f,d){var v,h,E;const C=sl(),L=c||Px(Tl(i.getCompilerOptions()));let I=!1,O=0,k=0,G=0,V=0;const H=d({tryResolve:Y,skippedAny:()=>I,resolvedAny:()=>k>0,resolvedBeyondLimit:()=>k>sU}),ne=V?` (${(G/V*100).toFixed(1)}% hit rate)`:"";return(v=t.log)==null||v.call(t,`${e}: resolved ${k} module specifiers, plus ${O} ambient and ${G} from cache${ne}`),(h=t.log)==null||h.call(t,`${e}: response is ${I?"incomplete":"complete"}`),(E=t.log)==null||E.call(t,`${e}: ${sl()-C}`),H;function Y($,M){if(M){const ae=r.getModuleSpecifierForBestExportInfo($,o,f);return ae&&O++,ae||"failed"}const de=L||s.allowIncompleteCompletions&&k<sU,re=!de&&s.allowIncompleteCompletions&&V<Ene,be=de||re?r.getModuleSpecifierForBestExportInfo($,o,f,re):void 0;return(!de&&!re||re&&!be)&&(I=!0),k+=(be==null?void 0:be.computedWithoutCacheCount)||0,G+=$.length-((be==null?void 0:be.computedWithoutCacheCount)||0),re&&V++,be||(L?"failed":"skipped")}}function yze(e,t,r,i,o,s,c,f,d,v,h=!1){var E;const{previousToken:C}=tU(o,i);if(c&&!lS(i,o,C)&&!Qze(i,c,C,o))return;if(c===" ")return s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const L=t.getCompilerOptions(),I=s.allowIncompleteCompletions?(E=e.getIncompleteCompletionsCache)==null?void 0:E.call(e):void 0;if(I&&f===3&&C&&je(C)){const G=vze(I,i,C,t,e,s,d,o);if(G)return G}else I==null||I.clear();const O=lU.getStringLiteralCompletions(i,o,C,L,e,t,r,s,h);if(O)return O;if(C&&YI(C.parent)&&(C.kind===81||C.kind===86||C.kind===79))return Fze(C.parent);const k=N2e(t,r,i,L,o,s,void 0,e,v,d);if(k)switch(k.kind){case 0:const G=Sze(i,e,t,L,r,k,s,v,o,h);return G!=null&&G.isIncomplete&&(I==null||I.set(G)),G;case 1:return dne(Cb.getJSDocTagNameCompletions());case 2:return dne(Cb.getJSDocTagCompletions());case 3:return dne(Cb.getJSDocParameterNameCompletions(k.tag));case 4:return Eze(k.keywordCompletions,k.isNewIdentifierLocation);default:return D.assertNever(k)}}function Z6(e,t){var r,i;let o=OR(e.sortText,t.sortText);return o===0&&(o=OR(e.name,t.name)),o===0&&((r=e.data)!=null&&r.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(o=xO(e.data.moduleSpecifier,t.data.moduleSpecifier)),o===0?-1:o}function x2e(e){return!!(e!=null&&e.moduleSpecifier)}function vze(e,t,r,i,o,s,c,f){const d=e.get();if(!d)return;const v=Vf(t,f),h=r.text.toLowerCase(),E=P6(t,o,i,s,c),C=S2e("continuePreviousIncompleteResponse",o,Yu.createImportSpecifierResolver(t,i,o,s),i,r.getStart(),s,!1,Fx(r),L=>{const I=pa(d.entries,O=>{var k;if(!O.hasAction||!O.source||!O.data||x2e(O.data))return O;if(!q2e(O.name,h))return;const{origin:G}=D.checkDefined(O2e(O.name,O.data,i,o)),V=E.get(t.path,O.data.exportMapKey),H=V&&L.tryResolve(V,!zc(X_(G.moduleSymbol.name)));if(H==="skipped")return O;if(!H||H==="failed"){(k=o.log)==null||k.call(o,`Unexpected failure resolving auto import for '${O.name}' from '${O.source}'`);return}const ne=Ka(Ti({},G),{kind:32,moduleSpecifier:H.moduleSpecifier});return O.data=w2e(ne),O.source=pne(ne),O.sourceDisplay=[jf(ne.moduleSpecifier)],O});return L.skippedAny()||(d.isIncomplete=void 0),I});return d.entries=C,d.flags=(d.flags||0)|4,d.optionalReplacementSpan=C2e(v),d}function dne(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function bze(e){return{name:vo(e),kind:"keyword",kindModifiers:"",sortText:pu.GlobalsOrKeywords}}function Eze(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function A2e(e,t,r){return{kind:4,keywordCompletions:P2e(e,t),isNewIdentifierLocation:r}}function Tze(e){switch(e){case 154:return 8;default:D.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function C2e(e){return(e==null?void 0:e.kind)===79?dd(e):void 0}function Sze(e,t,r,i,o,s,c,f,d,v){const{symbols:h,contextToken:E,completionKind:C,isInSnippetScope:L,isNewIdentifierLocation:I,location:O,propertyAccessToConvert:k,keywordFilters:G,symbolToOriginInfoMap:V,recommendedCompletion:H,isJsxInitializer:ne,isTypeOnlyLocation:Y,isJsxIdentifierExpected:$,isRightOfOpenTag:M,isRightOfDotOrQuestionDot:de,importStatementCompletion:re,insideJsDocTagTypeExpression:be,symbolToSortTextMap:ae,hasUnresolvedAutoImports:W}=s;let ce=s.literals;const me=r.getTypeChecker();if(gO(e.scriptKind)===1){const Ge=Aze(O,e);if(Ge)return Ge}const Ee=rr(E,ow);if(Ee&&(ume(E)||DT(E,Ee.expression))){const Ge=X9(me,Ee.parent.clauses);ce=ce.filter(ze=>!Ge.hasValue(ze)),h.forEach((ze,Oe)=>{if(ze.valueDeclaration&&Q1(ze.valueDeclaration)){const Me=me.getConstantValue(ze.valueDeclaration);Me!==void 0&&Ge.hasValue(Me)&&(V[Oe]={kind:256})}})}const xe=mH(),te=L2e(e,i);if(te&&!I&&(!h||h.length===0)&&G===0)return;const Qe=mne(h,xe,void 0,E,O,d,e,t,r,ts(i),o,C,c,i,f,Y,k,$,ne,re,H,V,ae,$,M,v);if(G!==0)for(const Ge of P2e(G,!be&&sd(e)))(Y&&Bw(mT(Ge.name))||!Qe.has(Ge.name))&&(Qe.add(Ge.name),Iv(xe,Ge,Z6,!0));for(const Ge of Jze(E,d))Qe.has(Ge.name)||(Qe.add(Ge.name),Iv(xe,Ge,Z6,!0));for(const Ge of ce){const ze=Lze(e,c,Ge);Qe.add(ze.name),Iv(xe,ze,Z6,!0)}te||Cze(e,O.pos,Qe,ts(i),xe);let Ve;if(c.includeCompletionsWithInsertText&&E&&!M&&!de&&(Ve=rr(E,t8))){const Ge=I2e(Ve,e,c,i,t,r,f);Ge&&xe.push(Ge.entry)}return{flags:s.flags,isGlobalCompletion:L,isIncomplete:c.allowIncompleteCompletions&&W?!0:void 0,isMemberCompletion:xze(C),isNewIdentifierLocation:I,optionalReplacementSpan:C2e(O),entries:xe}}function L2e(e,t){return!sd(e)||!!IO(e,t)}function I2e(e,t,r,i,o,s,c){const f=e.clauses,d=s.getTypeChecker(),v=d.getTypeAtLocation(e.parent.expression);if(v&&v.isUnion()&&Zn(v.types,h=>h.isLiteral())){const h=X9(d,f),E=ts(i),C=Rp(t,r),L=Yu.createImportAdder(t,s,r,o),I=[];for(const Y of v.types)if(Y.flags&1024){D.assert(Y.symbol,"An enum member type should have a symbol"),D.assert(Y.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const $=Y.symbol.valueDeclaration&&d.getConstantValue(Y.symbol.valueDeclaration);if($!==void 0){if(h.hasValue($))continue;h.addValue($)}const M=Yu.typeToAutoImportableTypeNode(d,L,Y,e,E);if(!M)return;const de=ZG(M,E,C);if(!de)return;I.push(de)}else if(!h.hasValue(Y.value))switch(typeof Y.value){case"object":I.push(Y.value.negative?N.createPrefixUnaryExpression(40,N.createBigIntLiteral({negative:!1,base10Value:Y.value.base10Value})):N.createBigIntLiteral(Y.value));break;case"number":I.push(Y.value<0?N.createPrefixUnaryExpression(40,N.createNumericLiteral(-Y.value)):N.createNumericLiteral(Y.value));break;case"string":I.push(N.createStringLiteral(Y.value,C===0));break}if(I.length===0)return;const O=zt(I,Y=>N.createCaseClause(Y,[])),k=Tb(o,c==null?void 0:c.options),G=_ne({removeComments:!0,module:i.module,target:i.target,newLine:O6(k)}),V=c?Y=>G.printAndFormatNode(4,Y,t,c):Y=>G.printNode(4,Y,t),H=zt(O,(Y,$)=>r.includeCompletionsWithSnippetText?`${V(Y)}$${$+1}`:`${V(Y)}`).join(k);return{entry:{name:`${G.printNode(4,O[0],t)} ...`,kind:"",sortText:pu.GlobalsOrKeywords,insertText:H,hasAction:L.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:L}}}function ZG(e,t,r){switch(e.kind){case 180:const i=e.typeName;return eU(i,t,r);case 196:const o=ZG(e.objectType,t,r),s=ZG(e.indexType,t,r);return o&&s&&N.createElementAccessExpression(o,s);case 198:const c=e.literal;switch(c.kind){case 10:return N.createStringLiteral(c.text,r===0);case 8:return N.createNumericLiteral(c.text,c.numericLiteralFlags)}return;case 193:const f=ZG(e.type,t,r);return f&&(je(f)?f:N.createParenthesizedExpression(f));case 183:return eU(e.exprName,t,r);case 202:D.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function eU(e,t,r){if(je(e))return e;const i=ra(e.right.escapedText);return TJ(i,t)?N.createPropertyAccessExpression(eU(e.left,t,r),i):N.createElementAccessExpression(eU(e.left,t,r),N.createStringLiteral(i,r===0))}function xze(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Aze(e,t){const r=rr(e,i=>{switch(i.kind){case 284:return!0;case 43:case 31:case 79:case 208:return!1;default:return"quit"}});if(r){const i=!!Es(r,31,t),c=r.parent.openingElement.tagName.getText(t)+(i?"":">"),f=dd(r.tagName),d={name:c,kind:"class",kindModifiers:void 0,sortText:pu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:f,entries:[d]}}}function Cze(e,t,r,i,o){JZ(e).forEach((s,c)=>{if(s===t)return;const f=ra(c);!r.has(f)&&H_(f,i)&&(r.add(f),Iv(o,{name:f,kind:"warning",kindModifiers:"",sortText:pu.JavascriptIdentifiers,isFromUncheckedFile:!0},Z6))})}function fne(e,t,r){return typeof r=="object"?q1(r)+"n":Ha(r)?jw(e,t,r):JSON.stringify(r)}function Lze(e,t,r){return{name:fne(e,t,r),kind:"string",kindModifiers:"",sortText:pu.LocationPriority}}function Ize(e,t,r,i,o,s,c,f,d,v,h,E,C,L,I,O,k,G,V,H,ne,Y,$,M){let de,re=NQ(r),be,ae,W=pne(E),ce,me,Ee;const xe=d.getTypeChecker(),te=E&&hze(E),Qe=E&&fze(E)||h;if(E&&dze(E))de=h?`this${te?"?.":""}[${D2e(c,V,v)}]`:`this${te?"?.":"."}${v}`;else if((Qe||te)&&L){de=Qe?h?`[${D2e(c,V,v)}]`:`[${v}]`:v,(te||L.questionDotToken)&&(de=`?.${de}`);const Ve=Es(L,24,c)||Es(L,28,c);if(!Ve)return;const Ge=Ta(v,L.name.text)?L.name.end:Ve.end;re=Tc(Ve.getStart(c),Ge)}if(I&&(de===void 0&&(de=v),de=`{${de}}`,typeof I!="boolean"&&(re=dd(I,c))),E&&mze(E)&&L){de===void 0&&(de=v);const Ve=Dc(L.pos,c);let Ge="";Ve&&F9(Ve.end,Ve.parent,c)&&(Ge=";"),Ge+=`(await ${L.expression.getText()})`,de=h?`${Ge}${de}`:`${Ge}${te?"?.":"."}${de}`;const Oe=si(L.parent,UC)?L.parent:L.expression;re=Tc(Oe.getStart(c),L.end)}if(EL(E)&&(ce=[jf(E.moduleSpecifier)],O&&({insertText:de,replacementSpan:re}=Pze(v,O,E,k,c,G,V),ae=V.includeCompletionsWithSnippetText?!0:void 0)),(E==null?void 0:E.kind)===64&&(me=!0),V.includeCompletionsWithClassMemberSnippets&&V.includeCompletionsWithInsertText&&H===3&&kze(e,o,c)){let Ve;({insertText:de,isSnippet:ae,importAdder:Ve,replacementSpan:re}=k2e(f,d,G,V,v,e,o,s,i,ne)),t=pu.ClassMemberSnippets,Ve!=null&&Ve.hasFixes()&&(me=!0,W="ClassMemberSnippet/")}if(E&&T2e(E)&&({insertText:de,isSnippet:ae,labelDetails:Ee}=E,V.useLabelDetailsInCompletionEntries||(v=v+Ee.detail,Ee=void 0),W="ObjectLiteralMethodSnippet/",t=pu.SortBelow(t)),Y&&!$&&V.includeCompletionsWithSnippetText&&V.jsxAttributeCompletionStyle&&V.jsxAttributeCompletionStyle!=="none"&&!(fm(o.parent)&&o.parent.initializer)){let Ve=V.jsxAttributeCompletionStyle==="braces";const Ge=xe.getTypeOfSymbolAtLocation(e,o);V.jsxAttributeCompletionStyle==="auto"&&!(Ge.flags&528)&&!(Ge.flags&1048576&&In(Ge.types,ze=>!!(ze.flags&528)))&&(Ge.flags&402653316||Ge.flags&1048576&&Zn(Ge.types,ze=>!!(ze.flags&402686084||cbe(ze)))?(de=`${GT(v)}=${jw(c,V,"$1")}`,ae=!0):Ve=!0),Ve&&(de=`${GT(v)}={$1}`,ae=!0)}if(!(de!==void 0&&!V.includeCompletionsWithInsertText))return(Q6(E)||EL(E))&&(be=w2e(E),me=!O),Ti({name:v,kind:zy.getSymbolKind(xe,e,o),kindModifiers:zy.getSymbolModifiers(xe,e),sortText:t,source:W,hasAction:me?!0:void 0,isRecommended:Mze(e,C,xe)||void 0,insertText:de,replacementSpan:re,sourceDisplay:ce,labelDetails:Ee,isSnippet:ae,isPackageJsonImport:pze(E)||void 0,isImportStatementCompletion:!!O||void 0,data:be},M?{symbol:e}:void 0)}function kze(e,t,r){if(fr(t))return!1;const i=106500;return!!(e.flags&i)&&(_i(t)||t.parent&&t.parent.parent&&qc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&_i(t.parent.parent)||t.parent&&qC(t)&&_i(t.parent))}function k2e(e,t,r,i,o,s,c,f,d,v){const h=rr(c,_i);if(!h)return{insertText:o};let E,C,L=o;const I=t.getTypeChecker(),O=c.getSourceFile(),k=_ne({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:O6(Tb(e,v==null?void 0:v.options))}),G=Yu.createImportAdder(O,t,i,e);let V;if(i.includeCompletionsWithSnippetText){E=!0;const de=N.createEmptyStatement();V=N.createBlock([de],!0),eK(de,{kind:0,order:0})}else V=N.createBlock([],!0);let H=0;const{modifiers:ne,span:Y}=wze(d,O,f),$=!!(ne&256),M=[];return Yu.addNewNodeForMemberSymbol(s,h,O,{program:t,host:e},i,G,de=>{let re=0;$&&(re|=256),qc(de)&&I.getMemberOverrideModifierStatus(h,de,s)===1&&(re|=16384),M.length||(H=de.modifierFlagsCache|re|ne),de=N.updateModifiers(de,H),M.push(de)},V,Yu.PreserveOptionalFlags.Property,$),M.length&&(C=Y,v?L=k.printAndFormatSnippetList(131073,N.createNodeArray(M),O,v):L=k.printSnippetList(131073,N.createNodeArray(M),O)),{insertText:L,isSnippet:E,importAdder:G,replacementSpan:C}}function wze(e,t,r){if(!e||cl(t,r).line>cl(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s;return(s=Dze(e))&&(i|=Rx(s),o=dd(e)),ro(e.parent)&&(i|=Km(e.parent.modifiers)&126975,o=dd(e.parent)),{modifiers:i,span:o}}function Dze(e){if(_o(e))return e.kind;if(je(e)){const t=ib(e);if(t&&Cy(t))return t}}function Rze(e,t,r,i,o,s,c,f){const d=c.includeCompletionsWithSnippetText||void 0;let v=t;const h=r.getSourceFile(),E=Nze(e,r,h,i,o,c);if(!E)return;const C=_ne({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:O6(Tb(o,f==null?void 0:f.options))});f?v=C.printAndFormatSnippetList(80,N.createNodeArray([E],!0),h,f):v=C.printSnippetList(80,N.createNodeArray([E],!0),h);const L=oE({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),I=N.createMethodSignature(void 0,"",E.questionToken,E.typeParameters,E.parameters,E.type),O={detail:L.printNode(4,I,h)};return{isSnippet:d,insertText:v,labelDetails:O}}function Nze(e,t,r,i,o,s){const c=e.getDeclarations();if(!(c&&c.length))return;const f=i.getTypeChecker(),d=c[0],v=Ol(Ia(d),!1),h=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),C=33554432|(Rp(r,s)===0?268435456:0);switch(d.kind){case 168:case 169:case 170:case 171:{let L=h.flags&1048576&&h.types.length<10?f.getUnionType(h.types,2):h;if(L.flags&1048576){const V=yn(L.types,H=>f.getSignaturesOfType(H,0).length>0);if(V.length===1)L=V[0];else return}if(f.getSignaturesOfType(L,0).length!==1)return;const O=f.typeToTypeNode(L,t,C,Yu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!O||!Mh(O))return;let k;if(s.includeCompletionsWithSnippetText){const V=N.createEmptyStatement();k=N.createBlock([V],!0),eK(V,{kind:0,order:0})}else k=N.createBlock([],!0);const G=O.parameters.map(V=>N.createParameterDeclaration(void 0,V.dotDotDotToken,V.name,void 0,void 0,V.initializer));return N.createMethodDeclaration(void 0,void 0,v,void 0,void 0,G,void 0,k)}default:return}}function _ne(e){let t;const r=gr.createWriter(_b(e)),i=oE(e,r),o=Ka(Ti({},r),{write:C=>s(C,()=>r.write(C)),nonEscapingWrite:r.write,writeLiteral:C=>s(C,()=>r.writeLiteral(C)),writeStringLiteral:C=>s(C,()=>r.writeStringLiteral(C)),writeSymbol:(C,L)=>s(C,()=>r.writeSymbol(C,L)),writeParameter:C=>s(C,()=>r.writeParameter(C)),writeComment:C=>s(C,()=>r.writeComment(C)),writeProperty:C=>s(C,()=>r.writeProperty(C))});return{printSnippetList:c,printAndFormatSnippetList:d,printNode:v,printAndFormatNode:E};function s(C,L){const I=GT(C);if(I!==C){const O=r.getTextPos();L();const k=r.getTextPos();t=Bn(t||(t=[]),{newText:I,span:{start:O,length:k-O}})}else L()}function c(C,L,I){const O=f(C,L,I);return t?gr.applyChanges(O,t):O}function f(C,L,I){return t=void 0,o.clear(),i.writeList(C,L,I,o),o.getText()}function d(C,L,I,O){const k={text:f(C,L,I),getLineAndCharacterOfPosition(ne){return cl(this,ne)}},G=K9(O,I),V=Ga(L,ne=>{const Y=gr.assignPositionsToNode(ne);return Rc.formatNodeGivenIndentation(Y,k,I.languageVariant,0,0,Ka(Ti({},O),{options:G}))}),H=t?vy(ya(V,t),(ne,Y)=>mM(ne.span,Y.span)):V;return gr.applyChanges(k.text,H)}function v(C,L,I){const O=h(C,L,I);return t?gr.applyChanges(O,t):O}function h(C,L,I){return t=void 0,o.clear(),i.writeNode(C,L,I,o),o.getText()}function E(C,L,I,O){const k={text:h(C,L,I),getLineAndCharacterOfPosition(Y){return cl(this,Y)}},G=K9(O,I),V=gr.assignPositionsToNode(L),H=Rc.formatNodeGivenIndentation(V,k,I.languageVariant,0,0,Ka(Ti({},O),{options:G})),ne=t?vy(ya(H,t),(Y,$)=>mM(Y.span,$.span)):H;return gr.applyChanges(k.text,ne)}}function w2e(e){const t=e.fileName?void 0:X_(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return EL(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:X_(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function Oze(e,t,r){const i=e.exportName==="default",o=!!e.isPackageJsonImport;return x2e(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}}function Pze(e,t,r,i,o,s,c){const f=t.replacementSpan,d=jw(o,c,GT(r.moduleSpecifier)),v=r.isDefaultExport?1:r.exportName==="export="?2:0,h=c.includeCompletionsWithSnippetText?"$1":"",E=Yu.getImportKind(o,v,s,!0),C=t.couldBeTypeOnlyImportSpecifier,L=t.isTopLevelTypeOnly?` ${vo(154)} `:" ",I=C?`${vo(154)} `:"",O=i?";":"";switch(E){case 3:return{replacementSpan:f,insertText:`import${L}${GT(e)}${h} = require(${d})${O}`};case 1:return{replacementSpan:f,insertText:`import${L}${GT(e)}${h} from ${d}${O}`};case 2:return{replacementSpan:f,insertText:`import${L}* as ${GT(e)} from ${d}${O}`};case 0:return{replacementSpan:f,insertText:`import${L}{ ${I}${GT(e)}${h} } from ${d}${O}`}}}function D2e(e,t,r){return/^\d+$/.test(r)?r:jw(e,t,r)}function Mze(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function pne(e){if(Q6(e))return X_(e.moduleSymbol.name);if(EL(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function mne(e,t,r,i,o,s,c,f,d,v,h,E,C,L,I,O,k,G,V,H,ne,Y,$,M,de,re=!1){var be;const ae=sl(),W=rqe(o),ce=B9(c),me=d.getTypeChecker(),Ee=new Map;for(let te=0;te<e.length;te++){const Qe=e[te],Ve=Y==null?void 0:Y[te],Ge=nU(Qe,v,Ve,E,!!G);if(!Ge||Ee.get(Ge.name)&&(!Ve||!T2e(Ve))||E===1&&$&&!xe(Qe,$))continue;const{name:ze,needsConvertPropertyAccess:Oe}=Ge,Me=(be=$==null?void 0:$[Eo(Qe)])!=null?be:pu.LocationPriority,Ye=aqe(Qe,me)?pu.Deprecated(Me):Me,We=Ize(Qe,Ye,r,i,o,s,c,f,d,ze,Oe,Ve,ne,k,V,H,ce,L,C,E,I,M,de,re);if(!We)continue;const Fe=(!Ve||E2e(Ve))&&!(Qe.parent===void 0&&!kt(Qe.declarations,st=>st.getSourceFile()===o.getSourceFile()));Ee.set(ze,Fe),Iv(t,We,Z6,!0)}return h("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(sl()-ae)),{has:te=>Ee.has(te),add:te=>Ee.set(te,!0)};function xe(te,Qe){let Ve=te.flags;if(!Ji(o)){if(Vl(o.parent))return!0;if(W&&te.valueDeclaration===W)return!1;const Ge=gf(te,me);if(c.externalModuleIndicator&&!L.allowUmdGlobalAccess&&Qe[Eo(te)]===pu.GlobalsOrKeywords&&(Qe[Eo(Ge)]===pu.AutoImportSuggestions||Qe[Eo(Ge)]===pu.LocationPriority))return!1;if(Ve|=kk(Ge),s9(o))return!!(Ve&1920);if(O)return bne(te,me)}return!!(Ve&111551)}}function Fze(e){const t=Bze(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function Bze(e){const t=[],r=new Map;let i=e;for(;i&&!Xa(i);){if(Y1(i)){const o=i.label.text;r.has(o)||(r.set(o,!0),t.push({name:o,kindModifiers:"",kind:"label",sortText:pu.LocationPriority}))}i=i.parent}return t}function R2e(e,t,r,i,o,s,c){if(o.source==="SwitchCases/")return{type:"cases"};if(o.data){const H=O2e(o.name,o.data,e,s);if(H){const{contextToken:ne,previousToken:Y}=tU(i,r);return{type:"symbol",symbol:H.symbol,location:Vf(r,i),previousToken:Y,contextToken:ne,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:H.origin}}}const f=e.getCompilerOptions(),d=N2e(e,t,r,f,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!d)return{type:"none"};if(d.kind!==0)return{type:"request",request:d};const{symbols:v,literals:h,location:E,completionKind:C,symbolToOriginInfoMap:L,contextToken:I,previousToken:O,isJsxInitializer:k,isTypeOnlyLocation:G}=d,V=In(h,H=>fne(r,c,H)===o.name);return V!==void 0?{type:"literal",literal:V}:Jt(v,(H,ne)=>{const Y=L[ne],$=nU(H,ts(f),Y,C,d.isJsxIdentifierExpected);return $&&$.name===o.name&&(o.source==="ClassMemberSnippet/"&&H.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&H.flags&8196||pne(Y)===o.source)?{type:"symbol",symbol:H,location:E,origin:Y,contextToken:I,previousToken:O,isJsxInitializer:k,isTypeOnlyLocation:G}:void 0})||{type:"none"}}function Gze(e,t,r,i,o,s,c,f,d){const v=e.getTypeChecker(),h=e.getCompilerOptions(),{name:E,source:C,data:L}=o,{previousToken:I,contextToken:O}=tU(i,r);if(lS(r,i,I))return lU.getStringLiteralCompletionDetails(E,r,i,I,v,h,s,d,f);const k=R2e(e,t,r,i,o,s,f);switch(k.type){case"request":{const{request:G}=k;switch(G.kind){case 1:return Cb.getJSDocTagNameCompletionDetails(E);case 2:return Cb.getJSDocTagCompletionDetails(E);case 3:return Cb.getJSDocParameterNameCompletionDetails(E);case 4:return kt(G.keywordCompletions,V=>V.name===E)?hne(E,"keyword",5):void 0;default:return D.assertNever(G)}}case"symbol":{const{symbol:G,location:V,contextToken:H,origin:ne,previousToken:Y}=k,{codeActions:$,sourceDisplay:M}=Uze(E,V,H,ne,G,e,s,h,r,i,Y,c,f,L,C,d),de=une(ne)?ne.symbolName:G.name;return gne(G,de,v,r,V,d,$,M)}case"literal":{const{literal:G}=k;return hne(fne(r,f,G),"string",typeof G=="string"?8:7)}case"cases":{const{entry:G,importAdder:V}=I2e(O.parent,r,f,e.getCompilerOptions(),s,e,void 0);if(V.hasFixes()){const H=gr.ChangeTracker.with({host:s,formatContext:c,preferences:f},V.writeFixes);return{name:G.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:H,description:p2([_.Includes_imports_of_types_referenced_by_0,E])}]}}return{name:G.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Ane().some(G=>G.name===E)?hne(E,"keyword",5):void 0;default:D.assertNever(k)}}function hne(e,t,r){return eP(e,"",t,[Od(e,r)])}function gne(e,t,r,i,o,s,c,f){const{displayParts:d,documentation:v,symbolKind:h,tags:E}=r.runWithCancellationToken(s,C=>zy.getSymbolDisplayPartsDocumentationAndSymbolKind(C,e,i,o,o,7));return eP(t,zy.getSymbolModifiers(r,e),h,d,v,E,c,f)}function eP(e,t,r,i,o,s,c,f){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:c,source:f,sourceDisplay:f}}function Uze(e,t,r,i,o,s,c,f,d,v,h,E,C,L,I,O){if(L!=null&&L.moduleSpecifier&&h&&j2e(r||h).replacementSpan)return{codeActions:void 0,sourceDisplay:[jf(L.moduleSpecifier)]};if(I==="ClassMemberSnippet/"){const{importAdder:$}=k2e(c,s,f,C,e,o,t,v,r,E);if($)return{sourceDisplay:void 0,codeActions:[{changes:gr.ChangeTracker.with({host:c,formatContext:E,preferences:C},$.writeFixes),description:p2([_.Includes_imports_of_types_referenced_by_0,e])}]}}if(E2e(i)){const $=Yu.getPromoteTypeOnlyCompletionAction(d,i.declaration.name,s,c,E,C);return D.assertIsDefined($,"Expected to have a code action for promoting type-only alias"),{codeActions:[$],sourceDisplay:void 0}}if(!i||!(Q6(i)||EL(i)))return{codeActions:void 0,sourceDisplay:void 0};const k=i.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:G}=i,V=k.getMergedSymbol(gf(o.exportSymbol||o,k)),H=(r==null?void 0:r.kind)===29&&od(r.parent),{moduleSpecifier:ne,codeAction:Y}=Yu.getImportCompletionAction(V,G,L==null?void 0:L.exportMapKey,d,e,H,c,s,E,h&&je(h)?h.getStart(d):v,C,O);return D.assert(!(L!=null&&L.moduleSpecifier)||ne===L.moduleSpecifier),{sourceDisplay:[jf(ne)],codeActions:[Y]}}function Vze(e,t,r,i,o,s,c){const f=R2e(e,t,r,i,o,s,c);return f.type==="symbol"?f.symbol:void 0}function jze(e,t,r){return Jt(t&&(t.isUnion()?t.types:[t]),i=>{const o=i&&i.symbol;return o&&o.flags&424&&!F_e(o)?yne(o,e,r):void 0})}function Hze(e,t,r,i){const{parent:o}=e;switch(e.kind){case 79:return O9(e,i);case 63:switch(o.kind){case 257:return i.getContextualType(o.initializer);case 223:return i.getTypeAtLocation(o.left);case 288:return i.getContextualTypeForJsxAttribute(o);default:return}case 103:return i.getContextualType(o);case 82:const s=si(o,ow);return s?tZ(s,i):void 0;case 18:return aw(o)&&!Fy(o.parent)&&!e2(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:const c=xP.getArgumentInfoForCompletions(e,t,r);return c?i.getContextualTypeForArgumentAtIndex(c.invocation,c.argumentIndex+(e.kind===27?1:0)):P9(e.kind)&&br(o)&&P9(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e)}}function yne(e,t,r){const i=r.getAccessibleSymbolChain(e,t,67108863,!1);return i?ds(i):e.parent&&(Wze(e.parent)?e:yne(e.parent,t,r))}function Wze(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===308))}function N2e(e,t,r,i,o,s,c,f,d,v){const h=e.getTypeChecker(),E=L2e(r,i);let C=sl(),L=oa(r,o);t("getCompletionData: Get current token: "+(sl()-C)),C=sl();const I=Vy(r,o,L);t("getCompletionData: Is inside comment: "+(sl()-C));let O=!1,k=!1;if(I){if(sbe(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{const Re=w_(o,r);if(!/[^\*|\s(/)]/.test(r.text.substring(Re,o)))return{kind:2}}}const ee=Kze(L,o);if(ee){if(ee.tagName.pos<=o&&o<=ee.tagName.end)return{kind:1};const Re=on(ee);if(Re&&(L=oa(r,o),(!L||!Ag(L)&&(L.parent.kind!==351||L.parent.name!==L))&&(O=Pe(Re))),!O&&_m(ee)&&(kl(ee.name)||ee.name.pos<=o&&o<=ee.name.end))return{kind:3,tag:ee}}if(!O){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}C=sl();const G=!O&&sd(r),V=tU(o,r),H=V.previousToken;let ne=V.contextToken;t("getCompletionData: Get previous token: "+(sl()-C));let Y=L,$,M=!1,de=!1,re=!1,be=!1,ae=!1,W=!1,ce,me=Vf(r,o),Ee=0,xe=!1,te=0;if(ne){const ee=j2e(ne);if(ee.keywordCompletion){if(ee.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[bze(ee.keywordCompletion)],isNewIdentifierLocation:ee.isNewIdentifierLocation};Ee=Tze(ee.keywordCompletion)}if(ee.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(te|=2,ce=ee,xe=ee.isNewIdentifierLocation),!ee.replacementSpan&&rn(ne))return t("Returning an empty list because completion was requested in an invalid position."),Ee?A2e(Ee,G,Ar()):void 0;let Re=ne.parent;if(ne.kind===24||ne.kind===28)switch(M=ne.kind===24,de=ne.kind===28,Re.kind){case 208:$=Re,Y=$.expression;const q=Dk($);if(kl(q)||(io(Y)||Xa(Y))&&Y.end===ne.pos&&Y.getChildCount(r)&&Jo(Y.getChildren(r)).kind!==21)return;break;case 163:Y=Re.left;break;case 264:Y=Re.name;break;case 202:Y=Re;break;case 233:Y=Re.getFirstToken(r),D.assert(Y.kind===100||Y.kind===103);break;default:return}else if(!ce){if(Re&&Re.kind===208&&(ne=Re,Re=Re.parent),L.parent===me)switch(L.kind){case 31:(L.parent.kind===281||L.parent.kind===283)&&(me=L);break;case 43:L.parent.kind===282&&(me=L);break}switch(Re.kind){case 284:ne.kind===43&&(be=!0,me=ne);break;case 223:if(!V2e(Re))break;case 282:case 281:case 283:W=!0,ne.kind===29&&(re=!0,me=ne);break;case 291:case 290:(H.kind===19||H.kind===79&&H.parent.kind===288)&&(W=!0);break;case 288:if(Re.initializer===H&&H.end<o){W=!0;break}switch(H.kind){case 63:ae=!0;break;case 79:W=!0,Re!==H.parent&&!Re.initializer&&Es(Re,63,r)&&(ae=H)}break}}}const Qe=sl();let Ve=5,Ge=!1,ze=!1,Oe=[],Me;const Ye=[],We=[],Fe=new Map,st=vn(),Ct=Mm(ee=>f2(ee?f.getPackageJsonAutoImportProvider():e,f));if(M||de)Qt();else if(re)Oe=h.getJsxIntrinsicTagNamesAt(me),D.assertEachIsDefined(Oe,"getJsxIntrinsicTagNames() should all be defined"),Zt(),Ve=1,Ee=0;else if(be){const ee=ne.parent.parent.openingElement.tagName,Re=h.getSymbolAtLocation(ee);Re&&(Oe=[Re]),Ve=1,Ee=0}else if(!Zt())return Ee?A2e(Ee,G,xe):void 0;t("getCompletionData: Semantic work: "+(sl()-Qe));const Et=H&&Hze(H,o,r,h),Vt=pa(Et&&(Et.isUnion()?Et.types:[Et]),ee=>ee.isLiteral()&&!(ee.flags&1024)?ee.value:void 0),tt=H&&Et&&jze(H,Et,h);return{kind:0,symbols:Oe,completionKind:Ve,isInSnippetScope:k,propertyAccessToConvert:$,isNewIdentifierLocation:xe,location:me,keywordFilters:Ee,literals:Vt,symbolToOriginInfoMap:Ye,recommendedCompletion:tt,previousToken:H,contextToken:ne,isJsxInitializer:ae,insideJsDocTagTypeExpression:O,symbolToSortTextMap:We,isTypeOnlyLocation:st,isJsxIdentifierExpected:W,isRightOfOpenTag:re,isRightOfDotOrQuestionDot:M||de,importStatementCompletion:ce,hasUnresolvedAutoImports:ze,flags:te};function at(ee){switch(ee.kind){case 344:case 351:case 345:case 347:case 349:case 352:case 353:return!0;case 348:return!!ee.constraint;default:return!1}}function on(ee){if(at(ee)){const Re=kp(ee)?ee.constraint:ee.typeExpression;return Re&&Re.kind===312?Re:void 0}if(zC(ee)||LK(ee))return ee.class}function Qt(){Ve=2;const ee=ob(Y),Re=O||ee&&!Y.isTypeOf||Ih(Y.parent)||E6(ne,r,h),q=s9(Y);if(ff(Y)||ee||Fr(Y)){const Rt=$l(Y.parent);Rt&&(xe=!0);let gt=h.getSymbolAtLocation(Y);if(gt&&(gt=gf(gt,h),gt.flags&1920)){const ft=h.getExportsOfModule(gt);D.assertEachIsDefined(ft,"getExportsOfModule() should all be defined");const fn=Ii=>h.isValidPropertyAccess(ee?Y:Y.parent,Ii.name),$n=Ii=>bne(Ii,h),li=Rt?Ii=>{var ki;return!!(Ii.flags&1920)&&!((ki=Ii.declarations)!=null&&ki.every(Hi=>Hi.parent===Y.parent))}:q?Ii=>$n(Ii)||fn(Ii):Re?$n:fn;for(const Ii of ft)li(Ii)&&Oe.push(Ii);if(!Re&>.declarations&>.declarations.some(Ii=>Ii.kind!==308&&Ii.kind!==264&&Ii.kind!==263)){let Ii=h.getTypeOfSymbolAtLocation(gt,Y).getNonOptionalType(),ki=!1;if(Ii.isNullableType()){const Hi=M&&!de&&s.includeAutomaticOptionalChainCompletions!==!1;(Hi||de)&&(Ii=Ii.getNonNullableType(),Hi&&(ki=!0))}Pn(Ii,!!(Y.flags&32768),ki)}return}}if(!Re){h.tryGetThisTypeAt(Y,!1);let Rt=h.getTypeAtLocation(Y).getNonOptionalType(),gt=!1;if(Rt.isNullableType()){const ft=M&&!de&&s.includeAutomaticOptionalChainCompletions!==!1;(ft||de)&&(Rt=Rt.getNonNullableType(),ft&&(gt=!0))}Pn(Rt,!!(Y.flags&32768),gt)}}function Pn(ee,Re,q){xe=!!ee.getStringIndexType(),de&&kt(ee.getCallSignatures())&&(xe=!0);const Rt=Y.kind===202?Y:Y.parent;if(E)for(const gt of ee.getApparentProperties())h.isValidPropertyAccessForCompletions(Rt,ee,gt)&&Hn(gt,!1,q);else Oe.push(...yn(aU(ee,h),gt=>h.isValidPropertyAccessForCompletions(Rt,ee,gt)));if(Re&&s.includeCompletionsWithInsertText){const gt=h.getPromisedTypeOfPromise(ee);if(gt)for(const ft of gt.getApparentProperties())h.isValidPropertyAccessForCompletions(Rt,gt,ft)&&Hn(ft,!0,q)}}function Hn(ee,Re,q){var Rt;const gt=Jt(ee.declarations,li=>si(Ia(li),Cs));if(gt){const li=kn(gt.expression),Ii=li&&h.getSymbolAtLocation(li),ki=Ii&&yne(Ii,ne,h);if(ki&&Lp(Fe,Eo(ki))){const Hi=Oe.length;Oe.push(ki);const ho=ki.parent;if(!ho||!x6(ho)||h.tryGetMemberInModuleExportsAndProperties(ki.name,ho)!==ki)Ye[Hi]={kind:$n(2)};else{const So=zc(X_(ho.name))?(Rt=y3(ho))==null?void 0:Rt.fileName:void 0,{moduleSpecifier:oo}=(Me||(Me=Yu.createImportSpecifierResolver(r,e,f,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:So,isFromPackageJson:!1,moduleSymbol:ho,symbol:ki,targetFlags:gf(ki,h).flags}],o,Fx(me))||{};if(oo){const ca={kind:$n(6),moduleSymbol:ho,isDefaultExport:!1,symbolName:ki.name,exportName:ki.name,fileName:So,moduleSpecifier:oo};Ye[Hi]=ca}}}else s.includeCompletionsWithInsertText&&(fn(ee),ft(ee),Oe.push(ee))}else fn(ee),ft(ee),Oe.push(ee);function ft(li){eqe(li)&&(We[Eo(li)]=pu.LocalDeclarationPriority)}function fn(li){s.includeCompletionsWithInsertText&&(Re&&Lp(Fe,Eo(li))?Ye[Oe.length]={kind:$n(8)}:q&&(Ye[Oe.length]={kind:16}))}function $n(li){return q?li|16:li}}function kn(ee){return je(ee)?ee:Fr(ee)?kn(ee.expression):void 0}function Zt(){return(we()||yt()||Qi()||Nt()||Ce()||_r()||pt()||wi()||(Zi(),1))===1}function _r(){return ie(ne)?(Ve=5,xe=!0,Ee=4,1):0}function wi(){const ee=j(ne),Re=ee&&h.getContextualType(ee.attributes);if(!Re)return 0;const q=ee&&h.getContextualType(ee.attributes,4);return Oe=ya(Oe,K(iU(Re,q,ee.attributes,h),ee.attributes.properties)),ue(),Ve=3,xe=!1,1}function Qi(){return ce?(xe=!0,ir(),1):0}function Zi(){Ee=he(ne)?5:1,Ve=1,xe=Ar(),H!==ne&&D.assert(!!H,"Expected 'contextToken' to be defined when different from 'previousToken'.");const ee=H!==ne?H.getStart():o,Re=Nn(ne,ee,r)||r;k=At(Re);const q=(st?0:111551)|788968|1920|2097152,Rt=H&&!Fx(H);Oe=ya(Oe,h.getSymbolsInScope(Re,q)),D.assertEachIsDefined(Oe,"getSymbolsInScope() should all be defined");for(let gt=0;gt<Oe.length;gt++){const ft=Oe[gt];if(!h.isArgumentsSymbol(ft)&&!kt(ft.declarations,fn=>fn.getSourceFile()===r)&&(We[Eo(ft)]=pu.GlobalsOrKeywords),Rt&&!(ft.flags&111551)){const fn=ft.declarations&&In(ft.declarations,mz);if(fn){const $n={kind:64,declaration:fn};Ye[gt]=$n}}}if(s.includeCompletionsWithInsertText&&Re.kind!==308){const gt=h.tryGetThisTypeAt(Re,!1,_i(Re.parent)?Re:void 0);if(gt&&!Zze(gt,r,h))for(const ft of aU(gt,h))Ye[Oe.length]={kind:1},Oe.push(ft),We[Eo(ft)]=pu.SuggestedClassMembers}ir(),st&&(Ee=ne&&bT(ne.parent)?6:7)}function Or(){return ce?!0:Ge||!s.includeCompletionsForModuleExports?!1:r.externalModuleIndicator||r.commonJsModuleIndicator||BQ(e.getCompilerOptions())?!0:mbe(e)}function At(ee){switch(ee.kind){case 308:case 225:case 291:case 238:return!0;default:return ka(ee)}}function vn(){return O||!!ce&&D1(me.parent)||!Ht(ne)&&(E6(ne,r,h)||Ih(me)||un(ne))}function Ht(ee){return ee&&(ee.kind===112&&(ee.parent.kind===183||GC(ee.parent))||ee.kind===129&&ee.parent.kind===179)}function un(ee){if(ee){const Re=ee.parent.kind;switch(ee.kind){case 58:return Re===169||Re===168||Re===166||Re===257||gx(Re);case 63:return Re===262;case 128:return Re===231;case 29:return Re===180||Re===213;case 94:return Re===165;case 150:return Re===235}}return!1}function ir(){var ee,Re;if(!Or()||(D.assert(!(c!=null&&c.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),c&&!c.source))return;te|=1;const Rt=H===ne&&ce?"":H&&je(H)?H.text.toLowerCase():"",gt=(ee=f.getModuleSpecifierCache)==null?void 0:ee.call(f),ft=P6(r,f,e,s,v),fn=(Re=f.getPackageJsonAutoImportProvider)==null?void 0:Re.call(f),$n=c?void 0:Ww(r,s,f);S2e("collectAutoImports",f,Me||(Me=Yu.createImportSpecifierResolver(r,e,f,s)),e,o,s,!!ce,Fx(me),Ii=>{ft.search(r.path,re,(ki,Hi)=>{if(!H_(ki,ts(f.getCompilationSettings()))||!c&&Lx(ki)||!st&&!ce&&!(Hi&111551)||st&&!(Hi&790504))return!1;const ho=ki.charCodeAt(0);return re&&(ho<65||ho>90)?!1:c?!0:q2e(ki,Rt)},(ki,Hi,ho,So)=>{if(c&&!kt(ki,hi=>c.source===X_(hi.moduleSymbol.name))||(ki=yn(ki,li),!ki.length))return;const oo=Ii.tryResolve(ki,ho)||{};if(oo==="failed")return;let ca=ki[0],Wi;oo!=="skipped"&&({exportInfo:ca=ki[0],moduleSpecifier:Wi}=oo);const Xr=ca.exportKind===1,ss=Xr&&vC(ca.symbol)||ca.symbol;cr(ss,{kind:Wi?32:4,moduleSpecifier:Wi,symbolName:Hi,exportMapKey:So,exportName:ca.exportKind===2?"export=":ca.symbol.name,fileName:ca.moduleFileName,isDefaultExport:Xr,moduleSymbol:ca.moduleSymbol,isFromPackageJson:ca.isFromPackageJson})}),ze=Ii.skippedAny(),te|=Ii.resolvedAny()?8:0,te|=Ii.resolvedBeyondLimit()?16:0});function li(Ii){const ki=si(Ii.moduleSymbol.valueDeclaration,Ji);if(!ki){const Hi=X_(Ii.moduleSymbol.name);return iS.nodeCoreModules.has(Hi)&&Ta(Hi,"node:")!==J9(r,e)?!1:$n?$n.allowsImportingAmbientModule(Ii.moduleSymbol,Ct(Ii.isFromPackageJson)):!0}return pZ(Ii.isFromPackageJson?fn:e,r,ki,s,$n,Ct(Ii.isFromPackageJson),gt)}}function cr(ee,Re){const q=Eo(ee);We[q]!==pu.GlobalsOrKeywords&&(Ye[Oe.length]=Re,We[q]=ce?pu.LocationPriority:pu.AutoImportSuggestions,Oe.push(ee))}function Mi(ee,Re){fr(me)||ee.forEach(q=>{if(!vi(q))return;const Rt=nU(q,ts(i),void 0,0,!1);if(!Rt)return;const{name:gt}=Rt,ft=Rze(q,gt,Re,e,f,i,s,d);if(!ft)return;const fn=Ti({kind:128},ft);te|=32,Ye[Oe.length]=fn,Oe.push(q)})}function vi(ee){return!!(ee.flags&8196)}function Nn(ee,Re,q){let Rt=ee;for(;Rt&&!SQ(Rt,Re,q);)Rt=Rt.parent;return Rt}function rn(ee){const Re=sl(),q=Hr(ee)||He(ee)||Ut(ee)||Mn(ee)||l5(ee);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(sl()-Re)),q}function Mn(ee){if(ee.kind===11)return!0;if(ee.kind===31&&ee.parent){if(me===ee.parent&&(me.kind===283||me.kind===282))return!1;if(ee.parent.kind===283)return me.parent.kind!==283;if(ee.parent.kind===284||ee.parent.kind===282)return!!ee.parent.parent&&ee.parent.parent.kind===281}return!1}function Ar(){if(ne){const ee=ne.parent.kind,Re=rU(ne);switch(Re){case 27:return ee===210||ee===173||ee===211||ee===206||ee===223||ee===181||ee===207;case 20:return ee===210||ee===173||ee===211||ee===214||ee===193;case 22:return ee===206||ee===178||ee===164;case 142:case 143:case 100:return!0;case 24:return ee===264;case 18:return ee===260||ee===207;case 63:return ee===257||ee===223;case 15:return ee===225;case 16:return ee===236;case 132:return ee===171||ee===300;case 41:return ee===171}if(tP(Re))return!0}return!1}function Hr(ee){return(aK(ee)||hz(ee))&&(g6(ee,o)||o===ee.end&&(!!ee.isUnterminated||aK(ee)))}function we(){const ee=$ze(ne);if(!ee)return 0;const q=(YO(ee.parent)?ee.parent:void 0)||ee,Rt=U2e(q,h);if(!Rt)return 0;const gt=h.getTypeFromTypeNode(q),ft=aU(Rt,h),fn=aU(gt,h),$n=new Set;return fn.forEach(li=>$n.add(li.escapedName)),Oe=ya(Oe,yn(ft,li=>!$n.has(li.escapedName))),Ve=0,xe=!0,1}function yt(){const ee=Oe.length,Re=zze(ne);if(!Re)return 0;Ve=0;let q,Rt;if(Re.kind===207){const gt=tqe(Re,h);if(gt===void 0)return Re.flags&33554432?2:(Ge=!0,0);const ft=h.getContextualType(Re,4),fn=(ft||gt).getStringIndexType(),$n=(ft||gt).getNumberIndexType();if(xe=!!fn||!!$n,q=iU(gt,ft,Re,h),Rt=Re.properties,q.length===0&&!$n)return Ge=!0,0}else{D.assert(Re.kind===203),xe=!1;const gt=qm(Re.parent);if(!nC(gt))return D.fail("Root declaration is not variable-like.");let ft=Uv(gt)||!!iu(gt)||gt.parent.parent.kind===247;if(!ft&>.kind===166&&(vt(gt.parent)?ft=!!h.getContextualType(gt.parent):(gt.parent.kind===171||gt.parent.kind===175)&&(ft=vt(gt.parent.parent)&&!!h.getContextualType(gt.parent.parent))),ft){const fn=h.getTypeAtLocation(Re);if(!fn)return 2;q=h.getPropertiesOfType(fn).filter($n=>h.isPropertyAccessible(Re,!1,!1,fn,$n)),Rt=Re.elements}}if(q&&q.length>0){const gt=Sn(q,D.checkDefined(Rt));Oe=ya(Oe,gt),ue(),Re.kind===207&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Wt(ee),Mi(gt,Re))}return 1}function Nt(){if(!ne)return 0;const ee=ne.kind===18||ne.kind===27?si(ne.parent,Zq):S9(ne)?si(ne.parent.parent,Zq):void 0;if(!ee)return 0;S9(ne)||(Ee=8);const{moduleSpecifier:Re}=ee.kind===272?ee.parent.parent:ee.parent;if(!Re)return xe=!0,ee.kind===272?2:0;const q=h.getSymbolAtLocation(Re);if(!q)return xe=!0,2;Ve=3,xe=!1;const Rt=h.getExportsAndPropertiesOfModule(q),gt=new Set(ee.elements.filter(fn=>!Pe(fn)).map(fn=>(fn.propertyName||fn.name).escapedText)),ft=Rt.filter(fn=>fn.escapedName!=="default"&&!gt.has(fn.escapedName));return Oe=ya(Oe,ft),ft.length||(Ee=0),1}function Ce(){var ee;const Re=ne&&(ne.kind===18||ne.kind===27)?si(ne.parent,tp):void 0;if(!Re)return 0;const q=rr(Re,Fm(Ji,$l));return Ve=5,xe=!1,(ee=q.locals)==null||ee.forEach((Rt,gt)=>{var ft,fn;Oe.push(Rt),(fn=(ft=q.symbol)==null?void 0:ft.exports)!=null&&fn.has(gt)&&(We[Eo(Rt)]=pu.OptionalMember)}),1}function pt(){const ee=Yze(r,ne,me,o);if(!ee)return 0;if(Ve=3,xe=!0,Ee=ne.kind===41?0:_i(ee)?2:3,!_i(ee))return 1;const Re=ne.kind===26?ne.parent.parent:ne.parent;let q=qc(Re)?Hu(Re):0;if(ne.kind===79&&!Pe(ne))switch(ne.getText()){case"private":q=q|8;break;case"static":q=q|32;break;case"override":q=q|16384;break}if(Rl(Re)&&(q|=32),!(q&8)){const Rt=_i(ee)&&q&16384?dT(am(ee)):pk(ee),gt=Ga(Rt,ft=>{const fn=h.getTypeAtLocation(ft);return q&32?(fn==null?void 0:fn.symbol)&&h.getPropertiesOfType(h.getTypeOfSymbolAtLocation(fn.symbol,ee)):fn&&h.getPropertiesOfType(fn)});Oe=ya(Oe,it(gt,ee.members,q)),Je(Oe,(ft,fn)=>{const $n=ft==null?void 0:ft.valueDeclaration;if($n&&qc($n)&&$n.name&&Cs($n.name)){const li={kind:512,symbolName:h.symbolToString(ft)};Ye[fn]=li}})}return 1}function pe(ee){return!!ee.parent&&Fa(ee.parent)&&Yl(ee.parent.parent)&&(QI(ee.kind)||Ag(ee))}function ie(ee){if(ee){const Re=ee.parent;switch(ee.kind){case 20:case 27:return Yl(ee.parent)?ee.parent:void 0;default:if(pe(ee))return Re.parent}}}function he(ee){if(ee){let Re;const q=rr(ee.parent,Rt=>_i(Rt)?"quit":el(Rt)&&Re===Rt.body?!0:(Re=Rt,!1));return q&&q}}function j(ee){if(ee){const Re=ee.parent;switch(ee.kind){case 31:case 30:case 43:case 79:case 208:case 289:case 288:case 290:if(Re&&(Re.kind===282||Re.kind===283)){if(ee.kind===31){const q=Dc(ee.pos,r,void 0);if(!Re.typeArguments||q&&q.kind===43)break}return Re}else if(Re.kind===288)return Re.parent.parent;break;case 10:if(Re&&(Re.kind===288||Re.kind===290))return Re.parent.parent;break;case 19:if(Re&&Re.kind===291&&Re.parent&&Re.parent.kind===288)return Re.parent.parent.parent;if(Re&&Re.kind===290)return Re.parent.parent;break}}}function He(ee){const Re=ee.parent,q=Re.kind;switch(ee.kind){case 27:return q===257||ln(ee)||q===240||q===263||Xe(q)||q===261||q===204||q===262||_i(Re)&&!!Re.typeParameters&&Re.typeParameters.end>=ee.pos;case 24:return q===204;case 58:return q===205;case 22:return q===204;case 20:return q===295||Xe(q);case 18:return q===263;case 29:return q===260||q===228||q===261||q===262||gx(q);case 124:return q===169&&!_i(Re.parent);case 25:return q===166||!!Re.parent&&Re.parent.kind===204;case 123:case 121:case 122:return q===166&&!Yl(Re.parent);case 128:return q===273||q===278||q===271;case 137:case 151:return!oU(ee);case 79:if(q===273&&ee===Re.name&&ee.text==="type")return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 138:return!0;case 154:return q!==273;case 41:return Xa(ee.parent)&&!uc(ee.parent)}if(tP(rU(ee))&&oU(ee)||pe(ee)&&(!je(ee)||QI(rU(ee))||Pe(ee)))return!1;switch(rU(ee)){case 126:case 84:case 85:case 136:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 132:return ro(ee.parent)}if(rr(ee.parent,_i)&&ee===H&&Ze(ee,o))return!1;const gt=ub(ee.parent,169);if(gt&&ee!==H&&_i(H.parent.parent)&&o<=H.end){if(Ze(ee,H.end))return!1;if(ee.kind!==63&&(q8(gt)||m3(gt)))return!0}return Ag(ee)&&!u_(ee.parent)&&!fm(ee.parent)&&!(_i(ee.parent)&&(ee!==H||o>H.end))}function Ze(ee,Re){return ee.kind!==63&&(ee.kind===26||!A_(ee.end,Re,r))}function Xe(ee){return gx(ee)&&ee!==173}function Ut(ee){if(ee.kind===8){const Re=ee.getFullText();return Re.charAt(Re.length-1)==="."}return!1}function ln(ee){return ee.parent.kind===258&&!E6(ee,r,h)}function Sn(ee,Re){if(Re.length===0)return ee;const q=new Set,Rt=new Set;for(const ft of Re){if(ft.kind!==299&&ft.kind!==300&&ft.kind!==205&&ft.kind!==171&&ft.kind!==174&&ft.kind!==175&&ft.kind!==301||Pe(ft))continue;let fn;if(n2(ft))Er(ft,q);else if(ms(ft)&&ft.propertyName)ft.propertyName.kind===79&&(fn=ft.propertyName.escapedText);else{const $n=Ia(ft);fn=$n&&J_($n)?hk($n):void 0}fn!==void 0&&Rt.add(fn)}const gt=ee.filter(ft=>!Rt.has(ft.escapedName));return mt(q,gt),gt}function Er(ee,Re){const q=ee.expression,Rt=h.getSymbolAtLocation(q),gt=Rt&&h.getTypeOfSymbolAtLocation(Rt,q),ft=gt&>.properties;ft&&ft.forEach(fn=>{Re.add(fn.name)})}function ue(){Oe.forEach(ee=>{var Re;if(ee.flags&16777216){const q=Eo(ee);We[q]=(Re=We[q])!=null?Re:pu.OptionalMember}})}function mt(ee,Re){if(ee.size!==0)for(const q of Re)ee.has(q.name)&&(We[Eo(q)]=pu.MemberDeclaredBySpreadAssignment)}function Wt(ee){var Re;for(let q=ee;q<Oe.length;q++){const Rt=Oe[q],gt=Eo(Rt),ft=Ye==null?void 0:Ye[q],fn=ts(i),$n=nU(Rt,fn,ft,0,!1);if($n){const li=(Re=We[gt])!=null?Re:pu.LocationPriority,{name:Ii}=$n;We[gt]=pu.ObjectLiteralProperty(li,Ii)}}}function it(ee,Re,q){const Rt=new Set;for(const gt of Re){if(gt.kind!==169&>.kind!==171&>.kind!==174&>.kind!==175||Pe(gt)||zd(gt,8)||Ja(gt)!==!!(q&32))continue;const ft=U1(gt.name);ft&&Rt.add(ft)}return ee.filter(gt=>!Rt.has(gt.escapedName)&&!!gt.declarations&&!(s_(gt)&8)&&!(gt.valueDeclaration&&ad(gt.valueDeclaration)))}function K(ee,Re){const q=new Set,Rt=new Set;for(const ft of Re)Pe(ft)||(ft.kind===288?q.add(ft.name.escapedText):WT(ft)&&Er(ft,Rt));const gt=ee.filter(ft=>!q.has(ft.escapedName));return mt(Rt,gt),gt}function Pe(ee){return ee.getStart(r)<=o&&o<=ee.getEnd()}}function zze(e){if(e){const{parent:t}=e;switch(e.kind){case 18:case 27:if(Is(t)||Qm(t))return t;break;case 41:return uc(t)?si(t.parent,Is):void 0;case 79:return e.text==="async"&&u_(e.parent)?e.parent.parent:void 0}}}function tU(e,t){const r=Dc(e,t);return r&&e<=r.end&&(yg(r)||Dd(r.kind))?{contextToken:Dc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function O2e(e,t,r,i){const o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),c=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(D.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!c)return;let f=t.exportName==="export="?s.resolveExternalModuleSymbol(c):s.tryGetMemberInModuleExportsAndProperties(t.exportName,c);return f?(f=t.exportName==="default"&&vC(f)||f,{symbol:f,origin:Oze(t,e,c)}):void 0}function nU(e,t,r,i,o){if(gze(r))return;const s=_ze(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&ON(s.charCodeAt(0))||nO(e))return;const c={name:s,needsConvertPropertyAccess:!1};if(H_(s,t,o?1:0)||e.valueDeclaration&&ad(e.valueDeclaration))return c;switch(i){case 3:return une(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return c;default:D.assertNever(i)}}function P2e(e,t){if(!t)return M2e(e);const r=e+8+1;return nP[r]||(nP[r]=M2e(e).filter(i=>!qze(mT(i.name))))}function M2e(e){return nP[e]||(nP[e]=Ane().filter(t=>{const r=mT(t.name);switch(e){case 0:return!1;case 1:return B2e(r)||r===136||r===142||r===154||r===143||r===126||Bw(r)&&r!==155;case 5:return B2e(r);case 2:return tP(r);case 3:return F2e(r);case 4:return QI(r);case 6:return Bw(r)||r===85;case 7:return Bw(r);case 8:return r===154;default:return D.assertNever(e)}}))}function qze(e){switch(e){case 126:case 131:case 160:case 134:case 136:case 92:case 159:case 117:case 138:case 118:case 140:case 141:case 142:case 143:case 144:case 148:case 149:case 161:case 121:case 122:case 123:case 146:case 152:case 153:case 154:case 156:case 157:return!0;default:return!1}}function F2e(e){return e===146}function tP(e){switch(e){case 126:case 127:case 135:case 137:case 151:case 132:case 136:case 161:return!0;default:return gz(e)}}function B2e(e){return e===132||e===133||e===128||e===150||e===154||!Y3(e)&&!tP(e)}function rU(e){var t;return je(e)?(t=ib(e))!=null?t:0:e.kind}function Jze(e,t){const r=[];if(e){const i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,c=i.getLineAndCharacterOfPosition(t).line;(Yc(o)||au(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===c&&r.push({name:vo(130),kind:"keyword",kindModifiers:"",sortText:pu.GlobalsOrKeywords})}return r}function Kze(e,t){return rr(e,r=>tk(r)&&h6(r,t)?!0:th(r)?"quit":!1)}function iU(e,t,r,i){const o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,c=Xze(s,r,i);return s.isClass()&&G2e(c)?[]:o?yn(c,f):c;function f(d){return Le(d.declarations)?kt(d.declarations,v=>v.parent!==r):!0}}function Xze(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(yn(e.types,i=>!(i.flags&134348796||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&G2e(i.getApparentProperties())))):e.getApparentProperties()}function G2e(e){return kt(e,t=>!!(s_(t)&24))}function aU(e,t){return e.isUnion()?D.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):D.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Yze(e,t,r,i){var o;switch(r.kind){case 354:return si(r.parent,Nx);case 1:const s=si(rl(so(r.parent,Ji).statements),Nx);if(s&&!Es(s,19,e))return s;break;case 79:{if(ib(r)||ro(r.parent)&&r.parent.initializer===r)return;if(oU(r))return rr(r,Nx)}}if(t){if(r.kind===135||je(t)&&ro(t.parent)&&_i(r))return rr(t,_i);switch(t.kind){case 63:return;case 26:case 19:return oU(r)&&r.parent.name===r?r.parent.parent:si(r,Nx);case 18:case 27:return si(t.parent,Nx);default:if(Nx(r)){if(cl(e,t.getEnd()).line!==cl(e,i).line)return r;const s=_i(t.parent.parent)?tP:F2e;return s(t.kind)||t.kind===41||je(t)&&s((o=ib(t))!=null?o:0)?t.parent.parent:void 0}return}}}function $ze(e){if(!e)return;const t=e.parent;switch(e.kind){case 18:if(yf(t))return t;break;case 26:case 27:case 79:if(t.kind===168&&yf(t.parent))return t.parent;break}}function U2e(e,t){if(!e)return;if(Gi(e)&&h3(e.parent))return t.getTypeArgumentConstraint(e);const r=U2e(e.parent,t);if(r)switch(e.kind){case 168:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 190:case 184:case 189:return r}}function oU(e){return e.parent&&u3(e.parent)&&Nx(e.parent.parent)}function Qze(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&Obe(r)&&i===r.getStart(e)+1;case"#":return!!r&&Oi(r)&&!!wc(r);case"<":return!!r&&r.kind===29&&(!br(r.parent)||V2e(r.parent));case"/":return!!r&&(As(r)?!!zN(r):r.kind===43&&Zx(r.parent));case" ":return!!r&&$k(r)&&r.parent.kind===308;default:return D.assertNever(t)}}function V2e({left:e}){return kl(e)}function Zze(e,t,r){const i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;const s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function eqe(e){return!!(e.valueDeclaration&&Hu(e.valueDeclaration)&32&&_i(e.valueDeclaration.parent))}function tqe(e,t){const r=t.getContextualType(e);if(r)return r;const i=jv(e.parent);if(br(i)&&i.operatorToken.kind===63&&e===i.left)return t.getTypeAtLocation(i);if(vt(i))return t.getContextualType(i)}function j2e(e){var t,r,i;let o,s=!1;const c=f();return{isKeywordOnlyCompletion:s,keywordCompletion:o,isNewIdentifierLocation:!!(c||o===154),isTopLevelTypeOnly:!!((r=(t=si(c,Yc))==null?void 0:t.importClause)!=null&&r.isTypeOnly)||!!((i=si(c,_u))!=null&&i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!c&&W2e(c,e),replacementSpan:nqe(c)};function f(){const d=e.parent;if(_u(d))return o=e.kind===154?void 0:154,vne(d.moduleReference)?d:void 0;if(W2e(d,e)&&z2e(d.parent))return d;if(My(d)||Yv(d)){if(!d.parent.isTypeOnly&&(e.kind===18||e.kind===100||e.kind===27)&&(o=154),z2e(d))if(e.kind===19||e.kind===79)s=!0,o=158;else return d.parent.parent;return}if($k(e)&&Ji(d))return o=154,e;if($k(e)&&Yc(d))return o=154,vne(d.moduleSpecifier)?d:void 0}}function nqe(e){var t,r,i;if(!e)return;const o=(t=rr(e,Fm(Yc,_u)))!=null?t:e,s=o.getSourceFile();if(MT(o,s))return dd(o,s);D.assert(o.kind!==100&&o.kind!==273);const c=o.kind===269?(i=H2e((r=o.importClause)==null?void 0:r.namedBindings))!=null?i:o.moduleSpecifier:o.moduleReference,f={pos:o.getFirstToken().getStart(),end:c.pos};if(MT(f,s))return r0(f)}function H2e(e){var t;return In((t=si(e,My))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&Lx(r.name.text)&&((i=Dc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==27})}function W2e(e,t){return Nd(e)&&(e.isTypeOnly||t===e.name&&S9(t))}function z2e(e){if(!vne(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(My(e)){const t=H2e(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function vne(e){var t;return kl(e)?!0:!((t=si(eh(e)?e.expression:e,As))!=null&&t.text)}function rqe(e){return rr(e,r=>CT(r)||iqe(r)||Ya(r)?"quit":Xi(r))}function iqe(e){return e.parent&&Xs(e.parent)&&e.parent.body===e}function bne(e,t,r=new Map){return i(e)||i(gf(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Lp(r,Eo(o))&&t.getExportsOfModule(o).some(s=>bne(s,t,r))}}function aqe(e,t){const r=gf(e,t).declarations;return!!Le(r)&&Zn(r,q9)}function q2e(e,t){if(t.length===0)return!0;let r=!1,i,o=0;const s=e.length;for(let c=0;c<s;c++){const f=e.charCodeAt(c),d=t.charCodeAt(o);if((f===d||f===oqe(d))&&(r||(r=i===void 0||97<=i&&i<=122&&65<=f&&f<=90||i===95&&f!==95),r&&o++,o===t.length))return!0;i=f}return!1}function oqe(e){return 97<=e&&e<=122?e-32:e}var sU,Ene,pu,Tne,Sne,xne,nP,Ane,sqe=S({"src/services/completions.ts"(){Qr(),Dne(),sU=100,Ene=1e3,pu={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(e){return"z"+e},ObjectLiteralProperty(e,t){return`${e}\0${t}\0`},SortBelow(e){return e+"1"}},Tne=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e))(Tne||{}),Sne=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(Sne||{}),xne=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(xne||{}),nP=[],Ane=Ld(()=>{const e=[];for(let t=81;t<=162;t++)e.push({name:vo(t),kind:"keyword",kindModifiers:"",sortText:pu.GlobalsOrKeywords});return e})}});function Cne(){const e=new Map;function t(r){const i=e.get(r.name);(!i||wne[i.kind]<wne[r.kind])&&e.set(r.name,r)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function lqe(e,t,r,i,o,s,c,f,d){if(fbe(e,t)){const v=xqe(e,t,i,o);return v&&J2e(v)}if(lS(e,t,r)){if(!r||!As(r))return;const v=X2e(e,r,t,s.getTypeChecker(),i,o,f);return cqe(v,r,e,o,s,c,i,f,t,d)}}function cqe(e,t,r,i,o,s,c,f,d,v){if(e===void 0)return;const h=OQ(t);switch(e.kind){case 0:return J2e(e.paths);case 1:{const E=mH();return mne(e.symbols,E,t,t,r,d,r,i,o,99,s,4,f,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,v),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:h,entries:E}}case 2:{const E=e.types.map(C=>({name:C.value,kindModifiers:"",kind:"string",sortText:pu.LocationPriority,replacementSpan:NQ(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:h,entries:E}}default:return D.assertNever(e)}}function uqe(e,t,r,i,o,s,c,f,d){if(!i||!As(i))return;const v=X2e(t,i,r,o,s,c,d);return v&&dqe(e,i,v,t,o,f)}function dqe(e,t,r,i,o,s){switch(r.kind){case 0:{const c=In(r.paths,f=>f.name===e);return c&&eP(e,K2e(c.extension),c.kind,[jf(e)])}case 1:{const c=In(r.symbols,f=>f.name===e);return c&&gne(c,c.name,o,i,t,s)}case 2:return In(r.types,c=>c.value===e)?eP(e,"","string",[jf(e)]):void 0;default:return D.assertNever(r)}}function J2e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:c,extension:f})=>({name:o,kind:s,kindModifiers:K2e(f),sortText:pu.LocationPriority,replacementSpan:c}))}}function K2e(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return D.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return D.assertNever(e)}}function X2e(e,t,r,i,o,s,c){const f=Y2e(t.parent);switch(f.kind){case 198:{const C=Y2e(f.parent);switch(C.kind){case 230:case 180:{const O=rr(f,k=>k.parent===C);return O?{kind:2,types:rP(i.getTypeArgumentConstraint(O)),isNewIdentifier:!1}:void 0}case 196:const{indexType:L,objectType:I}=C;return h6(L,r)?$2e(i.getTypeFromTypeNode(I)):void 0;case 202:return{kind:0,paths:Z2e(e,t,o,s,i,c)};case 189:{if(!ep(C.parent))return;const O=fqe(C,f);return{kind:2,types:rP(i.getTypeArgumentConstraint(C)).filter(G=>!Ur(O,G.value)),isNewIdentifier:!1}}default:return}}case 299:return Is(f.parent)&&f.name===t?pqe(i,f.parent):d()||d(0);case 209:{const{expression:C,argumentExpression:L}=f;return t===Ws(L)?$2e(i.getTypeAtLocation(C)):void 0}case 210:case 211:case 288:if(!Iqe(t)&&!hf(f)){const C=xP.getArgumentInfoForCompletions(f.kind===288?f.parent:t,r,e);return C&&_qe(C.invocation,t,C,i)||d()}case 269:case 275:case 280:return{kind:0,paths:Z2e(e,t,o,s,i,c)};case 292:const v=X9(i,f.parent.clauses),h=d();return h?{kind:2,types:h.types.filter(C=>!v.hasValue(C.value)),isNewIdentifier:!1}:void 0;default:return d()}function d(v=4){const h=rP(O9(t,i,v));if(h.length)return{kind:2,types:h,isNewIdentifier:!1}}}function Y2e(e){switch(e.kind){case 193:return YN(e);case 214:return jv(e);default:return e}}function fqe(e,t){return pa(e.types,r=>r!==t&&gb(r)&&Ho(r.literal)?r.literal.text:void 0)}function _qe(e,t,r,i){let o=!1;const s=new Map,c=[],f=od(e)?D.checkDefined(rr(t.parent,fm)):t;i.getResolvedSignatureForStringLiteralCompletions(e,f,c);const d=Ga(c,v=>{if(!Lu(v)&&r.argumentCount>v.parameters.length)return;let h=v.getTypeParameterAtPosition(r.argumentIndex);if(od(e)){const E=i.getTypeOfPropertyOfType(h,f.name.text);E&&(h=E)}return o=o||!!(h.flags&4),rP(h,s)});return Le(d)?{kind:2,types:d,isNewIdentifier:o}:void 0}function $2e(e){return e&&{kind:1,symbols:yn(e.getApparentProperties(),t=>!(t.valueDeclaration&&ad(t.valueDeclaration))),hasIndexSignature:eZ(e)}}function pqe(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:iU(r,i,t,e),hasIndexSignature:eZ(r)}}function rP(e,t=new Map){return e?(e=FQ(e),e.isUnion()?Ga(e.types,r=>rP(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Lp(t,e.value)?[e]:rt):rt}function TL(e,t,r){return{name:e,kind:t,extension:r}}function Lne(e){return TL(e,"directory",void 0)}function Q2e(e,t,r){const i=Cqe(e,t),o=e.length===0?void 0:Pc(t,e.length);return r.map(({name:s,kind:c,extension:f})=>Math.max(s.indexOf(Bs),s.indexOf(ZR))!==-1?{name:s,kind:c,extension:f,span:o}:{name:s,kind:c,extension:f,span:i})}function Z2e(e,t,r,i,o,s){return Q2e(t.text,t.getStart(e)+1,mqe(e,t,r,i,o,s))}function mqe(e,t,r,i,o,s){const c=ru(t.text),f=As(t)?wp(e,t):void 0,d=e.path,v=yi(d),h=Ine(r,1,e,o,s,f);return Lqe(c)||!r.baseUrl&&(Bm(c)||Uue(c))?hqe(c,v,r,i,d,h):bqe(c,v,f,r,i,h,o)}function Ine(e,t,r,i,o,s){return{extensionsToSearch:Ds(gqe(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o==null?void 0:o.importModuleSpecifierEnding,resolutionMode:s}}function hqe(e,t,r,i,o,s){return r.rootDirs?vqe(r.rootDirs,e,t,s,r,i,o):No(nD(e,t,s,i,!1,o).values())}function gqe(e,t){const r=t?pa(t.getAmbientModules(),s=>{const c=s.name.slice(1,-1);if(!(!c.startsWith("*.")||c.includes("/")))return c.slice(1)}):[],i=[...Mk(e),r],o=Tl(e);return A9(o)?TO(e,i):i}function yqe(e,t,r,i){e=e.map(s=>Ko(Bm(s)?s:Bi(t,s)));const o=Jt(e,s=>Rv(s,r,t,i)?r.substr(s.length):void 0);return NA([...e.map(s=>Bi(s,o)),r],ox,Uu)}function vqe(e,t,r,i,o,s,c){const f=o.project||s.getCurrentDirectory(),d=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),v=yqe(e,f,r,d);return Ga(v,h=>No(nD(t,h,i,s,!0,c).values()))}function nD(e,t,r,i,o,s,c=Cne()){var f;e===void 0&&(e=""),e=ru(e),wv(e)||(e=yi(e)),e===""&&(e="."+Bs),e=Vu(e);const d=Dv(t,e),v=wv(d)?d:yi(d);if(!o){const L=Fbe(v,i);if(L){const O=Ck(L,i).typesVersions;if(typeof O=="object"){const k=(f=$5(O))==null?void 0:f.paths;if(k){const G=yi(L),V=d.slice(Vu(G).length);if(tAe(c,V,G,r,i,k))return c}}}}const h=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!V9(i,v))return c;const E=rZ(i,v,r.extensionsToSearch,void 0,["./*"]);if(E)for(let L of E){if(L=Ko(L),s&&pT(L,s,t,h)===0)continue;const{name:I,extension:O}=eAe(Eu(L),i.getCompilationSettings(),r);c.add(TL(I,"script",O))}const C=G9(i,v);if(C)for(const L of C){const I=Eu(Ko(L));I!=="@types"&&c.add(Lne(I))}return c}function eAe(e,t,r){const i=nE.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:Nh(i)};if(r.referenceKind===0)return{name:e,extension:Nh(e)};const o=fJ(r.endingPreference,r.resolutionMode,t,r.importingSourceFile);if(o===3){if(Ic(e,D7))return{name:e,extension:Nh(e)};const c=nE.tryGetJSExtensionForFile(e,t);return c?{name:z1(e,c),extension:c}:{name:e,extension:Nh(e)}}if((o===0||o===1)&&Ic(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:qd(e),extension:Nh(e)};const s=nE.tryGetJSExtensionForFile(e,t);return s?{name:z1(e,s),extension:s}:{name:e,extension:Nh(e)}}function tAe(e,t,r,i,o,s){const c=d=>s[d],f=(d,v)=>{const h=SC(d),E=SC(v),C=typeof h=="object"?h.prefix.length:d.length,L=typeof E=="object"?E.prefix.length:v.length;return qs(L,C)};return nAe(e,t,r,i,o,_g(s),c,f)}function nAe(e,t,r,i,o,s,c,f){let d=[],v;for(const h of s){if(h===".")continue;const E=h.replace(/^\.\//,""),C=c(h);if(C){const L=SC(E);if(!L)continue;const I=typeof L=="object"&&vM(L,t);I&&(v===void 0||f(h,v)===-1)&&(v=h,d=d.filter(k=>!k.matchedPattern)),(typeof L=="string"||v===void 0||f(h,v)!==1)&&d.push({matchedPattern:I,results:Eqe(E,C,t,r,i,o).map(({name:k,kind:G,extension:V})=>TL(k,G,V))})}}return d.forEach(h=>h.results.forEach(E=>e.add(E))),v!==void 0}function bqe(e,t,r,i,o,s,c){const{baseUrl:f,paths:d}=i,v=Cne(),h=Tl(i);if(f){const C=i.project||o.getCurrentDirectory(),L=Ko(Bi(C,f));nD(e,L,s,o,!1,void 0,v),d&&tAe(v,e,L,s,o,d)}const E=iAe(e);for(const C of Sqe(e,E,c))v.add(TL(C,"external module name",void 0));if(sAe(o,i,t,E,s,v),A9(h)){let C=!1;if(E===void 0)for(const L of Aqe(o,t)){const I=TL(L,"external module name",void 0);v.has(I.name)||(C=!0,v.add(I))}if(!C){let L=I=>{const O=Bi(I,"node_modules");V9(o,O)&&nD(e,O,s,o,!1,void 0,v)};if(E&&rJ(i)){const I=L;L=O=>{const k=pd(e);k.shift();let G=k.shift();if(!G)return I(O);if(Ta(G,"@")){const ne=k.shift();if(!ne)return I(O);G=Bi(G,ne)}const V=Bi(O,"node_modules",G),H=Bi(V,"package.json");if(U9(o,H)){const Y=Ck(H,o).exports;if(Y){if(typeof Y!="object"||Y===null)return;const $=_g(Y),M=k.join("/")+(k.length&&wv(e)?"/":""),de=r===99?["node","import","types"]:["node","require","types"];nAe(v,M,V,s,o,$,re=>dT(rAe(Y[re],de)),OX);return}}return I(O)}}mg(t,L)}}return No(v.values())}function rAe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Va(e)){for(const r in e)if(r==="default"||t.indexOf(r)>-1||F8(t,r)){const i=e[r];return rAe(i,t)}}}function iAe(e){return kne(e)?wv(e)?e:yi(e):void 0}function Eqe(e,t,r,i,o,s){if(!cc(e,"*"))return bu(e,"*")?rt:d(e,"script");const c=e.slice(0,e.length-1),f=CH(r,c);if(f===void 0)return e[e.length-2]==="/"?d(c,"directory"):Ga(t,h=>{var E;return(E=aAe("",i,h,o,s))==null?void 0:E.map(I=>{var O=I,{name:C}=O,L=Dj(O,["name"]);return Ti({name:c+C},L)})});return Ga(t,v=>aAe(f,i,v,o,s));function d(v,h){return Ta(v,r)?[{name:_T(v),kind:h,extension:void 0}]:rt}}function aAe(e,t,r,i,o){if(!o.readDirectory)return;const s=SC(r);if(s===void 0||Ha(s))return;const c=Dv(s.prefix),f=wv(s.prefix)?c:yi(c),d=wv(s.prefix)?"":Eu(c),v=kne(e),h=v?wv(e)?e:yi(e):void 0,E=v?Bi(f,d+h):f,C=Ko(s.suffix),L=Ko(Bi(t,E)),I=v?L:Vu(L)+d,O=C?"**/*"+C:"./*",k=pa(rZ(o,L,i.extensionsToSearch,void 0,[O]),H=>{const ne=V(H);if(ne){if(kne(ne))return Lne(pd(oAe(ne))[1]);const{name:Y,extension:$}=eAe(ne,o.getCompilationSettings(),i);return TL(Y,"script",$)}}),G=C?rt:pa(G9(o,L),H=>H==="node_modules"?void 0:Lne(H));return[...k,...G];function V(H){const ne=Tqe(Ko(H),I,C);return ne===void 0?void 0:oAe(ne)}}function Tqe(e,t,r){return Ta(e,t)&&cc(e,r)?e.slice(t.length,e.length-r.length):void 0}function oAe(e){return e[0]===Bs?e.slice(1):e}function Sqe(e,t,r){const o=r.getAmbientModules().map(s=>X_(s.name)).filter(s=>Ta(s,e)&&s.indexOf("*")<0);if(t!==void 0){const s=Vu(t);return o.map(c=>RI(c,s))}return o}function xqe(e,t,r,i){const o=oa(e,t),s=xh(e.text,o.pos),c=s&&In(s,I=>t>=I.pos&&t<=I.end);if(!c)return;const f=e.text.slice(c.pos,t),d=lAe.exec(f);if(!d)return;const[,v,h,E]=d,C=yi(e.path),L=h==="path"?nD(E,C,Ine(r,0,e),i,!0,e.path):h==="types"?sAe(i,r,C,iAe(E),Ine(r,1,e)):D.fail();return Q2e(E,c.pos+v.length,No(L.values()))}function sAe(e,t,r,i,o,s=Cne()){const c=new Map,f=j9(()=>O8(t,e))||rt;for(const v of f)d(v);for(const v of iZ(r,e)){const h=Bi(yi(v),"node_modules/@types");d(h)}return s;function d(v){if(V9(e,v))for(const h of G9(e,v)){const E=sF(h);if(!(t.types&&!Ur(t.types,E)))if(i===void 0)c.has(E)||(s.add(TL(E,"external module name",void 0)),c.set(E,!0));else{const C=Bi(v,h),L=oJ(i,E,db(e));L!==void 0&&nD(L,C,o,e,!1,void 0,s)}}}}function Aqe(e,t){if(!e.readFile||!e.fileExists)return rt;const r=[];for(const i of iZ(t,e)){const o=Ck(i,e);for(const s of cAe){const c=o[s];if(c)for(const f in c)Fs(c,f)&&!Ta(f,"@types/")&&r.push(f)}}return r}function Cqe(e,t){const r=Math.max(e.lastIndexOf(Bs),e.lastIndexOf(ZR)),i=r!==-1?r+1:0,o=e.length-i;return o===0||H_(e.substr(i,o),99)?void 0:Pc(t+i,o)}function Lqe(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function kne(e){return bu(e,Bs)}function Iqe(e){return io(e.parent)&&tu(e.parent.arguments)===e&&je(e.parent.expression)&&e.parent.expression.escapedText==="require"}var wne,lAe,cAe,kqe=S({"src/services/stringCompletions.ts"(){Qr(),Dne(),wne={directory:0,script:1,"external module name":2},lAe=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,cAe=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),lU={};X(lU,{getStringLiteralCompletionDetails:()=>uqe,getStringLiteralCompletions:()=>lqe});var wqe=S({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){kqe()}}),x2={};X(x2,{CompletionKind:()=>xne,CompletionSource:()=>Tne,SortText:()=>pu,StringCompletions:()=>lU,SymbolOriginInfoKind:()=>Sne,createCompletionDetails:()=>eP,createCompletionDetailsForSymbol:()=>gne,getCompletionEntriesFromSymbols:()=>mne,getCompletionEntryDetails:()=>Gze,getCompletionEntrySymbol:()=>Vze,getCompletionsAtPosition:()=>yze,getPropertiesForObjectExpression:()=>iU,moduleSpecifierResolutionCacheAttemptLimit:()=>Ene,moduleSpecifierResolutionLimit:()=>sU});var Dne=S({"src/services/_namespaces/ts.Completions.ts"(){sqe(),wqe()}});function Rne(e,t,r,i){const o=Oqe(e,r,i);return(s,c,f)=>{const{directImports:d,indirectUsers:v}=Dqe(e,t,o,c,r,i);return Ti({indirectUsers:v},Rqe(d,s,c.exportKind,r,f))}}function Dqe(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,c){const f=dL(),d=dL(),v=[],h=!!i.globalExports,E=h?void 0:[];return L(i),{directImports:v,indirectUsers:C()};function C(){if(h)return e;if(i.declarations)for(const H of i.declarations)O1(H)&&t.has(H.getSourceFile().fileName)&&G(H);return E.map(er)}function L(H){const ne=V(H);if(ne){for(const Y of ne)if(f(Y))switch(c&&c.throwIfCancellationRequested(),Y.kind){case 210:if(hf(Y)){I(Y);break}if(!h){const M=Y.parent;if(o===2&&M.kind===257){const{name:de}=M;if(de.kind===79){v.push(de);break}}}break;case 79:break;case 268:k(Y,Y.name,$r(Y,1),!1);break;case 269:v.push(Y);const $=Y.importClause&&Y.importClause.namedBindings;$&&$.kind===271?k(Y,$.name,!1,!0):!h&&xx(Y)&&G(iP(Y));break;case 275:Y.exportClause?Y.exportClause.kind===277?G(iP(Y),!0):v.push(Y):L(Gqe(Y,s));break;case 202:!h&&Y.isTypeOf&&!Y.qualifier&&O(Y)&&G(Y.getSourceFile(),!0),v.push(Y);break;default:D.failBadSyntaxKind(Y,"Unexpected import kind.")}}}function I(H){const ne=rr(H,cU)||H.getSourceFile();G(ne,!!O(H,!0))}function O(H,ne=!1){return rr(H,Y=>ne&&cU(Y)?"quit":np(Y)&&kt(Y.modifiers,d5))}function k(H,ne,Y,$){if(o===2)$||v.push(H);else if(!h){const M=iP(H);D.assert(M.kind===308||M.kind===264),Y||Nqe(M,ne,s)?G(M,!0):G(M)}}function G(H,ne=!1){if(D.assert(!h),!d(H)||(E.push(H),!ne))return;const $=s.getMergedSymbol(H.symbol);if(!$)return;D.assert(!!($.flags&1536));const M=V($);if(M)for(const de of M)kg(de)||G(iP(de),!0)}function V(H){return r.get(Eo(H).toString())}}function Rqe(e,t,r,i,o){const s=[],c=[];function f(C,L){s.push([C,L])}if(e)for(const C of e)d(C);return{importSearches:s,singleReferences:c};function d(C){if(C.kind===268){One(C)&&v(C.name);return}if(C.kind===79){v(C);return}if(C.kind===202){if(C.qualifier){const O=Ff(C.qualifier);O.escapedText===Gl(t)&&c.push(O)}else r===2&&c.push(C.argument.literal);return}if(C.moduleSpecifier.kind!==10)return;if(C.kind===275){C.exportClause&&tp(C.exportClause)&&h(C.exportClause);return}const{name:L,namedBindings:I}=C.importClause||{name:void 0,namedBindings:void 0};if(I)switch(I.kind){case 271:v(I.name);break;case 272:(r===0||r===1)&&h(I);break;default:D.assertNever(I)}if(L&&(r===1||r===2)&&(!o||L.escapedText===I9(t))){const O=i.getSymbolAtLocation(L);f(L,O)}}function v(C){r===2&&(!o||E(C.escapedText))&&f(C,i.getSymbolAtLocation(C))}function h(C){if(C)for(const L of C.elements){const{name:I,propertyName:O}=L;if(E((O||I).escapedText))if(O)c.push(O),(!o||I.escapedText===t.escapedName)&&f(I,i.getSymbolAtLocation(I));else{const k=L.kind===278&&L.propertyName?i.getExportSpecifierLocalTargetSymbol(L):i.getSymbolAtLocation(I);f(I,k)}}}function E(C){return C===t.escapedName||r!==0&&C==="default"}}function Nqe(e,t,r){const i=r.getSymbolAtLocation(t);return!!dAe(e,o=>{if(!au(o))return;const{exportClause:s,moduleSpecifier:c}=o;return!c&&s&&tp(s)&&s.elements.some(f=>r.getExportSpecifierLocalTargetSymbol(f)===i)})}function uAe(e,t,r){var i;const o=[],s=e.getTypeChecker();for(const c of t){const f=r.valueDeclaration;if((f==null?void 0:f.kind)===308){for(const d of c.referencedFiles)e.getSourceFileFromReference(c,d)===f&&o.push({kind:"reference",referencingFile:c,ref:d});for(const d of c.typeReferenceDirectives){const v=(i=e.getResolvedTypeReferenceDirectives().get(d.fileName,d.resolutionMode||c.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;v!==void 0&&v.resolvedFileName===f.fileName&&o.push({kind:"reference",referencingFile:c,ref:d})}}fAe(c,(d,v)=>{s.getSymbolAtLocation(v)===r&&o.push({kind:"import",literal:v})})}return o}function Oqe(e,t,r){const i=new Map;for(const o of e)r&&r.throwIfCancellationRequested(),fAe(o,(s,c)=>{const f=t.getSymbolAtLocation(c);if(f){const d=Eo(f).toString();let v=i.get(d);v||i.set(d,v=[]),v.push(s)}});return i}function dAe(e,t){return Je(e.kind===308?e.statements:e.body.statements,r=>t(r)||cU(r)&&Je(r.body&&r.body.statements,t))}function fAe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(WN(r),r);else dAe(e,r=>{switch(r.kind){case 275:case 269:{const i=r;i.moduleSpecifier&&Ho(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 268:{const i=r;One(i)&&t(i,i.moduleReference.expression);break}}})}function _Ae(e,t,r,i){return i?o():o()||s();function o(){var d;const{parent:v}=e,h=v.parent;if(t.exportSymbol)return v.kind===208?(d=t.declarations)!=null&&d.some(L=>L===v)&&br(h)?C(h,!1):void 0:c(t.exportSymbol,f(v));{const L=Mqe(v,e);if(L&&$r(L,1))return _u(L)&&L.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(L.name)}:c(t,f(L));if(Bh(v))return c(t,0);if(Vl(v))return E(v);if(Vl(h))return E(h);if(br(v))return C(v,!0);if(br(h))return C(h,!0);if(CK(v)||bK(v))return c(t,0)}function E(L){if(!L.symbol.parent)return;const I=L.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:L.symbol.parent,exportKind:I}}}function C(L,I){let O;switch(wl(L)){case 1:O=0;break;case 2:O=2;break;default:return}const k=I?r.getSymbolAtLocation(G_e(so(L.left,dl))):t;return k&&c(k,O)}}function s(){if(!Fqe(e))return;let v=r.getImmediateAliasedSymbol(t);if(!v||(v=Bqe(v,r),v.escapedName==="export="&&(v=Pqe(v,r),v===void 0)))return;const h=I9(v);if(h===void 0||h==="default"||h===t.escapedName)return{kind:0,symbol:v}}function c(d,v){const h=Nne(d,v,r);return h&&{kind:1,symbol:d,exportInfo:h}}function f(d){return $r(d,1024)?1:0}}function Pqe(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const o=D.checkDefined(e.valueDeclaration);if(Vl(o))return(r=si(o.expression,Vm))==null?void 0:r.symbol;if(br(o))return(i=si(o.right,Vm))==null?void 0:i.symbol;if(Ji(o))return o.symbol}function Mqe(e,t){const r=Xi(e)?e:ms(e)?VA(e):void 0;return r?e.name!==t||jC(r.parent)?void 0:gc(r.parent.parent)?r.parent.parent:void 0:e}function Fqe(e){const{parent:t}=e;switch(t.kind){case 268:return t.name===e&&One(t);case 273:return!t.propertyName;case 270:case 271:return D.assert(t.name===e),!0;case 205:return fr(e)&&B1(t.parent.parent);default:return!1}}function Nne(e,t,r){const i=e.parent;if(!i)return;const o=r.getMergedSymbol(i);return x6(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function Bqe(e,t){if(e.declarations)for(const r of e.declarations){if(gd(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(Fr(r)&&kh(r.expression)&&!Oi(r.name))return t.getSymbolAtLocation(r);if(u_(r)&&br(r.parent.parent)&&wl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function Gqe(e,t){return t.getMergedSymbol(iP(e).symbol)}function iP(e){if(e.kind===210)return e.getSourceFile();const{parent:t}=e;return t.kind===308?t:(D.assert(t.kind===265),so(t.parent,cU))}function cU(e){return e.kind===264&&e.name.kind===10}function One(e){return e.moduleReference.kind===280&&e.moduleReference.expression.kind===10}var Pne,Mne,Uqe=S({"src/services/importTracker.ts"(){Qr(),Pne=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Pne||{}),Mne=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Mne||{})}});function Uh(e,t=1){return{kind:t,node:e.name||e,context:Vqe(e)}}function pAe(e){return e&&e.kind===void 0}function Vqe(e){if(Au(e))return dE(e);if(e.parent){if(!Au(e.parent)&&!Vl(e.parent)){if(fr(e)){const r=br(e.parent)?e.parent:dl(e.parent)&&br(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&wl(r)!==0)return dE(r)}if(Gh(e.parent)||Zx(e.parent))return e.parent.parent;if(Qx(e.parent)||Y1(e.parent)||YI(e.parent))return e.parent;if(As(e)){const r=zN(e);if(r){const i=rr(r,o=>Au(o)||ka(o)||tk(o));return Au(i)?dE(i):i}}const t=rr(e,Cs);return t?dE(t.parent):void 0}if(e.parent.name===e||Yl(e.parent)||Vl(e.parent)||(mx(e.parent)||ms(e.parent))&&e.parent.propertyName===e||e.kind===88&&$r(e.parent,1025))return dE(e.parent)}}function dE(e){if(e)switch(e.kind){case 257:return!Ju(e.parent)||e.parent.declarations.length!==1?e:gc(e.parent.parent)?e.parent.parent:JA(e.parent.parent)?dE(e.parent.parent):e.parent;case 205:return dE(e.parent.parent);case 273:return e.parent.parent.parent;case 278:case 271:return e.parent.parent;case 270:case 277:return e.parent;case 223:return fu(e.parent)?e.parent:e;case 247:case 246:return{start:e.initializer,end:e.expression};case 299:case 300:return jy(e.parent)?dE(rr(e.parent,t=>br(t)||JA(t))):e;default:return e}}function Fne(e,t,r){if(!r)return;const i=pAe(r)?oP(r.start,t,r.end):oP(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function jqe(e,t,r,i,o){const s=Vf(i,o),c={use:1},f=hS.getReferencedSymbolsForNode(o,s,e,r,t,c),d=e.getTypeChecker(),v=hS.getAdjustedNode(s,c),h=Hqe(v)?d.getSymbolAtLocation(v):void 0;return!f||!f.length?void 0:pa(f,({definition:E,references:C})=>E&&{definition:d.runWithCancellationToken(t,L=>qqe(E,L,s)),references:C.map(L=>Kqe(L,h))})}function Hqe(e){return e.kind===88||!!$N(e)||QN(e)||e.kind===135&&Yl(e.parent)}function Wqe(e,t,r,i,o){const s=Vf(i,o);let c;const f=mAe(e,t,r,s,o);if(s.parent.kind===208||s.parent.kind===205||s.parent.kind===209||s.kind===106)c=f&&[...f];else if(f){const v=TH(f),h=new Map;for(;!v.isEmpty();){const E=v.dequeue();if(!Lp(h,hs(E.node)))continue;c=Bn(c,E);const C=mAe(e,t,r,E.node,E.node.pos);C&&v.enqueue(...C)}}const d=e.getTypeChecker();return zt(c,v=>Yqe(v,d))}function mAe(e,t,r,i,o){if(i.kind===308)return;const s=e.getTypeChecker();if(i.parent.kind===300){const c=[];return hS.getReferenceEntriesForShorthandPropertyAssignment(i,s,f=>c.push(Uh(f))),c}else if(i.kind===106||hd(i.parent)){const c=s.getSymbolAtLocation(i);return c.valueDeclaration&&[Uh(c.valueDeclaration)]}else return hAe(o,i,e,r,t,{implementations:!0,use:1})}function zqe(e,t,r,i,o,s,c){return zt(gAe(hS.getReferencedSymbolsForNode(o,i,e,r,t,s)),f=>c(f,i,e.getTypeChecker()))}function hAe(e,t,r,i,o,s={},c=new Set(i.map(f=>f.fileName))){return gAe(hS.getReferencedSymbolsForNode(e,t,r,i,o,s,c))}function gAe(e){return e&&Ga(e,t=>t.references)}function qqe(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:h}=e,{displayParts:E,kind:C}=yAe(h,t,r),L=E.map(k=>k.text).join(""),I=h.declarations&&tu(h.declarations),O=I?Ia(I)||I:r;return Ka(Ti({},aP(O)),{name:L,kind:C,displayParts:E,context:dE(I)})}case 1:{const{node:h}=e;return Ka(Ti({},aP(h)),{name:h.text,kind:"label",displayParts:[Od(h.text,17)]})}case 2:{const{node:h}=e,E=vo(h.kind);return Ka(Ti({},aP(h)),{name:E,kind:"keyword",displayParts:[{text:E,kind:"keyword"}]})}case 3:{const{node:h}=e,E=t.getSymbolAtLocation(h),C=E&&zy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,E,h.getSourceFile(),oS(h),h).displayParts||[jf("this")];return Ka(Ti({},aP(h)),{name:"this",kind:"var",displayParts:C})}case 4:{const{node:h}=e;return Ka(Ti({},aP(h)),{name:h.text,kind:"var",displayParts:[Od(kc(h),8)]})}case 5:return{textSpan:r0(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[Od(`"${e.reference.fileName}"`,8)]};default:return D.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:c,kind:f,displayParts:d,context:v}=i;return Ti({containerKind:"",containerName:"",fileName:o.fileName,kind:f,name:c,textSpan:s,displayParts:d},Fne(s,o,v))}function aP(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:oP(Cs(e)?e.expression:e,t)}}function yAe(e,t,r){const i=hS.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&tu(e.declarations)||r,{displayParts:s,symbolKind:c}=zy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:c}}function Jqe(e,t,r,i){return Ti(Ti({},uU(e)),i&&Xqe(e,t,r))}function Kqe(e,t){const r=vAe(e);return t?Ka(Ti({},r),{isDefinition:e.kind!==0&&EAe(e.node,t)}):r}function vAe(e){const t=uU(e);if(e.kind===0)return Ka(Ti({},t),{isWriteAccess:!1});const{kind:r,node:i}=e;return Ka(Ti({},t),{isWriteAccess:bAe(i),isInString:r===2?!0:void 0})}function uU(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=oP(e.node,t);return Ti({textSpan:r,fileName:t.fileName},Fne(r,t,e.context))}}function Xqe(e,t,r){if(e.kind!==0&&je(t)){const{node:i,kind:o}=e,s=i.parent,c=t.text,f=u_(s);if(f||L6(s)&&s.name===i&&s.dotDotDotToken===void 0){const d={prefixText:c+": "},v={suffixText:": "+c};if(o===3)return d;if(o===4)return v;if(f){const h=s.parent;return Is(h)&&br(h.parent)&&kh(h.parent.left)?d:v}else return d}else if(Nd(s)&&!s.propertyName){const d=gd(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return Ur(d.declarations,s)?{prefixText:c+" as "}:mm}else if(gd(s)&&!s.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:c+" as "}:{suffixText:" as "+c}}return mm}function Yqe(e,t){const r=uU(e);if(e.kind!==0){const{node:i}=e;return Ti(Ti({},r),$qe(i,t))}else return Ka(Ti({},r),{kind:"",displayParts:[]})}function $qe(e,t){const r=t.getSymbolAtLocation(Au(e)&&e.name?e.name:e);return r?yAe(r,t,e):e.kind===207?{kind:"interface",displayParts:[Iu(20),jf("object literal"),Iu(21)]}:e.kind===228?{kind:"local class",displayParts:[Iu(20),jf("anonymous local class"),Iu(21)]}:{kind:cE(e),displayParts:[]}}function Qqe(e){const t=uU(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=bAe(e.node),i=Ti({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:i}}function oP(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return As(e)&&o-i>2&&(D.assert(r===void 0),i+=1,o-=1),Tc(i,o)}function Bne(e){return e.kind===0?e.textSpan:oP(e.node,e.node.getSourceFile())}function bAe(e){const t=$N(e);return!!t&&Zqe(t)||e.kind===88||wk(e)}function EAe(e,t){var r;if(!t)return!1;const i=$N(e)||(e.kind===88?e.parent:QN(e)||e.kind===135&&Yl(e.parent)?e.parent.parent:void 0),o=i&&br(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function Zqe(e){if(e.flags&16777216)return!0;switch(e.kind){case 223:case 205:case 260:case 228:case 88:case 263:case 302:case 278:case 270:case 268:case 273:case 261:case 341:case 349:case 288:case 264:case 267:case 271:case 277:case 166:case 300:case 262:case 165:return!0;case 299:return!jy(e.parent);case 259:case 215:case 173:case 171:case 174:case 175:return!!e.body;case 257:case 169:return!!e.initializer||jC(e.parent);case 170:case 168:case 351:case 344:return!1;default:return D.failBadSyntaxKind(e)}}var Gne,Une,Vne,hS,eJe=S({"src/services/findAllReferences.ts"(){Qr(),TAe(),Gne=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(Gne||{}),Une=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(Une||{}),Vne=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Vne||{}),(e=>{function t(we,yt,Nt,Ce,pt,pe={},ie=new Set(Ce.map(he=>he.fileName))){var he,j,He;if(yt=r(yt,pe),Ji(yt)){const ue=iD.getReferenceAtPosition(yt,we,Nt);if(!(ue!=null&&ue.file))return;const mt=Nt.getTypeChecker().getMergedSymbol(ue.file.symbol);if(mt)return v(Nt,mt,!1,Ce,ie);const Wt=Nt.getFileIncludeReasons();return Wt?[{definition:{type:5,reference:ue.reference,file:yt},references:o(ue.file,Wt,Nt)||rt}]:void 0}if(!pe.implementations){const ue=E(yt,Ce,pt);if(ue)return ue}const Ze=Nt.getTypeChecker(),Xe=Ze.getSymbolAtLocation(Yl(yt)&&yt.parent.name||yt);if(!Xe){if(!pe.implementations&&As(yt)){if(k9(yt)){const ue=Nt.getFileIncludeReasons(),mt=(He=(j=(he=yt.getSourceFile().resolvedModules)==null?void 0:he.get(yt.text,wp(yt.getSourceFile(),yt)))==null?void 0:j.resolvedModule)==null?void 0:He.resolvedFileName,Wt=mt?Nt.getSourceFile(mt):void 0;if(Wt)return[{definition:{type:4,node:yt},references:o(Wt,ue,Nt)||rt}]}return At(yt,Ce,Ze,pt)}return}if(Xe.escapedName==="export=")return v(Nt,Xe.parent,!1,Ce,ie);const Ut=c(Xe,Nt,Ce,pt,pe,ie);if(Ut&&!(Xe.flags&33554432))return Ut;const ln=s(yt,Xe,Ze),Sn=ln&&c(ln,Nt,Ce,pt,pe,ie),Er=C(Xe,yt,Ce,ie,Ze,pt,pe);return f(Nt,Ut,Er,Sn)}e.getReferencedSymbolsForNode=t;function r(we,yt){return yt.use===1?we=xQ(we):yt.use===2&&(we=h9(we)),we}e.getAdjustedNode=r;function i(we,yt,Nt,Ce=new Set(Nt.map(pt=>pt.fileName))){var pt,pe;const ie=(pt=yt.getSourceFile(we))==null?void 0:pt.symbol;if(ie)return((pe=v(yt,ie,!1,Nt,Ce)[0])==null?void 0:pe.references)||rt;const he=yt.getFileIncludeReasons(),j=yt.getSourceFile(we);return j&&he&&o(j,he,yt)||rt}e.getReferencesForFileName=i;function o(we,yt,Nt){let Ce;const pt=yt.get(we.path)||rt;for(const pe of pt)if(Eb(pe)){const ie=Nt.getSourceFileByPath(pe.file),he=ww(Nt.getSourceFileByPath,pe);iL(he)&&(Ce=Bn(Ce,{kind:0,fileName:ie.fileName,textSpan:r0(he)}))}return Ce}function s(we,yt,Nt){if(we.parent&&n8(we.parent)){const Ce=Nt.getAliasedSymbol(yt),pt=Nt.getMergedSymbol(Ce);if(Ce!==pt)return pt}}function c(we,yt,Nt,Ce,pt,pe){const ie=we.flags&1536&&we.declarations&&In(we.declarations,Ji);if(!ie)return;const he=we.exports.get("export="),j=v(yt,we,!!he,Nt,pe);if(!he||!pe.has(ie.fileName))return j;const He=yt.getTypeChecker();return we=gf(he,He),f(yt,j,C(we,void 0,Nt,pe,He,Ce,pt))}function f(we,...yt){let Nt;for(const Ce of yt)if(!(!Ce||!Ce.length)){if(!Nt){Nt=Ce;continue}for(const pt of Ce){if(!pt.definition||pt.definition.type!==0){Nt.push(pt);continue}const pe=pt.definition.symbol,ie=mi(Nt,j=>!!j.definition&&j.definition.type===0&&j.definition.symbol===pe);if(ie===-1){Nt.push(pt);continue}const he=Nt[ie];Nt[ie]={definition:he.definition,references:he.references.concat(pt.references).sort((j,He)=>{const Ze=d(we,j),Xe=d(we,He);if(Ze!==Xe)return qs(Ze,Xe);const Ut=Bne(j),ln=Bne(He);return Ut.start!==ln.start?qs(Ut.start,ln.start):qs(Ut.length,ln.length)})}}}return Nt}function d(we,yt){const Nt=yt.kind===0?we.getSourceFile(yt.fileName):yt.node.getSourceFile();return we.getSourceFiles().indexOf(Nt)}function v(we,yt,Nt,Ce,pt){D.assert(!!yt.valueDeclaration);const pe=pa(uAe(we,Ce,yt),he=>{if(he.kind==="import"){const j=he.literal.parent;if(gb(j)){const He=so(j.parent,kg);if(Nt&&!He.qualifier)return}return Uh(he.literal)}else return{kind:0,fileName:he.referencingFile.fileName,textSpan:r0(he.ref)}});if(yt.declarations)for(const he of yt.declarations)switch(he.kind){case 308:break;case 264:pt.has(he.getSourceFile().fileName)&&pe.push(Uh(he.name));break;default:D.assert(!!(yt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const ie=yt.exports.get("export=");if(ie!=null&&ie.declarations)for(const he of ie.declarations){const j=he.getSourceFile();if(pt.has(j.fileName)){const He=br(he)&&Fr(he.left)?he.left.expression:Vl(he)?D.checkDefined(Es(he,93,j)):Ia(he)||he;pe.push(Uh(He))}}return pe.length?[{definition:{type:0,symbol:yt},references:pe}]:rt}function h(we){return we.kind===146&&Jx(we.parent)&&we.parent.operator===146}function E(we,yt,Nt){if(Bw(we.kind))return we.kind===114&&Xx(we.parent)||we.kind===146&&!h(we)?void 0:Ve(yt,we.kind,Nt,we.kind===146?h:void 0);if(tC(we.parent)&&we.parent.name===we)return Qe(yt,Nt);if(Hx(we)&&Rl(we.parent))return[{definition:{type:2,node:we},references:[Uh(we)]}];if(m6(we)){const Ce=u9(we.parent,we.text);return Ce&&xe(Ce.parent,Ce)}else if(mQ(we))return xe(we.parent,we);if(uL(we))return Or(we,yt,Nt);if(we.kind===106)return Qi(we)}function C(we,yt,Nt,Ce,pt,pe,ie){const he=yt&&O(we,yt,pt,!Hr(ie))||we,j=yt?Mi(yt,he):7,He=[],Ze=new V(Nt,Ce,yt?I(yt):0,pt,pe,j,ie,He),Xe=!Hr(ie)||!he.declarations?void 0:In(he.declarations,gd);if(Xe)Ye(Xe.name,he,Xe,Ze.createSearch(yt,we,void 0),Ze,!0,!0);else if(yt&&yt.kind===88&&he.escapedName==="default"&&he.parent)Et(yt,he,Ze),H(yt,he,{exportingModuleSymbol:he.parent,exportKind:1},Ze);else{const Ut=Ze.createSearch(yt,he,void 0,{allSearchSymbols:yt?vn(he,yt,pt,ie.use===2,!!ie.providePrefixAndSuffixTextForRename,!!ie.implementations):[he]});L(he,Ze,Ut)}return He}function L(we,yt,Nt){const Ce=re(we);if(Ce)ze(Ce,Ce.getSourceFile(),Nt,yt,!(Ji(Ce)&&!Ur(yt.sourceFiles,Ce)));else for(const pt of yt.sourceFiles)yt.cancellationToken.throwIfCancellationRequested(),M(pt,Nt,yt)}function I(we){switch(we.kind){case 173:case 135:return 1;case 79:if(_i(we.parent))return D.assert(we.parent.name===we),2;default:return 0}}function O(we,yt,Nt,Ce){const{parent:pt}=yt;return gd(pt)&&Ce?We(yt,we,pt,Nt):Jt(we.declarations,pe=>{if(!pe.parent){if(we.flags&33554432)return;D.fail(`Unexpected symbol at ${D.formatSyntaxKind(yt.kind)}: ${D.formatSymbol(we)}`)}return yf(pe.parent)&&zx(pe.parent.parent)?Nt.getPropertyOfType(Nt.getTypeFromTypeNode(pe.parent.parent),we.name):void 0})}let k;(we=>{we[we.None=0]="None",we[we.Constructor=1]="Constructor",we[we.Class=2]="Class"})(k||(k={}));function G(we){if(!(we.flags&33555968))return;const yt=we.declarations&&In(we.declarations,Nt=>!Ji(Nt)&&!$l(Nt));return yt&&yt.symbol}class V{constructor(yt,Nt,Ce,pt,pe,ie,he,j){this.sourceFiles=yt,this.sourceFilesSet=Nt,this.specialSearchKind=Ce,this.checker=pt,this.cancellationToken=pe,this.searchMeaning=ie,this.options=he,this.result=j,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=dL(),this.markSeenReExportRHS=dL(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(yt){return this.sourceFilesSet.has(yt.fileName)}getImportSearches(yt,Nt){return this.importTracker||(this.importTracker=Rne(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(yt,Nt,this.options.use===2)}createSearch(yt,Nt,Ce,pt={}){const{text:pe=X_(Gl(vC(Nt)||G(Nt)||Nt)),allSearchSymbols:ie=[Nt]}=pt,he=ul(pe),j=this.options.implementations&&yt?Ar(yt,Nt,this.checker):void 0;return{symbol:Nt,comingFrom:Ce,text:pe,escapedText:he,parents:j,allSearchSymbols:ie,includes:He=>Ur(ie,He)}}referenceAdder(yt){const Nt=Eo(yt);let Ce=this.symbolIdToReferences[Nt];return Ce||(Ce=this.symbolIdToReferences[Nt]=[],this.result.push({definition:{type:0,symbol:yt},references:Ce})),(pt,pe)=>Ce.push(Uh(pt,pe))}addStringOrCommentReference(yt,Nt){this.result.push({definition:void 0,references:[{kind:0,fileName:yt,textSpan:Nt}]})}markSearchedSymbols(yt,Nt){const Ce=hs(yt),pt=this.sourceFileToSeenSymbols[Ce]||(this.sourceFileToSeenSymbols[Ce]=new Set);let pe=!1;for(const ie of Nt)pe=g1(pt,Eo(ie))||pe;return pe}}function H(we,yt,Nt,Ce){const{importSearches:pt,singleReferences:pe,indirectUsers:ie}=Ce.getImportSearches(yt,Nt);if(pe.length){const he=Ce.referenceAdder(yt);for(const j of pe)Y(j,Ce)&&he(j)}for(const[he,j]of pt)Ge(he.getSourceFile(),Ce.createSearch(he,j,1),Ce);if(ie.length){let he;switch(Nt.exportKind){case 0:he=Ce.createSearch(we,yt,1);break;case 1:he=Ce.options.use===2?void 0:Ce.createSearch(we,yt,1,{text:"default"});break}if(he)for(const j of ie)M(j,he,Ce)}}function ne(we,yt,Nt,Ce,pt,pe,ie,he){const j=Rne(we,new Set(we.map(Ut=>Ut.fileName)),yt,Nt),{importSearches:He,indirectUsers:Ze,singleReferences:Xe}=j(Ce,{exportKind:ie?1:0,exportingModuleSymbol:pt},!1);for(const[Ut]of He)he(Ut);for(const Ut of Xe)je(Ut)&&kg(Ut.parent)&&he(Ut);for(const Ut of Ze)for(const ln of me(Ut,ie?"default":pe)){const Sn=yt.getSymbolAtLocation(ln),Er=kt(Sn==null?void 0:Sn.declarations,ue=>!!si(ue,Vl));je(ln)&&!mx(ln.parent)&&(Sn===Ce||Er)&&he(ln)}}e.eachExportReference=ne;function Y(we,yt){return Oe(we,yt)?yt.options.use!==2?!0:je(we)?!(mx(we.parent)&&we.escapedText==="default"):!1:!1}function $(we,yt){if(we.declarations)for(const Nt of we.declarations){const Ce=Nt.getSourceFile();Ge(Ce,yt.createSearch(Nt,we,0),yt,yt.includesSourceFile(Ce))}}function M(we,yt,Nt){JZ(we).get(yt.escapedText)!==void 0&&Ge(we,yt,Nt)}function de(we,yt){return jy(we.parent.parent)?yt.getPropertySymbolOfDestructuringAssignment(we):void 0}function re(we){const{declarations:yt,flags:Nt,parent:Ce,valueDeclaration:pt}=we;if(pt&&(pt.kind===215||pt.kind===228))return pt;if(!yt)return;if(Nt&8196){const he=In(yt,j=>zd(j,8)||ad(j));return he?ub(he,260):void 0}if(yt.some(L6))return;const pe=Ce&&!(we.flags&262144);if(pe&&!(x6(Ce)&&!Ce.globalExports))return;let ie;for(const he of yt){const j=oS(he);if(ie&&ie!==j||!j||j.kind===308&&!mf(j))return;if(ie=j,Us(ie)){let He;for(;He=mq(ie);)ie=He}}return pe?ie.getSourceFile():ie}function be(we,yt,Nt,Ce=Nt){return ae(we,yt,Nt,()=>!0,Ce)||!1}e.isSymbolReferencedInFile=be;function ae(we,yt,Nt,Ce,pt=Nt){const pe=df(we.parent,we.parent.parent)?ds(yt.getSymbolsOfParameterPropertyDeclaration(we.parent,we.text)):yt.getSymbolAtLocation(we);if(pe)for(const ie of me(Nt,pe.name,pt)){if(!je(ie)||ie===we||ie.escapedText!==we.escapedText)continue;const he=yt.getSymbolAtLocation(ie);if(he===pe||yt.getShorthandAssignmentValueSymbol(ie.parent)===pe||gd(ie.parent)&&We(ie,he,ie.parent,yt)===pe){const j=Ce(ie);if(j)return j}}}e.eachSymbolReferenceInFile=ae;function W(we,yt){return yn(me(yt,we),pt=>!!$N(pt)).reduce((pt,pe)=>{const ie=Ce(pe);return!kt(pt.declarationNames)||ie===pt.depth?(pt.declarationNames.push(pe),pt.depth=ie):ie<pt.depth&&(pt.declarationNames=[pe],pt.depth=ie),pt},{depth:1/0,declarationNames:[]}).declarationNames;function Ce(pt){let pe=0;for(;pt;)pt=oS(pt),pe++;return pe}}e.getTopMostDeclarationNamesInFile=W;function ce(we,yt,Nt,Ce){if(!we.name||!je(we.name))return!1;const pt=D.checkDefined(Nt.getSymbolAtLocation(we.name));for(const pe of yt)for(const ie of me(pe,pt.name)){if(!je(ie)||ie===we.name||ie.escapedText!==we.name.escapedText)continue;const he=c9(ie),j=io(he.parent)&&he.parent.expression===he?he.parent:void 0,He=Nt.getSymbolAtLocation(ie);if(He&&Nt.getRootSymbols(He).some(Ze=>Ze===pt)&&Ce(ie,j))return!0}return!1}e.someSignatureUsage=ce;function me(we,yt,Nt=we){return Ee(we,yt,Nt).map(Ce=>Vf(we,Ce))}function Ee(we,yt,Nt=we){const Ce=[];if(!yt||!yt.length)return Ce;const pt=we.text,pe=pt.length,ie=yt.length;let he=pt.indexOf(yt,Nt.pos);for(;he>=0&&!(he>Nt.end);){const j=he+ie;(he===0||!rb(pt.charCodeAt(he-1),99))&&(j===pe||!rb(pt.charCodeAt(j),99))&&Ce.push(he),he=pt.indexOf(yt,he+ie+1)}return Ce}function xe(we,yt){const Nt=we.getSourceFile(),Ce=yt.text,pt=pa(me(Nt,Ce,we),pe=>pe===yt||m6(pe)&&u9(pe,Ce)===yt?Uh(pe):void 0);return[{definition:{type:1,node:yt},references:pt}]}function te(we,yt){switch(we.kind){case 80:if(vb(we.parent))return!0;case 79:return we.text.length===yt.length;case 14:case 10:{const Nt=we;return(d9(Nt)||vQ(we)||K0e(we)||io(we.parent)&&Tx(we.parent)&&we.parent.arguments[1]===we)&&Nt.text.length===yt.length}case 8:return d9(we)&&we.text.length===yt.length;case 88:return yt.length===7;default:return!1}}function Qe(we,yt){const Nt=Ga(we,Ce=>(yt.throwIfCancellationRequested(),pa(me(Ce,"meta",Ce),pt=>{const pe=pt.parent;if(tC(pe))return Uh(pe)})));return Nt.length?[{definition:{type:2,node:Nt[0].node},references:Nt}]:void 0}function Ve(we,yt,Nt,Ce){const pt=Ga(we,pe=>(Nt.throwIfCancellationRequested(),pa(me(pe,vo(yt),pe),ie=>{if(ie.kind===yt&&(!Ce||Ce(ie)))return Uh(ie)})));return pt.length?[{definition:{type:2,node:pt[0].node},references:pt}]:void 0}function Ge(we,yt,Nt,Ce=!0){return Nt.cancellationToken.throwIfCancellationRequested(),ze(we,we,yt,Nt,Ce)}function ze(we,yt,Nt,Ce,pt){if(Ce.markSearchedSymbols(yt,Nt.allSearchSymbols))for(const pe of Ee(yt,Nt.text,we))Me(yt,pe,Nt,Ce,pt)}function Oe(we,yt){return!!(aS(we)&yt.searchMeaning)}function Me(we,yt,Nt,Ce,pt){const pe=Vf(we,yt);if(!te(pe,Nt.text)){!Ce.options.implementations&&(Ce.options.findInStrings&&lS(we,yt)||Ce.options.findInComments&&_be(we,yt))&&Ce.addStringOrCommentReference(we.fileName,Pc(yt,Nt.text.length));return}if(!Oe(pe,Ce))return;let ie=Ce.checker.getSymbolAtLocation(pe);if(!ie)return;const he=pe.parent;if(Nd(he)&&he.propertyName===pe)return;if(gd(he)){D.assert(pe.kind===79),Ye(pe,ie,he,Nt,Ce,pt);return}const j=cr(Nt,ie,pe,Ce);if(!j){Ct(ie,Nt,Ce);return}switch(Ce.specialSearchKind){case 0:pt&&Et(pe,j,Ce);break;case 1:Vt(pe,we,Nt,Ce);break;case 2:tt(pe,Nt,Ce);break;default:D.assertNever(Ce.specialSearchKind)}fr(pe)&&ms(pe.parent)&&B1(pe.parent.parent.parent)&&(ie=pe.parent.symbol,!ie)||st(pe,ie,Nt,Ce)}function Ye(we,yt,Nt,Ce,pt,pe,ie){D.assert(!ie||!!pt.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:he,propertyName:j,name:He}=Nt,Ze=he.parent,Xe=We(we,yt,Nt,pt.checker);if(!ie&&!Ce.includes(Xe))return;if(j?we===j?(Ze.moduleSpecifier||Ut(),pe&&pt.options.use!==2&&pt.markSeenReExportRHS(He)&&Et(He,D.checkDefined(Nt.symbol),pt)):pt.markSeenReExportRHS(we)&&Ut():pt.options.use===2&&He.escapedText==="default"||Ut(),!Hr(pt.options)||ie){const Sn=we.escapedText==="default"||Nt.name.escapedText==="default"?1:0,Er=D.checkDefined(Nt.symbol),ue=Nne(Er,Sn,pt.checker);ue&&H(we,Er,ue,pt)}if(Ce.comingFrom!==1&&Ze.moduleSpecifier&&!j&&!Hr(pt.options)){const ln=pt.checker.getExportSpecifierLocalTargetSymbol(Nt);ln&&$(ln,pt)}function Ut(){pe&&Et(we,Xe,pt)}}function We(we,yt,Nt,Ce){return Fe(we,Nt)&&Ce.getExportSpecifierLocalTargetSymbol(Nt)||yt}function Fe(we,yt){const{parent:Nt,propertyName:Ce,name:pt}=yt;return D.assert(Ce===we||pt===we),Ce?Ce===we:!Nt.parent.moduleSpecifier}function st(we,yt,Nt,Ce){const pt=_Ae(we,yt,Ce.checker,Nt.comingFrom===1);if(!pt)return;const{symbol:pe}=pt;pt.kind===0?Hr(Ce.options)||$(pe,Ce):H(we,pe,pt.exportInfo,Ce)}function Ct({flags:we,valueDeclaration:yt},Nt,Ce){const pt=Ce.checker.getShorthandAssignmentValueSymbol(yt),pe=yt&&Ia(yt);!(we&33554432)&&pe&&Nt.includes(pt)&&Et(pe,pt,Ce)}function Et(we,yt,Nt){const{kind:Ce,symbol:pt}="kind"in yt?yt:{kind:void 0,symbol:yt};if(Nt.options.use===2&&we.kind===88)return;const pe=Nt.referenceAdder(pt);Nt.options.implementations?kn(we,pe,Nt):pe(we,Ce)}function Vt(we,yt,Nt,Ce){Nw(we)&&Et(we,Nt.symbol,Ce);const pt=()=>Ce.referenceAdder(Nt.symbol);if(_i(we.parent))D.assert(we.kind===88||we.parent.name===we),at(Nt.symbol,yt,pt());else{const pe=Mn(we);pe&&(Qt(pe,pt()),Hn(pe,Ce))}}function tt(we,yt,Nt){Et(we,yt.symbol,Nt);const Ce=we.parent;if(Nt.options.use===2||!_i(Ce))return;D.assert(Ce.name===we);const pt=Nt.referenceAdder(yt.symbol);for(const pe of Ce.members)zA(pe)&&Ja(pe)&&pe.body&&pe.body.forEachChild(function ie(he){he.kind===108?pt(he):!Xa(he)&&!_i(he)&&he.forEachChild(ie)})}function at(we,yt,Nt){const Ce=on(we);if(Ce&&Ce.declarations)for(const pt of Ce.declarations){const pe=Es(pt,135,yt);D.assert(pt.kind===173&&!!pe),Nt(pe)}we.exports&&we.exports.forEach(pt=>{const pe=pt.valueDeclaration;if(pe&&pe.kind===171){const ie=pe.body;ie&&rn(ie,108,he=>{Nw(he)&&Nt(he)})}})}function on(we){return we.members&&we.members.get("__constructor")}function Qt(we,yt){const Nt=on(we.symbol);if(Nt&&Nt.declarations)for(const Ce of Nt.declarations){D.assert(Ce.kind===173);const pt=Ce.body;pt&&rn(pt,106,pe=>{_Q(pe)&&yt(pe)})}}function Pn(we){return!!on(we.symbol)}function Hn(we,yt){if(Pn(we))return;const Nt=we.symbol,Ce=yt.createSearch(void 0,Nt,void 0);L(Nt,yt,Ce)}function kn(we,yt,Nt){if(Ag(we)&&vi(we.parent)){yt(we);return}if(we.kind!==79)return;we.parent.kind===300&&Nn(we,Nt.checker,yt);const Ce=Zt(we);if(Ce){yt(Ce);return}const pt=rr(we,he=>!Rd(he.parent)&&!Gi(he.parent)&&!vT(he.parent)),pe=pt.parent;if(m3(pe)&&pe.type===pt&&Nt.markSeenContainingTypeReference(pe))if(Uv(pe))ie(pe.initializer);else if(Xa(pe)&&pe.body){const he=pe.body;he.kind===238?AT(he,j=>{j.expression&&ie(j.expression)}):ie(he)}else bT(pe)&&ie(pe.expression);function ie(he){_r(he)&&yt(he)}}function Zt(we){return je(we)||Fr(we)?Zt(we.parent):Py(we)?si(we.parent.parent,_i):void 0}function _r(we){switch(we.kind){case 214:return _r(we.expression);case 216:case 215:case 207:case 228:case 206:return!0;default:return!1}}function wi(we,yt,Nt,Ce){if(we===yt)return!0;const pt=Eo(we)+","+Eo(yt),pe=Nt.get(pt);if(pe!==void 0)return pe;Nt.set(pt,!1);const ie=!!we.declarations&&we.declarations.some(he=>pk(he).some(j=>{const He=Ce.getTypeAtLocation(j);return!!He&&!!He.symbol&&wi(He.symbol,yt,Nt,Ce)}));return Nt.set(pt,ie),ie}function Qi(we){let yt=kN(we,!1);if(!yt)return;let Nt=32;switch(yt.kind){case 169:case 168:case 171:case 170:case 173:case 174:case 175:Nt&=Wv(yt),yt=yt.parent;break;default:return}const Ce=yt.getSourceFile(),pt=pa(me(Ce,"super",yt),pe=>{if(pe.kind!==106)return;const ie=kN(pe,!1);return ie&&Ja(ie)===!!Nt&&ie.parent.symbol===yt.symbol?Uh(pe):void 0});return[{definition:{type:0,symbol:yt.symbol},references:pt}]}function Zi(we){return we.kind===79&&we.parent.kind===166&&we.parent.name===we}function Or(we,yt,Nt){let Ce=kd(we,!1,!1),pt=32;switch(Ce.kind){case 171:case 170:if(q_(Ce)){pt&=Wv(Ce),Ce=Ce.parent;break}case 169:case 168:case 173:case 174:case 175:pt&=Wv(Ce),Ce=Ce.parent;break;case 308:if(rc(Ce)||Zi(we))return;case 259:case 215:break;default:return}const pe=Ga(Ce.kind===308?yt:[Ce.getSourceFile()],he=>(Nt.throwIfCancellationRequested(),me(he,"this",Ji(Ce)?he:Ce).filter(j=>{if(!uL(j))return!1;const He=kd(j,!1,!1);if(!Vm(He))return!1;switch(Ce.kind){case 215:case 259:return Ce.symbol===He.symbol;case 171:case 170:return q_(Ce)&&Ce.symbol===He.symbol;case 228:case 260:case 207:return He.parent&&Vm(He.parent)&&Ce.symbol===He.parent.symbol&&Ja(He)===!!pt;case 308:return He.kind===308&&!rc(He)&&!Zi(j)}}))).map(he=>Uh(he));return[{definition:{type:3,node:Jt(pe,he=>Fa(he.node.parent)?he.node:void 0)||we},references:pe}]}function At(we,yt,Nt,Ce){const pt=m9(we,Nt),pe=Ga(yt,ie=>(Ce.throwIfCancellationRequested(),pa(me(ie,we.text),he=>{if(As(he)&&he.text===we.text)if(pt){const j=m9(he,Nt);if(pt!==Nt.getStringType()&&pt===j)return Uh(he,2)}else return jx(he)&&!MT(he,ie)?void 0:Uh(he,2)})));return[{definition:{type:4,node:we},references:pe}]}function vn(we,yt,Nt,Ce,pt,pe){const ie=[];return Ht(we,yt,Nt,Ce,!(Ce&&pt),(he,j,He)=>{He&&ir(we)!==ir(He)&&(He=void 0),ie.push(He||j||he)},()=>!pe),ie}function Ht(we,yt,Nt,Ce,pt,pe,ie){const he=V6(yt);if(he){const Sn=Nt.getShorthandAssignmentValueSymbol(yt.parent);if(Sn&&Ce)return pe(Sn,void 0,void 0,3);const Er=Nt.getContextualType(he.parent),ue=Er&&Jt(hB(he,Nt,Er,!0),K=>Ut(K,4));if(ue)return ue;const mt=de(yt,Nt),Wt=mt&&pe(mt,void 0,void 0,4);if(Wt)return Wt;const it=Sn&&pe(Sn,void 0,void 0,3);if(it)return it}const j=s(yt,we,Nt);if(j){const Sn=pe(j,void 0,void 0,1);if(Sn)return Sn}const He=Ut(we);if(He)return He;if(we.valueDeclaration&&df(we.valueDeclaration,we.valueDeclaration.parent)){const Sn=Nt.getSymbolsOfParameterPropertyDeclaration(so(we.valueDeclaration,Fa),we.name);return D.assert(Sn.length===2&&!!(Sn[0].flags&1)&&!!(Sn[1].flags&4)),Ut(we.flags&1?Sn[1]:Sn[0])}const Ze=Il(we,278);if(!Ce||Ze&&!Ze.propertyName){const Sn=Ze&&Nt.getExportSpecifierLocalTargetSymbol(Ze);if(Sn){const Er=pe(Sn,void 0,void 0,1);if(Er)return Er}}if(!Ce){let Sn;return pt?Sn=L6(yt.parent)?w9(Nt,yt.parent):void 0:Sn=ln(we,Nt),Sn&&Ut(Sn,4)}if(D.assert(Ce),pt){const Sn=ln(we,Nt);return Sn&&Ut(Sn,4)}function Ut(Sn,Er){return Jt(Nt.getRootSymbols(Sn),ue=>pe(Sn,ue,void 0,Er)||(ue.parent&&ue.parent.flags&96&&ie(ue)?un(ue.parent,ue.name,Nt,mt=>pe(Sn,ue,mt,Er)):void 0))}function ln(Sn,Er){const ue=Il(Sn,205);if(ue&&L6(ue))return w9(Er,ue)}}function un(we,yt,Nt,Ce){const pt=new Map;return pe(we);function pe(ie){if(!(!(ie.flags&96)||!Lp(pt,Eo(ie))))return Jt(ie.declarations,he=>Jt(pk(he),j=>{const He=Nt.getTypeAtLocation(j),Ze=He&&He.symbol&&Nt.getPropertyOfType(He,yt);return He&&Ze&&(Jt(Nt.getRootSymbols(Ze),Ce)||pe(He.symbol))}))}}function ir(we){return we.valueDeclaration?!!(Hu(we.valueDeclaration)&32):!1}function cr(we,yt,Nt,Ce){const{checker:pt}=Ce;return Ht(yt,Nt,pt,!1,Ce.options.use!==2||!!Ce.options.providePrefixAndSuffixTextForRename,(pe,ie,he,j)=>(he&&ir(yt)!==ir(he)&&(he=void 0),we.includes(he||ie||pe)?{symbol:ie&&!(Dl(pe)&6)?ie:pe,kind:j}:void 0),pe=>!(we.parents&&!we.parents.some(ie=>wi(pe.parent,ie,Ce.inheritsFromCache,pt))))}function Mi(we,yt){let Nt=aS(we);const{declarations:Ce}=yt;if(Ce){let pt;do{pt=Nt;for(const pe of Ce){const ie=_6(pe);ie&Nt&&(Nt|=ie)}}while(Nt!==pt)}return Nt}e.getIntersectingMeaningFromDeclarations=Mi;function vi(we){return we.flags&16777216?!(ud(we)||um(we)):nC(we)?Uv(we):el(we)?!!we.body:_i(we)||yN(we)}function Nn(we,yt,Nt){const Ce=yt.getSymbolAtLocation(we),pt=yt.getShorthandAssignmentValueSymbol(Ce.valueDeclaration);if(pt)for(const pe of pt.getDeclarations())_6(pe)&1&&Nt(pe)}e.getReferenceEntriesForShorthandPropertyAssignment=Nn;function rn(we,yt,Nt){Pa(we,Ce=>{Ce.kind===yt&&Nt(Ce),rn(Ce,yt,Nt)})}function Mn(we){return jq(c9(we).parent)}function Ar(we,yt,Nt){const Ce=cL(we)?we.parent:void 0,pt=Ce&&Nt.getTypeAtLocation(Ce.expression),pe=pa(pt&&(pt.isUnionOrIntersection()?pt.types:pt.symbol===yt.parent?void 0:[pt]),ie=>ie.symbol&&ie.symbol.flags&96?ie.symbol:void 0);return pe.length===0?void 0:pe}function Hr(we){return we.use===2&&we.providePrefixAndSuffixTextForRename}})(hS||(hS={}))}}),_l={};X(_l,{Core:()=>hS,DefinitionKind:()=>Gne,EntryKind:()=>Une,ExportKind:()=>Pne,FindReferencesUse:()=>Vne,ImportExport:()=>Mne,createImportTracker:()=>Rne,findModuleReferences:()=>uAe,findReferenceOrRenameEntries:()=>zqe,findReferencedSymbols:()=>jqe,getContextNode:()=>dE,getExportInfo:()=>Nne,getImplementationsAtPosition:()=>Wqe,getImportOrExportSymbol:()=>_Ae,getReferenceEntriesForNode:()=>hAe,getTextSpanOfEntry:()=>Bne,isContextWithStartAndEndNode:()=>pAe,isDeclarationOfSymbol:()=>EAe,nodeEntry:()=>Uh,toContextSpan:()=>Fne,toHighlightSpan:()=>Qqe,toReferenceEntry:()=>vAe,toRenameLocation:()=>Jqe});var TAe=S({"src/services/_namespaces/ts.FindAllReferences.ts"(){Uqe(),eJe()}});function SAe(e,t,r,i,o){var s,c;const f=AAe(t,r,e),d=f&&[cJe(f.reference.fileName,f.fileName,f.unverified)]||rt;if(f!=null&&f.file)return d;const v=Vf(t,r);if(v===t)return;const{parent:h}=v,E=e.getTypeChecker();if(v.kind===161||je(v)&&b5(h)&&h.tagName===v)return nJe(E,v)||rt;if(m6(v)){const k=u9(v.parent,v.text);return k?[Hne(E,k,"label",v.text,void 0)]:void 0}if(v.kind===105){const k=rr(v.parent,G=>Rl(G)?"quit":el(G));return k?[sP(E,k)]:void 0}if(v.kind===133){const k=rr(v,V=>el(V));return k&&kt(k.modifiers,V=>V.kind===132)?[sP(E,k)]:void 0}if(v.kind===125){const k=rr(v,V=>el(V));return k&&k.asteriskToken?[sP(E,k)]:void 0}if(Hx(v)&&Rl(v.parent)){const k=v.parent.parent,{symbol:G,failedAliasResolution:V}=dU(k,E,o),H=yn(k.members,Rl),ne=G?E.symbolToString(G,k):"",Y=v.getSourceFile();return zt(H,$=>{let{pos:M}=sm($);return M=Xo(Y.text,M),Hne(E,$,"constructor","static {}",ne,!1,V,{start:M,length:6})})}let{symbol:C,failedAliasResolution:L}=dU(v,E,o),I=v;if(i&&L){const k=Je([v,...(C==null?void 0:C.declarations)||rt],V=>rr(V,vfe)),G=k&&HN(k);G&&({symbol:C,failedAliasResolution:L}=dU(G,E,o),I=G)}if(!C&&k9(I)){const k=(c=(s=t.resolvedModules)==null?void 0:s.get(I.text,wp(t,I)))==null?void 0:c.resolvedModule;if(k)return[{name:I.text,fileName:k.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Pc(0,0),failedAliasResolution:L,isAmbient:yd(k.resolvedFileName),unverified:I!==v}]}if(!C)return ya(d,oJe(v,E));if(i&&Zn(C.declarations,k=>k.getSourceFile().fileName===t.fileName))return;const O=dJe(E,v);if(O&&!(od(v.parent)&&fJe(O))){const k=sP(E,O,L);if(E.getRootSymbols(C).some(G=>tJe(G,O)))return[k];{const G=SL(E,C,v,L,O)||rt;return v.kind===106?[k,...G]:[...G,k]}}if(v.parent.kind===300){const k=E.getShorthandAssignmentValueSymbol(C.valueDeclaration),G=k!=null&&k.declarations?k.declarations.map(V=>rD(V,E,k,v,!1,L)):rt;return ya(G,xAe(E,v)||rt)}if(El(v)&&ms(h)&&Qm(h.parent)&&v===(h.propertyName||h.name)){const k=C6(v),G=E.getTypeAtLocation(h.parent);return k===void 0?rt:Ga(G.isUnion()?G.types:[G],V=>{const H=V.getProperty(k);return H&&SL(E,H,v)})}return ya(d,xAe(E,v)||SL(E,C,v,L))}function tJe(e,t){var r;return e===t.symbol||e===t.symbol.parent||ld(t.parent)||!yx(t.parent)&&e===((r=si(t.parent,Vm))==null?void 0:r.symbol)}function xAe(e,t){const r=V6(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return Ga(hB(r,e,i,!1),o=>SL(e,o,t))}}function nJe(e,t){const r=rr(t,qc);if(!(r&&r.name))return;const i=rr(r,_i);if(!i)return;const o=am(i);if(!o)return;const s=Ws(o.expression),c=qu(s)?s.symbol:e.getSymbolAtLocation(s);if(!c)return;const f=ra(QA(r.name)),d=Sc(r)?e.getPropertyOfType(e.getTypeOfSymbol(c),f):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(c),f);if(d)return SL(e,d,t)}function AAe(e,t,r){var i,o,s,c;const f=xL(e.referencedFiles,t);if(f){const h=r.getSourceFileFromReference(e,f);return h&&{reference:f,fileName:h.fileName,file:h,unverified:!1}}const d=xL(e.typeReferenceDirectives,t);if(d){const h=(i=r.getResolvedTypeReferenceDirectives().get(d.fileName,d.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,E=h&&r.getSourceFile(h.resolvedFileName);return E&&{reference:d,fileName:E.fileName,file:E,unverified:!1}}const v=xL(e.libReferenceDirectives,t);if(v){const h=r.getLibFileFromReference(v);return h&&{reference:v,fileName:h.fileName,file:h,unverified:!1}}if((o=e.resolvedModules)!=null&&o.size()){const h=Mw(e,t);if(k9(h)&&zc(h.text)&&e.resolvedModules.has(h.text,wp(e,h))){const E=(c=(s=e.resolvedModules.get(h.text,wp(e,h)))==null?void 0:s.resolvedModule)==null?void 0:c.resolvedFileName,C=E||Dv(yi(e.fileName),h.text);return{file:r.getSourceFile(C),fileName:C,reference:{pos:h.getStart(),end:h.getEnd(),fileName:h.text},unverified:!E}}}}function rJe(e,t,r){const i=Vf(t,r);if(i===t)return;if(tC(i.parent)&&i.parent.name===i)return jne(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:o,failedAliasResolution:s}=dU(i,e,!1);if(!o)return;const c=e.getTypeOfSymbolAtLocation(o,i),f=iJe(o,c,e),d=f&&jne(f,e,i,s),v=d&&d.length!==0?d:jne(c,e,i,s);return v.length?v:!(o.flags&111551)&&o.flags&788968?SL(e,gf(o,e),i,s):void 0}function jne(e,t,r,i){return Ga(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&SL(t,o.symbol,r,i))}function iJe(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Xi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(ds(i))}}function aJe(e,t,r){const i=SAe(e,t,r);if(!i||i.length===0)return;const o=xL(t.referencedFiles,r)||xL(t.typeReferenceDirectives,r)||xL(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:r0(o)};const s=Vf(t,r),c=Pc(s.getStart(),s.getWidth());return{definitions:i,textSpan:c}}function oJe(e,t){return pa(t.getIndexInfosAtLocation(e),r=>r.declaration&&sP(t,r.declaration))}function dU(e,t,r){const i=t.getSymbolAtLocation(e);let o=!1;if(i!=null&&i.declarations&&i.flags&2097152&&!r&&sJe(e,i.declarations[0])){const s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function sJe(e,t){return e.kind!==79?!1:e.parent===t?!0:t.kind!==271}function lJe(e){if(!fk(e))return!1;const t=rr(e,r=>ld(r)?!0:fk(r)?!1:"quit");return!!t&&wl(t)===5}function SL(e,t,r,i,o){const s=yn(t.declarations,E=>E!==o),c=yn(s,E=>!lJe(E)),f=kt(c)?c:s;return d()||v()||zt(f,E=>rD(E,e,t,r,!1,i));function d(){if(t.flags&32&&!(t.flags&19)&&(Nw(r)||r.kind===135)){const E=In(s,_i)||D.fail("Expected declaration to have at least one class-like declaration");return h(E.members,!0)}}function v(){return pQ(r)||bQ(r)?h(s,!1):void 0}function h(E,C){if(!E)return;const L=E.filter(C?Yl:Xa),I=L.filter(O=>!!O.body);return L.length?I.length!==0?I.map(O=>rD(O,e,t,r)):[rD(Jo(L),e,t,r,!1,i)]:void 0}}function rD(e,t,r,i,o,s){const c=t.symbolToString(r),f=zy.getSymbolKind(t,r,i),d=r.parent?t.symbolToString(r.parent,i):"";return Hne(t,e,f,c,d,o,s)}function Hne(e,t,r,i,o,s,c,f){const d=t.getSourceFile();if(!f){const v=Ia(t)||t;f=dd(v,d)}return Ka(Ti({fileName:d.fileName,textSpan:f,kind:r,name:i,containerKind:void 0,containerName:o},_l.toContextSpan(f,d,_l.getContextNode(t))),{isLocal:!Wne(e,t),isAmbient:!!(t.flags&16777216),unverified:s,failedAliasResolution:c})}function Wne(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Uv(t.parent)&&t.parent.initializer===t)return Wne(e,t.parent);switch(t.kind){case 169:case 174:case 175:case 171:if(zd(t,8))return!1;case 173:case 299:case 300:case 207:case 228:case 216:case 215:return Wne(e,t.parent);default:return!1}}function sP(e,t,r){return rD(t,e,t.symbol,t,!1,r)}function xL(e,t){return In(e,r=>ZM(r,t))}function cJe(e,t,r){return{fileName:t,textSpan:Tc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function uJe(e){const t=rr(e,i=>!cL(i)),r=t==null?void 0:t.parent;return r&&yx(r)&&B3(r)===t?r:void 0}function dJe(e,t){const r=uJe(t),i=r&&e.getResolvedSignature(r);return si(i&&i.declaration,o=>Xa(o)&&!Mh(o))}function fJe(e){switch(e.kind){case 173:case 182:case 177:return!0;default:return!1}}var _Je=S({"src/services/goToDefinition.ts"(){Qr()}}),iD={};X(iD,{createDefinitionInfo:()=>rD,findReferenceInPosition:()=>xL,getDefinitionAndBoundSpan:()=>aJe,getDefinitionAtPosition:()=>SAe,getReferenceAtPosition:()=>AAe,getTypeDefinitionAtPosition:()=>rJe});var pJe=S({"src/services/_namespaces/ts.GoToDefinition.ts"(){_Je()}});function mJe(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function hJe(e){return e.includeInlayParameterNameHints==="literals"}function gJe(e){const{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,c=t.text,f=r.getCompilerOptions(),d=r.getTypeChecker(),v=[];return h(t),v;function h(me){if(!(!me||me.getFullWidth()===0)){switch(me.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 171:case 216:o.throwIfCancellationRequested()}if(e3(i,me.pos,me.getFullWidth())&&!(Gi(me)&&!Py(me)))return s.includeInlayVariableTypeHints&&Xi(me)||s.includeInlayPropertyDeclarationTypeHints&&ro(me)?G(me):s.includeInlayEnumMemberValueHints&&Q1(me)?O(me):mJe(s)&&(io(me)||X1(me))?V(me):(s.includeInlayFunctionParameterTypeHints&&el(me)&&S7(me)&&de(me),s.includeInlayFunctionLikeReturnTypeHints&&E(me)&&$(me)),Pa(me,h)}}function E(me){return Xs(me)||Us(me)||xc(me)||uc(me)||Z_(me)}function C(me,Ee,xe){v.push({text:`${xe?"...":""}${be(me,fU)}:`,position:Ee,kind:"Parameter",whitespaceAfter:!0})}function L(me,Ee){v.push({text:`: ${be(me,fU)}`,position:Ee,kind:"Type",whitespaceBefore:!0})}function I(me,Ee){v.push({text:`= ${be(me,fU)}`,position:Ee,kind:"Enum",whitespaceBefore:!0})}function O(me){if(me.initializer)return;const Ee=d.getConstantValue(me);Ee!==void 0&&I(Ee.toString(),me.end)}function k(me){return me.symbol&&me.symbol.flags&1536}function G(me){if(!me.initializer||Ya(me.name)||Xi(me)&&!ce(me)||iu(me))return;const xe=d.getTypeAtLocation(me);if(k(xe))return;const te=ae(xe);if(te){if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&ax(me.name.getText(),te))return;L(te,me.name.end)}}function V(me){const Ee=me.arguments;if(!Ee||!Ee.length)return;const xe=[],te=d.getResolvedSignatureForSignatureHelp(me,xe);if(!(!te||!xe.length))for(let Qe=0;Qe<Ee.length;++Qe){const Ve=Ee[Qe],Ge=Ws(Ve);if(hJe(s)&&!Y(Ge))continue;const ze=d.getParameterIdentifierNameAtPosition(te,Qe);if(ze){const[Oe,Me]=ze;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!H(Ge,Oe))&&!Me)continue;const We=ra(Oe);if(ne(Ge,We))continue;C(We,Ve.getStart(),Me)}}}function H(me,Ee){return je(me)?me.text===Ee:Fr(me)?me.name.text===Ee:!1}function ne(me,Ee){if(!H_(Ee,f.target,gO(t.scriptKind)))return!1;const xe=xh(c,me.pos);if(!(xe!=null&&xe.length))return!1;const te=CAe(Ee);return kt(xe,Qe=>te.test(c.substring(Qe.pos,Qe.end)))}function Y(me){switch(me.kind){case 221:{const Ee=me.operand;return yT(Ee)||je(Ee)&&jk(Ee.escapedText)}case 110:case 95:case 104:case 14:case 225:return!0;case 79:{const Ee=me.escapedText;return W(Ee)||jk(Ee)}}return yT(me)}function $(me){if(Xs(me)&&!Es(me,20,t)||Cp(me)||!me.body)return;const xe=d.getSignatureFromDeclaration(me);if(!xe)return;const te=d.getReturnTypeOfSignature(xe);if(k(te))return;const Qe=ae(te);Qe&&L(Qe,M(me))}function M(me){const Ee=Es(me,21,t);return Ee?Ee.end:me.parameters.end}function de(me){const Ee=d.getSignatureFromDeclaration(me);if(Ee)for(let xe=0;xe<me.parameters.length&&xe<Ee.parameters.length;++xe){const te=me.parameters[xe];if(!ce(te)||iu(te))continue;const Ve=re(Ee.parameters[xe]);Ve&&L(Ve,te.questionToken?te.questionToken.end:te.name.end)}}function re(me){const Ee=me.valueDeclaration;if(!Ee||!Fa(Ee))return;const xe=d.getTypeOfSymbolAtLocation(me,Ee);if(!k(xe))return ae(xe)}function be(me,Ee){return me.length>Ee?me.substr(0,Ee-3)+"...":me}function ae(me){const xe=sE();return rk(te=>{const Qe=d.typeToTypeNode(me,void 0,71286784);D.assertIsDefined(Qe,"should always get typenode"),xe.writeNode(4,Qe,t,te)})}function W(me){return me==="undefined"}function ce(me){if((RT(me)||Xi(me)&&Tg(me))&&me.initializer){const Ee=Ws(me.initializer);return!(Y(Ee)||X1(Ee)||Is(Ee)||bT(Ee))}return!0}}var fU,CAe,yJe=S({"src/services/inlayHints.ts"(){Qr(),fU=30,CAe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),zne={};X(zne,{provideInlayHints:()=>gJe});var vJe=S({"src/services/_namespaces/ts.InlayHints.ts"(){yJe()}});function bJe(e,t){const r=[];return jQ(e,i=>{for(const o of TJe(i)){const s=th(o)&&o.tags&&In(o.tags,f=>f.kind===330&&(f.tagName.escapedText==="inheritDoc"||f.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||th(o)&&i.kind!==349&&i.kind!==341&&o.tags&&o.tags.some(f=>f.kind===349||f.kind===341)&&!o.tags.some(f=>f.kind===344||f.kind===345))continue;let c=o.comment?A2(o.comment,t):[];s&&s.comment&&(c=c.concat(A2(s.comment,t))),Ur(r,c,EJe)||r.push(c)}}),Ds(ta(r,[pL()]))}function EJe(e,t){return Oo(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function TJe(e){switch(e.kind){case 344:case 351:return[e];case 341:case 349:return[e,e.parent];default:return pq(e)}}function SJe(e,t){const r=[];return jQ(e,i=>{const o=k1(i);if(!(o.some(s=>s.kind===349||s.kind===341)&&!o.some(s=>s.kind===344||s.kind===345)))for(const s of o)r.push({name:s.tagName.text,text:xJe(s,t)})}),r}function A2(e,t){return typeof e=="string"?[jf(e)]:Ga(e,r=>r.kind===324?[jf(r.text)]:Lbe(r,t))}function xJe(e,t){const{comment:r,kind:i}=e,o=AJe(i);switch(i){case 352:const f=e.typeExpression;return f?s(f):r===void 0?void 0:A2(r,t);case 332:return s(e.class);case 331:return s(e.class);case 348:const d=e,v=[];if(d.constraint&&v.push(jf(d.constraint.getText())),Le(d.typeParameters)){Le(v)&&v.push(Sl());const E=d.typeParameters[d.typeParameters.length-1];Je(d.typeParameters,C=>{v.push(o(C.getText())),E!==C&&v.push(Iu(27),Sl())})}return r&&v.push(Sl(),...A2(r,t)),v;case 347:case 353:return s(e.typeExpression);case 349:case 341:case 351:case 344:case 350:const{name:h}=e;return h?s(h):r===void 0?void 0:A2(r,t);default:return r===void 0?void 0:A2(r,t)}function s(f){return c(f.getText())}function c(f){return r?f.match(/^https?$/)?[jf(f),...A2(r,t)]:[o(f),Sl(),...A2(r,t)]:[jf(f)]}}function AJe(e){switch(e){case 344:return Tbe;case 351:return Sbe;case 348:return Abe;case 349:case 341:return xbe;default:return jf}}function CJe(){return IAe||(IAe=zt(Jne,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:x2.SortText.LocationPriority})))}function LJe(){return kAe||(kAe=zt(Jne,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:x2.SortText.LocationPriority})))}function LAe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[jf(e)],documentation:rt,tags:void 0,codeActions:void 0}}function IJe(e){if(!je(e.name))return rt;const t=e.name.text,r=e.parent,i=r.parent;return Xa(i)?pa(i.parameters,o=>{if(!je(o.name))return;const s=o.name.text;if(!(r.tags.some(c=>c!==e&&_m(c)&&je(c.name)&&c.name.escapedText===s)||t!==void 0&&!Ta(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:x2.SortText.LocationPriority}}):[]}function kJe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[jf(e)],documentation:rt,tags:void 0,codeActions:void 0}}function wJe(e,t,r,i){const o=oa(t,r),s=rr(o,th);if(s&&(s.comment!==void 0||Le(s.tags)))return;const c=o.getStart(t);if(!s&&c<r)return;const f=OJe(o,i);if(!f)return;const{commentOwner:d,parameters:v,hasReturn:h}=f,E=Of(d)&&d.jsDoc?d.jsDoc:void 0,C=rl(E);if(d.getStart(t)<r||C&&s&&C!==s)return;const L=DJe(t,r),I=Mx(t.fileName),O=(v?RJe(v||[],I,L,e):"")+(h?NJe(L,e):""),k="/**",G=" */",V=(E||[]).some(H=>!!H.tags);if(O&&!V){const H=k+e+L+" * ",ne=c===r?e+L:"";return{newText:H+e+O+L+G+ne,caretOffset:H.length}}return{newText:k+G,caretOffset:3}}function DJe(e,t){const{text:r}=e,i=w_(t,e);let o=i;for(;o<=t&&Um(r.charCodeAt(o));o++);return r.slice(i,o)}function RJe(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},c)=>{const f=o.kind===79?o.text:"param"+c;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${f}${i}`}).join("")}function NJe(e,t){return`${e} * @returns${t}`}function OJe(e,t){return rfe(e,r=>qne(r,t))}function qne(e,t){switch(e.kind){case 259:case 215:case 171:case 173:case 170:case 216:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:lP(r,t)};case 299:return qne(e.initializer,t);case 260:case 261:case 263:case 302:case 262:return{commentOwner:e};case 168:{const o=e;return o.type&&Mh(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:lP(o.type,t)}:{commentOwner:e}}case 240:{const s=e.declarationList.declarations,c=s.length===1&&s[0].initializer?PJe(s[0].initializer):void 0;return c?{commentOwner:e,parameters:c.parameters,hasReturn:lP(c,t)}:{commentOwner:e}}case 308:return"quit";case 264:return e.parent.kind===264?void 0:{commentOwner:e};case 241:return qne(e.expression,t);case 223:{const o=e;return wl(o)===0?"quit":Xa(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:lP(o.right,t)}:{commentOwner:e}}case 169:const i=e.initializer;if(i&&(Us(i)||Xs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:lP(i,t)}}}function lP(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(Mh(e)||Xs(e)&&vt(e.body)||el(e)&&e.body&&uo(e.body)&&!!AT(e.body,r=>r))}function PJe(e){for(;e.kind===214;)e=e.expression;switch(e.kind){case 215:case 216:return e;case 228:return In(e.members,Yl)}}var Jne,IAe,kAe,wAe,MJe=S({"src/services/jsDoc.ts"(){Qr(),Jne=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],wAe=LAe}}),Cb={};X(Cb,{getDocCommentTemplateAtPosition:()=>wJe,getJSDocParameterNameCompletionDetails:()=>kJe,getJSDocParameterNameCompletions:()=>IJe,getJSDocTagCompletionDetails:()=>LAe,getJSDocTagCompletions:()=>LJe,getJSDocTagNameCompletionDetails:()=>wAe,getJSDocTagNameCompletions:()=>CJe,getJsDocCommentsFromDeclarations:()=>bJe,getJsDocTagsFromDeclarations:()=>SJe});var FJe=S({"src/services/_namespaces/ts.JsDoc.ts"(){MJe()}});function BJe(e,t,r,i,o,s){const c=gr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),f=s==="SortAndCombine"||s==="All",d=f,v=s==="RemoveUnused"||s==="All",h=Kne(e,e.statements.filter(Yc)),E=tKe(o,f?()=>NAe(h,o)===2:void 0),C=I=>(v&&(I=UJe(I,e,i)),d&&(I=DAe(I,E,e)),f&&(I=vy(I,(O,k)=>Zne(O,k,E))),I);if(h.forEach(I=>L(I,C)),s!=="RemoveUnused"){const I=e.statements.filter(au);L(I,O=>Xne(O,E))}for(const I of e.statements.filter(ju)){if(!I.body)continue;if(Kne(e,I.body.statements.filter(Yc)).forEach(k=>L(k,C)),s!=="RemoveUnused"){const k=I.body.statements.filter(au);L(k,G=>Xne(G,E))}}return c.getChanges();function L(I,O){if(Le(I)===0)return;N9(I[0]);const k=d?wI(I,H=>cP(H.moduleSpecifier)):[I],G=f?vy(k,(H,ne)=>$ne(H[0].moduleSpecifier,ne[0].moduleSpecifier,E)):k,V=Ga(G,H=>cP(H[0].moduleSpecifier)?O(H):H);if(V.length===0)c.deleteNodes(e,I,{leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.Include},!0);else{const H={leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.Include,suffix:Tb(r,t.options)};c.replaceNodeWithNodes(e,I[0],V,H);const ne=c.nodeHasTrailingComment(e,I[0],H);c.deleteNodes(e,I.slice(1),{trailingTriviaOption:gr.TrailingTriviaOption.Include},ne)}}}function Kne(e,t){const r=Sy(e.languageVersion,!1,e.languageVariant),i=[];let o=0;for(const s of t)i[o]&&GJe(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function GJe(e,t,r){const i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenPos()<o;)if(r.scan()===4&&(s++,s>=2))return!0;return!1}function UJe(e,t,r){const i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),c=i.getJsxFragmentFactory(t),f=!!(t.transformFlags&2),d=[];for(const h of e){const{importClause:E,moduleSpecifier:C}=h;if(!E){d.push(h);continue}let{name:L,namedBindings:I}=E;if(L&&!v(L)&&(L=void 0),I)if(Yv(I))v(I.name)||(I=void 0);else{const O=I.elements.filter(k=>v(k.name));O.length<I.elements.length&&(I=O.length?N.updateNamedImports(I,O):void 0)}L||I?d.push(aD(h,L,I)):VJe(t,C)&&(t.isDeclarationFile?d.push(N.createImportDeclaration(h.modifiers,void 0,C,void 0)):d.push(h))}return d;function v(h){return f&&(h.text===s||c&&h.text===c)&&uZ(o.jsx)||_l.Core.isSymbolReferencedInFile(h,i,t)}}function VJe(e,t){const r=Ho(t)&&t.text;return Ha(r)&&kt(e.moduleAugmentations,i=>Ho(i)&&i.text===r)}function cP(e){return e!==void 0&&As(e)?e.text:void 0}function jJe(e,t,r){const i=_U(t);return DAe(e,i,r)}function DAe(e,t,r){if(e.length===0)return e;const{importWithoutClause:i,typeOnlyImports:o,regularImports:s}=HJe(e),c=[];i&&c.push(i);for(const f of[s,o]){const d=f===o,{defaultImports:v,namespaceImports:h,namedImports:E}=f;if(!d&&v.length===1&&h.length===1&&E.length===0){const ne=v[0];c.push(aD(ne,ne.importClause.name,h[0].importClause.namedBindings));continue}const C=vy(h,(ne,Y)=>t(ne.importClause.namedBindings.name.text,Y.importClause.namedBindings.name.text));for(const ne of C)c.push(aD(ne,void 0,ne.importClause.namedBindings));const L=tu(v),I=tu(E),O=L!=null?L:I;if(!O)continue;let k;const G=[];if(v.length===1)k=v[0].importClause.name;else for(const ne of v)G.push(N.createImportSpecifier(!1,N.createIdentifier("default"),ne.importClause.name));G.push(...$Je(E));const V=N.createNodeArray(RAe(G,t),I==null?void 0:I.importClause.namedBindings.elements.hasTrailingComma),H=V.length===0?k?void 0:N.createNamedImports(rt):I?N.updateNamedImports(I.importClause.namedBindings,V):N.createNamedImports(V);r&&H&&(I!=null&&I.importClause.namedBindings)&&!MT(I.importClause.namedBindings,r)&&sr(H,2),d&&k&&H?(c.push(aD(O,k,void 0)),c.push(aD(I!=null?I:O,void 0,H))):c.push(aD(O,k,H))}return c}function HJe(e){let t;const r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const o of e){if(o.importClause===void 0){t=t||o;continue}const s=o.importClause.isTypeOnly?r:i,{name:c,namedBindings:f}=o.importClause;c&&s.defaultImports.push(o),f&&(Yv(f)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function WJe(e,t){const r=_U(t);return Xne(e,r)}function Xne(e,t){if(e.length===0)return e;const{exportWithoutClause:r,namedExports:i,typeOnlyExports:o}=c(e),s=[];r&&s.push(r);for(const f of[i,o]){if(f.length===0)continue;const d=[];d.push(...Ga(f,E=>E.exportClause&&tp(E.exportClause)?E.exportClause.elements:rt));const v=RAe(d,t),h=f[0];s.push(N.updateExportDeclaration(h,h.modifiers,h.isTypeOnly,h.exportClause&&(tp(h.exportClause)?N.updateNamedExports(h.exportClause,v):N.updateNamespaceExport(h.exportClause,h.exportClause.name)),h.moduleSpecifier,h.assertClause))}return s;function c(f){let d;const v=[],h=[];for(const E of f)E.exportClause===void 0?d=d||E:E.isTypeOnly?h.push(E):v.push(E);return{exportWithoutClause:d,namedExports:v,typeOnlyExports:h}}}function aD(e,t,r){return N.updateImportDeclaration(e,e.modifiers,N.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.assertClause)}function RAe(e,t){return vy(e,(r,i)=>Yne(r,i,t))}function Yne(e,t,r){return E1(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}function zJe(e,t,r){const i=_U(!!r);return $ne(e,t,i)}function $ne(e,t,r){const i=e===void 0?void 0:cP(e),o=t===void 0?void 0:cP(t);return E1(i===void 0,o===void 0)||E1(zc(i),zc(o))||r(i,o)}function Qne(e){var t;switch(e.kind){case 268:return(t=si(e.moduleReference,eh))==null?void 0:t.expression;case 269:return e.moduleSpecifier;case 240:return e.declarationList.declarations[0].initializer.arguments[0]}}function qJe(e,t){return NAe(Kne(e,e.statements.filter(Yc)),t)}function NAe(e,t){const r=C2(t,!1),i=C2(t,!0);let o=3,s=!1;for(const c of e){if(c.length>1){const d=fM(c,v=>{var h,E;return(E=(h=si(v.moduleSpecifier,Ho))==null?void 0:h.text)!=null?E:""},r,i);if(d&&(o&=d,s=!0),!o)return o}const f=In(c,d=>{var v,h;return((h=si((v=d.importClause)==null?void 0:v.namedBindings,My))==null?void 0:h.elements.length)>1});if(f){const d=ere(f.importClause.namedBindings.elements,t);if(d&&(o&=d,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function JJe(e,t){const r=C2(t,!1),i=C2(t,!0);return fM(e,o=>cP(Qne(o))||"",r,i)}function KJe(e,t,r){const i=kv(e,t,yl,(o,s)=>Zne(o,s,r));return i<0?~i:i}function XJe(e,t,r){const i=kv(e,t,yl,(o,s)=>Yne(o,s,r));return i<0?~i:i}function Zne(e,t,r){return $ne(Qne(e),Qne(t),r)||YJe(e,t)}function YJe(e,t){return qs(OAe(e),OAe(t))}function OAe(e){var t;switch(e.kind){case 269:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===271?2:e.importClause.name?3:4:0;case 268:return 5;case 240:return 6}}function $Je(e){return Ga(e,t=>zt(QJe(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?N.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function QJe(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&My(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function _U(e){return e?Qce:Uu}function ZJe(e,t){var r,i,o;const s=eKe(t),c=(r=t.organizeImportsCaseFirst)!=null?r:!1,f=(i=t.organizeImportsNumericCollation)!=null?i:!1,d=(o=t.organizeImportsAccentCollation)!=null?o:!0,v=e?d?"accent":"base":d?"variant":"case";return new Intl.Collator(s,{usage:"sort",caseFirst:c||"false",sensitivity:v,numeric:f}).compare}function eKe(e){let t=e.organizeImportsLocale;t==="auto"&&(t=Zce()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function C2(e,t){var r;return((r=e.organizeImportsCollation)!=null?r:"ordinal")==="unicode"?ZJe(t,e):_U(t)}function tKe(e,t){var r;const i=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(r=t==null?void 0:t())!=null?r:!1;return C2(e,i)}var PAe,ere,nKe=S({"src/services/organizeImports.ts"(){Qr(),PAe=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){var i;this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),(i=this._cache)!=null||(this._cache=new WeakMap),this._cache.set(e,r)}},ere=Yce((e,t)=>{if(!Uce(e,(o,s)=>E1(o.isTypeOnly,s.isTypeOnly)))return 0;const r=C2(t,!1),i=C2(t,!0);return fM(e,o=>o.name.text,r,i)},new PAe)}}),ap={};X(ap,{coalesceExports:()=>WJe,coalesceImports:()=>jJe,compareImportOrExportSpecifiers:()=>Yne,compareImportsOrRequireStatements:()=>Zne,compareModuleSpecifiers:()=>zJe,detectImportDeclarationSorting:()=>JJe,detectImportSpecifierSorting:()=>ere,detectSorting:()=>qJe,getImportDeclarationInsertionIndex:()=>KJe,getImportSpecifierInsertionIndex:()=>XJe,getOrganizeImportsComparer:()=>C2,organizeImports:()=>BJe});var rKe=S({"src/services/_namespaces/ts.OrganizeImports.ts"(){nKe()}});function iKe(e,t){const r=[];return aKe(e,t,r),oKe(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function aKe(e,t,r){let i=40,o=0;const s=[...e.statements,e.endOfFileToken],c=s.length;for(;o<c;){for(;o<c&&!xT(s[o]);)f(s[o]),o++;if(o===c)break;const d=o;for(;o<c&&xT(s[o]);)f(s[o]),o++;const v=o-1;v!==d&&r.push(uP(Es(s[d],100,e).getStart(e),s[v].getEnd(),"imports"))}function f(d){var v;if(i===0)return;t.throwIfCancellationRequested(),(Au(d)||gc(d)||Ip(d)||bg(d)||d.kind===1)&&FAe(d,e,t,r),Xa(d)&&br(d.parent)&&Fr(d.parent.left)&&FAe(d.parent.left,e,t,r),(uo(d)||dm(d))&&tre(d.statements.end,e,t,r),(_i(d)||ud(d))&&tre(d.members.end,e,t,r);const h=sKe(d,e);h&&r.push(h),i--,io(d)?(i++,f(d.expression),i--,d.arguments.forEach(f),(v=d.typeArguments)==null||v.forEach(f)):jT(d)&&d.elseStatement&&jT(d.elseStatement)?(f(d.expression),f(d.thenStatement),i++,f(d.elseStatement),i--):d.forEachChild(f),i++}}function oKe(e,t){const r=[],i=e.getLineStarts();for(const o of i){const s=e.getLineEndOfPosition(o),c=e.text.substring(o,s),f=MAe(c);if(!(!f||Vy(e,o)))if(f[1]){const d=r.pop();d&&(d.textSpan.length=s-d.textSpan.start,d.hintSpan.length=s-d.textSpan.start,t.push(d))}else{const d=Tc(e.text.indexOf("//",o),s);r.push(gS(d,"region",d,!1,f[2]||"#region"))}}}function MAe(e){return e=NI(e),Ta(e,"//")?(e=S1(e.slice(2)),BAe.exec(e)):null}function tre(e,t,r,i){const o=xh(t.text,e);if(!o)return;let s=-1,c=-1,f=0;const d=t.getFullText();for(const{kind:h,pos:E,end:C}of o)switch(r.throwIfCancellationRequested(),h){case 2:const L=d.slice(E,C);if(MAe(L)){v(),f=0;break}f===0&&(s=E),c=C,f++;break;case 3:v(),i.push(uP(E,C,"comment")),f=0;break;default:D.assertNever(h)}v();function v(){f>1&&i.push(uP(s,c,"comment"))}}function FAe(e,t,r,i){Vx(e)||tre(e.pos,t,r,i)}function uP(e,t,r){return gS(Tc(e,t),r)}function sKe(e,t){switch(e.kind){case 238:if(Xa(e.parent))return lKe(e.parent,e,t);switch(e.parent.kind){case 243:case 246:case 247:case 245:case 242:case 244:case 251:case 295:return h(e.parent);case 255:const L=e.parent;if(L.tryBlock===e)return h(e.parent);if(L.finallyBlock===e){const I=Es(L,96,t);if(I)return h(I)}default:return gS(dd(e,t),"code")}case 265:return h(e.parent);case 260:case 228:case 261:case 263:case 266:case 184:case 203:return h(e);case 186:return h(e,!1,!PC(e.parent),22);case 292:case 293:return E(e.statements);case 207:return v(e);case 206:return v(e,22);case 281:return s(e);case 285:return c(e);case 282:case 283:return f(e.attributes);case 225:case 14:return d(e);case 204:return h(e,!1,!ms(e.parent),22);case 216:return o(e);case 210:return i(e);case 214:return C(e);case 272:case 276:case 296:return r(e)}function r(L){if(!L.elements.length)return;const I=Es(L,18,t),O=Es(L,19,t);if(!(!I||!O||A_(I.pos,O.pos,t)))return pU(I,O,L,t,!1,!1)}function i(L){if(!L.arguments.length)return;const I=Es(L,20,t),O=Es(L,21,t);if(!(!I||!O||A_(I.pos,O.pos,t)))return pU(I,O,L,t,!1,!0)}function o(L){if(uo(L.body)||Jd(L.body)||A_(L.body.getFullStart(),L.body.getEnd(),t))return;const I=Tc(L.body.getFullStart(),L.body.getEnd());return gS(I,"code",dd(L))}function s(L){const I=Tc(L.openingElement.getStart(t),L.closingElement.getEnd()),O=L.openingElement.tagName.getText(t),k="<"+O+">...</"+O+">";return gS(I,"code",I,!1,k)}function c(L){const I=Tc(L.openingFragment.getStart(t),L.closingFragment.getEnd());return gS(I,"code",I,!1,"<>...</>")}function f(L){if(L.properties.length!==0)return uP(L.getStart(t),L.getEnd(),"code")}function d(L){if(!(L.kind===14&&L.text.length===0))return uP(L.getStart(t),L.getEnd(),"code")}function v(L,I=18){return h(L,!1,!zu(L.parent)&&!io(L.parent),I)}function h(L,I=!1,O=!0,k=18,G=k===18?19:23){const V=Es(e,k,t),H=Es(e,G,t);return V&&H&&pU(V,H,L,t,I,O)}function E(L){return L.length?gS(r0(L),"code"):void 0}function C(L){if(A_(L.getStart(),L.getEnd(),t))return;const I=Tc(L.getStart(),L.getEnd());return gS(I,"code",dd(L))}}function lKe(e,t,r){const i=cKe(e,t,r),o=Es(t,19,r);return i&&o&&pU(i,o,e,r,e.kind!==216)}function pU(e,t,r,i,o=!1,s=!0){const c=Tc(s?e.getFullStart():e.getStart(i),t.getEnd());return gS(c,"code",dd(r,i),o)}function gS(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function cKe(e,t,r){if(O_e(e.parameters,r)){const i=Es(e,20,r);if(i)return i}return Es(t,18,r)}var BAe,uKe=S({"src/services/outliningElementsCollector.ts"(){Qr(),BAe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),nre={};X(nre,{collectElements:()=>iKe});var dKe=S({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){uKe()}});function Og(e,t){mU.set(e,t)}function fKe(e){return No(m1(mU.values(),t=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((r=t.kinds)!=null&&r.some(i=>l0(i,e.kind)))?void 0:t.getAvailableActions(e)}))}function _Ke(e,t,r){const i=mU.get(t);return i&&i.getEditsForAction(e,r)}var mU,pKe=S({"src/services/refactorProvider.ts"(){Qr(),jh(),mU=new Map}});function GAe(e,t=!0){const{file:r,program:i}=e,o=_2(e),s=oa(r,o.start),c=s.parent&&Wv(s.parent)&1&&t?s.parent:I6(s,r,o);if(!c||!Ji(c.parent)&&!(dm(c.parent)&&ju(c.parent.parent)))return{error:Po(_.Could_not_find_export_statement)};const f=i.getTypeChecker(),d=bKe(c.parent,f),v=Wv(c)||(Vl(c)&&!c.isExportEquals?1025:0),h=!!(v&1024);if(!(v&1)||!h&&d.exports.has("default"))return{error:Po(_.This_file_already_has_a_default_export)};const E=C=>je(C)&&f.getSymbolAtLocation(C)?void 0:{error:Po(_.Can_only_convert_named_export)};switch(c.kind){case 259:case 260:case 261:case 263:case 262:case 264:{const C=c;return C.name?E(C.name)||{exportNode:C,exportName:C.name,wasDefault:h,exportingModuleSymbol:d}:void 0}case 240:{const C=c;if(!(C.declarationList.flags&2)||C.declarationList.declarations.length!==1)return;const L=ds(C.declarationList.declarations);return L.initializer?(D.assert(!h,"Can't have a default flag here"),E(L.name)||{exportNode:C,exportName:L.name,wasDefault:h,exportingModuleSymbol:d}):void 0}case 274:{const C=c;return C.isExportEquals?void 0:E(C.expression)||{exportNode:C,exportName:C.expression,wasDefault:h,exportingModuleSymbol:d}}default:return}}function mKe(e,t,r,i,o){hKe(e,r,i,t.getTypeChecker()),gKe(t,r,i,o)}function hKe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(Vl(r)&&!r.isExportEquals){const c=r.expression,f=UAe(c.text,c.text);o.replaceNode(e,r,N.createExportDeclaration(void 0,!1,N.createNamedExports([f])))}else o.delete(e,D.checkDefined(fL(r,88),"Should find a default keyword in modifier list"));else{const c=D.checkDefined(fL(r,93),"Should find an export keyword in modifier list");switch(r.kind){case 259:case 260:case 261:o.insertNodeAfter(e,c,N.createToken(88));break;case 240:const f=ds(r.declarationList.declarations);if(!_l.Core.isSymbolReferencedInFile(i,s,e)&&!f.type){o.replaceNode(e,r,N.createExportDefault(D.checkDefined(f.initializer,"Initializer was previously known to be present")));break}case 263:case 262:case 264:o.deleteModifier(e,c),o.insertNodeAfter(e,r,N.createExportDefault(N.createIdentifier(i.text)));break;default:D.fail(`Unexpected exportNode kind ${r.kind}`)}}}function gKe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){const c=e.getTypeChecker(),f=D.checkDefined(c.getSymbolAtLocation(r),"Export name should resolve to a symbol");_l.Core.eachExportReference(e.getSourceFiles(),c,s,f,i,r.text,t,d=>{if(r===d)return;const v=d.getSourceFile();t?yKe(v,d,o,r.text):vKe(v,d,o)})}function yKe(e,t,r,i){const{parent:o}=t;switch(o.kind){case 208:r.replaceNode(e,t,N.createIdentifier(i));break;case 273:case 278:{const c=o;r.replaceNode(e,c,rre(i,c.name.text));break}case 270:{const c=o;D.assert(c.name===t,"Import clause name should match provided ref");const f=rre(i,t.text),{namedBindings:d}=c;if(!d)r.replaceNode(e,t,N.createNamedImports([f]));else if(d.kind===271){r.deleteRange(e,{pos:t.getStart(e),end:d.getStart(e)});const v=Ho(c.parent.moduleSpecifier)?UQ(c.parent.moduleSpecifier,e):1,h=Hy(void 0,[rre(i,t.text)],c.parent.moduleSpecifier,v);r.insertNodeAfter(e,c.parent,h)}else r.delete(e,t),r.insertNodeAtEndOfList(e,d.elements,f);break}case 202:const s=o;r.replaceNode(e,o,N.createImportTypeNode(s.argument,s.assertions,N.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:D.failBadSyntaxKind(o)}}function vKe(e,t,r){const i=t.parent;switch(i.kind){case 208:r.replaceNode(e,t,N.createIdentifier("default"));break;case 273:{const o=N.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 278:{r.replaceNode(e,i,UAe("default",i.name.text));break}default:D.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function rre(e,t){return N.createImportSpecifier(!1,e===t?void 0:N.createIdentifier(e),N.createIdentifier(t))}function UAe(e,t){return N.createExportSpecifier(!1,e===t?void 0:N.createIdentifier(e),N.createIdentifier(t))}function bKe(e,t){if(Ji(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&O1(r.valueDeclaration)?t.getMergedSymbol(r):r}var hU,dP,fP,EKe=S({"src/services/refactors/convertExport.ts"(){Qr(),jh(),hU="Convert export",dP={name:"Convert default export to named export",description:_.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},fP={name:"Convert named export to default export",description:_.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"},Og(hU,{kinds:[dP.kind,fP.kind],getAvailableActions:function(t){const r=GAe(t,t.triggerReason==="invoked");if(!r)return rt;if(!Vh(r)){const i=r.wasDefault?dP:fP;return[{name:hU,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:hU,description:_.Convert_default_export_to_named_export.message,actions:[Ka(Ti({},dP),{notApplicableReason:r.error}),Ka(Ti({},fP),{notApplicableReason:r.error})]}]:rt},getEditsForAction:function(t,r){D.assert(r===dP.name||r===fP.name,"Unexpected action name");const i=GAe(t);return D.assert(i&&!Vh(i),"Expected applicable refactor info"),{edits:gr.ChangeTracker.with(t,s=>mKe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function VAe(e,t=!0){const{file:r}=e,i=_2(e),o=oa(r,i.start),s=t?rr(o,Yc):I6(o,r,i);if(!s||!Yc(s))return{error:"Selection is not an import declaration."};const c=i.start+i.length,f=sS(s,s.parent,r);if(f&&c>f.getStart())return;const{importClause:d}=s;return d?d.namedBindings?d.namedBindings.kind===271?{convertTo:0,import:d.namedBindings}:jAe(e.program,d)?{convertTo:1,import:d.namedBindings}:{convertTo:2,import:d.namedBindings}:{error:Po(_.Could_not_find_namespace_import_or_named_imports)}:{error:Po(_.Could_not_find_import_clause)}}function jAe(e,t){return FT(e.getCompilerOptions())&&AKe(t.parent.moduleSpecifier,e.getTypeChecker())}function TKe(e,t,r,i){const o=t.getTypeChecker();i.convertTo===0?SKe(e,o,r,i.import,FT(t.getCompilerOptions())):WAe(e,t,r,i.import,i.convertTo===1)}function SKe(e,t,r,i,o){let s=!1;const c=[],f=new Map;_l.Core.eachSymbolReferenceInFile(i.name,t,e,E=>{if(!Vde(E.parent))s=!0;else{const C=HAe(E.parent).text;t.resolveName(C,E,67108863,!0)&&f.set(C,!0),D.assert(xKe(E.parent)===E,"Parent expression should match id"),c.push(E.parent)}});const d=new Map;for(const E of c){const C=HAe(E).text;let L=d.get(C);L===void 0&&d.set(C,L=f.has(C)?uS(C,e):C),r.replaceNode(e,E,N.createIdentifier(L))}const v=[];d.forEach((E,C)=>{v.push(N.createImportSpecifier(!1,E===C?void 0:N.createIdentifier(C),N.createIdentifier(E)))});const h=i.parent.parent;s&&!o?r.insertNodeAfter(e,h,ire(h,void 0,v)):r.replaceNode(e,h,ire(h,s?N.createIdentifier(i.name.text):void 0,v))}function HAe(e){return Fr(e)?e.name:e.right}function xKe(e){return Fr(e)?e.expression:e.left}function WAe(e,t,r,i,o=jAe(t,i.parent)){const s=t.getTypeChecker(),c=i.parent.parent,{moduleSpecifier:f}=c,d=new Set;i.elements.forEach(I=>{const O=s.getSymbolAtLocation(I.name);O&&d.add(O)});const v=f&&Ho(f)?Yu.moduleSpecifierToValidIdentifier(f.text,99):"module";function h(I){return!!_l.Core.eachSymbolReferenceInFile(I.name,s,e,O=>{const k=s.resolveName(v,O,67108863,!0);return k?d.has(k)?gd(O.parent):!0:!1})}const C=i.elements.some(h)?uS(v,e):v,L=new Set;for(const I of i.elements){const O=(I.propertyName||I.name).text;_l.Core.eachSymbolReferenceInFile(I.name,s,e,k=>{const G=N.createPropertyAccessExpression(N.createIdentifier(C),O);u_(k.parent)?r.replaceNode(e,k.parent,N.createPropertyAssignment(k.text,G)):gd(k.parent)?L.add(I):r.replaceNode(e,k,G)})}if(r.replaceNode(e,i,o?N.createIdentifier(C):N.createNamespaceImport(N.createIdentifier(C))),L.size){const I=No(L.values(),O=>N.createImportSpecifier(O.isTypeOnly,O.propertyName&&N.createIdentifier(O.propertyName.text),N.createIdentifier(O.name.text)));r.insertNodeAfter(e,i.parent.parent,ire(c,void 0,I))}}function AKe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function ire(e,t,r){return N.createImportDeclaration(void 0,N.createImportClause(!1,t,r&&r.length?N.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var gU,_P,CKe=S({"src/services/refactors/convertImport.ts"(){Qr(),jh(),gU="Convert import",_P={0:{name:"Convert namespace import to named imports",description:_.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:_.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:_.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"}},Og(gU,{kinds:ix(_P).map(e=>e.kind),getAvailableActions:function(t){const r=VAe(t,t.triggerReason==="invoked");if(!r)return rt;if(!Vh(r)){const i=_P[r.convertTo];return[{name:gU,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?ix(_P).map(i=>({name:gU,description:i.description,actions:[Ka(Ti({},i),{notApplicableReason:r.error})]})):rt},getEditsForAction:function(t,r){D.assert(kt(ix(_P),s=>s.name===r),"Unexpected action name");const i=VAe(t);return D.assert(i&&!Vh(i),"Expected applicable refactor info"),{edits:gr.ChangeTracker.with(t,s=>TKe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function zAe(e,t=!0){const{file:r,startPosition:i}=e,o=sd(r),s=oa(r,i),c=E9(_2(e)),f=c.pos===c.end&&t,d=rr(s,L=>L.parent&&Gi(L)&&!Lb(c,L.parent,r)&&(f||TQ(s,r,c.pos,c.end)));if(!d||!Gi(d))return{error:Po(_.Selection_is_not_a_valid_type_node)};const v=e.program.getTypeChecker(),h=DKe(d,o);if(h===void 0)return{error:Po(_.No_type_could_be_extracted_from_this_type_node)};const E=LKe(v,d,h,r);if(!E)return{error:Po(_.No_type_could_be_extracted_from_this_type_node)};const C=are(v,d);return{isJS:o,selection:d,enclosingNode:h,typeParameters:E,typeElements:C}}function are(e,t){if(t)if(YO(t)){const r=[],i=new Map;for(const o of t.types){const s=are(e,o);if(!s||!s.every(c=>c.name&&Lp(i,C6(c.name))))return;Ai(r,s)}return r}else{if(qx(t))return are(e,t.type);if(yf(t))return t.members}}function Lb(e,t,r){return y6(e,Xo(r.text,t.pos),t.end)}function LKe(e,t,r,i){const o=[];return s(t)?void 0:o;function s(c){if(ep(c)){if(je(c.typeName)){const f=c.typeName,d=e.resolveName(f.text,f,262144,!0);for(const v of(d==null?void 0:d.declarations)||rt)if(Ul(v)&&v.getSourceFile()===i){if(v.name.escapedText===f.escapedText&&Lb(v,t,i))return!0;if(Lb(r,v,i)&&!Lb(t,v,i)){v_(o,v);break}}}}else if(FC(c)){const f=rr(c,d=>MC(d)&&Lb(d.extendsType,c,i));if(!f||!Lb(t,f,i))return!0}else if(f5(c)||_5(c)){const f=rr(c.parent,Xa);if(f&&f.type&&Lb(f.type,c,i)&&!Lb(t,f,i))return!0}else if(Zk(c)){if(je(c.exprName)){const f=e.resolveName(c.exprName.text,c.exprName,111551,!1);if(f!=null&&f.valueDeclaration&&Lb(r,f.valueDeclaration,i)&&!Lb(t,f.valueDeclaration,i))return!0}else if(OT(c.exprName.left)&&!Lb(t,c.parent,i))return!0}return i&&PC(c)&&cl(i,c.pos).line===cl(i,c.end).line&&sr(c,1),Pa(c,s)}}function IKe(e,t,r,i){const{enclosingNode:o,selection:s,typeParameters:c}=i,f=N.createTypeAliasDeclaration(void 0,r,c.map(d=>N.updateTypeParameterDeclaration(d,d.modifiers,d.name,d.constraint,void 0)),s);e.insertNodeBefore(t,o,tK(f),!0),e.replaceNode(t,s,N.createTypeReferenceNode(r,c.map(d=>N.createTypeReferenceNode(d.name,void 0))),{leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.ExcludeWhitespace})}function kKe(e,t,r,i){var o;const{enclosingNode:s,selection:c,typeParameters:f,typeElements:d}=i,v=N.createInterfaceDeclaration(void 0,r,f,void 0,d);ht(v,(o=d[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,tK(v),!0),e.replaceNode(t,c,N.createTypeReferenceNode(r,f.map(h=>N.createTypeReferenceNode(h.name,void 0))),{leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.ExcludeWhitespace})}function wKe(e,t,r,i,o){var s;const{enclosingNode:c,selection:f,typeParameters:d}=o;sr(f,7168);const v=N.createJSDocTypedefTag(N.createIdentifier("typedef"),N.createJSDocTypeExpression(f),N.createIdentifier(i)),h=[];Je(d,C=>{const L=jA(C),I=N.createTypeParameterDeclaration(void 0,C.name),O=N.createJSDocTemplateTag(N.createIdentifier("template"),L&&so(L,qT),[I]);h.push(O)});const E=N.createJSDocComment(void 0,N.createNodeArray(ya(h,[v])));if(th(c)){const C=c.getStart(r),L=Tb(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,c.getStart(r),E,{suffix:L+L+r.text.slice(XQ(r.text,C-1),C)})}else e.insertNodeBefore(r,c,E,!0);e.replaceNode(r,f,N.createTypeReferenceNode(i,d.map(C=>N.createTypeReferenceNode(C.name,void 0))))}function DKe(e,t){return rr(e,ka)||(t?rr(e,th):void 0)}var yU,pP,mP,hP,RKe=S({"src/services/refactors/extractType.ts"(){Qr(),jh(),yU="Extract type",pP={name:"Extract to type alias",description:Po(_.Extract_to_type_alias),kind:"refactor.extract.type"},mP={name:"Extract to interface",description:Po(_.Extract_to_interface),kind:"refactor.extract.interface"},hP={name:"Extract to typedef",description:Po(_.Extract_to_typedef),kind:"refactor.extract.typedef"},Og(yU,{kinds:[pP.kind,mP.kind,hP.kind],getAvailableActions:function(t){const r=zAe(t,t.triggerReason==="invoked");return r?Vh(r)?t.preferences.provideRefactorNotApplicableReason?[{name:yU,description:Po(_.Extract_type),actions:[Ka(Ti({},hP),{notApplicableReason:r.error}),Ka(Ti({},pP),{notApplicableReason:r.error}),Ka(Ti({},mP),{notApplicableReason:r.error})]}]:rt:[{name:yU,description:Po(_.Extract_type),actions:r.isJS?[hP]:Bn([pP],r.typeElements&&mP)}]:rt},getEditsForAction:function(t,r){const{file:i}=t,o=zAe(t);D.assert(o&&!Vh(o),"Expected to find a range to extract");const s=uS("NewType",i),c=gr.ChangeTracker.with(t,v=>{switch(r){case pP.name:return D.assert(!o.isJS,"Invalid actionName/JS combo"),IKe(v,i,s,o);case hP.name:return D.assert(o.isJS,"Invalid actionName/JS combo"),wKe(v,t,i,s,o);case mP.name:return D.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),kKe(v,i,s,o);default:D.fail("Unexpected action name")}}),f=i.fileName,d=R6(c,f,s,!1);return{edits:c,renameFilename:f,renameLocation:d}}})}});function Vh(e){return e.error!==void 0}function l0(e,t){return t?e.substr(0,t.length)===t:!0}var NKe=S({"src/services/refactors/helpers.ts"(){}});function OKe(e){const{file:t}=e,r=E9(_2(e)),{statements:i}=t,o=mi(i,f=>f.end>r.pos);if(o===-1)return;const s=i[o];if(Su(s)&&s.name&&vf(s.name,r))return{toMove:[i[o]],afterLast:i[o+1]};if(r.pos>s.getStart(t))return;const c=mi(i,f=>f.end>r.end,o);if(!(c!==-1&&(c===0||i[c].getStart(t)<r.end)))return{toMove:i.slice(o,c===-1?i.length:c),afterLast:c===-1?void 0:i[c]}}function PKe(e,t,r,i,o,s){const c=t.getTypeChecker(),f=QKe(e,r.all,c),d=yi(e.fileName),v=LO(e.fileName),h=Bi(d,YKe($Ke(f.oldFileImportsFromNewFile,f.movedSymbols),v,d,o))+v;i.createNewFile(e,h,GKe(e,f,i,r,t,o,h,s)),BKe(t,i,e.fileName,h,db(o))}function qAe(e){const t=OKe(e);if(t===void 0)return;const r=[],i=[],{toMove:o,afterLast:s}=t;return pH(o,MKe,(c,f)=>{for(let d=c;d<f;d++)r.push(o[d]);i.push({first:o[c],afterLast:s})}),r.length===0?void 0:{all:r,ranges:i}}function MKe(e){return!FKe(e)&&!Ap(e)}function FKe(e){switch(e.kind){case 269:return!0;case 268:return!$r(e,1);case 240:return e.declarationList.declarations.every(t=>!!t.initializer&&wd(t.initializer,!0));default:return!1}}function BKe(e,t,r,i,o){const s=e.getCompilerOptions().configFile;if(!s)return;const c=Ko(Bi(r,"..",i)),f=QR(s.fileName,c,o),d=s.statements[0]&&si(s.statements[0].expression,Is),v=d&&In(d.properties,h=>$c(h)&&Ho(h.name)&&h.name.text==="files");v&&zu(v.initializer)&&t.insertNodeInListAfter(s,Jo(v.initializer.elements),N.createStringLiteral(f),v.initializer.elements)}function GKe(e,t,r,i,o,s,c,f){const d=o.getTypeChecker(),v=TM(e.statements,Ap);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByNewFile.size()===0)return JAe(e,i.ranges,r),[...v,...i.all];const h=!!e.externalModuleIndicator,E=Rp(e,f),C=zKe(e,t.oldFileImportsFromNewFile,c,o,s,h,E);C&&D9(r,e,C,!0,f),UKe(e,i.all,r,t.unusedImportsFromOldFile,d),JAe(e,i.ranges,r),VKe(r,o,s,e,t.movedSymbols,c);const L=XKe(e,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,r,d,o,s,h,E),I=qKe(e,i.all,t.oldFileImportsFromNewFile,h);return L.length&&I.length?[...v,...L,4,...I]:[...v,...L,...I]}function JAe(e,t,r){for(const{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function UKe(e,t,r,i,o){for(const s of e.statements)Ur(t,s)||ore(s,c=>$Ae(e,c,r,f=>i.has(o.getSymbolAtLocation(f))))}function VKe(e,t,r,i,o,s){const c=t.getTypeChecker();for(const f of t.getSourceFiles())if(f!==i)for(const d of f.statements)ore(d,v=>{if(c.getSymbolAtLocation(KAe(v))!==i.symbol)return;const h=O=>{const k=ms(O.parent)?w9(c,O.parent):gf(c.getSymbolAtLocation(O),c);return!!k&&o.has(k)};$Ae(f,v,e,h);const E=Dv(yi(i.path),s),C=uF(t.getCompilerOptions(),f,f.path,E,f2(t,r)),L=eCe(v,N.createStringLiteral(C),h);L&&e.insertNodeAfter(f,d,L);const I=jKe(v);I&&HKe(e,f,c,o,C,I,v)})}function jKe(e){switch(e.kind){case 269:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===271?e.importClause.namedBindings.name:void 0;case 268:return e.name;case 257:return si(e.name,je);default:return D.assertNever(e,`Unexpected node kind ${e.kind}`)}}function HKe(e,t,r,i,o,s,c){const f=Yu.moduleSpecifierToValidIdentifier(o,99);let d=!1;const v=[];if(_l.Core.eachSymbolReferenceInFile(s,r,t,h=>{Fr(h.parent)&&(d=d||!!r.resolveName(f,h,67108863,!0),i.has(r.getSymbolAtLocation(h.parent.name))&&v.push(h))}),v.length){const h=d?uS(f,t):f;for(const E of v)e.replaceNode(t,E,N.createIdentifier(h));e.insertNodeAfter(t,c,WKe(c,f,o))}}function WKe(e,t,r){const i=N.createIdentifier(t),o=N.createStringLiteral(r);switch(e.kind){case 269:return N.createImportDeclaration(void 0,N.createImportClause(!1,void 0,N.createNamespaceImport(i)),o,void 0);case 268:return N.createImportEqualsDeclaration(void 0,!1,i,N.createExternalModuleReference(o));case 257:return N.createVariableDeclaration(i,void 0,void 0,sre(o));default:return D.assertNever(e,`Unexpected node kind ${e.kind}`)}}function KAe(e){return e.kind===269?e.moduleSpecifier:e.kind===268?e.moduleReference.expression:e.initializer.arguments[0]}function ore(e,t){if(Yc(e))Ho(e.moduleSpecifier)&&t(e);else if(_u(e))eh(e.moduleReference)&&As(e.moduleReference.expression)&&t(e);else if(gc(e))for(const r of e.declarationList.declarations)r.initializer&&wd(r.initializer,!0)&&t(r)}function zKe(e,t,r,i,o,s,c){let f;const d=[];return t.forEach(v=>{v.escapedName==="default"?f=N.createIdentifier(L9(v)):d.push(v.name)}),XAe(e,f,d,r,i,o,s,c)}function XAe(e,t,r,i,o,s,c,f){const d=Dv(yi(e.path),i),v=uF(o.getCompilerOptions(),e,e.path,d,f2(o,s));if(c){const h=r.map(E=>N.createImportSpecifier(!1,void 0,N.createIdentifier(E)));return gbe(t,h,v,f)}else{D.assert(!t,"No default import should exist");const h=r.map(E=>N.createBindingElement(void 0,void 0,E));return h.length?YAe(N.createObjectBindingPattern(h),void 0,sre(N.createStringLiteral(v))):void 0}}function YAe(e,t,r,i=2){return N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(e,void 0,t,r)],i))}function sre(e){return N.createCallExpression(N.createIdentifier("require"),void 0,[e])}function qKe(e,t,r,i){return Ga(t,o=>{if(nXe(o)&&!sCe(e,o,i)&&iCe(o,s=>{var c;return r.has(D.checkDefined((c=si(s,Vm))==null?void 0:c.symbol))})){const s=aXe(o,i);if(s)return s}return o})}function $Ae(e,t,r,i){switch(t.kind){case 269:JKe(e,t,r,i);break;case 268:i(t.name)&&r.delete(e,t);break;case 257:KKe(e,t,r,i);break;default:D.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function JKe(e,t,r,i){if(!t.importClause)return;const{name:o,namedBindings:s}=t.importClause,c=!o||i(o),f=!s||(s.kind===271?i(s.name):s.elements.length!==0&&s.elements.every(d=>i(d.name)));if(c&&f)r.delete(e,t);else if(o&&c&&r.delete(e,o),s){if(f)r.replaceNode(e,t.importClause,N.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===272)for(const d of s.elements)i(d.name)&&r.delete(e,d)}}function KKe(e,t,r,i){const{name:o}=t;switch(o.kind){case 79:i(o)&&(t.initializer&&wd(t.initializer,!0)?r.delete(e,Ju(t.parent)&&Le(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 204:break;case 203:if(o.elements.every(s=>je(s.name)&&i(s.name)))r.delete(e,Ju(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const s of o.elements)je(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function XKe(e,t,r,i,o,s,c,f,d){const v=[];for(const L of e.statements)ore(L,I=>{Bn(v,eCe(I,KAe(I),O=>t.has(o.getSymbolAtLocation(O))))});let h;const E=[],C=dL();return r.forEach(L=>{if(L.declarations)for(const I of L.declarations){if(!nCe(I))continue;const O=rXe(I);if(!O)continue;const k=oCe(I);C(k)&&iXe(e,k,O,i,f),$r(I,1024)?h=O:E.push(O.text)}}),Bn(v,XAe(e,h,E,Eu(e.fileName),s,c,f,d)),v}function YKe(e,t,r,i){let o=e;for(let s=1;;s++){const c=Bi(r,o+t);if(!i.fileExists(c))return o;o=`${e}.${s}`}}function $Ke(e,t){return e.forEachEntry(L9)||t.forEachEntry(L9)||"newFile"}function QKe(e,t,r){const i=new sD,o=new sD,s=new sD,c=In(t,E=>!!(E.transformFlags&2)),f=h(c);f&&o.add(f);for(const E of t)iCe(E,C=>{i.add(D.checkDefined(fu(C)?r.getSymbolAtLocation(C.expression.left):C.symbol,"Need a symbol here"))});for(const E of t)tCe(E,r,C=>{if(C.declarations)for(const L of C.declarations)QAe(L)?o.add(C):nCe(L)&&tXe(L)===e&&!i.has(C)&&s.add(C)});const d=o.clone(),v=new sD;for(const E of e.statements)Ur(t,E)||(f&&E.transformFlags&2&&d.delete(f),tCe(E,r,C=>{i.has(C)&&v.add(C),d.delete(C)}));return{movedSymbols:i,newFileImportsFromOldFile:s,oldFileImportsFromNewFile:v,oldImportsNeededByNewFile:o,unusedImportsFromOldFile:d};function h(E){if(E===void 0)return;const C=r.getJsxNamespace(E),L=r.resolveName(C,E,1920,!0);return L&&kt(L.declarations,QAe)?L:void 0}}function QAe(e){switch(e.kind){case 268:case 273:case 270:case 271:return!0;case 257:return ZAe(e);case 205:return Xi(e.parent.parent)&&ZAe(e.parent.parent);default:return!1}}function ZAe(e){return Ji(e.parent.parent.parent)&&!!e.initializer&&wd(e.initializer,!0)}function eCe(e,t,r){switch(e.kind){case 269:{const i=e.importClause;if(!i)return;const o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&ZKe(i.namedBindings,r);return o||s?N.createImportDeclaration(void 0,N.createImportClause(i.isTypeOnly,o,s),t,void 0):void 0}case 268:return r(e.name)?e:void 0;case 257:{const i=eXe(e.name,r);return i?YAe(i,e.type,sre(t),e.parent.flags):void 0}default:return D.assertNever(e,`Unexpected import kind ${e.kind}`)}}function ZKe(e,t){if(e.kind===271)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?N.createNamedImports(r):void 0}}function eXe(e,t){switch(e.kind){case 79:return t(e)?e:void 0;case 204:return e;case 203:{const r=e.elements.filter(i=>i.propertyName||!je(i.name)||t(i.name));return r.length?N.createObjectBindingPattern(r):void 0}}}function tCe(e,t,r){e.forEachChild(function i(o){if(je(o)&&!Ag(o)){const s=t.getSymbolAtLocation(o);s&&r(s)}else o.forEachChild(i)})}function nCe(e){return rCe(e)&&Ji(e.parent)||Xi(e)&&Ji(e.parent.parent.parent)}function tXe(e){return Xi(e)?e.parent.parent.parent:e.parent}function nXe(e){return D.assert(Ji(e.parent),"Node parent should be a SourceFile"),rCe(e)||gc(e)}function rCe(e){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return!0;default:return!1}}function iCe(e,t){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return t(e);case 240:return Jt(e.declarationList.declarations,r=>aCe(r.name,t));case 241:{const{expression:r}=e;return br(r)&&wl(r)===1?t(e):void 0}}}function aCe(e,t){switch(e.kind){case 79:return t(so(e.parent,r=>Xi(r)||ms(r)));case 204:case 203:return Jt(e.elements,r=>Fc(r)?void 0:aCe(r.name,t));default:return D.assertNever(e,`Unexpected name kind ${e.kind}`)}}function rXe(e){return fu(e)?si(e.expression.left.name,je):si(e.name,je)}function oCe(e){switch(e.kind){case 257:return e.parent.parent;case 205:return oCe(so(e.parent.parent,t=>Xi(t)||ms(t)));default:return e}}function iXe(e,t,r,i,o){if(!sCe(e,t,o,r))if(o)fu(t)||i.insertExportModifier(e,t);else{const s=lre(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(lCe))}}function sCe(e,t,r,i){var o;return r?!fu(t)&&$r(t,1)||!!(i&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&lre(t).some(s=>e.symbol.exports.has(ul(s)))}function aXe(e,t){return t?[oXe(e)]:sXe(e)}function oXe(e){const t=np(e)?ya([N.createModifier(93)],hT(e)):void 0;switch(e.kind){case 259:return N.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 260:const r=i2(e)?Ov(e):void 0;return N.updateClassDeclaration(e,ya(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 240:return N.updateVariableStatement(e,t,e.declarationList);case 264:return N.updateModuleDeclaration(e,t,e.name,e.body);case 263:return N.updateEnumDeclaration(e,t,e.name,e.members);case 262:return N.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 261:return N.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 268:return N.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 241:return D.fail();default:return D.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function sXe(e){return[e,...lre(e).map(lCe)]}function lre(e){switch(e.kind){case 259:case 260:return[e.name.text];case 240:return pa(e.declarationList.declarations,t=>je(t.name)?t.name.text:void 0);case 264:case 263:case 262:case 261:case 268:return rt;case 241:return D.fail("Can't export an ExpressionStatement");default:return D.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function lCe(e){return N.createExpressionStatement(N.createBinaryExpression(N.createPropertyAccessExpression(N.createIdentifier("exports"),N.createIdentifier(e)),63,N.createIdentifier(e)))}var oD,vU,bU,sD,lXe=S({"src/services/refactors/moveToNewFile.ts"(){rye(),Qr(),jh(),oD="Move to a new file",vU=Po(_.Move_to_a_new_file),bU={name:oD,description:vU,kind:"refactor.move.newFile"},Og(oD,{kinds:[bU.kind],getAvailableActions:function(t){const r=qAe(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:oD,description:vU,actions:[bU]}]:t.preferences.provideRefactorNotApplicableReason?[{name:oD,description:vU,actions:[Ka(Ti({},bU),{notApplicableReason:Po(_.Selection_is_not_a_valid_statement_or_statements)})]}]:rt},getEditsForAction:function(t,r){D.assert(r===oD,"Wrong refactor invoked");const i=D.checkDefined(qAe(t));return{edits:gr.ChangeTracker.with(t,s=>PKe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}}),sD=class{constructor(){this.map=new Map}add(e){this.map.set(String(Eo(e)),e)}has(e){return this.map.has(String(Eo(e)))}delete(e){this.map.delete(String(Eo(e)))}forEach(e){this.map.forEach(e)}forEachEntry(e){return pf(this.map,e)}clone(){const e=new sD;return EN(this.map,e.map),e}size(){return this.map.size}}}});function cXe(e){const{file:t,startPosition:r,program:i}=e;return uCe(t,r,i)?[{name:EU,description:cre,actions:[ure]}]:rt}function uXe(e){const{file:t,startPosition:r,program:i}=e,o=uCe(t,r,i);if(!o)return;const s=i.getTypeChecker(),c=o[o.length-1];let f=c;switch(c.kind){case 170:{f=N.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,v(o),c.type);break}case 171:{f=N.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,v(o),c.type,c.body);break}case 176:{f=N.updateCallSignature(c,c.typeParameters,v(o),c.type);break}case 173:{f=N.updateConstructorDeclaration(c,c.modifiers,v(o),c.body);break}case 177:{f=N.updateConstructSignature(c,c.typeParameters,v(o),c.type);break}case 259:{f=N.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,v(o),c.type,c.body);break}default:return D.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(f===c)return;return{renameFilename:void 0,renameLocation:void 0,edits:gr.ChangeTracker.with(e,C=>{C.replaceNodeRange(t,o[0],o[o.length-1],f)})};function v(C){const L=C[C.length-1];return el(L)&&L.body&&(C=C.slice(0,C.length-1)),N.createNodeArray([N.createParameterDeclaration(void 0,N.createToken(25),"args",void 0,N.createUnionTypeNode(zt(C,h)))])}function h(C){const L=zt(C.parameters,E);return sr(N.createTupleTypeNode(L),kt(L,I=>!!Le(wC(I)))?0:1)}function E(C){D.assert(je(C.name));const L=ht(N.createNamedTupleMember(C.dotDotDotToken,C.name,C.questionToken,C.type||N.createKeywordTypeNode(131)),C),I=C.symbol&&C.symbol.getDocumentationComment(s);if(I){const O=dEe(I);O.length&&K1(L,[{text:`*
- ${O.split(`
- `).map(k=>` * ${k}`).join(`
- `)}
- `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return L}}function cCe(e){switch(e.kind){case 170:case 171:case 176:case 173:case 177:case 259:return!0}return!1}function uCe(e,t,r){const i=oa(e,t),o=rr(i,cCe);if(!o||el(o)&&o.body&&h6(o.body,t))return;const s=r.getTypeChecker(),c=o.symbol;if(!c)return;const f=c.declarations;if(Le(f)<=1||!Zn(f,C=>er(C)===e)||!cCe(f[0]))return;const d=f[0].kind;if(!Zn(f,C=>C.kind===d))return;const v=f;if(kt(v,C=>!!C.typeParameters||kt(C.parameters,L=>!!L.modifiers||!je(L.name))))return;const h=pa(v,C=>s.getSignatureFromDeclaration(C));if(Le(h)!==Le(f))return;const E=s.getReturnTypeOfSignature(h[0]);if(Zn(h,C=>s.getReturnTypeOfSignature(C)===E))return v}var EU,cre,ure,dXe=S({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){Qr(),jh(),EU="Convert overload list to single signature",cre=_.Convert_overload_list_to_single_signature.message,ure={name:EU,description:cre,kind:"refactor.rewrite.function.overloadList"},Og(EU,{kinds:[ure.kind],getEditsForAction:uXe,getAvailableActions:cXe})}});function fXe(e){const{file:t,startPosition:r,triggerReason:i}=e,o=dCe(t,r,i==="invoked");return o?Vh(o)?e.preferences.provideRefactorNotApplicableReason?[{name:TU,description:dre,actions:[Ka(Ti({},gP),{notApplicableReason:o.error}),Ka(Ti({},lD),{notApplicableReason:o.error})]}]:rt:[{name:TU,description:dre,actions:[o.addBraces?gP:lD]}]:rt}function _Xe(e,t){const{file:r,startPosition:i}=e,o=dCe(r,i);D.assert(o&&!Vh(o),"Expected applicable refactor info");const{expression:s,returnStatement:c,func:f}=o;let d;if(t===gP.name){const h=N.createReturnStatement(s);d=N.createBlock([h],!0),mL(s,h,r,3,!0)}else if(t===lD.name&&c){const h=s||N.createVoidZero();d=ZQ(h)?N.createParenthesizedExpression(h):h,N6(c,d,r,3,!1),mL(c,d,r,3,!1),Vw(c,d,r,3,!1)}else D.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:gr.ChangeTracker.with(e,h=>{h.replaceNode(r,f.body,d)})}}function dCe(e,t,r=!0,i){const o=oa(e,t),s=Mf(o);if(!s)return{error:Po(_.Could_not_find_a_containing_arrow_function)};if(!Xs(s))return{error:Po(_.Containing_function_is_not_an_arrow_function)};if(!(!vf(s,o)||vf(s.body,o)&&!r)){if(l0(gP.kind,i)&&vt(s.body))return{func:s,addBraces:!0,expression:s.body};if(l0(lD.kind,i)&&uo(s.body)&&s.body.statements.length===1){const c=ds(s.body.statements);if(Ip(c))return{func:s,addBraces:!1,expression:c.expression,returnStatement:c}}}}var TU,dre,gP,lD,pXe=S({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){Qr(),jh(),TU="Add or remove braces in an arrow function",dre=_.Add_or_remove_braces_in_an_arrow_function.message,gP={name:"Add braces to arrow function",description:_.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},lD={name:"Remove braces from arrow function",description:_.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"},Og(TU,{kinds:[lD.kind],getEditsForAction:_Xe,getAvailableActions:fXe})}}),mXe={},hXe=S({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){dXe(),pXe()}});function gXe(e){const{file:t,startPosition:r,program:i,kind:o}=e,s=_Ce(t,r,i);if(!s)return rt;const{selectedVariableDeclaration:c,func:f}=s,d=[],v=[];if(l0(uD.kind,o)){const h=c||Xs(f)&&Xi(f.parent)?void 0:Po(_.Could_not_convert_to_named_function);h?v.push(Ka(Ti({},uD),{notApplicableReason:h})):d.push(uD)}if(l0(cD.kind,o)){const h=!c&&Xs(f)?void 0:Po(_.Could_not_convert_to_anonymous_function);h?v.push(Ka(Ti({},cD),{notApplicableReason:h})):d.push(cD)}if(l0(dD.kind,o)){const h=Us(f)?void 0:Po(_.Could_not_convert_to_arrow_function);h?v.push(Ka(Ti({},dD),{notApplicableReason:h})):d.push(dD)}return[{name:fre,description:hCe,actions:d.length===0&&e.preferences.provideRefactorNotApplicableReason?v:d}]}function yXe(e,t){const{file:r,startPosition:i,program:o}=e,s=_Ce(r,i,o);if(!s)return;const{func:c}=s,f=[];switch(t){case cD.name:f.push(...TXe(e,c));break;case uD.name:const d=EXe(c);if(!d)return;f.push(...SXe(e,c,d));break;case dD.name:if(!Us(c))return;f.push(...xXe(e,c));break;default:return D.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:f}}function fCe(e){let t=!1;return e.forEachChild(function r(i){if(uL(i)){t=!0;return}!_i(i)&&!xc(i)&&!Us(i)&&Pa(i,r)}),t}function _Ce(e,t,r){const i=oa(e,t),o=r.getTypeChecker(),s=bXe(e,o,i.parent);if(s&&!fCe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};const c=Mf(i);if(c&&(Us(c)||Xs(c))&&!vf(c.body,i)&&!fCe(c.body)&&!o.containsArgumentsReference(c))return Us(c)&&mCe(e,o,c)?void 0:{selectedVariableDeclaration:!1,func:c}}function vXe(e){return Xi(e)||Ju(e)&&e.declarations.length===1}function bXe(e,t,r){if(!vXe(r))return;const o=(Xi(r)?r:ds(r.declarations)).initializer;if(o&&(Xs(o)||Us(o)&&!mCe(e,t,o)))return o}function pCe(e){if(vt(e)){const t=N.createReturnStatement(e),r=e.getSourceFile();return ht(t,e),$d(t),N6(e,t,r,void 0,!0),N.createBlock([t],!0)}else return e}function EXe(e){const t=e.parent;if(!Xi(t)||!D3(t))return;const r=t.parent,i=r.parent;if(!(!Ju(r)||!gc(i)||!je(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function TXe(e,t){const{file:r}=e,i=pCe(t.body),o=N.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return gr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function SXe(e,t,r){const{file:i}=e,o=pCe(t.body),{variableDeclaration:s,variableDeclarationList:c,statement:f,name:d}=r;N9(f);const v=Ay(s)&1|Hu(t),h=N.createModifiersFromModifierFlags(v),E=N.createFunctionDeclaration(Le(h)?h:void 0,t.asteriskToken,d,t.typeParameters,t.parameters,t.type,o);return c.declarations.length===1?gr.ChangeTracker.with(e,C=>C.replaceNode(i,f,E)):gr.ChangeTracker.with(e,C=>{C.delete(i,s),C.insertNodeAfter(i,f,E)})}function xXe(e,t){const{file:r}=e,o=t.body.statements[0];let s;AXe(t.body,o)?(s=o.expression,$d(s),cS(o,s)):s=t.body;const c=N.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,N.createToken(38),s);return gr.ChangeTracker.with(e,f=>f.replaceNode(r,t,c))}function AXe(e,t){return e.statements.length===1&&Ip(t)&&!!t.expression}function mCe(e,t,r){return!!r.name&&_l.Core.isSymbolReferencedInFile(r.name,t,e)}var fre,hCe,cD,uD,dD,CXe=S({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){Qr(),jh(),fre="Convert arrow function or function expression",hCe=Po(_.Convert_arrow_function_or_function_expression),cD={name:"Convert to anonymous function",description:Po(_.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},uD={name:"Convert to named function",description:Po(_.Convert_to_named_function),kind:"refactor.rewrite.function.named"},dD={name:"Convert to arrow function",description:Po(_.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Og(fre,{kinds:[cD.kind,uD.kind,dD.kind],getEditsForAction:yXe,getAvailableActions:gXe})}}),LXe={},IXe=S({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){CXe()}});function kXe(e){const{file:t,startPosition:r}=e;return sd(t)||!vCe(t,r,e.program.getTypeChecker())?rt:[{name:vP,description:hre,actions:[gre]}]}function wXe(e,t){D.assert(t===vP,"Unexpected action name");const{file:r,startPosition:i,program:o,cancellationToken:s,host:c}=e,f=vCe(r,i,o.getTypeChecker());if(!f||!s)return;const d=RXe(f,o,s);return d.valid?{renameFilename:void 0,renameLocation:void 0,edits:gr.ChangeTracker.with(e,h=>DXe(r,o,c,h,f,d))}:{edits:[]}}function DXe(e,t,r,i,o,s){const c=s.signature,f=zt(SCe(o,t,r),h=>Ol(h));if(c){const h=zt(SCe(c,t,r),E=>Ol(E));v(c,h)}v(o,f);const d=IR(s.functionCalls,(h,E)=>qs(h.pos,E.pos));for(const h of d)if(h.arguments&&h.arguments.length){const E=Ol(jXe(o,h.arguments),!0);i.replaceNodeRange(er(h),ds(h.arguments),Jo(h.arguments),E,{leadingTriviaOption:gr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gr.TrailingTriviaOption.Include})}function v(h,E){i.replaceNodeRangeWithNodes(e,ds(h.parameters),Jo(h.parameters),E,{joiner:", ",indentation:0,leadingTriviaOption:gr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gr.TrailingTriviaOption.Include})}}function RXe(e,t,r){const i=WXe(e),o=Yl(e)?HXe(e):[],s=NA([...i,...o],tb),c=t.getTypeChecker(),f=Ga(s,E=>_l.getReferenceEntriesForNode(-1,E,t,t.getSourceFiles(),r)),d=v(f);return Zn(d.declarations,E=>Ur(s,E))||(d.valid=!1),d;function v(E){const C={accessExpressions:[],typeUsages:[]},L={functionCalls:[],declarations:[],classReferences:C,valid:!0},I=zt(i,h),O=zt(o,h),k=Yl(e),G=zt(i,V=>_re(V,c));for(const V of E){if(V.kind===_l.EntryKind.Span){L.valid=!1;continue}if(Ur(G,h(V.node))){if(MXe(V.node.parent)){L.signature=V.node.parent;continue}const ne=yCe(V);if(ne){L.functionCalls.push(ne);continue}}const H=_re(V.node,c);if(H&&Ur(G,H)){const ne=pre(V);if(ne){L.declarations.push(ne);continue}}if(Ur(I,h(V.node))||Nw(V.node)){if(gCe(V))continue;const Y=pre(V);if(Y){L.declarations.push(Y);continue}const $=yCe(V);if($){L.functionCalls.push($);continue}}if(k&&Ur(O,h(V.node))){if(gCe(V))continue;const Y=pre(V);if(Y){L.declarations.push(Y);continue}const $=NXe(V);if($){C.accessExpressions.push($);continue}if(Bc(e.parent)){const M=OXe(V);if(M){C.typeUsages.push(M);continue}}}L.valid=!1}return L}function h(E){const C=c.getSymbolAtLocation(E);return C&&kbe(C,c)}}function _re(e,t){const r=V6(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),o=i==null?void 0:i.getSymbol();if(o&&!(Dl(o)&6))return o}}function gCe(e){const t=e.node;if(Nd(t.parent)||Zm(t.parent)||_u(t.parent)||Yv(t.parent)||gd(t.parent)||Vl(t.parent))return t}function pre(e){if(Au(e.node.parent))return e.node}function yCe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 210:case 211:const i=si(r,bg);if(i&&i.expression===t)return i;break;case 208:const o=si(r,Fr);if(o&&o.parent&&o.name===t){const c=si(o.parent,bg);if(c&&c.expression===o)return c}break;case 209:const s=si(r,fl);if(s&&s.parent&&s.argumentExpression===t){const c=si(s.parent,bg);if(c&&c.expression===s)return c}break}}}function NXe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 208:const i=si(r,Fr);if(i&&i.expression===t)return i;break;case 209:const o=si(r,fl);if(o&&o.expression===t)return o;break}}}function OXe(e){const t=e.node;if(aS(t)===2||fO(t.parent))return t}function vCe(e,t,r){const i=Mw(e,t),o=Nfe(i);if(!PXe(i)&&o&&FXe(o,r)&&vf(o,i)&&!(o.body&&vf(o.body,i)))return o}function PXe(e){const t=rr(e,KA);if(t){const r=rr(t,i=>!KA(i));return!!r&&el(r)}return!1}function MXe(e){return Ph(e)&&(ud(e.parent)||yf(e.parent))}function FXe(e,t){var r;if(!BXe(e.parameters,t))return!1;switch(e.kind){case 259:return bCe(e)&&yP(e,t);case 171:if(Is(e.parent)){const i=_re(e.name,t);return((r=i==null?void 0:i.declarations)==null?void 0:r.length)===1&&yP(e,t)}return yP(e,t);case 173:return Bc(e.parent)?bCe(e.parent)&&yP(e,t):ECe(e.parent.parent)&&yP(e,t);case 215:case 216:return ECe(e.parent)}return!1}function yP(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function bCe(e){return e.name?!0:!!fL(e,88)}function BXe(e,t){return UXe(e)>=xCe&&Zn(e,r=>GXe(r,t))}function GXe(e,t){if(Lh(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&je(e.name)}function ECe(e){return Xi(e)&&Tg(e)&&je(e.name)&&!e.type}function mre(e){return e.length>0&&uL(e[0].name)}function UXe(e){return mre(e)?e.length-1:e.length}function TCe(e){return mre(e)&&(e=N.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function VXe(e,t){return je(t)&&K_(t)===e?N.createShorthandPropertyAssignment(e):N.createPropertyAssignment(e,t)}function jXe(e,t){const r=TCe(e.parameters),i=Lh(Jo(r)),o=i?t.slice(0,r.length-1):t,s=zt(o,(f,d)=>{const v=SU(r[d]),h=VXe(v,f);return $d(h.name),$c(h)&&$d(h.initializer),cS(f,h),h});if(i&&t.length>=r.length){const f=t.slice(r.length-1),d=N.createPropertyAssignment(SU(Jo(r)),N.createArrayLiteralExpression(f));s.push(d)}return N.createObjectLiteralExpression(s,!1)}function SCe(e,t,r){const i=t.getTypeChecker(),o=TCe(e.parameters),s=zt(o,h),c=N.createObjectBindingPattern(s),f=E(o);let d;Zn(o,I)&&(d=N.createObjectLiteralExpression());const v=N.createParameterDeclaration(void 0,void 0,c,void 0,f,d);if(mre(e.parameters)){const O=e.parameters[0],k=N.createParameterDeclaration(void 0,void 0,O.name,void 0,O.type);return $d(k.name),cS(O.name,k.name),O.type&&($d(k.type),cS(O.type,k.type)),N.createNodeArray([k,v])}return N.createNodeArray([v]);function h(O){const k=N.createBindingElement(void 0,void 0,SU(O),Lh(O)&&I(O)?N.createArrayLiteralExpression():O.initializer);return $d(k),O.initializer&&k.initializer&&cS(O.initializer,k.initializer),k}function E(O){const k=zt(O,C);return cm(N.createTypeLiteralNode(k),1)}function C(O){let k=O.type;!k&&(O.initializer||Lh(O))&&(k=L(O));const G=N.createPropertySignature(void 0,SU(O),I(O)?N.createToken(57):O.questionToken,k);return $d(G),cS(O.name,G.name),O.type&&G.type&&cS(O.type,G.type),G}function L(O){const k=i.getTypeAtLocation(O);return Hw(k,O,t,r)}function I(O){if(Lh(O)){const k=i.getTypeAtLocation(O);return!i.isTupleType(k)}return i.isOptionalParameter(O)}}function SU(e){return K_(e.name)}function HXe(e){switch(e.parent.kind){case 260:const t=e.parent;return t.name?[t.name]:[D.checkDefined(fL(t,88),"Nameless class declaration should be a default export")];case 228:const i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function WXe(e){switch(e.kind){case 259:return e.name?[e.name]:[D.checkDefined(fL(e,88),"Nameless function declaration should be a default export")];case 171:return[e.name];case 173:const r=D.checkDefined(Es(e,135,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===228?[e.parent.parent.name,r]:[r];case 216:return[e.parent.name];case 215:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return D.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var vP,xCe,hre,gre,zXe=S({"src/services/refactors/convertParamsToDestructuredObject.ts"(){Qr(),jh(),vP="Convert parameters to destructured object",xCe=1,hre=Po(_.Convert_parameters_to_destructured_object),gre={name:vP,description:hre,kind:"refactor.rewrite.parameters.toDestructured"},Og(vP,{kinds:[gre.kind],getEditsForAction:wXe,getAvailableActions:kXe})}}),qXe={},JXe=S({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){zXe()}});function KXe(e){const{file:t,startPosition:r}=e,i=ACe(t,r),o=yre(i),s={name:xU,description:AU,actions:[]};return br(o)&&vre(o).isValidConcatenation?(s.actions.push(CU),[s]):e.preferences.provideRefactorNotApplicableReason?(s.actions.push(Ka(Ti({},CU),{notApplicableReason:Po(_.Can_only_convert_string_concatenation)})),[s]):rt}function ACe(e,t){const r=oa(e,t),i=yre(r);return!vre(i).isValidConcatenation&&Jd(i.parent)&&br(i.parent.parent)?i.parent.parent:r}function XXe(e,t){const{file:r,startPosition:i}=e,o=ACe(r,i);switch(t){case AU:return{edits:YXe(e,o)};default:return D.fail("invalid action")}}function YXe(e,t){const r=yre(t),i=e.file,o=ZXe(vre(r),i),s=nb(i.text,r.end);if(s){const c=s[s.length-1],f={pos:s[0].pos,end:c.end};return gr.ChangeTracker.with(e,d=>{d.deleteRange(i,f),d.replaceNode(i,r,o)})}else return gr.ChangeTracker.with(e,c=>c.replaceNode(i,r,o))}function $Xe(e){return e.operatorToken.kind!==63}function yre(e){return rr(e.parent,r=>{switch(r.kind){case 208:case 209:return!1;case 225:case 223:return!(br(r.parent)&&$Xe(r.parent));default:return"quit"}})||e}function vre(e){const t=c=>{if(!br(c))return{nodes:[c],operators:[],validOperators:!0,hasString:Ho(c)||jx(c)};const{nodes:f,operators:d,hasString:v,validOperators:h}=t(c.left);if(!(v||Ho(c.right)||p5(c.right)))return{nodes:[c],operators:[],hasString:!1,validOperators:!0};const E=c.operatorToken.kind===39,C=h&&E;return f.push(c.right),d.push(c.operatorToken),{nodes:f,operators:d,hasString:!0,validOperators:C}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function QXe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function CCe(e){const t=NC(e)||eme(e)?-2:-1;return kc(e).slice(1,t)}function LCe(e,t){const r=[];let i="",o="";for(;e<t.length;){const s=t[e];if(As(s))i+=s.text,o+=QXe(kc(s).slice(1,-1)),r.push(e),e++;else if(p5(s)){i+=s.head.text,o+=CCe(s.head);break}else break}return[e,i,o,r]}function ZXe({nodes:e,operators:t},r){const i=kCe(t,r),o=wCe(e,r,i),[s,c,f,d]=LCe(0,e);if(s===e.length){const E=N.createNoSubstitutionTemplateLiteral(c,f);return o(d,E),E}const v=[],h=N.createTemplateHead(c,f);o(d,h);for(let E=s;E<e.length;E++){const C=eYe(e[E]);i(E,C);const[L,I,O,k]=LCe(E+1,e);E=L-1;const G=E===e.length-1;if(p5(C)){const V=zt(C.templateSpans,(H,ne)=>{ICe(H);const Y=ne===C.templateSpans.length-1,$=H.literal.text+(Y?I:""),M=CCe(H.literal)+(Y?O:"");return N.createTemplateSpan(H.expression,G&&Y?N.createTemplateTail($,M):N.createTemplateMiddle($,M))});v.push(...V)}else{const V=G?N.createTemplateTail(I,O):N.createTemplateMiddle(I,O);o(k,V),v.push(N.createTemplateSpan(C,V))}}return N.createTemplateExpression(h,v)}function ICe(e){const t=e.getSourceFile();Vw(e,e.expression,t,3,!1),N6(e.expression,e.expression,t,3,!1)}function eYe(e){return Jd(e)&&(ICe(e),e=e.expression),e}var xU,AU,CU,kCe,wCe,tYe=S({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){Qr(),jh(),xU="Convert to template string",AU=Po(_.Convert_to_template_string),CU={name:xU,description:AU,kind:"refactor.rewrite.string"},Og(xU,{kinds:[CU.kind],getEditsForAction:XXe,getAvailableActions:KXe}),kCe=(e,t)=>(r,i)=>{r<e.length&&Vw(e[r],i,t,3,!1)},wCe=(e,t,r)=>(i,o)=>{for(;i.length>0;){const s=i.shift();Vw(e[s],o,t,3,!1),r(s,o)}}}}),nYe={},rYe=S({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){tYe()}});function iYe(e){const t=DCe(e,e.triggerReason==="invoked");return t?Vh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:bP,description:kU,actions:[Ka(Ti({},wU),{notApplicableReason:t.error})]}]:rt:[{name:bP,description:kU,actions:[wU]}]:rt}function aYe(e,t){const r=DCe(e);return D.assert(r&&!Vh(r),"Expected applicable refactor info"),{edits:gr.ChangeTracker.with(e,o=>_Ye(e.file,e.program.getTypeChecker(),o,r)),renameFilename:void 0,renameLocation:void 0}}function LU(e){return br(e)||VC(e)}function oYe(e){return fu(e)||Ip(e)||gc(e)}function IU(e){return LU(e)||oYe(e)}function DCe(e,t=!0){const{file:r,program:i}=e,o=_2(e),s=o.length===0;if(s&&!t)return;const c=oa(r,o.start),f=g9(r,o.start+o.length),d=Tc(c.pos,f&&f.end>=c.pos?f.getEnd():c.getEnd()),v=s?dYe(c):uYe(c,d),h=v&&IU(v)?fYe(v):void 0;if(!h)return{error:Po(_.Could_not_find_convertible_access_expression)};const E=i.getTypeChecker();return VC(h)?sYe(h,E):lYe(h)}function sYe(e,t){const r=e.condition,i=Ere(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Po(_.Could_not_find_convertible_access_expression)};if((Fr(r)||je(r))&&bre(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(br(r)){const o=RCe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:Po(_.Could_not_find_matching_access_expressions)}}}function lYe(e){if(e.operatorToken.kind!==55)return{error:Po(_.Can_only_convert_logical_AND_access_chains)};const t=Ere(e.right);if(!t)return{error:Po(_.Could_not_find_convertible_access_expression)};const r=RCe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Po(_.Could_not_find_matching_access_expressions)}}function RCe(e,t){const r=[];for(;br(t)&&t.operatorToken.kind===55;){const o=bre(Ws(e),Ws(t.right));if(!o)break;r.push(o),e=o,t=t.left}const i=bre(e,t);return i&&r.push(i),r.length>0?r:void 0}function bre(e,t){if(!(!je(t)&&!Fr(t)&&!fl(t)))return cYe(e,t)?t:void 0}function cYe(e,t){for(;(io(e)||Fr(e)||fl(e))&&fD(e)!==fD(t);)e=e.expression;for(;Fr(e)&&Fr(t)||fl(e)&&fl(t);){if(fD(e)!==fD(t))return!1;e=e.expression,t=t.expression}return je(e)&&je(t)&&e.getText()===t.getText()}function fD(e){if(je(e)||i_(e))return e.getText();if(Fr(e))return fD(e.name);if(fl(e))return fD(e.argumentExpression)}function uYe(e,t){for(;e.parent;){if(IU(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function dYe(e){for(;e.parent;){if(IU(e)&&!IU(e.parent))return e;e=e.parent}}function fYe(e){if(LU(e))return e;if(gc(e)){const t=uC(e),r=t==null?void 0:t.initializer;return r&&LU(r)?r:void 0}return e.expression&&LU(e.expression)?e.expression:void 0}function Ere(e){if(e=Ws(e),br(e))return Ere(e.left);if((Fr(e)||fl(e)||io(e))&&!xu(e))return e}function NCe(e,t,r){if(Fr(t)||fl(t)||io(t)){const i=NCe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=(o==null?void 0:o.getText())===t.expression.getText();if(s&&r.pop(),io(t))return s?N.createCallChain(i,N.createToken(28),t.typeArguments,t.arguments):N.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Fr(t))return s?N.createPropertyAccessChain(i,N.createToken(28),t.name):N.createPropertyAccessChain(i,t.questionDotToken,t.name);if(fl(t))return s?N.createElementAccessChain(i,N.createToken(28),t.argumentExpression):N.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function _Ye(e,t,r,i,o){const{finalExpression:s,occurrences:c,expression:f}=i,d=c[c.length-1],v=NCe(t,s,c);v&&(Fr(v)||fl(v)||io(v))&&(br(f)?r.replaceNodeRange(e,d,s,v):VC(f)&&r.replaceNode(e,f,N.createBinaryExpression(v,N.createToken(60),f.whenFalse)))}var bP,kU,wU,pYe=S({"src/services/refactors/convertToOptionalChainExpression.ts"(){Qr(),jh(),bP="Convert to optional chain expression",kU=Po(_.Convert_to_optional_chain_expression),wU={name:bP,description:kU,kind:"refactor.rewrite.expression.optionalChain"},Og(bP,{kinds:[wU.kind],getEditsForAction:aYe,getAvailableActions:iYe})}}),mYe={},hYe=S({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){pYe()}});function OCe(e){const t=e.kind,r=Tre(e.file,_2(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return rt;const I=[];return l0(k2.kind,t)&&I.push({name:L2,description:k2.description,actions:[Ka(Ti({},k2),{notApplicableReason:L(r.errors)})]}),l0(I2.kind,t)&&I.push({name:L2,description:I2.description,actions:[Ka(Ti({},I2),{notApplicableReason:L(r.errors)})]}),I}const o=TYe(i,e);if(o===void 0)return rt;const s=[],c=new Map;let f;const d=[],v=new Map;let h,E=0;for(const{functionExtraction:I,constantExtraction:O}of o){if(l0(k2.kind,t)){const k=I.description;I.errors.length===0?c.has(k)||(c.set(k,!0),s.push({description:k,name:`function_scope_${E}`,kind:k2.kind})):f||(f={description:k,name:`function_scope_${E}`,notApplicableReason:L(I.errors),kind:k2.kind})}if(l0(I2.kind,t)){const k=O.description;O.errors.length===0?v.has(k)||(v.set(k,!0),d.push({description:k,name:`constant_scope_${E}`,kind:I2.kind})):h||(h={description:k,name:`constant_scope_${E}`,notApplicableReason:L(O.errors),kind:I2.kind})}E++}const C=[];return s.length?C.push({name:L2,description:Po(_.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&f&&C.push({name:L2,description:Po(_.Extract_function),actions:[f]}),d.length?C.push({name:L2,description:Po(_.Extract_constant),actions:d}):e.preferences.provideRefactorNotApplicableReason&&h&&C.push({name:L2,description:Po(_.Extract_constant),actions:[h]}),C.length?C:rt;function L(I){let O=I[0].messageText;return typeof O!="string"&&(O=O.messageText),O}}function PCe(e,t){const i=Tre(e.file,_2(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){const c=+o[1];return D.assert(isFinite(c),"Expected to parse a finite number from the function scope index"),bYe(i,e,c)}const s=/^constant_scope_(\d+)$/.exec(t);if(s){const c=+s[1];return D.assert(isFinite(c),"Expected to parse a finite number from the constant scope index"),EYe(i,e,c)}D.fail("Unrecognized action name")}function Tre(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[Mc(e,t.start,i,Qc.cannotExtractEmpty)]};const o=i===0&&r,s=nbe(e,t.start),c=g9(e,uu(t)),f=s&&c&&r?gYe(s,c,e):t,d=o?jYe(s):I6(s,e,f),v=o?d:I6(c,e,f);let h=0,E;if(!d||!v)return{errors:[Mc(e,t.start,i,Qc.cannotExtractRange)]};if(d.flags&8388608)return{errors:[Mc(e,t.start,i,Qc.cannotExtractJSDoc)]};if(d.parent!==v.parent)return{errors:[Mc(e,t.start,i,Qc.cannotExtractRange)]};if(d!==v){if(!FCe(d.parent))return{errors:[Mc(e,t.start,i,Qc.cannotExtractRange)]};const V=[];for(const H of d.parent.statements){if(H===d||V.length){const ne=G(H);if(ne)return{errors:ne};V.push(H)}if(H===v)break}return V.length?{targetRange:{range:V,facts:h,thisNode:E}}:{errors:[Mc(e,t.start,i,Qc.cannotExtractRange)]}}if(Ip(d)&&!d.expression)return{errors:[Mc(e,t.start,i,Qc.cannotExtractRange)]};const C=I(d),L=O(C)||G(C);if(L)return{errors:L};return{targetRange:{range:yYe(C),facts:h,thisNode:E}};function I(V){if(Ip(V)){if(V.expression)return V.expression}else if(gc(V)||Ju(V)){const H=gc(V)?V.declarationList.declarations:V.declarations;let ne=0,Y;for(const $ of H)$.initializer&&(ne++,Y=$.initializer);if(ne===1)return Y}else if(Xi(V)&&V.initializer)return V.initializer;return V}function O(V){if(je(fu(V)?V.expression:V))return[Nr(V,Qc.cannotExtractIdentifier)]}function k(V,H){let ne=V;for(;ne!==H;){if(ne.kind===169){Ja(ne)&&(h|=32);break}else if(ne.kind===166){Mf(ne).kind===173&&(h|=32);break}else ne.kind===171&&Ja(ne)&&(h|=32);ne=ne.parent}}function G(V){let H;if((re=>{re[re.None=0]="None",re[re.Break=1]="Break",re[re.Continue=2]="Continue",re[re.Return=4]="Return"})(H||(H={})),D.assert(V.pos<=V.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),D.assert(!lm(V.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!ka(V)&&!(Sg(V)&&MCe(V))&&!Lre(V))return[Nr(V,Qc.statementOrExpressionExpected)];if(V.flags&16777216)return[Nr(V,Qc.cannotExtractAmbientBlock)];const ne=wc(V);ne&&k(V,ne);let Y,$=4,M;if(de(V),h&8){const re=kd(V,!1,!1);(re.kind===259||re.kind===171&&re.parent.kind===207||re.kind===215)&&(h|=16)}return Y;function de(re){if(Y)return!0;if(Au(re)){const ae=re.kind===257?re.parent.parent:re;if($r(ae,1))return(Y||(Y=[])).push(Nr(re,Qc.cannotExtractExportedEntity)),!0}switch(re.kind){case 269:return(Y||(Y=[])).push(Nr(re,Qc.cannotExtractImport)),!0;case 274:return(Y||(Y=[])).push(Nr(re,Qc.cannotExtractExportedEntity)),!0;case 106:if(re.parent.kind===210){const ae=wc(re);if(ae===void 0||ae.pos<t.start||ae.end>=t.start+t.length)return(Y||(Y=[])).push(Nr(re,Qc.cannotExtractSuper)),!0}else h|=8,E=re;break;case 216:Pa(re,function ae(W){if(uL(W))h|=8,E=re;else{if(_i(W)||Xa(W)&&!Xs(W))return!1;Pa(W,ae)}});case 260:case 259:Ji(re.parent)&&re.parent.externalModuleIndicator===void 0&&(Y||(Y=[])).push(Nr(re,Qc.functionWillNotBeVisibleInTheNewScope));case 228:case 215:case 171:case 173:case 174:case 175:return!1}const be=$;switch(re.kind){case 242:$&=-5;break;case 255:$=0;break;case 238:re.parent&&re.parent.kind===255&&re.parent.finallyBlock===re&&($=4);break;case 293:case 292:$|=1;break;default:Bv(re,!1)&&($|=3);break}switch(re.kind){case 194:case 108:h|=8,E=re;break;case 253:{const ae=re.label;(M||(M=[])).push(ae.escapedText),Pa(re,de),M.pop();break}case 249:case 248:{const ae=re.label;ae?Ur(M,ae.escapedText)||(Y||(Y=[])).push(Nr(re,Qc.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):$&(re.kind===249?1:2)||(Y||(Y=[])).push(Nr(re,Qc.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 220:h|=4;break;case 226:h|=2;break;case 250:$&4?h|=1:(Y||(Y=[])).push(Nr(re,Qc.cannotExtractRangeContainingConditionalReturnStatement));break;default:Pa(re,de);break}$=be}}}function gYe(e,t,r){const i=e.getStart(r);let o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function yYe(e){if(ka(e))return[e];if(Sg(e))return fu(e.parent)?[e.parent]:e;if(Lre(e))return e}function Sre(e){return Xs(e)?Tz(e.body):el(e)||Ji(e)||dm(e)||_i(e)}function vYe(e){let t=Pg(e.range)?ds(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=wc(t);if(i){const o=rr(t,el);return o?[o,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===166&&(t=rr(t,i=>el(i)).parent),Sre(t)&&(r.push(t),t.kind===308))return r}function bYe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:c,exposedVariableDeclarations:f}}=xre(e,t);return D.assert(!c[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),IYe(o,i[r],s[r],f,e,t)}function EYe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:c,exposedVariableDeclarations:f}}=xre(e,t);D.assert(!c[r].length,"The extraction went missing? How?"),D.assert(f.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const d=vt(o)?o:o.statements[0].expression;return kYe(d,i[r],s[r],e.facts,t)}function TYe(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=xre(e,t);return r.map((c,f)=>{const d=SYe(c),v=xYe(c),h=el(c)?AYe(c):_i(c)?CYe(c):LYe(c);let E,C;return h===1?(E=Rh(Po(_.Extract_to_0_in_1_scope),[d,"global"]),C=Rh(Po(_.Extract_to_0_in_1_scope),[v,"global"])):h===0?(E=Rh(Po(_.Extract_to_0_in_1_scope),[d,"module"]),C=Rh(Po(_.Extract_to_0_in_1_scope),[v,"module"])):(E=Rh(Po(_.Extract_to_0_in_1),[d,h]),C=Rh(Po(_.Extract_to_0_in_1),[v,h])),f===0&&!_i(c)&&(C=Rh(Po(_.Extract_to_0_in_enclosing_scope),[v])),{functionExtraction:{description:E,errors:i[f]},constantExtraction:{description:C,errors:o[f]}}})}function xre(e,t){const{file:r}=t,i=vYe(e),o=UYe(e,r),s=VYe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function SYe(e){return el(e)?"inner function":_i(e)?"method":"function"}function xYe(e){return _i(e)?"readonly field":"constant"}function AYe(e){switch(e.kind){case 173:return"constructor";case 215:case 259:return e.name?`function '${e.name.text}'`:Q9;case 216:return"arrow function";case 171:return`method '${e.name.getText()}'`;case 174:return`'get ${e.name.getText()}'`;case 175:return`'set ${e.name.getText()}'`;default:throw D.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function CYe(e){return e.kind===260?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function LYe(e){return e.kind===265?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function IYe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,c,f){const d=f.program.getTypeChecker(),v=ts(f.program.getCompilerOptions()),h=Yu.createImportAdder(f.file,f.program,f.preferences,f.host),E=t.getSourceFile(),C=uS(_i(t)?"newMethod":"newFunction",E),L=fr(t),I=N.createIdentifier(C);let O;const k=[],G=[];let V;r.forEach((Oe,Me)=>{let Ye;if(!L){let Fe=d.getTypeOfSymbolAtLocation(Oe.symbol,Oe.node);Fe=d.getBaseTypeOfLiteralType(Fe),Ye=Yu.typeToAutoImportableTypeNode(d,h,Fe,t,v,1)}const We=N.createParameterDeclaration(void 0,void 0,Me,void 0,Ye);k.push(We),Oe.usage===2&&(V||(V=[])).push(Oe),G.push(N.createIdentifier(Me))});const ne=No(i.values(),Oe=>({type:Oe,declaration:DYe(Oe)})).sort(RYe),Y=ne.length===0?void 0:ne.map(Oe=>Oe.declaration),$=Y!==void 0?Y.map(Oe=>N.createTypeReferenceNode(Oe.name,void 0)):void 0;if(vt(e)&&!L){const Oe=d.getContextualType(e);O=d.typeToTypeNode(Oe,t,1)}const{body:M,returnValueProperty:de}=OYe(e,s,V,o,!!(c.facts&1));$d(M);let re;const be=!!(c.facts&16);if(_i(t)){const Oe=L?[]:[N.createModifier(121)];c.facts&32&&Oe.push(N.createModifier(124)),c.facts&4&&Oe.push(N.createModifier(132)),re=N.createMethodDeclaration(Oe.length?Oe:void 0,c.facts&2?N.createToken(41):void 0,I,void 0,Y,k,O,M)}else be&&k.unshift(N.createParameterDeclaration(void 0,void 0,"this",void 0,d.typeToTypeNode(d.getTypeAtLocation(c.thisNode),t,1),void 0)),re=N.createFunctionDeclaration(c.facts&4?[N.createToken(132)]:void 0,c.facts&2?N.createToken(41):void 0,I,Y,k,O,M);const ae=gr.ChangeTracker.fromContext(f),W=(Pg(c.range)?Jo(c.range):c.range).end,ce=FYe(W,t);ce?ae.insertNodeBefore(f.file,ce,re,!0):ae.insertNodeAtEndOfScope(f.file,t,re),h.writeFixes(ae);const me=[],Ee=NYe(t,c,C);be&&G.unshift(N.createIdentifier("this"));let xe=N.createCallExpression(be?N.createPropertyAccessExpression(Ee,"call"):Ee,$,G);if(c.facts&2&&(xe=N.createYieldExpression(N.createToken(41),xe)),c.facts&4&&(xe=N.createAwaitExpression(xe)),Cre(e)&&(xe=N.createJsxExpression(void 0,xe)),s.length&&!V)if(D.assert(!de,"Expected no returnValueProperty"),D.assert(!(c.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){const Oe=s[0];me.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(Ol(Oe.name),void 0,Ol(Oe.type),xe)],Oe.parent.flags)))}else{const Oe=[],Me=[];let Ye=s[0].parent.flags,We=!1;for(const st of s){Oe.push(N.createBindingElement(void 0,void 0,Ol(st.name)));const Ct=d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(st)),t,1);Me.push(N.createPropertySignature(void 0,st.symbol.name,void 0,Ct)),We=We||st.type!==void 0,Ye=Ye&st.parent.flags}const Fe=We?N.createTypeLiteralNode(Me):void 0;Fe&&sr(Fe,1),me.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(N.createObjectBindingPattern(Oe),void 0,Fe,xe)],Ye)))}else if(s.length||V){if(s.length)for(const Me of s){let Ye=Me.parent.flags;Ye&2&&(Ye=Ye&-3|1),me.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(Me.symbol.name,void 0,ze(Me.type))],Ye)))}de&&me.push(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(de,void 0,ze(O))],1)));const Oe=Are(s,V);de&&Oe.unshift(N.createShorthandPropertyAssignment(de)),Oe.length===1?(D.assert(!de,"Shouldn't have returnValueProperty here"),me.push(N.createExpressionStatement(N.createAssignment(Oe[0].name,xe))),c.facts&1&&me.push(N.createReturnStatement())):(me.push(N.createExpressionStatement(N.createAssignment(N.createObjectLiteralExpression(Oe),xe))),de&&me.push(N.createReturnStatement(N.createIdentifier(de))))}else c.facts&1?me.push(N.createReturnStatement(xe)):Pg(c.range)?me.push(N.createExpressionStatement(xe)):me.push(xe);Pg(c.range)?ae.replaceNodeRangeWithNodes(f.file,ds(c.range),Jo(c.range),me):ae.replaceNodeWithNodes(f.file,c.range,me);const te=ae.getChanges(),Ve=(Pg(c.range)?ds(c.range):c.range).getSourceFile().fileName,Ge=R6(te,Ve,C,!1);return{renameFilename:Ve,renameLocation:Ge,edits:te};function ze(Oe){if(Oe===void 0)return;const Me=Ol(Oe);let Ye=Me;for(;qx(Ye);)Ye=Ye.type;return zx(Ye)&&In(Ye.types,We=>We.kind===155)?Me:N.createUnionTypeNode([Me,N.createKeywordTypeNode(155)])}}function kYe(e,t,{substitutions:r},i,o){const s=o.program.getTypeChecker(),c=t.getSourceFile(),f=Fr(e)&&!_i(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Oi(e.name)&&!ib(e.name)?e.name.text:uS(_i(t)?"newProperty":"newLocal",c),d=fr(t);let v=d||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),h=PYe(Ws(e),r);({variableType:v,initializer:h}=O(v,h)),$d(h);const E=gr.ChangeTracker.fromContext(o);if(_i(t)){D.assert(!d,"Cannot extract to a JS class");const k=[];k.push(N.createModifier(121)),i&32&&k.push(N.createModifier(124)),k.push(N.createModifier(146));const G=N.createPropertyDeclaration(k,f,void 0,v,h);let V=N.createPropertyAccessExpression(i&32?N.createIdentifier(t.name.getText()):N.createThis(),N.createIdentifier(f));Cre(e)&&(V=N.createJsxExpression(void 0,V));const H=e.pos,ne=BYe(H,t);E.insertNodeBefore(o.file,ne,G,!0),E.replaceNode(o.file,e,V)}else{const k=N.createVariableDeclaration(f,void 0,v,h),G=wYe(e,t);if(G){E.insertNodeBefore(o.file,G,k);const V=N.createIdentifier(f);E.replaceNode(o.file,e,V)}else if(e.parent.kind===241&&t===rr(e,Sre)){const V=N.createVariableStatement(void 0,N.createVariableDeclarationList([k],2));E.replaceNode(o.file,e.parent,V)}else{const V=N.createVariableStatement(void 0,N.createVariableDeclarationList([k],2)),H=GYe(e,t);if(H.pos===0?E.insertNodeAtTopOfFile(o.file,V,!1):E.insertNodeBefore(o.file,H,V,!1),e.parent.kind===241)E.delete(o.file,e.parent);else{let ne=N.createIdentifier(f);Cre(e)&&(ne=N.createJsxExpression(void 0,ne)),E.replaceNode(o.file,e,ne)}}}const C=E.getChanges(),L=e.getSourceFile().fileName,I=R6(C,L,f,!0);return{renameFilename:L,renameLocation:I,edits:C};function O(k,G){if(k===void 0)return{variableType:k,initializer:G};if(!Us(G)&&!Xs(G)||G.typeParameters)return{variableType:k,initializer:G};const V=s.getTypeAtLocation(e),H=Om(s.getSignaturesOfType(V,0));if(!H)return{variableType:k,initializer:G};if(H.getTypeParameters())return{variableType:k,initializer:G};const ne=[];let Y=!1;for(const $ of G.parameters)if($.type)ne.push($);else{const M=s.getTypeAtLocation($);M===s.getAnyType()&&(Y=!0),ne.push(N.updateParameterDeclaration($,$.modifiers,$.dotDotDotToken,$.name,$.questionToken,$.type||s.typeToTypeNode(M,t,1),$.initializer))}if(Y)return{variableType:k,initializer:G};if(k=void 0,Xs(G))G=N.updateArrowFunction(G,np(e)?hT(e):void 0,G.typeParameters,ne,G.type||s.typeToTypeNode(H.getReturnType(),t,1),G.equalsGreaterThanToken,G.body);else{if(H&&H.thisParameter){const $=tu(ne);if(!$||je($.name)&&$.name.escapedText!=="this"){const M=s.getTypeOfSymbolAtLocation(H.thisParameter,e);ne.splice(0,0,N.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(M,t,1)))}}G=N.updateFunctionExpression(G,np(e)?hT(e):void 0,G.asteriskToken,G.name,G.typeParameters,ne,G.type||s.typeToTypeNode(H.getReturnType(),t,1),G.body)}return{variableType:k,initializer:G}}}function wYe(e,t){let r;for(;e!==void 0&&e!==t;){if(Xi(e)&&e.initializer===r&&Ju(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function DYe(e){let t;const r=e.symbol;if(r&&r.declarations)for(const i of r.declarations)(t===void 0||i.pos<t.pos)&&(t=i);return t}function RYe({type:e,declaration:t},{type:r,declaration:i}){return tue(t,i,"pos",qs)||Uu(e.symbol?e.symbol.getName():"",r.symbol?r.symbol.getName():"")||qs(e.id,r.id)}function NYe(e,t,r){const i=N.createIdentifier(r);if(_i(e)){const o=t.facts&32?N.createIdentifier(e.name.text):N.createThis();return N.createPropertyAccessExpression(o,i)}else return i}function OYe(e,t,r,i,o){const s=r!==void 0||t.length>0;if(uo(e)&&!s&&i.size===0)return{body:N.createBlock(e.statements,!0),returnValueProperty:void 0};let c,f=!1;const d=N.createNodeArray(uo(e)?e.statements.slice(0):[ka(e)?e:N.createReturnStatement(Ws(e))]);if(s||i.size){const h=Kn(d,v,ka).slice();if(s&&!o&&ka(e)){const E=Are(t,r);E.length===1?h.push(N.createReturnStatement(E[0].name)):h.push(N.createReturnStatement(N.createObjectLiteralExpression(E)))}return{body:N.createBlock(h,!0),returnValueProperty:c}}else return{body:N.createBlock(d,!0),returnValueProperty:void 0};function v(h){if(!f&&Ip(h)&&s){const E=Are(t,r);return h.expression&&(c||(c="__return"),E.unshift(N.createPropertyAssignment(c,lt(h.expression,v,vt)))),E.length===1?N.createReturnStatement(E[0].name):N.createReturnStatement(N.createObjectLiteralExpression(E))}else{const E=f;f=f||el(h)||_i(h);const C=i.get(hs(h).toString()),L=C?Ol(C):Gn(h,v,Rg);return f=E,L}}}function PYe(e,t){return t.size?r(e):e;function r(i){const o=t.get(hs(i).toString());return o?Ol(o):Gn(i,r,Rg)}}function MYe(e){if(el(e)){const t=e.body;if(uo(t))return t.statements}else{if(dm(e)||Ji(e))return e.statements;if(_i(e))return e.members}return rt}function FYe(e,t){return In(MYe(t),r=>r.pos>=e&&el(r)&&!Yl(r))}function BYe(e,t){const r=t.members;D.assert(r.length>0,"Found no members");let i,o=!0;for(const s of r){if(s.pos>e)return i||r[0];if(o&&!ro(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?D.fail():i}function GYe(e,t){D.assert(!_i(t));let r;for(let i=e;i!==t;i=i.parent)Sre(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(FCe(i)){let o;for(const s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&ow(i)?(D.assert(ZO(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):D.checkDefined(o,"prevStatement failed to get set")}D.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Are(e,t){const r=zt(e,o=>N.createShorthandPropertyAssignment(o.symbol.name)),i=zt(t,o=>N.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function Pg(e){return Va(e)}function UYe(e,t){return Pg(e.range)?{pos:ds(e.range).getStart(t),end:Jo(e.range).getEnd()}:e.range}function VYe(e,t,r,i,o,s){const c=new Map,f=[],d=[],v=[],h=[],E=[],C=new Map,L=[];let I;const O=Pg(e.range)?e.range.length===1&&fu(e.range[0])?e.range[0].expression:void 0:e.range;let k;if(O===void 0){const ce=e.range,me=ds(ce).getStart(),Ee=Jo(ce).end;k=Mc(i,me,Ee-me,Qc.expressionExpected)}else o.getTypeAtLocation(O).flags&147456&&(k=Nr(O,Qc.uselessConstantType));for(const ce of t){f.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),d.push(new Map),v.push([]);const me=[];k&&me.push(k),_i(ce)&&fr(ce)&&me.push(Nr(ce,Qc.cannotExtractToJSClass)),Xs(ce)&&!uo(ce.body)&&me.push(Nr(ce,Qc.cannotExtractToExpressionArrowFunction)),h.push(me)}const G=new Map,V=Pg(e.range)?N.createBlock(e.range):e.range,H=Pg(e.range)?ds(e.range):e.range,ne=Y(H);if(M(V),ne&&!Pg(e.range)&&!fm(e.range)){const ce=o.getContextualType(e.range);$(ce)}if(c.size>0){const ce=new Map;let me=0;for(let Ee=H;Ee!==void 0&&me<t.length;Ee=Ee.parent)if(Ee===t[me]&&(ce.forEach((xe,te)=>{f[me].typeParameterUsages.set(te,xe)}),me++),Kz(Ee))for(const xe of Mv(Ee)){const te=o.getTypeAtLocation(xe);c.has(te.id.toString())&&ce.set(te.id.toString(),te)}D.assert(me===t.length,"Should have iterated all scopes")}if(E.length){const ce=Jz(t[0],t[0].parent)?t[0]:zm(t[0]);Pa(ce,be)}for(let ce=0;ce<t.length;ce++){const me=f[ce];if(ce>0&&(me.usages.size>0||me.typeParameterUsages.size>0)){const te=Pg(e.range)?e.range[0]:e.range;h[ce].push(Nr(te,Qc.cannotAccessVariablesFromNestedScopes))}e.facts&16&&_i(t[ce])&&v[ce].push(Nr(e.thisNode,Qc.cannotExtractFunctionsContainingThisToMethod));let Ee=!1,xe;if(f[ce].usages.forEach(te=>{te.usage===2&&(Ee=!0,te.symbol.flags&106500&&te.symbol.valueDeclaration&&zd(te.symbol.valueDeclaration,64)&&(xe=te.symbol.valueDeclaration))}),D.assert(Pg(e.range)||L.length===0,"No variable declarations expected if something was extracted"),Ee&&!Pg(e.range)){const te=Nr(e.range,Qc.cannotWriteInExpression);v[ce].push(te),h[ce].push(te)}else if(xe&&ce>0){const te=Nr(xe,Qc.cannotExtractReadonlyPropertyInitializerOutsideConstructor);v[ce].push(te),h[ce].push(te)}else if(I){const te=Nr(I,Qc.cannotExtractExportedEntity);v[ce].push(te),h[ce].push(te)}}return{target:V,usagesPerScope:f,functionErrorsPerScope:v,constantErrorsPerScope:h,exposedVariableDeclarations:L};function Y(ce){return!!rr(ce,me=>Kz(me)&&Mv(me).length!==0)}function $(ce){const me=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:Ee}=me.walkType(ce);for(const xe of Ee)xe.isTypeParameter()&&c.set(xe.id.toString(),xe)}function M(ce,me=1){if(ne){const Ee=o.getTypeAtLocation(ce);$(Ee)}if(Au(ce)&&ce.symbol&&E.push(ce),ld(ce))M(ce.left,2),M(ce.right);else if(Wde(ce))M(ce.operand,2);else if(Fr(ce)||fl(ce))Pa(ce,M);else if(je(ce)){if(!ce.parent||Rd(ce.parent)&&ce!==ce.parent.left||Fr(ce.parent)&&ce!==ce.parent.expression)return;de(ce,me,Ih(ce))}else Pa(ce,M)}function de(ce,me,Ee){const xe=re(ce,me,Ee);if(xe)for(let te=0;te<t.length;te++){const Qe=d[te].get(xe);Qe&&f[te].substitutions.set(hs(ce).toString(),Qe)}}function re(ce,me,Ee){const xe=ae(ce);if(!xe)return;const te=Eo(xe).toString(),Qe=G.get(te);if(Qe&&Qe>=me)return te;if(G.set(te,me),Qe){for(const ze of f)ze.usages.get(ce.text)&&ze.usages.set(ce.text,{usage:me,symbol:xe,node:ce});return te}const Ve=xe.getDeclarations(),Ge=Ve&&In(Ve,ze=>ze.getSourceFile()===i);if(Ge&&!y6(r,Ge.getStart(),Ge.end)){if(e.facts&2&&me===2){const ze=Nr(ce,Qc.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const Oe of v)Oe.push(ze);for(const Oe of h)Oe.push(ze)}for(let ze=0;ze<t.length;ze++){const Oe=t[ze];if(o.resolveName(xe.name,Oe,xe.flags,!1)!==xe&&!d[ze].has(te)){const Ye=W(xe.exportSymbol||xe,Oe,Ee);if(Ye)d[ze].set(te,Ye);else if(Ee){if(!(xe.flags&262144)){const We=Nr(ce,Qc.typeWillNotBeVisibleInTheNewScope);v[ze].push(We),h[ze].push(We)}}else f[ze].usages.set(ce.text,{usage:me,symbol:xe,node:ce})}}return te}}function be(ce){if(ce===e.range||Pg(e.range)&&e.range.indexOf(ce)>=0)return;const me=je(ce)?ae(ce):o.getSymbolAtLocation(ce);if(me){const Ee=In(E,xe=>xe.symbol===me);if(Ee)if(Xi(Ee)){const xe=Ee.symbol.id.toString();C.has(xe)||(L.push(Ee),C.set(xe,!0))}else I=I||Ee}Pa(ce,be)}function ae(ce){return ce.parent&&u_(ce.parent)&&ce.parent.name===ce?o.getShorthandAssignmentValueSymbol(ce.parent):o.getSymbolAtLocation(ce)}function W(ce,me,Ee){if(!ce)return;const xe=ce.getDeclarations();if(xe&&xe.some(Qe=>Qe.parent===me))return N.createIdentifier(ce.name);const te=W(ce.parent,me,Ee);if(te!==void 0)return Ee?N.createQualifiedName(te,N.createIdentifier(ce.name)):N.createPropertyAccessExpression(te,ce.name)}}function jYe(e){return rr(e,t=>t.parent&&MCe(t)&&!br(t.parent))}function MCe(e){const{parent:t}=e;switch(t.kind){case 302:return!1}switch(e.kind){case 10:return t.kind!==269&&t.kind!==273;case 227:case 203:case 205:return!1;case 79:return t.kind!==205&&t.kind!==273&&t.kind!==278}return!0}function FCe(e){switch(e.kind){case 238:case 308:case 265:case 292:return!0;default:return!1}}function Cre(e){return Lre(e)||(Fy(e)||Qx(e)||e2(e))&&(Fy(e.parent)||e2(e.parent))}function Lre(e){return Ho(e)&&e.parent&&fm(e.parent)}var L2,I2,k2,Qc,Ire,HYe=S({"src/services/refactors/extractSymbol.ts"(){Qr(),jh(),L2="Extract Symbol",I2={name:"Extract Constant",description:Po(_.Extract_constant),kind:"refactor.extract.constant"},k2={name:"Extract Function",description:Po(_.Extract_function),kind:"refactor.extract.function"},Og(L2,{kinds:[I2.kind,k2.kind],getEditsForAction:PCe,getAvailableActions:OCe}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(Qc||(Qc={})),Ire=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(Ire||{})}}),BCe={};X(BCe,{Messages:()=>Qc,RangeFacts:()=>Ire,getRangeToExtract:()=>Tre,getRefactorActionsToExtractSymbol:()=>OCe,getRefactorEditsToExtractSymbol:()=>PCe});var WYe=S({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){HYe()}}),EP,DU,RU,zYe=S({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){Qr(),jh(),EP="Generate 'get' and 'set' accessors",DU=_.Generate_get_and_set_accessors.message,RU={name:EP,description:DU,kind:"refactor.rewrite.property.generateAccessors"},Og(EP,{kinds:[RU.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=Yu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);D.assert(i&&!Vh(i),"Expected applicable refactor info");const o=Yu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;const s=t.file.fileName,c=i.renameAccessor?i.accessorName:i.fieldName,d=(je(c)?0:-1)+R6(o,s,c.text,Fa(i.declaration));return{renameFilename:s,renameLocation:d,edits:o}},getAvailableActions(e){if(!e.endPosition)return rt;const t=Yu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Vh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:EP,description:DU,actions:[Ka(Ti({},RU),{notApplicableReason:t.error})]}]:rt:[{name:EP,description:DU,actions:[RU]}]:rt}})}}),qYe={},JYe=S({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){zYe()}});function KYe(e){const t=GCe(e);if(t&&!Vh(t))return{renameFilename:void 0,renameLocation:void 0,edits:gr.ChangeTracker.with(e,i=>YYe(e.file,i,t.declaration,t.returnTypeNode))}}function XYe(e){const t=GCe(e);return t?Vh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:TP,description:NU,actions:[Ka(Ti({},SP),{notApplicableReason:t.error})]}]:rt:[{name:TP,description:NU,actions:[SP]}]:rt}function YYe(e,t,r,i){const o=Es(r,21,e),s=Xs(r)&&o===void 0,c=s?ds(r.parameters):o;c&&(s&&(t.insertNodeBefore(e,c,N.createToken(20)),t.insertNodeAfter(e,c,N.createToken(21))),t.insertNodeAt(e,c.end,i,{prefix:": "}))}function GCe(e){if(fr(e.file)||!l0(SP.kind,e.kind))return;const t=oa(e.file,e.startPosition),r=rr(t,c=>uo(c)||c.parent&&Xs(c.parent)&&(c.kind===38||c.parent.body===c)?"quit":$Ye(c));if(!r||!r.body||r.type)return{error:Po(_.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),o=QYe(i,r);if(!o)return{error:Po(_.Could_not_determine_function_return_type)};const s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function $Ye(e){switch(e.kind){case 259:case 215:case 216:case 171:return!0;default:return!1}}function QYe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(pa(i,o=>o.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var TP,NU,SP,ZYe=S({"src/services/refactors/inferFunctionReturnType.ts"(){Qr(),jh(),TP="Infer function return type",NU=_.Infer_function_return_type.message,SP={name:TP,description:NU,kind:"refactor.rewrite.function.returnType"},Og(TP,{kinds:[SP.kind],getEditsForAction:KYe,getAvailableActions:XYe})}}),e$e={},t$e=S({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){ZYe()}}),_D={};X(_D,{addOrRemoveBracesToArrowFunction:()=>mXe,convertArrowFunctionOrFunctionExpression:()=>LXe,convertParamsToDestructuredObject:()=>qXe,convertStringOrTemplateLiteral:()=>nYe,convertToOptionalChainExpression:()=>mYe,doChangeNamedToNamespaceOrDefault:()=>WAe,extractSymbol:()=>BCe,generateGetAccessorAndSetAccessor:()=>qYe,getApplicableRefactors:()=>fKe,getEditsForRefactor:()=>_Ke,inferFunctionReturnType:()=>e$e,isRefactorErrorInfo:()=>Vh,refactorKindBeginsWith:()=>l0,registerRefactor:()=>Og});var jh=S({"src/services/_namespaces/ts.refactor.ts"(){pKe(),EKe(),CKe(),RKe(),NKe(),lXe(),hXe(),IXe(),JXe(),rYe(),hYe(),WYe(),JYe(),t$e()}});function n$e(e,t,r,i){const o=h9(Vf(t,r));if(VCe(o)){const s=r$e(o,e.getTypeChecker(),t,e,i);if(s)return s}return OU(_.You_cannot_rename_this_element)}function r$e(e,t,r,i,o){const s=t.getSymbolAtLocation(e);if(!s){if(As(e)){const C=m9(e,t);if(C&&(C.flags&128||C.flags&1048576&&Zn(C.types,L=>!!(L.flags&128))))return kre(e.text,e.text,"string","",e,r)}else if(hQ(e)){const C=kc(e);return kre(C,C,"label","",e,r)}return}const{declarations:c}=s;if(!c||c.length===0)return;if(c.some(C=>i$e(i,C)))return OU(_.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(je(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(As(e)&&zN(e))return o.allowRenameOfImportPath?o$e(e,r,s):void 0;const f=a$e(r,s,t,o);if(f)return OU(f);const d=zy.getSymbolKind(t,s,e),v=Ibe(e)||i_(e)&&e.parent.kind===164?X_(K_(e)):void 0,h=v||t.symbolToString(s),E=v||t.getFullyQualifiedName(s);return kre(h,E,d,zy.getSymbolModifiers(t,s),e,r)}function i$e(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&hc(r.fileName,".d.ts")}function a$e(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const c=t.declarations&&In(t.declarations,f=>Nd(f));c&&!c.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const s=UCe(e.path);if(s===void 0)return kt(o,c=>Ube(c.getSourceFile().path))?_.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const c of o){const f=UCe(c.getSourceFile().path);if(f){const d=Math.min(s.length,f.length);for(let v=0;v<=d;v++)if(Uu(s[v],f[v])!==0)return _.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function UCe(e){const t=pd(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function o$e(e,t,r){if(!zc(e.text))return OU(_.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&In(r.declarations,Ji);if(!i)return;const o=cc(e.text,"/index")||cc(e.text,"/index.js")?void 0:nue(qd(i.fileName),"/index"),s=o===void 0?i.fileName:o,c=o===void 0?"module":"directory",f=e.text.lastIndexOf("/")+1,d=Pc(e.getStart(t)+1+f,e.text.length-f);return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:d}}function kre(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:s$e(o,s)}}function OU(e){return{canRename:!1,localizedErrorMessage:Po(e)}}function s$e(e,t){let r=e.getStart(t),i=e.getWidth(t);return As(e)&&(r+=1,i-=2),Pc(r,i)}function VCe(e){switch(e.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return d9(e);default:return!1}}var l$e=S({"src/services/rename.ts"(){Qr()}}),PU={};X(PU,{getRenameInfo:()=>n$e,nodeIsEligibleForRename:()=>VCe});var c$e=S({"src/services/_namespaces/ts.Rename.ts"(){l$e()}});function u$e(e,t,r,i,o){const s=e.getTypeChecker(),c=g9(t,r);if(!c)return;const f=!!i&&i.kind==="characterTyped";if(f&&(lS(t,r,c)||Vy(t,r)))return;const d=!!i&&i.kind==="invoked",v=A$e(c,r,t,s,d);if(!v)return;o.throwIfCancellationRequested();const h=d$e(v,s,t,c,f);return o.throwIfCancellationRequested(),h?s.runWithCancellationToken(o,E=>h.kind===0?KCe(h.candidates,h.resolvedSignature,v,t,E):L$e(h.symbol,v,t,E)):sd(t)?_$e(v,e,o):void 0}function d$e({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!f$e(o,e.node,i))return;const c=[],f=r.getResolvedSignatureForSignatureHelp(e.node,c,t);return c.length===0?void 0:{kind:0,candidates:c,resolvedSignature:f}}case 1:{const{called:c}=e;if(s&&!jCe(o,i,je(c)?c.parent:c))return;const f=IQ(c,t,r);if(f.length!==0)return{kind:0,candidates:f,resolvedSignature:ds(f)};const d=r.getSymbolAtLocation(c);return d&&{kind:1,symbol:d}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return D.assertNever(e)}}function f$e(e,t,r){if(!bg(t))return!1;const i=t.getChildren(r);switch(e.kind){case 20:return Ur(i,e);case 27:{const o=p9(e);return!!o&&Ur(i,o)}case 29:return jCe(e,r,t.expression);default:return!1}}function _$e(e,t,r){if(e.invocation.kind===2)return;const i=qCe(e.invocation),o=Fr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Jt(t.getSourceFiles(),c=>Jt(c.getNamedDeclarations().get(o),f=>{const d=f.symbol&&s.getTypeOfSymbolAtLocation(f.symbol,f),v=d&&d.getCallSignatures();if(v&&v.length)return s.runWithCancellationToken(r,h=>KCe(v,v[0],e,c,h,!0))}))}function jCe(e,t,r){const i=e.getFullStart();let o=e.parent;for(;o;){const s=Dc(i,t,o,!0);if(s)return vf(r,s);o=o.parent}return D.fail("Could not find preceding token")}function p$e(e,t,r){const i=WCe(e,t,r);return!i||i.isTypeParameterList||i.invocation.kind!==0?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function HCe(e,t,r){const i=m$e(e,r);if(!i)return;const{list:o,argumentIndex:s}=i,c=E$e(o,lS(r,t,e));s!==0&&D.assertLessThan(s,c);const f=S$e(o,r);return{list:o,argumentIndex:s,argumentCount:c,argumentsSpan:f}}function m$e(e,t){if(e.kind===29||e.kind===20)return{list:C$e(e.parent,e,t),argumentIndex:0};{const r=p9(e);return r&&{list:r,argumentIndex:b$e(r,e)}}}function WCe(e,t,r){const{parent:i}=e;if(bg(i)){const o=i,s=HCe(e,t,r);if(!s)return;const{list:c,argumentIndex:f,argumentCount:d,argumentsSpan:v}=s;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:o},argumentsSpan:v,argumentIndex:f,argumentCount:d}}else{if(jx(e)&&VT(i))return T6(e,t,r)?Dre(i,0,r):void 0;if(NC(e)&&i.parent.kind===212){const o=i,s=o.parent;D.assert(o.kind===225);const c=T6(e,t,r)?0:1;return Dre(s,c,r)}else if(iw(i)&&VT(i.parent.parent)){const o=i,s=i.parent.parent;if(oK(e)&&!T6(e,t,r))return;const c=o.parent.templateSpans.indexOf(o),f=T$e(c,e,t,r);return Dre(s,f,r)}else if(od(i)){const o=i.attributes.pos,s=Xo(r.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:Pc(o,s-o),argumentIndex:0,argumentCount:1}}else{const o=kQ(e,r);if(o){const{called:s,nTypeArguments:c}=o,f={kind:1,called:s},d=Tc(s.getStart(r),e.end);return{isTypeParameterList:!0,invocation:f,argumentsSpan:d,argumentIndex:c,argumentCount:c+1}}return}}}function h$e(e,t,r,i){return g$e(e,t,r,i)||WCe(e,t,r)}function zCe(e){return br(e.parent)?zCe(e.parent):e}function wre(e){return br(e.left)?wre(e.left)+1:2}function g$e(e,t,r,i){const o=y$e(e,r,t,i);if(!o)return;const{contextualType:s,argumentIndex:c,argumentCount:f,argumentsSpan:d}=o,v=s.getNonNullableType(),h=v.symbol;if(h===void 0)return;const E=rl(v.getCallSignatures());return E===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:E,node:e,symbol:v$e(h)},argumentsSpan:d,argumentIndex:c,argumentCount:f}}function y$e(e,t,r,i){if(e.kind!==20&&e.kind!==27)return;const{parent:o}=e;switch(o.kind){case 214:case 171:case 215:case 216:const s=HCe(e,r,t);if(!s)return;const{argumentIndex:c,argumentCount:f,argumentsSpan:d}=s,v=uc(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return v&&{contextualType:v,argumentIndex:c,argumentCount:f,argumentsSpan:d};case 223:{const h=zCe(o),E=i.getContextualType(h),C=e.kind===20?0:wre(o)-1,L=wre(h);return E&&{contextualType:E,argumentIndex:C,argumentCount:L,argumentsSpan:dd(o)}}default:return}}function v$e(e){return e.name==="__type"&&Jt(e.declarations,t=>{var r;return Mh(t)?(r=si(t.parent,Vm))==null?void 0:r.symbol:void 0})||e}function b$e(e,t){let r=0;for(const i of e.getChildren()){if(i===t)break;i.kind!==27&&r++}return r}function E$e(e,t){const r=e.getChildren();let i=Wc(r,o=>o.kind!==27);return!t&&r.length>0&&Jo(r).kind===27&&i++,i}function T$e(e,t,r,i){return D.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),Rde(t)?T6(t,r,i)?0:e+2:e+1}function Dre(e,t,r){const i=jx(e.template)?1:e.template.templateSpans.length+1;return t!==0&&D.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:x$e(e,r),argumentIndex:t,argumentCount:i}}function S$e(e,t){const r=e.getFullStart(),i=Xo(t.text,e.getEnd(),!1);return Pc(r,i-r)}function x$e(e,t){const r=e.template,i=r.getStart();let o=r.getEnd();return r.kind===225&&Jo(r.templateSpans).literal.getFullWidth()===0&&(o=Xo(t.text,o,!1)),Pc(i,o-i)}function A$e(e,t,r,i,o){for(let s=e;!Ji(s)&&(o||!uo(s));s=s.parent){D.assert(vf(s.parent,s),"Not a subspan",()=>`Child: ${D.formatSyntaxKind(s.kind)}, parent: ${D.formatSyntaxKind(s.parent.kind)}`);const c=h$e(s,t,r,i);if(c)return c}}function C$e(e,t,r){const i=e.getChildren(r),o=i.indexOf(t);return D.assert(o>=0&&i.length>o+1),i[o+1]}function qCe(e){return e.kind===0?B3(e.node):e.called}function JCe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function KCe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:c},f,d,v){var h;const E=JCe(s),C=s.kind===2?s.symbol:d.getSymbolAtLocation(qCe(s))||v&&((h=t.declaration)==null?void 0:h.symbol),L=C?Uw(d,C,v?f:void 0,void 0):rt,I=zt(e,H=>k$e(H,L,r,d,E,f));c!==0&&D.assertLessThan(c,i);let O=0,k=0;for(let H=0;H<I.length;H++){const ne=I[H];if(e[H]===t&&(O=k,ne.length>1)){let Y=0;for(const $ of ne){if($.isVariadic||$.parameters.length>=i){O=k+Y;break}Y++}}k+=ne.length}D.assert(O!==-1);const G={items:Rf(I,yl),applicableSpan:o,selectedItemIndex:O,argumentIndex:c,argumentCount:i},V=G.items[O];if(V.isVariadic){const H=mi(V.parameters,ne=>!!ne.isRest);-1<H&&H<V.parameters.length-1?G.argumentIndex=V.parameters.length:G.argumentIndex=Math.min(G.argumentIndex,V.parameters.length-1)}return G}function L$e(e,{argumentCount:t,argumentsSpan:r,invocation:i,argumentIndex:o},s,c){const f=c.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return f?{items:[I$e(e,f,c,JCe(i),s)],applicableSpan:r,selectedItemIndex:0,argumentIndex:o,argumentCount:t}:void 0}function I$e(e,t,r,i,o){const s=Uw(r,e),c=sE(),f=t.map(E=>XCe(E,r,i,o,c)),d=e.getDocumentationComment(r),v=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,Iu(29)],suffixDisplayParts:[Iu(31)],separatorDisplayParts:Rre,parameters:f,documentation:d,tags:v}}function k$e(e,t,r,i,o,s){const c=(r?D$e:R$e)(e,i,o,s);return zt(c,({isVariadic:f,parameters:d,prefix:v,suffix:h})=>{const E=[...t,...v],C=[...h,...w$e(e,o,i)],L=e.getDocumentationComment(i),I=e.getJsDocTags();return{isVariadic:f,prefixDisplayParts:E,suffixDisplayParts:C,separatorDisplayParts:Rre,parameters:d,documentation:L,tags:I}})}function w$e(e,t,r){return i0(i=>{i.writePunctuation(":"),i.writeSpace(" ");const o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function D$e(e,t,r,i){const o=(e.target||e).typeParameters,s=sE(),c=(o||rt).map(d=>XCe(d,t,r,i,s)),f=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,pD)]:[];return t.getExpandedParameters(e).map(d=>{const v=N.createNodeArray([...f,...zt(d,E=>t.symbolToParameterDeclaration(E,r,pD))]),h=i0(E=>{s.writeList(2576,v,i,E)});return{isVariadic:!1,parameters:c,prefix:[Iu(29)],suffix:[Iu(31),...h]}})}function R$e(e,t,r,i){const o=sE(),s=i0(d=>{if(e.typeParameters&&e.typeParameters.length){const v=N.createNodeArray(e.typeParameters.map(h=>t.typeParameterToDeclaration(h,r,pD)));o.writeList(53776,v,i,d)}}),c=t.getExpandedParameters(e),f=t.hasEffectiveRestParameter(e)?c.length===1?d=>!0:d=>{var v;return!!(d.length&&((v=si(d[d.length-1],Hm))==null?void 0:v.links.checkFlags)&32768)}:d=>!1;return c.map(d=>({isVariadic:f(d),parameters:d.map(v=>N$e(v,t,r,i,o)),prefix:[...s,Iu(20)],suffix:[Iu(21)]}))}function N$e(e,t,r,i,o){const s=i0(d=>{const v=t.symbolToParameterDeclaration(e,r,pD);o.writeNode(4,v,i,d)}),c=t.isOptionalParameter(e.valueDeclaration),f=Hm(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:c,isRest:f}}function XCe(e,t,r,i,o){const s=i0(c=>{const f=t.typeParameterToDeclaration(e,r,pD);o.writeNode(4,f,i,c)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var pD,Rre,O$e=S({"src/services/signatureHelp.ts"(){Qr(),pD=70246400,Rre=[Iu(27),Sl()]}}),xP={};X(xP,{getArgumentInfoForCompletions:()=>p$e,getSignatureHelpItems:()=>u$e});var P$e=S({"src/services/_namespaces/ts.SignatureHelp.ts"(){O$e()}});function M$e(e,t){var r,i;let o={textSpan:Tc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){const d=B$e(s);if(!d.length)break;for(let v=0;v<d.length;v++){const h=d[v-1],E=d[v],C=d[v+1];if(ST(E,t,!0)>e)break e;const L=Om(nb(t.text,E.end));if(L&&L.kind===2&&f(L.pos,L.end),F$e(t,e,E)){if(Tz(E)&&el(s)&&!A_(E.getStart(t),E.getEnd(),t)&&c(E.getStart(t),E.getEnd()),uo(E)||iw(E)||NC(E)||oK(E)||h&&NC(h)||Ju(E)&&gc(s)||qC(E)&&Ju(s)||Xi(E)&&qC(s)&&d.length===1||qT(E)||Z1(E)||lw(E)){s=E;break}if(iw(s)&&C&&c3(C)){const G=E.getFullStart()-2,V=C.getStart()+1;c(G,V)}const I=qC(E)&&G$e(h)&&U$e(C)&&!A_(h.getStart(),C.getStart(),t);let O=I?h.getEnd():E.getStart();const k=I?C.getStart():V$e(t,E);if(Of(E)&&((r=E.jsDoc)!=null&&r.length)&&c(ds(E.jsDoc).getStart(),k),qC(E)){const G=E.getChildren()[0];G&&Of(G)&&((i=G.jsDoc)!=null&&i.length)&&G.getStart()!==E.pos&&(O=Math.min(O,ds(G.jsDoc).getStart()))}c(O,k),(Ho(E)||qA(E))&&c(O+1,k-1),s=E;break}if(v===d.length-1)break e}}return o;function c(d,v){if(d!==v){const h=Tc(d,v);(!o||!_L(h,o.textSpan)&&cde(h,e))&&(o=Ti({textSpan:h},o&&{parent:o}))}}function f(d,v){c(d,v);let h=d;for(;t.text.charCodeAt(h)===47;)h++;c(h,v)}}function F$e(e,t,r){return D.assert(r.pos<=t),t<r.end?!0:r.getEnd()===t?Vf(e,t).pos<r.end:!1}function B$e(e){var t;if(Ji(e))return mD(e.getChildAt(0).getChildren(),YCe);if(tw(e)){const[r,...i]=e.getChildren(),o=D.checkDefined(i.pop());D.assertEqual(r.kind,18),D.assertEqual(o.kind,19);const s=mD(i,f=>f===e.readonlyToken||f.kind===146||f===e.questionToken||f.kind===57),c=mD(s,({kind:f})=>f===22||f===165||f===23);return[r,hD(MU(c,({kind:f})=>f===58)),o]}if(Bf(e)){const r=mD(e.getChildren(),c=>c===e.name||Ur(e.modifiers,c)),i=((t=r[0])==null?void 0:t.kind)===323?r[0]:void 0,o=i?r.slice(1):r,s=MU(o,({kind:c})=>c===58);return i?[i,hD(s)]:s}if(Fa(e)){const r=mD(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=mD(r,o=>o===r[0]||o===e.questionToken);return MU(i,({kind:o})=>o===63)}return ms(e)?MU(e.getChildren(),({kind:r})=>r===63):e.getChildren()}function mD(e,t){const r=[];let i;for(const o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(hD(i)),i=void 0),r.push(o));return i&&r.push(hD(i)),r}function MU(e,t,r=!0){if(e.length<2)return e;const i=mi(e,t);if(i===-1)return e;const o=e.slice(0,i),s=e[i],c=Jo(e),f=r&&c.kind===26,d=e.slice(i+1,f?e.length-1:void 0),v=kR([o.length?hD(o):void 0,s,d.length?hD(d):void 0]);return f?v.concat(c):v}function hD(e){return D.assertGreaterThanOrEqual(e.length,1),Ym(nh.createSyntaxList(e),e[0].pos,Jo(e).end)}function G$e(e){const t=e&&e.kind;return t===18||t===22||t===20||t===283}function U$e(e){const t=e&&e.kind;return t===19||t===23||t===21||t===284}function V$e(e,t){switch(t.kind){case 344:case 341:case 351:case 349:case 346:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var YCe,j$e=S({"src/services/smartSelection.ts"(){Qr(),YCe=Fm(Yc,_u)}}),Nre={};X(Nre,{getSmartSelectionRange:()=>M$e});var H$e=S({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){j$e()}});function $Ce(e,t,r){const i=QCe(e,t,r);if(i!=="")return i;const o=kk(t);return o&32?Il(t,228)?"local class":"class":o&384?"enum":o&524288?"type":o&64?"interface":o&262144?"type parameter":o&8?"enum member":o&2097152?"alias":o&1536?"module":i}function QCe(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&ds(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===108&&vt(r)||wx(r))return"parameter";const o=kk(t);if(o&3)return WQ(t)?"parameter":t.valueDeclaration&&Tg(t.valueDeclaration)?"const":Je(t.declarations,sk)?"let":tLe(t)?"local var":"var";if(o&16)return tLe(t)?"local function":"function";if(o&32768)return"getter";if(o&65536)return"setter";if(o&8192)return"method";if(o&16384)return"constructor";if(o&131072)return"index";if(o&4){if(o&33554432&&t.links.checkFlags&6){const s=Je(e.getRootSymbols(t),c=>{if(c.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function ZCe(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=Le(r)&&q9(t)&&kt(r,s=>!q9(s))?8192:0,o=Fw(t,i);if(o)return o.split(",")}return[]}function W$e(e,t){if(!t)return"";const r=new Set(ZCe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&Je(ZCe(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?No(r.values()).join(","):""}function eLe(e,t,r,i,o,s=aS(o),c){var f;const d=[];let v=[],h=[];const E=kk(t);let C=s&1?QCe(e,t,o):"",L=!1;const I=o.kind===108&&U3(o)||wx(o);let O,k,G,V=!1;if(o.kind===108&&!I)return{displayParts:[Yd(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(C!==""||E&32||E&2097152){if(C==="getter"||C==="setter"){const me=In(t.declarations,Ee=>Ee.name===o);if(me)switch(me.kind){case 174:C="getter";break;case 175:C="setter";break;case 169:C="accessor";break;default:D.assertNever(me)}else C="property"}let W;if(O=I?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o),o.parent&&o.parent.kind===208){const me=o.parent.name;(me===o||me&&me.getFullWidth()===0)&&(o=o.parent)}let ce;if(bg(o)?ce=o:(_Q(o)||Nw(o)||o.parent&&(od(o.parent)||VT(o.parent))&&Xa(t.valueDeclaration))&&(ce=o.parent),ce){W=e.getResolvedSignature(ce);const me=ce.kind===211||io(ce)&&ce.expression.kind===106,Ee=me?O.getConstructSignatures():O.getCallSignatures();if(W&&!Ur(Ee,W.target)&&!Ur(Ee,W)&&(W=Ee.length?Ee[0]:void 0),W){switch(me&&E&32?(C="constructor",de(O.symbol,C)):E&2097152?(C="alias",re(C),d.push(Sl()),me&&(W.flags&4&&(d.push(Yd(126)),d.push(Sl())),d.push(Yd(103)),d.push(Sl())),M(t)):de(t,C),C){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":d.push(Iu(58)),d.push(Sl()),!(ri(O)&16)&&O.symbol&&(Ai(d,Uw(e,O.symbol,i,void 0,5)),d.push(pL())),me&&(W.flags&4&&(d.push(Yd(126)),d.push(Sl())),d.push(Yd(103)),d.push(Sl())),be(W,Ee,262144);break;default:be(W,Ee)}L=!0,V=Ee.length>1}}else if(bQ(o)&&!(E&98304)||o.kind===135&&o.parent.kind===173){const me=o.parent;if(t.declarations&&In(t.declarations,xe=>xe===(o.kind===135?me.parent:me))){const xe=me.kind===173?O.getNonNullableType().getConstructSignatures():O.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(me)?W=xe[0]:W=e.getSignatureFromDeclaration(me),me.kind===173?(C="constructor",de(O.symbol,C)):de(me.kind===176&&!(O.symbol.flags&2048||O.symbol.flags&4096)?O.symbol:t,C),W&&be(W,xe),L=!0,V=xe.length>1}}}if(E&32&&!L&&!I&&(Y(),Il(t,228)?re("local class"):d.push(Yd(84)),d.push(Sl()),M(t),ae(t,r)),E&64&&s&2&&(ne(),d.push(Yd(118)),d.push(Sl()),M(t),ae(t,r)),E&524288&&s&2&&(ne(),d.push(Yd(154)),d.push(Sl()),M(t),ae(t,r),d.push(Sl()),d.push(Gw(63)),d.push(Sl()),Ai(d,w6(e,vg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),E&384&&(ne(),kt(t.declarations,W=>yb(W)&&M1(W))&&(d.push(Yd(85)),d.push(Sl())),d.push(Yd(92)),d.push(Sl()),M(t)),E&1536&&!I){ne();const W=Il(t,264),ce=W&&W.name&&W.name.kind===79;d.push(Yd(ce?143:142)),d.push(Sl()),M(t)}if(E&262144&&s&2)if(ne(),d.push(Iu(20)),d.push(jf("type parameter")),d.push(Iu(21)),d.push(Sl()),M(t),t.parent)$(),M(t.parent,i),ae(t.parent,i);else{const W=Il(t,165);if(W===void 0)return D.fail();const ce=W.parent;if(ce)if(Xa(ce)){$();const me=e.getSignatureFromDeclaration(ce);ce.kind===177?(d.push(Yd(103)),d.push(Sl())):ce.kind!==176&&ce.name&&M(ce.symbol),Ai(d,JQ(e,me,r,32))}else um(ce)&&($(),d.push(Yd(154)),d.push(Sl()),M(ce.symbol),ae(ce.symbol,r))}if(E&8){C="enum member",de(t,"enum member");const W=(f=t.declarations)==null?void 0:f[0];if((W==null?void 0:W.kind)===302){const ce=e.getConstantValue(W);ce!==void 0&&(d.push(Sl()),d.push(Gw(63)),d.push(Sl()),d.push(Od(mfe(ce),typeof ce=="number"?7:8)))}}if(t.flags&2097152){if(ne(),!L){const W=e.getAliasedSymbol(t);if(W!==t&&W.declarations&&W.declarations.length>0){const ce=W.declarations[0],me=Ia(ce);if(me){const Ee=S3(ce)&&$r(ce,2),xe=t.name!=="default"&&!Ee,te=eLe(e,W,er(ce),ce,me,s,xe?t:W);d.push(...te.displayParts),d.push(pL()),k=te.documentation,G=te.tags}else k=W.getContextualDocumentationComment(ce,e),G=W.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 267:d.push(Yd(93)),d.push(Sl()),d.push(Yd(143));break;case 274:d.push(Yd(93)),d.push(Sl()),d.push(Yd(t.declarations[0].isExportEquals?63:88));break;case 278:d.push(Yd(93));break;default:d.push(Yd(100))}d.push(Sl()),M(t),Je(t.declarations,W=>{if(W.kind===268){const ce=W;if(sb(ce))d.push(Sl()),d.push(Gw(63)),d.push(Sl()),d.push(Yd(147)),d.push(Iu(20)),d.push(Od(kc(dk(ce)),8)),d.push(Iu(21));else{const me=e.getSymbolAtLocation(ce.moduleReference);me&&(d.push(Sl()),d.push(Gw(63)),d.push(Sl()),M(me,i))}return!0}})}if(!L)if(C!==""){if(O){if(I?(ne(),d.push(Yd(108))):de(t,C),C==="property"||C==="accessor"||C==="getter"||C==="setter"||C==="JSX attribute"||E&3||C==="local var"||C==="index"||I){if(d.push(Iu(58)),d.push(Sl()),O.symbol&&O.symbol.flags&262144&&C!=="index"){const W=i0(ce=>{const me=e.typeParameterToDeclaration(O,i,Ore);H().writeNode(4,me,er(va(i)),ce)});Ai(d,W)}else Ai(d,w6(e,O,i));if(Hm(t)&&t.links.target&&Hm(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const W=t.links.target.links.tupleLabelDeclaration;D.assertNode(W.name,je),d.push(Sl()),d.push(Iu(20)),d.push(jf(Mr(W.name))),d.push(Iu(21))}}else if(E&16||E&8192||E&16384||E&131072||E&98304||C==="method"){const W=O.getNonNullableType().getCallSignatures();W.length&&(be(W[0],W),V=W.length>1)}}}else C=$Ce(e,t,o);if(v.length===0&&!V&&(v=t.getContextualDocumentationComment(i,e)),v.length===0&&E&4&&t.parent&&t.declarations&&Je(t.parent.declarations,W=>W.kind===308))for(const W of t.declarations){if(!W.parent||W.parent.kind!==223)continue;const ce=e.getSymbolAtLocation(W.parent.right);if(ce&&(v=ce.getDocumentationComment(e),h=ce.getJsDocTags(e),v.length>0))break}if(v.length===0&&je(o)&&t.valueDeclaration&&ms(t.valueDeclaration)){const W=t.valueDeclaration,ce=W.parent;if(je(W.name)&&Qm(ce)){const me=K_(W.name),Ee=e.getTypeAtLocation(ce);v=Jt(Ee.isUnion()?Ee.types:[Ee],xe=>{const te=xe.getProperty(me);return te?te.getDocumentationComment(e):void 0})||rt}}return h.length===0&&!V&&(h=t.getContextualJsDocTags(i,e)),v.length===0&&k&&(v=k),h.length===0&&G&&(h=G),{displayParts:d,documentation:v,symbolKind:C,tags:h.length===0?void 0:h};function H(){return sE()}function ne(){d.length&&d.push(pL()),Y()}function Y(){c&&(re("alias"),d.push(Sl()))}function $(){d.push(Sl()),d.push(Yd(101)),d.push(Sl())}function M(W,ce){let me;c&&W===t&&(W=c),C==="index"&&(me=e.getIndexInfosOfIndexSymbol(W));let Ee=[];W.flags&131072&&me?(W.parent&&(Ee=Uw(e,W.parent)),Ee.push(Iu(22)),me.forEach((xe,te)=>{Ee.push(...w6(e,xe.keyType)),te!==me.length-1&&(Ee.push(Sl()),Ee.push(Iu(51)),Ee.push(Sl()))}),Ee.push(Iu(23))):Ee=Uw(e,W,ce||r,void 0,7),Ai(d,Ee),t.flags&16777216&&d.push(Iu(57))}function de(W,ce){ne(),ce&&(re(ce),W&&!kt(W.declarations,me=>Xs(me)||(Us(me)||qu(me))&&!me.name)&&(d.push(Sl()),M(W)))}function re(W){switch(W){case"var":case"function":case"let":case"const":case"constructor":d.push(zQ(W));return;default:d.push(Iu(20)),d.push(zQ(W)),d.push(Iu(21));return}}function be(W,ce,me=0){Ai(d,JQ(e,W,i,me|32)),ce.length>1&&(d.push(Sl()),d.push(Iu(20)),d.push(Gw(39)),d.push(Od((ce.length-1).toString(),7)),d.push(Sl()),d.push(jf(ce.length===2?"overload":"overloads")),d.push(Iu(21))),v=W.getDocumentationComment(e),h=W.getJsDocTags(),ce.length>1&&v.length===0&&h.length===0&&(v=ce[0].getDocumentationComment(e),h=ce[0].getJsDocTags().filter(Ee=>Ee.name!=="deprecated"))}function ae(W,ce){const me=i0(Ee=>{const xe=e.symbolToTypeParameterDeclarations(W,ce,Ore);H().writeList(53776,xe,er(va(ce)),Ee)});Ai(d,me)}}function tLe(e){return e.parent?!1:Je(e.declarations,t=>{if(t.kind===215)return!0;if(t.kind!==257&&t.kind!==259)return!1;for(let r=t.parent;!CT(r);r=r.parent)if(r.kind===308||r.kind===265)return!1;return!0})}var Ore,z$e=S({"src/services/symbolDisplay.ts"(){Qr(),Ore=70246400}}),zy={};X(zy,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>eLe,getSymbolKind:()=>$Ce,getSymbolModifiers:()=>W$e});var q$e=S({"src/services/_namespaces/ts.SymbolDisplay.ts"(){z$e()}});function nLe(e){const t=e.__pos;return D.assert(typeof t=="number"),t}function Pre(e,t){D.assert(typeof t=="number"),e.__pos=t}function rLe(e){const t=e.__end;return D.assert(typeof t=="number"),t}function Mre(e,t){D.assert(typeof t=="number"),e.__end=t}function iLe(e,t){return Xo(e,t,!1,!0)}function J$e(e,t){let r=t;for(;r<e.length;){const i=e.charCodeAt(r);if(Um(i)){r++;continue}return i===47}return!1}function gD(e,t,r,i){return{pos:yS(e,t,i),end:w2(e,r,i)}}function yS(e,t,r,i=!1){var o,s;const{leadingTriviaOption:c}=r;if(c===0)return t.getStart(e);if(c===3){const L=t.getStart(e),I=w_(L,e);return h6(t,I)?I:L}if(c===2){const L=eq(t,e.text);if(L!=null&&L.length)return w_(L[0].pos,e)}const f=t.getFullStart(),d=t.getStart(e);if(f===d)return d;const v=w_(f,e);if(w_(d,e)===v)return c===1?f:d;if(i){const L=((o=xh(e.text,f))==null?void 0:o[0])||((s=nb(e.text,f))==null?void 0:s[0]);if(L)return Xo(e.text,L.end,!0,!0)}const E=f>0?1:0;let C=Vv(bk(e,v)+E,e);return C=iLe(e.text,C),Vv(bk(e,C),e)}function Fre(e,t,r){const{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){const s=nb(e.text,i);if(s){const c=bk(e,t.end);for(const f of s){if(f.kind===2||bk(e,f.pos)>c)break;if(bk(e,f.end)>c)return Xo(e.text,f.end,!0,!0)}}}}function w2(e,t,r){var i;const{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){const d=ya(nb(e.text,o),xh(e.text,o)),v=(i=d==null?void 0:d[d.length-1])==null?void 0:i.end;return v||o}const c=Fre(e,t,r);if(c)return c;const f=Xo(e.text,o,!0);return f!==o&&(s===2||Tu(e.text.charCodeAt(f-1)))?f:o}function FU(e,t){return!!t&&!!e.parent&&(t.kind===27||t.kind===26&&e.parent.kind===207)}function K$e(e){return Us(e)||xc(e)}function X$e(e){if(e.kind!==216)return e;const t=e.parent.kind===169?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function Y$e(e,t){if(e.kind===t.kind)switch(e.kind){case 344:{const r=e,i=t;return je(r.name)&&je(i.name)&&r.name.escapedText===i.name.escapedText?N.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 345:return N.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 347:return N.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function Bre(e,t){return Xo(e.text,yS(e,t,{leadingTriviaOption:1}),!1,!0)}function $$e(e,t,r,i){const o=Bre(e,i);if(r===void 0||A_(w2(e,t,{}),o,e))return o;const s=Dc(i.getStart(e),e);if(FU(t,s)){const c=Dc(t.getStart(e),e);if(FU(r,c)){const f=Xo(e.text,s.getEnd(),!0,!0);if(A_(c.getStart(e),s.getStart(e),e))return Tu(e.text.charCodeAt(f-1))?f-1:f;if(Tu(e.text.charCodeAt(f)))return f}}return o}function Q$e(e,t){const r=Es(e,18,t),i=Es(e,19,t);return[r==null?void 0:r.end,i==null?void 0:i.end]}function BU(e){return Is(e)?e.properties:e.members}function Z$e(e,t,r,i){return AP.newFileChangesWorker(void 0,t,e,r,i)}function Gre(e,t){for(let r=t.length-1;r>=0;r--){const{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(uu(i))}`}return e}function eQe(e){return Xo(e,0)===e.length}function GU(e){const t=Gn(e,GU,sLe,tQe,GU),r=tl(t)?t:Object.create(t);return Ym(r,nLe(e),rLe(e)),r}function tQe(e,t,r,i,o){const s=Kn(e,t,r,i,o);if(!s)return s;D.assert(e);const c=s===e?N.createNodeArray(s.slice(0)):s;return Ym(c,nLe(e),rLe(e)),c}function aLe(e){let t=0;const r=lO(e),i=te=>{te&&Pre(te,t)},o=te=>{te&&Mre(te,t)},s=te=>{te&&Pre(te,t)},c=te=>{te&&Mre(te,t)},f=te=>{te&&Pre(te,t)},d=te=>{te&&Mre(te,t)};function v(te,Qe){if(Qe||!eQe(te)){t=r.getTextPos();let Ve=0;for(;gg(te.charCodeAt(te.length-Ve-1));)Ve++;t-=Ve}}function h(te){r.write(te),v(te,!1)}function E(te){r.writeComment(te)}function C(te){r.writeKeyword(te),v(te,!1)}function L(te){r.writeOperator(te),v(te,!1)}function I(te){r.writePunctuation(te),v(te,!1)}function O(te){r.writeTrailingSemicolon(te),v(te,!1)}function k(te){r.writeParameter(te),v(te,!1)}function G(te){r.writeProperty(te),v(te,!1)}function V(te){r.writeSpace(te),v(te,!1)}function H(te){r.writeStringLiteral(te),v(te,!1)}function ne(te,Qe){r.writeSymbol(te,Qe),v(te,!1)}function Y(te){r.writeLine(te)}function $(){r.increaseIndent()}function M(){r.decreaseIndent()}function de(){return r.getText()}function re(te){r.rawWrite(te),v(te,!1)}function be(te){r.writeLiteral(te),v(te,!0)}function ae(){return r.getTextPos()}function W(){return r.getLine()}function ce(){return r.getColumn()}function me(){return r.getIndent()}function Ee(){return r.isAtStartOfLine()}function xe(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:c,onBeforeEmitToken:f,onAfterEmitToken:d,write:h,writeComment:E,writeKeyword:C,writeOperator:L,writePunctuation:I,writeTrailingSemicolon:O,writeParameter:k,writeProperty:G,writeSpace:V,writeStringLiteral:H,writeSymbol:ne,writeLine:Y,increaseIndent:$,decreaseIndent:M,getText:de,rawWrite:re,writeLiteral:be,getTextPos:ae,getLine:W,getColumn:ce,getIndent:me,isAtStartOfLine:Ee,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:xe}}function nQe(e){let t;for(const v of e.statements)if(Ap(v))t=v;else break;let r=0;const i=e.text;if(t)return r=t.end,d(),r;const o=YM(i);o!==void 0&&(r=o.length,d());const s=xh(i,r);if(!s)return r;let c,f;for(const v of s){if(v.kind===3){if(E3(i,v.pos)){c={range:v,pinnedOrTripleSlash:!0};continue}}else if(Fz(i,v.pos,v.end)){c={range:v,pinnedOrTripleSlash:!0};continue}if(c){if(c.pinnedOrTripleSlash)break;const h=e.getLineAndCharacterOfPosition(v.pos).line,E=e.getLineAndCharacterOfPosition(c.range.end).line;if(h>=E+2)break}if(e.statements.length){f===void 0&&(f=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const h=e.getLineAndCharacterOfPosition(v.end).line;if(f<h+2)break}c={range:v,pinnedOrTripleSlash:!1}}return c&&(r=c.range.end,d()),r;function d(){if(r<i.length){const v=i.charCodeAt(r);Tu(v)&&(r++,r<i.length&&v===13&&i.charCodeAt(r)===10&&r++)}}}function oLe(e,t){return!Vy(e,t)&&!lS(e,t)&&!LQ(e,t)&&!abe(e,t)}function rQe(e,t){return(Bf(e)||ro(e))&&u3(t)&&t.name.kind===164||vN(e)&&vN(t)}function Hh(e,t,r,i={leadingTriviaOption:1}){const o=yS(t,r,i),s=w2(t,r,i);e.deleteRange(t,{pos:o,end:s})}function yD(e,t,r,i){const o=D.checkDefined(Rc.SmartIndenter.getContainingList(i,r)),s=$A(o,i);if(D.assert(s!==-1),o.length===1){Hh(e,r,i);return}D.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:Bre(r,i),end:s===o.length-1?w2(r,i,{}):$$e(r,i,o[s-1],o[s+1])})}var Ure,Vre,AL,UU,AP,sLe,jre,iQe=S({"src/services/textChanges.ts"(){Qr(),Ure=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Ure||{}),Vre=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(Vre||{}),AL={leadingTriviaOption:0,trailingTriviaOption:0},UU=class{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(e){return new UU(Tb(e.host,e.formatContext.options),e.formatContext)}static with(e,t){const r=UU.fromContext(e);return t(r),r.getChanges()}pushRaw(e,t){D.assertEqual(e.fileName,t.fileName);for(const r of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:r.newText,range:E9(r.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,r={leadingTriviaOption:1}){this.deleteRange(e,gD(e,t,t,r))}deleteNodes(e,t,r={leadingTriviaOption:1},i){for(const o of t){const s=yS(e,o,r,i),c=w2(e,o,r);this.deleteRange(e,{pos:s,end:c}),i=!!Fre(e,o,r)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Xo(e.text,t.end,!0)})}deleteNodeRange(e,t,r,i={leadingTriviaOption:1}){const o=yS(e,t,i),s=w2(e,r,i);this.deleteRange(e,{pos:o,end:s})}deleteNodeRangeExcludingEnd(e,t,r,i={leadingTriviaOption:1}){const o=yS(e,t,i),s=r===void 0?e.text.length:yS(e,r,i);this.deleteRange(e,{pos:o,end:s})}replaceRange(e,t,r,i={}){this.changes.push({kind:1,sourceFile:e,range:t,options:i,node:r})}replaceNode(e,t,r,i=AL){this.replaceRange(e,gD(e,t,t,i),r,i)}replaceNodeRange(e,t,r,i,o=AL){this.replaceRange(e,gD(e,t,r,o),i,o)}replaceRangeWithNodes(e,t,r,i={}){this.changes.push({kind:2,sourceFile:e,range:t,options:i,nodes:r})}replaceNodeWithNodes(e,t,r,i=AL){this.replaceRangeWithNodes(e,gD(e,t,t,i),r,i)}replaceNodeWithText(e,t,r){this.replaceRangeWithText(e,gD(e,t,t,AL),r)}replaceNodeRangeWithNodes(e,t,r,i,o=AL){this.replaceRangeWithNodes(e,gD(e,t,r,o),i,o)}nodeHasTrailingComment(e,t,r=AL){return!!Fre(e,t,r)}nextCommaToken(e,t){const r=sS(t,t.parent,e);return r&&r.kind===27?r:void 0}replacePropertyAssignment(e,t,r){const i=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:i})}insertNodeAt(e,t,r,i={}){this.replaceRange(e,x_(t),r,i)}insertNodesAt(e,t,r,i={}){this.replaceRangeWithNodes(e,x_(t),r,i)}insertNodeAtTopOfFile(e,t,r){this.insertAtTopOfFile(e,t,r)}insertNodesAtTopOfFile(e,t,r){this.insertAtTopOfFile(e,t,r)}insertAtTopOfFile(e,t,r){const i=nQe(e),o={prefix:i===0?void 0:this.newLineCharacter,suffix:(Tu(e.text.charCodeAt(i))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")};Va(t)?this.insertNodesAt(e,i,t,o):this.insertNodeAt(e,i,t,o)}insertFirstParameter(e,t,r){const i=tu(t);i?this.insertNodeBefore(e,i,r):this.insertNodeAt(e,t.pos,r)}insertNodeBefore(e,t,r,i=!1,o={}){this.insertNodeAt(e,yS(e,t,o),r,this.getOptionsForInsertNodeBefore(t,r,i))}insertModifierAt(e,t,r,i={}){this.insertNodeAt(e,t,N.createToken(r),i)}insertModifierBefore(e,t,r){return this.insertModifierAt(e,r.getStart(e),t,{suffix:" "})}insertCommentBeforeLine(e,t,r,i){const o=Vv(t,e),s=Dbe(e.text,o),c=oLe(e,s),f=Mw(e,c?s:r),d=e.text.slice(o,s),v=`${c?"":this.newLineCharacter}//${i}${this.newLineCharacter}${d}`;this.insertText(e,f.getStart(e),v)}insertJsdocCommentBefore(e,t,r){const i=t.getStart(e);if(t.jsDoc)for(const c of t.jsDoc)this.deleteRange(e,{pos:w_(c.getStart(e),e),end:w2(e,c,{})});const o=XQ(e.text,i-1),s=e.text.slice(o,i);this.insertNodeAt(e,i,r,{suffix:this.newLineCharacter+s})}createJSDocText(e,t){const r=Ga(t.jsDoc,o=>Ha(o.comment)?N.createJSDocText(o.comment):o.comment),i=Om(t.jsDoc);return i&&A_(i.pos,i.end,e)&&Le(r)===0?void 0:N.createNodeArray(ta(r,N.createJSDocText(`
- `)))}replaceJSDocComment(e,t,r){this.insertJsdocCommentBefore(e,X$e(t),N.createJSDocComment(this.createJSDocText(e,t),N.createNodeArray(r)))}addJSDocTags(e,t,r){const i=Rf(t.jsDoc,s=>s.tags),o=r.filter(s=>!i.some((c,f)=>{const d=Y$e(c,s);return d&&(i[f]=d),!!d}));this.replaceJSDocComment(e,t,[...i,...o])}filterJSDocTags(e,t,r){this.replaceJSDocComment(e,t,yn(Rf(t.jsDoc,i=>i.tags),r))}replaceRangeWithText(e,t,r){this.changes.push({kind:3,sourceFile:e,range:t,text:r})}insertText(e,t,r){this.replaceRangeWithText(e,x_(t),r)}tryInsertTypeAnnotation(e,t,r){var i;let o;if(Xa(t)){if(o=Es(t,21,e),!o){if(!Xs(t))return!1;o=ds(t.parameters)}}else o=(i=t.kind===257?t.exclamationToken:t.questionToken)!=null?i:t.name;return this.insertNodeAt(e,o.end,r,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,r){const i=Es(t,20,e).getStart(e)+1,o=t.parameters.length?", ":"";this.insertNodeAt(e,i,r,{prefix:"this: ",suffix:o})}insertTypeParameters(e,t,r){const i=(Es(t,20,e)||ds(t.parameters)).getStart(e);this.insertNodesAt(e,i,r,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,r){return ka(e)||qc(e)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Xi(e)?{suffix:", "}:Fa(e)?Fa(t)?{suffix:", "}:{}:Ho(e)&&Yc(e.parent)||My(e)?{suffix:", "}:Nd(e)?{suffix:","+(r?this.newLineCharacter:" ")}:D.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,r){const i=tu(t.body.statements);!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[r,...t.body.statements]):this.insertNodeBefore(e,i,r)}insertNodeAtConstructorStartAfterSuperCall(e,t,r){const i=In(t.body.statements,o=>fu(o)&&eC(o.expression));!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,r]):this.insertNodeAfter(e,i,r)}insertNodeAtConstructorEnd(e,t,r){const i=rl(t.body.statements);!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,r]):this.insertNodeAfter(e,i,r)}replaceConstructorBody(e,t,r){this.replaceNode(e,t.body,N.createBlock(r,!0))}insertNodeAtEndOfScope(e,t,r){const i=yS(e,t.getLastToken(),{});this.insertNodeAt(e,i,r,{prefix:Tu(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,r){this.insertNodeAtStartWorker(e,t,r)}insertNodeAtObjectStart(e,t,r){this.insertNodeAtStartWorker(e,t,r)}insertNodeAtStartWorker(e,t,r){var i;const o=(i=this.guessIndentationFromExistingMembers(e,t))!=null?i:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,BU(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,o))}guessIndentationFromExistingMembers(e,t){let r,i=t;for(const o of BU(t)){if(l7(i,o,e))return;const s=o.getStart(e),c=Rc.SmartIndenter.findFirstNonWhitespaceColumn(w_(s,e),s,e,this.formatContext.options);if(r===void 0)r=c;else if(c!==r)return;i=o}return r}computeIndentationForNewMember(e,t){var r;const i=t.getStart(e);return Rc.SmartIndenter.findFirstNonWhitespaceColumn(w_(i,e),i,e,this.formatContext.options)+((r=this.formatContext.options.indentSize)!=null?r:4)}getInsertNodeAtStartInsertOptions(e,t,r){const o=BU(t).length===0,s=Lp(this.classesWithNodesInsertedAtStart,hs(t),{node:t,sourceFile:e}),c=Is(t)&&(!T_(e)||!o),f=Is(t)&&T_(e)&&o&&!s;return{indentation:r,prefix:(f?",":"")+this.newLineCharacter,suffix:c?",":ud(t)&&o?";":""}}insertNodeAfterComma(e,t,r){const i=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,r){const i=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})}insertNodesAfter(e,t,r){const i=this.insertNodeAfterWorker(e,t,ds(r));this.insertNodesAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,r){return rQe(t,r)&&e.text.charCodeAt(t.end-1)!==59&&this.replaceRange(e,x_(t.end),N.createToken(26)),w2(e,t,{})}getInsertNodeAfterOptions(e,t){const r=this.getInsertNodeAfterOptionsWorker(t);return Ka(Ti({},r),{prefix:t.end===e.end&&ka(t)?r.prefix?`
- ${r.prefix}`:`
- `:r.prefix})}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 260:case 264:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 257:case 10:case 79:return{prefix:", "};case 299:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 166:return{};default:return D.assert(ka(e)||u3(e)),{suffix:this.newLineCharacter}}}insertName(e,t,r){if(D.assert(!t.name),t.kind===216){const i=Es(t,38,e),o=Es(t,20,e);o?(this.insertNodesAt(e,o.getStart(e),[N.createToken(98),N.createIdentifier(r)],{joiner:" "}),Hh(this,e,i)):(this.insertText(e,ds(t.parameters).getStart(e),`function ${r}(`),this.replaceRange(e,i,N.createToken(21))),t.body.kind!==238&&(this.insertNodesAt(e,t.body.getStart(e),[N.createToken(18),N.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[N.createToken(26),N.createToken(19)],{joiner:" "}))}else{const i=Es(t,t.kind===215?98:84,e).end;this.insertNodeAt(e,i,N.createIdentifier(r),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,r,i){const o=r.elements[i-1];o?this.insertNodeInListAfter(e,o,t):this.insertNodeBefore(e,r.elements[0],t,!A_(r.elements[0].getStart(),r.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,r,i=Rc.SmartIndenter.getContainingList(t,e)){if(!i){D.fail("node is not a list element");return}const o=$A(i,t);if(o<0)return;const s=t.getEnd();if(o!==i.length-1){const c=oa(e,t.end);if(c&&FU(t,c)){const f=i[o+1],d=iLe(e.text,f.getFullStart()),v=`${vo(c.kind)}${e.text.substring(c.end,d)}`;this.insertNodesAt(e,d,[r],{suffix:v})}}else{const c=t.getStart(e),f=w_(c,e);let d,v=!1;if(i.length===1)d=27;else{const h=Dc(t.pos,e);d=FU(t,h)?h.kind:27,v=w_(i[o-1].getStart(e),e)!==f}if(J$e(e.text,t.end)&&(v=!0),v){this.replaceRange(e,x_(s),N.createToken(d));const h=Rc.SmartIndenter.findFirstNonWhitespaceColumn(f,c,e,this.formatContext.options);let E=Xo(e.text,s,!0,!1);for(;E!==s&&Tu(e.text.charCodeAt(E-1));)E--;this.replaceRange(e,x_(E),r,{indentation:h,prefix:this.newLineCharacter})}else this.replaceRange(e,x_(s),r,{prefix:`${vo(d)} `})}}parenthesizeExpression(e,t){this.replaceRange(e,mJ(t),N.createParenthesizedExpression(t))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:e,sourceFile:t})=>{const[r,i]=Q$e(e,t);if(r!==void 0&&i!==void 0){const o=BU(e).length===0,s=A_(r,i,t);o&&s&&r!==i-1&&this.deleteRange(t,x_(r,i-1)),s&&this.insertText(t,i-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:r}of this.deletedNodes)this.deletedNodes.some(i=>i.sourceFile===t&&X0e(i.node,r))||(Va(r)?this.deleteRange(t,hJ(t,r)):jre.deleteDeclaration(this,e,t,r));e.forEach(t=>{const r=t.getSourceFile(),i=Rc.SmartIndenter.getContainingList(t,r);if(t!==Jo(i))return;const o=ji(i,s=>!e.has(s),i.length-2);o!==-1&&this.deleteRange(r,{pos:i[o].end,end:Bre(r,i[o+1])})})}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=AP.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);for(const{oldFile:r,fileName:i,statements:o}of this.newFiles)t.push(AP.newFileChanges(r,i,o,this.newLineCharacter,this.formatContext));return t}createNewFile(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})}},(e=>{function t(f,d,v,h){return pa(wI(f,E=>E.sourceFile.path),E=>{const C=E[0].sourceFile,L=vy(E,(O,k)=>O.range.pos-k.range.pos||O.range.end-k.range.end);for(let O=0;O<L.length-1;O++)D.assert(L[O].range.end<=L[O+1].range.pos,"Changes overlap",()=>`${JSON.stringify(L[O].range)} and ${JSON.stringify(L[O+1].range)}`);const I=pa(L,O=>{const k=r0(O.range),G=o(O,C,d,v,h);if(!(k.length===G.length&&Jbe(C.text,G,k.start)))return S6(k,G)});return I.length>0?{fileName:C.fileName,textChanges:I}:void 0})}e.getTextChangesFromChanges=t;function r(f,d,v,h,E){const C=i(f,dJ(d),v,h,E);return{fileName:d,textChanges:[S6(Pc(0,0),C)],isNewFile:!0}}e.newFileChanges=r;function i(f,d,v,h,E){const C=v.map(O=>O===4?"":c(O,f,h).text).join(h),L=m8("any file name",C,99,!0,d),I=Rc.formatDocument(L,E);return Gre(C,I)+h}e.newFileChangesWorker=i;function o(f,d,v,h,E){var C;if(f.kind===0)return"";if(f.kind===3)return f.text;const{options:L={},range:{pos:I}}=f,O=V=>s(V,d,I,L,v,h,E),k=f.kind===2?f.nodes.map(V=>PA(O(V),v)).join(((C=f.options)==null?void 0:C.joiner)||v):O(f.node),G=L.indentation!==void 0||w_(I,d)===I?k:k.replace(/^\s+/,"");return(L.prefix||"")+G+(!L.suffix||cc(G,L.suffix)?"":L.suffix)}function s(f,d,v,{indentation:h,prefix:E,delta:C},L,I,O){const{node:k,text:G}=c(f,d,L);O&&O(k,G);const V=K9(I,d),H=h!==void 0?h:Rc.SmartIndenter.getIndentation(v,d,V,E===L||w_(v,d)===v);C===void 0&&(C=Rc.SmartIndenter.shouldIndentChildNode(V,f)&&V.indentSize||0);const ne={text:G,getLineAndCharacterOfPosition($){return cl(this,$)}},Y=Rc.formatNodeGivenIndentation(k,ne,d.languageVariant,H,C,Ka(Ti({},I),{options:V}));return Gre(G,Y)}function c(f,d,v){const h=aLe(v),E=O6(v);return oE({newLine:E,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},h).writeNode(4,f,d,h),{text:h.getText(),node:GU(f)}}e.getNonformattedText=c})(AP||(AP={})),sLe=Ka(Ti({},Rg),{factory:PO(Rg.factory.flags|1,Rg.factory.baseFactory)}),(e=>{function t(s,c,f,d){switch(d.kind){case 166:{const L=d.parent;Xs(L)&&L.parameters.length===1&&!Es(L,20,f)?s.replaceNodeWithText(f,d,"()"):yD(s,c,f,d);break}case 269:case 268:const v=f.imports.length&&d===ds(f.imports).parent||d===In(f.statements,xT);Hh(s,f,d,{leadingTriviaOption:v?0:Of(d)?2:3});break;case 205:const h=d.parent;h.kind===204&&d!==Jo(h.elements)?Hh(s,f,d):yD(s,c,f,d);break;case 257:o(s,c,f,d);break;case 165:yD(s,c,f,d);break;case 273:const C=d.parent;C.elements.length===1?i(s,f,C):yD(s,c,f,d);break;case 271:i(s,f,d);break;case 26:Hh(s,f,d,{trailingTriviaOption:0});break;case 98:Hh(s,f,d,{leadingTriviaOption:0});break;case 260:case 259:Hh(s,f,d,{leadingTriviaOption:Of(d)?2:3});break;default:d.parent?Zm(d.parent)&&d.parent.name===d?r(s,f,d.parent):io(d.parent)&&Ur(d.parent.arguments,d)?yD(s,c,f,d):Hh(s,f,d):Hh(s,f,d)}}e.deleteDeclaration=t;function r(s,c,f){if(!f.namedBindings)Hh(s,c,f.parent);else{const d=f.name.getStart(c),v=oa(c,f.name.end);if(v&&v.kind===27){const h=Xo(c.text,v.end,!1,!0);s.deleteRange(c,{pos:d,end:h})}else Hh(s,c,f.name)}}function i(s,c,f){if(f.parent.name){const d=D.checkDefined(oa(c,f.pos-1));s.deleteRange(c,{pos:d.getStart(c),end:f.end})}else{const d=ub(f,269);Hh(s,c,d)}}function o(s,c,f,d){const{parent:v}=d;if(v.kind===295){s.deleteNodeRange(f,Es(v,20,f),Es(v,21,f));return}if(v.declarations.length!==1){yD(s,c,f,d);return}const h=v.parent;switch(h.kind){case 247:case 246:s.replaceNode(f,d,N.createObjectLiteralExpression());break;case 245:Hh(s,f,v);break;case 240:Hh(s,f,h,{leadingTriviaOption:Of(h)?2:3});break;default:D.assertNever(h)}}})(jre||(jre={}))}}),gr={};X(gr,{ChangeTracker:()=>UU,LeadingTriviaOption:()=>Ure,TrailingTriviaOption:()=>Vre,applyChanges:()=>Gre,assignPositionsToNode:()=>GU,createWriter:()=>aLe,deleteNode:()=>Hh,getNewFileText:()=>Z$e,isThisTypeAnnotatable:()=>K$e,isValidLocationToAddComment:()=>oLe});var aQe=S({"src/services/_namespaces/ts.textChanges.ts"(){iQe()}}),Hre,Wre,oQe=S({"src/services/formatting/formattingContext.ts"(){Qr(),Hre=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(Hre||{}),Wre=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=D.checkDefined(e),this.currentTokenParent=D.checkDefined(t),this.nextTokenSpan=D.checkDefined(r),this.nextTokenParent=D.checkDefined(i),this.contextNode=D.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=Es(e,18,this.sourceFile),r=Es(e,19,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function zre(e,t,r,i,o){const s=t===1?cLe:lLe;s.setText(e),s.setTextPos(r);let c=!0,f,d,v,h,E;const C=o({advance:L,readTokenInfo:Y,readEOFTokenRange:M,isOnToken:de,isOnEOF:re,getCurrentLeadingTrivia:()=>f,lastTrailingTriviaWasNewLine:()=>c,skipToEndOf:ae,skipToStartOf:W,getStartPos:()=>{var ce;return(ce=E==null?void 0:E.token.pos)!=null?ce:s.getTokenPos()}});return E=void 0,s.setText(void 0),C;function L(){E=void 0,s.getStartPos()!==r?c=!!d&&Jo(d).kind===4:s.scan(),f=void 0,d=void 0;let me=s.getStartPos();for(;me<i;){const Ee=s.getToken();if(!pC(Ee))break;s.scan();const xe={pos:me,end:s.getStartPos(),kind:Ee};me=s.getStartPos(),f=Bn(f,xe)}v=s.getStartPos()}function I(ce){switch(ce.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function O(ce){if(ce.parent)switch(ce.parent.kind){case 288:case 283:case 284:case 282:return Dd(ce.kind)||ce.kind===79}return!1}function k(ce){return Vx(ce)||Fy(ce)&&(E==null?void 0:E.token.kind)===11}function G(ce){return ce.kind===13}function V(ce){return ce.kind===16||ce.kind===17}function H(ce){return ce.parent&&fm(ce.parent)&&ce.parent.initializer===ce}function ne(ce){return ce===43||ce===68}function Y(ce){D.assert(de());const me=I(ce)?1:G(ce)?2:V(ce)?3:O(ce)?4:k(ce)?5:H(ce)?6:0;if(E&&me===h)return be(E,ce);s.getStartPos()!==v&&(D.assert(E!==void 0),s.setTextPos(v),s.scan());let Ee=$(ce,me);const xe=WU(s.getStartPos(),s.getTextPos(),Ee);for(d&&(d=void 0);s.getStartPos()<i&&(Ee=s.scan(),!!pC(Ee));){const te=WU(s.getStartPos(),s.getTextPos(),Ee);if(d||(d=[]),d.push(te),Ee===4){s.scan();break}}return E={leadingTrivia:f,trailingTrivia:d,token:xe},be(E,ce)}function $(ce,me){const Ee=s.getToken();switch(h=0,me){case 1:if(Ee===31){h=1;const xe=s.reScanGreaterToken();return D.assert(ce.kind===xe),xe}break;case 2:if(ne(Ee)){h=2;const xe=s.reScanSlashToken();return D.assert(ce.kind===xe),xe}break;case 3:if(Ee===19)return h=3,s.reScanTemplateToken(!1);break;case 4:return h=4,s.scanJsxIdentifier();case 5:return h=5,s.reScanJsxToken(!1);case 6:return h=6,s.reScanJsxAttributeValue();case 0:break;default:D.assertNever(me)}return Ee}function M(){return D.assert(re()),WU(s.getStartPos(),s.getTextPos(),1)}function de(){const ce=E?E.token.kind:s.getToken();return ce!==1&&!pC(ce)}function re(){return(E?E.token.kind:s.getToken())===1}function be(ce,me){return px(me)&&ce.token.kind!==me.kind&&(ce.token.kind=me.kind),ce}function ae(ce){s.setTextPos(ce.end),v=s.getStartPos(),h=void 0,E=void 0,c=!1,f=void 0,d=void 0}function W(ce){s.setTextPos(ce.pos),v=s.getStartPos(),h=void 0,E=void 0,c=!1,f=void 0,d=void 0}}var lLe,cLe,sQe=S({"src/services/formatting/formattingScanner.ts"(){Qr(),ED(),lLe=Sy(99,!1,0),cLe=Sy(99,!1,1)}}),CP,qre,Jre,lQe=S({"src/services/formatting/rule.ts"(){Qr(),CP=rt,qre=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(qre||{}),Jre=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Jre||{})}});function uLe(){const e=[];for(let $=0;$<=162;$++)$!==1&&e.push($);function t(...$){return{tokens:e.filter(M=>!$.some(de=>de===M)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=CL([...e,3]),o=CL([...e,1]),s=fLe(81,162),c=fLe(29,78),f=[101,102,162,128,140,150],d=[45,46,54,53],v=[8,9,79,20,22,18,108,103],h=[79,20,108,103],E=[79,21,23,103],C=[79,20,108,103],L=[79,21,23,103],I=[2,3],O=[79,...Y9],k=i,G=CL([79,3,84,93,100]),V=CL([21,3,90,111,96,91]),H=[zr("IgnoreBeforeComment",r,I,CP,1),zr("IgnoreAfterLineComment",2,r,CP,1),zr("NotSpaceBeforeColon",r,58,[Pi,LP,mLe],16),zr("SpaceAfterColon",58,r,[Pi,LP],4),zr("NoSpaceBeforeQuestionMark",r,57,[Pi,LP,mLe],16),zr("SpaceAfterQuestionMarkInConditionalOperator",57,r,[Pi,uQe],4),zr("NoSpaceAfterQuestionMark",57,r,[Pi],16),zr("NoSpaceBeforeDot",r,[24,28],[Pi,PQe],16),zr("NoSpaceAfterDot",[24,28],r,[Pi],16),zr("NoSpaceBetweenImportParenInImportType",100,20,[Pi,EQe],16),zr("NoSpaceAfterUnaryPrefixOperator",d,v,[Pi,LP],16),zr("NoSpaceAfterUnaryPreincrementOperator",45,h,[Pi],16),zr("NoSpaceAfterUnaryPredecrementOperator",46,C,[Pi],16),zr("NoSpaceBeforeUnaryPostincrementOperator",E,45,[Pi,wLe],16),zr("NoSpaceBeforeUnaryPostdecrementOperator",L,46,[Pi,wLe],16),zr("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[Pi,qy],4),zr("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[Pi,qy],4),zr("SpaceAfterAddWhenFollowedByPreincrement",39,45,[Pi,qy],4),zr("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[Pi,qy],4),zr("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[Pi,qy],4),zr("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[Pi,qy],4),zr("NoSpaceAfterCloseBrace",19,[27,26],[Pi],16),zr("NewLineBeforeCloseBraceInBlockContext",i,19,[gLe],8),zr("SpaceAfterCloseBrace",19,t(21),[Pi,_Qe],4),zr("SpaceBetweenCloseBraceAndElse",19,91,[Pi],4),zr("SpaceBetweenCloseBraceAndWhile",19,115,[Pi],4),zr("NoSpaceBetweenEmptyBraceBrackets",18,19,[Pi,SLe],16),zr("SpaceAfterConditionalClosingParen",21,22,[IP],4),zr("NoSpaceBetweenFunctionKeywordAndStar",98,41,[bLe],16),zr("SpaceAfterStarInGeneratorDeclaration",41,79,[bLe],4),zr("SpaceAfterFunctionInFuncDecl",98,r,[fE],4),zr("NewLineAfterOpenBraceInBlockContext",18,r,[gLe],8),zr("SpaceAfterGetSetInMember",[137,151],79,[fE],4),zr("NoSpaceBetweenYieldKeywordAndStar",125,41,[Pi,kLe],16),zr("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],r,[Pi,kLe],4),zr("NoSpaceBetweenReturnAndSemicolon",105,26,[Pi],16),zr("SpaceAfterCertainKeywords",[113,109,103,89,105,112,133],r,[Pi],4),zr("SpaceAfterLetConstInVariableDeclaration",[119,85],r,[Pi,AQe],4),zr("NoSpaceBeforeOpenParenInFuncCall",r,20,[Pi,hQe,gQe],16),zr("SpaceBeforeBinaryKeywordOperator",r,f,[Pi,qy],4),zr("SpaceAfterBinaryKeywordOperator",f,r,[Pi,qy],4),zr("SpaceAfterVoidOperator",114,r,[Pi,wQe],4),zr("SpaceBetweenAsyncAndOpenParen",132,20,[bQe,Pi],4),zr("SpaceBetweenAsyncAndFunctionKeyword",132,[98,79],[Pi],4),zr("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[Pi],16),zr("SpaceBeforeJsxAttribute",r,79,[TQe,Pi],4),zr("SpaceBeforeSlashInJsxOpeningElement",r,43,[CLe,Pi],4),zr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[CLe,Pi],16),zr("NoSpaceBeforeEqualInJsxAttribute",r,63,[ALe,Pi],16),zr("NoSpaceAfterEqualInJsxAttribute",63,r,[ALe,Pi],16),zr("NoSpaceAfterModuleImport",[142,147],20,[Pi],16),zr("SpaceAfterCertainTypeScriptKeywords",[126,127,84,136,88,92,93,94,137,117,100,118,142,143,121,123,122,146,151,124,154,158,141,138],r,[Pi],4),zr("SpaceBeforeCertainTypeScriptKeywords",r,[94,117,158],[Pi],4),zr("SpaceAfterModuleName",10,18,[CQe],4),zr("SpaceBeforeArrow",r,38,[Pi],4),zr("SpaceAfterArrow",38,r,[Pi],4),zr("NoSpaceAfterEllipsis",25,79,[Pi],16),zr("NoSpaceAfterOptionalParameters",57,[21,27],[Pi,LP],16),zr("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[Pi,LQe],16),zr("NoSpaceBeforeOpenAngularBracket",O,29,[Pi,kP],16),zr("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[Pi,kP],16),zr("NoSpaceAfterOpenAngularBracket",29,r,[Pi,kP],16),zr("NoSpaceBeforeCloseAngularBracket",r,31,[Pi,kP],16),zr("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[Pi,kP,fQe,kQe],16),zr("SpaceBeforeAt",[21,79],59,[Pi],4),zr("NoSpaceAfterAt",59,r,[Pi],16),zr("SpaceAfterDecorator",r,[126,79,93,88,84,124,123,121,122,137,151,22,41],[xQe],4),zr("NoSpaceBeforeNonNullAssertionOperator",r,53,[Pi,DQe],16),zr("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[Pi,IQe],16),zr("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[Pi],4)],ne=[zr("SpaceAfterConstructor",135,20,[bf("insertSpaceAfterConstructor"),Pi],4),zr("NoSpaceAfterConstructor",135,20,[Op("insertSpaceAfterConstructor"),Pi],16),zr("SpaceAfterComma",27,r,[bf("insertSpaceAfterCommaDelimiter"),Pi,eie,yQe,vQe],4),zr("NoSpaceAfterComma",27,r,[Op("insertSpaceAfterCommaDelimiter"),Pi,eie],16),zr("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[bf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),fE],4),zr("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[Op("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),fE],16),zr("SpaceAfterKeywordInControl",s,20,[bf("insertSpaceAfterKeywordsInControlFlowStatements"),IP],4),zr("NoSpaceAfterKeywordInControl",s,20,[Op("insertSpaceAfterKeywordsInControlFlowStatements"),IP],16),zr("SpaceAfterOpenParen",20,r,[bf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pi],4),zr("SpaceBeforeCloseParen",r,21,[bf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pi],4),zr("SpaceBetweenOpenParens",20,20,[bf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pi],4),zr("NoSpaceBetweenParens",20,21,[Pi],16),zr("NoSpaceAfterOpenParen",20,r,[Op("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pi],16),zr("NoSpaceBeforeCloseParen",r,21,[Op("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pi],16),zr("SpaceAfterOpenBracket",22,r,[bf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pi],4),zr("SpaceBeforeCloseBracket",r,23,[bf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pi],4),zr("NoSpaceBetweenBrackets",22,23,[Pi],16),zr("NoSpaceAfterOpenBracket",22,r,[Op("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pi],16),zr("NoSpaceBeforeCloseBracket",r,23,[Op("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pi],16),zr("SpaceAfterOpenBrace",18,r,[pLe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),hLe],4),zr("SpaceBeforeCloseBrace",r,19,[pLe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),hLe],4),zr("NoSpaceBetweenEmptyBraceBrackets",18,19,[Pi,SLe],16),zr("NoSpaceAfterOpenBrace",18,r,[Kre("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Pi],16),zr("NoSpaceBeforeCloseBrace",r,19,[Kre("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Pi],16),zr("SpaceBetweenEmptyBraceBrackets",18,19,[bf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),zr("NoSpaceBetweenEmptyBraceBrackets",18,19,[Kre("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Pi],16),zr("SpaceAfterTemplateHeadAndMiddle",[15,16],r,[bf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),xLe],4,1),zr("SpaceBeforeTemplateMiddleAndTail",r,[16,17],[bf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Pi],4),zr("NoSpaceAfterTemplateHeadAndMiddle",[15,16],r,[Op("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),xLe],16,1),zr("NoSpaceBeforeTemplateMiddleAndTail",r,[16,17],[Op("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Pi],16),zr("SpaceAfterOpenBraceInJsxExpression",18,r,[bf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pi,jU],4),zr("SpaceBeforeCloseBraceInJsxExpression",r,19,[bf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pi,jU],4),zr("NoSpaceAfterOpenBraceInJsxExpression",18,r,[Op("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pi,jU],16),zr("NoSpaceBeforeCloseBraceInJsxExpression",r,19,[Op("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pi,jU],16),zr("SpaceAfterSemicolonInFor",26,r,[bf("insertSpaceAfterSemicolonInForStatements"),Pi,Yre],4),zr("NoSpaceAfterSemicolonInFor",26,r,[Op("insertSpaceAfterSemicolonInForStatements"),Pi,Yre],16),zr("SpaceBeforeBinaryOperator",r,c,[bf("insertSpaceBeforeAndAfterBinaryOperators"),Pi,qy],4),zr("SpaceAfterBinaryOperator",c,r,[bf("insertSpaceBeforeAndAfterBinaryOperators"),Pi,qy],4),zr("NoSpaceBeforeBinaryOperator",r,c,[Op("insertSpaceBeforeAndAfterBinaryOperators"),Pi,qy],16),zr("NoSpaceAfterBinaryOperator",c,r,[Op("insertSpaceBeforeAndAfterBinaryOperators"),Pi,qy],16),zr("SpaceBeforeOpenParenInFuncDecl",r,20,[bf("insertSpaceBeforeFunctionParenthesis"),Pi,fE],4),zr("NoSpaceBeforeOpenParenInFuncDecl",r,20,[Op("insertSpaceBeforeFunctionParenthesis"),Pi,fE],16),zr("NewLineBeforeOpenBraceInControl",V,18,[bf("placeOpenBraceOnNewLineForControlBlocks"),IP,Zre],8,1),zr("NewLineBeforeOpenBraceInFunction",k,18,[bf("placeOpenBraceOnNewLineForFunctions"),fE,Zre],8,1),zr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",G,18,[bf("placeOpenBraceOnNewLineForFunctions"),ELe,Zre],8,1),zr("SpaceAfterTypeAssertion",31,r,[bf("insertSpaceAfterTypeAssertion"),Pi,nie],4),zr("NoSpaceAfterTypeAssertion",31,r,[Op("insertSpaceAfterTypeAssertion"),Pi,nie],16),zr("SpaceBeforeTypeAnnotation",r,[57,58],[bf("insertSpaceBeforeTypeAnnotation"),Pi,$re],4),zr("NoSpaceBeforeTypeAnnotation",r,[57,58],[Op("insertSpaceBeforeTypeAnnotation"),Pi,$re],16),zr("NoOptionalSemicolon",26,o,[_Le("semicolons","remove"),NQe],32),zr("OptionalSemicolon",r,o,[_Le("semicolons","insert"),OQe],64)],Y=[zr("NoSpaceBeforeSemicolon",r,26,[Pi],16),zr("SpaceBeforeOpenBraceInControl",V,18,[Xre("placeOpenBraceOnNewLineForControlBlocks"),IP,tie,Qre],4,1),zr("SpaceBeforeOpenBraceInFunction",k,18,[Xre("placeOpenBraceOnNewLineForFunctions"),fE,VU,tie,Qre],4,1),zr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",G,18,[Xre("placeOpenBraceOnNewLineForFunctions"),ELe,tie,Qre],4,1),zr("NoSpaceBeforeComma",r,27,[Pi],16),zr("NoSpaceBeforeOpenBracket",t(132,82),22,[Pi],16),zr("NoSpaceAfterCloseBracket",23,r,[Pi,SQe],16),zr("SpaceAfterSemicolon",26,r,[Pi],4),zr("SpaceBetweenForAndAwaitKeyword",97,133,[Pi],4),zr("SpaceBetweenStatements",[21,90,91,82],r,[Pi,eie,cQe],4),zr("SpaceAfterTryCatchFinally",[111,83,96],18,[Pi],4)];return[...H,...ne,...Y]}function zr(e,t,r,i,o,s=0){return{leftTokenRange:dLe(t),rightTokenRange:dLe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function CL(e){return{tokens:e,isSpecific:!0}}function dLe(e){return typeof e=="number"?CL([e]):Va(e)?CL(e):e}function fLe(e,t,r=[]){const i=[];for(let o=e;o<=t;o++)Ur(r,o)||i.push(o);return CL(i)}function _Le(e,t){return r=>r.options&&r.options[e]===t}function bf(e){return t=>t.options&&Fs(t.options,e)&&!!t.options[e]}function Kre(e){return t=>t.options&&Fs(t.options,e)&&!t.options[e]}function Op(e){return t=>!t.options||!Fs(t.options,e)||!t.options[e]}function Xre(e){return t=>!t.options||!Fs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function pLe(e){return t=>!t.options||!Fs(t.options,e)||!!t.options[e]}function Yre(e){return e.contextNode.kind===245}function cQe(e){return!Yre(e)}function qy(e){switch(e.contextNode.kind){case 223:return e.contextNode.operatorToken.kind!==27;case 224:case 191:case 231:case 278:case 273:case 179:case 189:case 190:case 235:return!0;case 205:case 262:case 268:case 274:case 257:case 166:case 302:case 169:case 168:return e.currentTokenSpan.kind===63||e.nextTokenSpan.kind===63;case 246:case 165:return e.currentTokenSpan.kind===101||e.nextTokenSpan.kind===101||e.currentTokenSpan.kind===63||e.nextTokenSpan.kind===63;case 247:return e.currentTokenSpan.kind===162||e.nextTokenSpan.kind===162}return!1}function LP(e){return!qy(e)}function mLe(e){return!$re(e)}function $re(e){const t=e.contextNode.kind;return t===169||t===168||t===166||t===257||gx(t)}function uQe(e){return e.contextNode.kind===224||e.contextNode.kind===191}function Qre(e){return e.TokensAreOnSameLine()||VU(e)}function hLe(e){return e.contextNode.kind===203||e.contextNode.kind===197||dQe(e)}function Zre(e){return VU(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function gLe(e){return yLe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function dQe(e){return yLe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function yLe(e){return vLe(e.contextNode)}function VU(e){return vLe(e.nextTokenParent)}function vLe(e){if(TLe(e))return!0;switch(e.kind){case 238:case 266:case 207:case 265:return!0}return!1}function fE(e){switch(e.contextNode.kind){case 259:case 171:case 170:case 174:case 175:case 176:case 215:case 173:case 216:case 261:return!0}return!1}function fQe(e){return!fE(e)}function bLe(e){return e.contextNode.kind===259||e.contextNode.kind===215}function ELe(e){return TLe(e.contextNode)}function TLe(e){switch(e.kind){case 260:case 228:case 261:case 263:case 184:case 264:case 275:case 276:case 269:case 272:return!0}return!1}function _Qe(e){switch(e.currentTokenParent.kind){case 260:case 264:case 263:case 295:case 265:case 252:return!0;case 238:{const t=e.currentTokenParent.parent;if(!t||t.kind!==216&&t.kind!==215)return!0}}return!1}function IP(e){switch(e.contextNode.kind){case 242:case 252:case 245:case 246:case 247:case 244:case 255:case 243:case 251:case 295:return!0;default:return!1}}function SLe(e){return e.contextNode.kind===207}function pQe(e){return e.contextNode.kind===210}function mQe(e){return e.contextNode.kind===211}function hQe(e){return pQe(e)||mQe(e)}function gQe(e){return e.currentTokenSpan.kind!==27}function yQe(e){return e.nextTokenSpan.kind!==23}function vQe(e){return e.nextTokenSpan.kind!==21}function bQe(e){return e.contextNode.kind===216}function EQe(e){return e.contextNode.kind===202}function Pi(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==11}function xLe(e){return e.contextNode.kind!==11}function eie(e){return e.contextNode.kind!==281&&e.contextNode.kind!==285}function jU(e){return e.contextNode.kind===291||e.contextNode.kind===290}function TQe(e){return e.nextTokenParent.kind===288}function ALe(e){return e.contextNode.kind===288}function CLe(e){return e.contextNode.kind===282}function SQe(e){return!fE(e)&&!VU(e)}function xQe(e){return e.TokensAreOnSameLine()&&o_(e.contextNode)&&LLe(e.currentTokenParent)&&!LLe(e.nextTokenParent)}function LLe(e){for(;e&&vt(e);)e=e.parent;return e&&e.kind===167}function AQe(e){return e.currentTokenParent.kind===258&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function tie(e){return e.formattingRequestKind!==2}function CQe(e){return e.contextNode.kind===264}function LQe(e){return e.contextNode.kind===184}function IQe(e){return e.contextNode.kind===177}function ILe(e,t){if(e.kind!==29&&e.kind!==31)return!1;switch(t.kind){case 180:case 213:case 262:case 260:case 228:case 261:case 259:case 215:case 216:case 171:case 170:case 176:case 177:case 210:case 211:case 230:return!0;default:return!1}}function kP(e){return ILe(e.currentTokenSpan,e.currentTokenParent)||ILe(e.nextTokenSpan,e.nextTokenParent)}function nie(e){return e.contextNode.kind===213}function kQe(e){return!nie(e)}function wQe(e){return e.currentTokenSpan.kind===114&&e.currentTokenParent.kind===219}function kLe(e){return e.contextNode.kind===226&&e.contextNode.expression!==void 0}function DQe(e){return e.contextNode.kind===232}function wLe(e){return!RQe(e)}function RQe(e){switch(e.contextNode.kind){case 242:case 245:case 246:case 247:case 243:case 244:return!0;default:return!1}}function NQe(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(pC(t)){const s=e.nextTokenParent===e.currentTokenParent?sS(e.currentTokenParent,rr(e.currentTokenParent,c=>!c.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===19||t===1:t===237||t===26?!1:e.contextNode.kind===261||e.contextNode.kind===262?!Bf(e.currentTokenParent)||!!e.currentTokenParent.type||t!==20:ro(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==245&&e.currentTokenParent.kind!==239&&e.currentTokenParent.kind!==237&&t!==22&&t!==20&&t!==39&&t!==40&&t!==43&&t!==13&&t!==27&&t!==225&&t!==15&&t!==14&&t!==24}function OQe(e){return F9(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function PQe(e){return!Fr(e.contextNode)||!L_(e.contextNode.expression)||e.contextNode.expression.getText().indexOf(".")!==-1}var MQe=S({"src/services/formatting/rules.ts"(){Qr(),ED()}});function FQe(e,t){return{options:e,getRules:BQe(),host:t}}function BQe(){return rie===void 0&&(rie=UQe(uLe())),rie}function GQe(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function UQe(e){const t=VQe(e);return r=>{const i=t[DLe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const o=[];let s=0;for(const c of i){const f=~GQe(s);c.action&f&&Zn(c.context,d=>d(r))&&(o.push(c),s|=c.action)}if(o.length)return o}}}function VQe(e){const t=new Array(HU*HU),r=new Array(t.length);for(const i of e){const o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const s of i.leftTokenRange.tokens)for(const c of i.rightTokenRange.tokens){const f=DLe(s,c);let d=t[f];d===void 0&&(d=t[f]=[]),jQe(d,i.rule,o,r,f)}}return t}function DLe(e,t){return D.assert(e<=162&&t<=162,"Must compute formatting context from tokens"),e*HU+t}function jQe(e,t,r,i,o){const s=t.action&3?r?0:LL.StopRulesAny:t.context!==CP?r?LL.ContextRulesSpecific:LL.ContextRulesAny:r?LL.NoContextRulesSpecific:LL.NoContextRulesAny,c=i[o]||0;e.splice(HQe(c,s),0,t),i[o]=WQe(c,s)}function HQe(e,t){let r=0;for(let i=0;i<=t;i+=D2)r+=e&wP,e>>=D2;return r}function WQe(e,t){const r=(e>>t&wP)+1;return D.assert((r&wP)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(wP<<t)|r<<t}var rie,D2,wP,HU,LL,zQe=S({"src/services/formatting/rulesMap.ts"(){Qr(),ED(),D2=5,wP=31,HU=162+1,LL=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=D2*1]="StopRulesAny",e[e.ContextRulesSpecific=D2*2]="ContextRulesSpecific",e[e.ContextRulesAny=D2*3]="ContextRulesAny",e[e.NoContextRulesSpecific=D2*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=D2*5]="NoContextRulesAny",e))(LL||{})}});function WU(e,t,r){const i={pos:e,end:t,kind:r};return D.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>D.formatSyntaxKind(r)}),i}function qQe(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=xN(i,t);for(;Um(t.text.charCodeAt(o));)o--;Tu(t.text.charCodeAt(o))&&o--;const s={pos:Vv(i-1,t),end:o+1};return DP(s,t,r,2)}function JQe(e,t,r){const i=iie(e,26,t);return RLe(aie(i),t,r,3)}function KQe(e,t,r){const i=iie(e,18,t);if(!i)return[];const o=i.parent,s=aie(o),c={pos:w_(s.getStart(t),t),end:e};return DP(c,t,r,4)}function XQe(e,t,r){const i=iie(e,19,t);return RLe(aie(i),t,r,5)}function YQe(e,t){const r={pos:0,end:e.text.length};return DP(r,e,t,0)}function $Qe(e,t,r,i){const o={pos:w_(e,r),end:t};return DP(o,r,i,1)}function iie(e,t,r){const i=Dc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function aie(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!QQe(t.parent,t);)t=t.parent;return t}function QQe(e,t){switch(e.kind){case 260:case 261:return vf(e.members,t);case 264:const r=e.body;return!!r&&r.kind===265&&vf(r.statements,t);case 308:case 238:case 265:return vf(e.statements,t);case 295:return vf(e.block.statements,t)}return!1}function ZQe(e,t){return r(t);function r(i){const o=Pa(i,s=>EQ(s.getStart(t),s.end,e)&&s);if(o){const s=r(o);if(s)return s}return i}}function eZe(e,t){if(!e.length)return o;const r=e.filter(s=>Pw(t,s.start,s.start+s.length)).sort((s,c)=>s.start-c.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;const c=r[i];if(s.end<=c.start)return!1;if(f9(s.pos,s.end,c.start,c.start+c.length))return!0;i++}};function o(){return!1}}function tZe(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const o=Dc(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function nZe(e,t,r){let i=-1,o;for(;e;){const s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(Pp.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function rZe(e,t,r,i,o,s){const c={pos:e.pos,end:e.end};return zre(t.text,r,c.pos,c.end,f=>NLe(c,e,i,o,f,s,1,d=>!1,t))}function RLe(e,t,r,i){if(!e)return[];const o={pos:w_(e.getStart(t),t),end:e.end};return DP(o,t,r,i)}function DP(e,t,r,i){const o=ZQe(e,t);return zre(t.text,t.languageVariant,tZe(o,e,t),e.end,s=>NLe(e,o,Pp.getIndentationForNode(o,e,t,r.options),nZe(o,r.options,t),s,r,i,eZe(t.parseDiagnostics,e),t))}function NLe(e,t,r,i,o,{options:s,getRules:c,host:f},d,v,h){var E;const C=new Wre(h,d,s);let L,I,O,k,G,V=-1;const H=[];if(o.advance(),o.isOnToken()){const We=h.getLineAndCharacterOfPosition(t.getStart(h)).line;let Fe=We;o_(t)&&(Fe=h.getLineAndCharacterOfPosition(Bz(t,h)).line),de(t,t,We,Fe,r,i)}if(!o.isOnToken()){const We=Pp.nodeWillIndentChild(s,t,void 0,h,!1)?r+s.indentSize:r,Fe=o.getCurrentLeadingTrivia();Fe&&(re(Fe,We,!1,st=>ae(st,h.getLineAndCharacterOfPosition(st.pos),t,t,void 0)),s.trimTrailingWhitespace!==!1&&Ve(Fe))}if(I&&o.getStartPos()>=e.end){const We=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(We&&We.pos===L){const Fe=((E=Dc(We.end,h,t))==null?void 0:E.parent)||O;W(We,h.getLineAndCharacterOfPosition(We.pos).line,Fe,I,k,O,Fe,void 0)}}return H;function ne(We,Fe,st,Ct,Et){if(Pw(Ct,We,Fe)||y6(Ct,We,Fe)){if(Et!==-1)return Et}else{const Vt=h.getLineAndCharacterOfPosition(We).line,tt=w_(We,h),at=Pp.findFirstNonWhitespaceColumn(tt,We,h,s);if(Vt!==st||We===at){const on=Pp.getBaseIndentation(s);return on>at?on:at}}return-1}function Y(We,Fe,st,Ct,Et,Vt){const tt=Pp.shouldIndentChildNode(s,We)?s.indentSize:0;return Vt===Fe?{indentation:Fe===G?V:Et.getIndentation(),delta:Math.min(s.indentSize,Et.getDelta(We)+tt)}:st===-1?We.kind===20&&Fe===G?{indentation:V,delta:Et.getDelta(We)}:Pp.childStartsOnTheSameLineWithElseInIfStatement(Ct,We,Fe,h)||Pp.childIsUnindentedBranchOfConditionalExpression(Ct,We,Fe,h)||Pp.argumentStartsOnSameLineAsPreviousArgument(Ct,We,Fe,h)?{indentation:Et.getIndentation(),delta:tt}:{indentation:Et.getIndentation()+Et.getDelta(We),delta:tt}:{indentation:st,delta:tt}}function $(We){if(np(We)){const Fe=In(We.modifiers,_o,mi(We.modifiers,Wu));if(Fe)return Fe.kind}switch(We.kind){case 260:return 84;case 261:return 118;case 259:return 98;case 263:return 263;case 174:return 137;case 175:return 151;case 171:if(We.asteriskToken)return 41;case 169:case 166:const Fe=Ia(We);if(Fe)return Fe.kind}}function M(We,Fe,st,Ct){return{getIndentationForComment:(tt,at,on)=>{switch(tt){case 19:case 23:case 21:return st+Vt(on)}return at!==-1?at:st},getIndentationForToken:(tt,at,on,Qt)=>!Qt&&Et(tt,at,on)?st+Vt(on):st,getIndentation:()=>st,getDelta:Vt,recomputeIndentation:(tt,at)=>{Pp.shouldIndentChildNode(s,at,We,h)&&(st+=tt?s.indentSize:-s.indentSize,Ct=Pp.shouldIndentChildNode(s,We)?s.indentSize:0)}};function Et(tt,at,on){switch(at){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(on.kind){case 283:case 284:case 282:return!1}break;case 22:case 23:if(on.kind!==197)return!1;break}return Fe!==tt&&!(o_(We)&&at===$(We))}function Vt(tt){return Pp.nodeWillIndentChild(s,We,tt,h,!0)?Ct:0}}function de(We,Fe,st,Ct,Et,Vt){if(!Pw(e,We.getStart(h),We.getEnd()))return;const tt=M(We,st,Et,Vt);let at=Fe;for(Pa(We,Hn=>{on(Hn,-1,We,tt,st,Ct,!1)},Hn=>{Qt(Hn,We,st,tt)});o.isOnToken()&&o.getStartPos()<e.end;){const Hn=o.readTokenInfo(We);if(Hn.token.end>Math.min(We.end,e.end))break;Pn(Hn,We,tt,We)}function on(Hn,kn,Zt,_r,wi,Qi,Zi,Or){if(D.assert(!tl(Hn)),kl(Hn)||cfe(Zt,Hn))return kn;const At=Hn.getStart(h),vn=h.getLineAndCharacterOfPosition(At).line;let Ht=vn;o_(Hn)&&(Ht=h.getLineAndCharacterOfPosition(Bz(Hn,h)).line);let un=-1;if(Zi&&vf(e,Zt)&&(un=ne(At,Hn.end,wi,e,kn),un!==-1&&(kn=un)),!Pw(e,Hn.pos,Hn.end))return Hn.end<e.pos&&o.skipToEndOf(Hn),kn;if(Hn.getFullWidth()===0)return kn;for(;o.isOnToken()&&o.getStartPos()<e.end;){const Mi=o.readTokenInfo(We);if(Mi.token.end>e.end)return kn;if(Mi.token.end>At){Mi.token.pos>At&&o.skipToStartOf(Hn);break}Pn(Mi,We,_r,We)}if(!o.isOnToken()||o.getStartPos()>=e.end)return kn;if(px(Hn)){const Mi=o.readTokenInfo(Hn);if(Hn.kind!==11)return D.assert(Mi.token.end===Hn.end,"Token end is child end"),Pn(Mi,We,_r,Hn),kn}const ir=Hn.kind===167?vn:Qi,cr=Y(Hn,vn,un,We,_r,ir);return de(Hn,at,vn,Ht,cr.indentation,cr.delta),at=We,Or&&Zt.kind===206&&kn===-1&&(kn=cr.indentation),kn}function Qt(Hn,kn,Zt,_r){D.assert(w1(Hn)),D.assert(!tl(Hn));const wi=iZe(kn,Hn);let Qi=_r,Zi=Zt;if(!Pw(e,Hn.pos,Hn.end)){Hn.end<e.pos&&o.skipToEndOf(Hn);return}if(wi!==0)for(;o.isOnToken()&&o.getStartPos()<e.end;){const vn=o.readTokenInfo(kn);if(vn.token.end>Hn.pos)break;if(vn.token.kind===wi){Zi=h.getLineAndCharacterOfPosition(vn.token.pos).line,Pn(vn,kn,_r,kn);let Ht;if(V!==-1)Ht=V;else{const un=w_(vn.token.pos,h);Ht=Pp.findFirstNonWhitespaceColumn(un,vn.token.pos,h,s)}Qi=M(kn,Zt,Ht,s.indentSize)}else Pn(vn,kn,_r,kn)}let Or=-1;for(let vn=0;vn<Hn.length;vn++){const Ht=Hn[vn];Or=on(Ht,Or,We,Qi,Zi,Zi,!0,vn===0)}const At=aZe(wi);if(At!==0&&o.isOnToken()&&o.getStartPos()<e.end){let vn=o.readTokenInfo(kn);vn.token.kind===27&&(Pn(vn,kn,Qi,kn),vn=o.isOnToken()?o.readTokenInfo(kn):void 0),vn&&vn.token.kind===At&&vf(kn,vn.token)&&Pn(vn,kn,Qi,kn,!0)}}function Pn(Hn,kn,Zt,_r,wi){D.assert(vf(kn,Hn.token));const Qi=o.lastTrailingTriviaWasNewLine();let Zi=!1;Hn.leadingTrivia&&be(Hn.leadingTrivia,kn,at,Zt);let Or=0;const At=vf(e,Hn.token),vn=h.getLineAndCharacterOfPosition(Hn.token.pos);if(At){const Ht=v(Hn.token),un=I;if(Or=ae(Hn.token,vn,kn,at,Zt),!Ht)if(Or===0){const ir=un&&h.getLineAndCharacterOfPosition(un.end).line;Zi=Qi&&vn.line!==ir}else Zi=Or===1}if(Hn.trailingTrivia&&(L=Jo(Hn.trailingTrivia).end,be(Hn.trailingTrivia,kn,at,Zt)),Zi){const Ht=At&&!v(Hn.token)?Zt.getIndentationForToken(vn.line,Hn.token.kind,_r,!!wi):-1;let un=!0;if(Hn.leadingTrivia){const ir=Zt.getIndentationForComment(Hn.token.kind,Ht,_r);un=re(Hn.leadingTrivia,ir,un,cr=>ce(cr.pos,ir,!1))}Ht!==-1&&un&&(ce(Hn.token.pos,Ht,Or===1),G=vn.line,V=Ht)}o.advance(),at=kn}}function re(We,Fe,st,Ct){for(const Et of We){const Vt=vf(e,Et);switch(Et.kind){case 3:Vt&&xe(Et,Fe,!st),st=!1;break;case 2:st&&Vt&&Ct(Et),st=!1;break;case 4:st=!0;break}}return st}function be(We,Fe,st,Ct){for(const Et of We)if(b9(Et.kind)&&vf(e,Et)){const Vt=h.getLineAndCharacterOfPosition(Et.pos);ae(Et,Vt,Fe,st,Ct)}}function ae(We,Fe,st,Ct,Et){const Vt=v(We);let tt=0;if(!Vt)if(I)tt=W(We,Fe.line,st,I,k,O,Ct,Et);else{const at=h.getLineAndCharacterOfPosition(e.pos);te(at.line,Fe.line)}return I=We,L=We.end,O=st,k=Fe.line,tt}function W(We,Fe,st,Ct,Et,Vt,tt,at){C.updateContext(Ct,Vt,We,st,tt);const on=c(C);let Qt=C.options.trimTrailingWhitespace!==!1,Pn=0;return on?Xt(on,Hn=>{if(Pn=Ye(Hn,Ct,Et,We,Fe),at)switch(Pn){case 2:st.getStart(h)===We.pos&&at.recomputeIndentation(!1,tt);break;case 1:st.getStart(h)===We.pos&&at.recomputeIndentation(!0,tt);break;default:D.assert(Pn===0)}Qt=Qt&&!(Hn.action&16)&&Hn.flags!==1}):Qt=Qt&&We.kind!==1,Fe!==Et&&Qt&&te(Et,Fe,Ct),Pn}function ce(We,Fe,st){const Ct=oie(Fe,s);if(st)Oe(We,0,Ct);else{const Et=h.getLineAndCharacterOfPosition(We),Vt=Vv(Et.line,h);(Fe!==me(Vt,Et.character)||Ee(Ct,Vt))&&Oe(Vt,Et.character,Ct)}}function me(We,Fe){let st=0;for(let Ct=0;Ct<Fe;Ct++)h.text.charCodeAt(We+Ct)===9?st+=s.tabSize-st%s.tabSize:st++;return st}function Ee(We,Fe){return We!==h.text.substr(Fe,We.length)}function xe(We,Fe,st,Ct=!0){let Et=h.getLineAndCharacterOfPosition(We.pos).line;const Vt=h.getLineAndCharacterOfPosition(We.end).line;if(Et===Vt){st||ce(We.pos,Fe,!1);return}const tt=[];let at=We.pos;for(let kn=Et;kn<Vt;kn++){const Zt=xN(kn,h);tt.push({pos:at,end:Zt}),at=Vv(kn+1,h)}if(Ct&&tt.push({pos:at,end:We.end}),tt.length===0)return;const on=Vv(Et,h),Qt=Pp.findFirstNonWhitespaceCharacterAndColumn(on,tt[0].pos,h,s);let Pn=0;st&&(Pn=1,Et++);const Hn=Fe-Qt.column;for(let kn=Pn;kn<tt.length;kn++,Et++){const Zt=Vv(Et,h),_r=kn===0?Qt:Pp.findFirstNonWhitespaceCharacterAndColumn(tt[kn].pos,tt[kn].end,h,s),wi=_r.column+Hn;if(wi>0){const Qi=oie(wi,s);Oe(Zt,_r.character,Qi)}else ze(Zt,_r.character)}}function te(We,Fe,st){for(let Ct=We;Ct<Fe;Ct++){const Et=Vv(Ct,h),Vt=xN(Ct,h);if(st&&(b9(st.kind)||DQ(st.kind))&&st.pos<=Vt&&st.end>Vt)continue;const tt=Qe(Et,Vt);tt!==-1&&(D.assert(tt===Et||!Um(h.text.charCodeAt(tt-1))),ze(tt,Vt+1-tt))}}function Qe(We,Fe){let st=Fe;for(;st>=We&&Um(h.text.charCodeAt(st));)st--;return st!==Fe?st+1:-1}function Ve(We){let Fe=I?I.end:e.pos;for(const st of We)b9(st.kind)&&(Fe<st.pos&&Ge(Fe,st.pos-1,I),Fe=st.end+1);Fe<e.end&&Ge(Fe,e.end,I)}function Ge(We,Fe,st){const Ct=h.getLineAndCharacterOfPosition(We).line,Et=h.getLineAndCharacterOfPosition(Fe).line;te(Ct,Et+1,st)}function ze(We,Fe){Fe&&H.push(T9(We,Fe,""))}function Oe(We,Fe,st){(Fe||st)&&H.push(T9(We,Fe,st))}function Me(We,Fe){Fe&&H.push(T9(We,0,Fe))}function Ye(We,Fe,st,Ct,Et){const Vt=Et!==st;switch(We.action){case 1:return 0;case 16:if(Fe.end!==Ct.pos)return ze(Fe.end,Ct.pos-Fe.end),Vt?2:0;break;case 32:ze(Fe.pos,Fe.end-Fe.pos);break;case 8:if(We.flags!==1&&st!==Et)return 0;if(Et-st!==1)return Oe(Fe.end,Ct.pos-Fe.end,Tb(f,s)),Vt?0:1;break;case 4:if(We.flags!==1&&st!==Et)return 0;if(Ct.pos-Fe.end!==1||h.text.charCodeAt(Fe.end)!==32)return Oe(Fe.end,Ct.pos-Fe.end," "),Vt?2:0;break;case 64:Me(Fe.end,";")}return 0}}function OLe(e,t,r,i=oa(e,t)){const o=rr(i,th);if(o&&(i=o.parent),i.getStart(e)<=t&&t<i.getEnd())return;r=r===null?void 0:r===void 0?Dc(t,e):r;const c=r&&nb(e.text,r.end),f=Zz(i,e),d=ya(c,f);return d&&In(d,v=>g6(v,t)||t===v.end&&(v.kind===2||t===e.getFullWidth()))}function iZe(e,t){switch(e.kind){case 173:case 259:case 215:case 171:case 170:case 216:case 176:case 177:case 181:case 182:case 174:case 175:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 210:case 211:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 260:case 228:case 261:case 262:if(e.typeParameters===t)return 29;break;case 180:case 212:case 183:case 230:case 202:if(e.typeArguments===t)return 29;break;case 184:return 18}return 0}function aZe(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}function oie(e,t){if((!zU||zU.tabSize!==t.tabSize||zU.indentSize!==t.indentSize)&&(zU={tabSize:t.tabSize,indentSize:t.indentSize},vD=bD=void 0),t.convertTabsToSpaces){let i;const o=Math.floor(e/t.indentSize),s=e%t.indentSize;return bD||(bD=[]),bD[o]===void 0?(i=A6(" ",t.indentSize*o),bD[o]=i):i=bD[o],s?i+A6(" ",s):i}else{const i=Math.floor(e/t.tabSize),o=e-i*t.tabSize;let s;return vD||(vD=[]),vD[i]===void 0?vD[i]=s=A6(" ",i):s=vD[i],o?s+A6(" ",o):s}}var zU,vD,bD,oZe=S({"src/services/formatting/formatting.ts"(){Qr(),ED()}}),Pp,sZe=S({"src/services/formatting/smartIndenter.ts"(){Qr(),ED(),(e=>{let t;(te=>{te[te.Unknown=-1]="Unknown"})(t||(t={}));function r(te,Qe,Ve,Ge=!1){if(te>Qe.text.length)return f(Ve);if(Ve.indentStyle===0)return 0;const ze=Dc(te,Qe,void 0,!0),Oe=OLe(Qe,te,ze||null);if(Oe&&Oe.kind===3)return i(Qe,te,Ve,Oe);if(!ze)return f(Ve);if(DQ(ze.kind)&&ze.getStart(Qe)<=te&&te<ze.end)return 0;const Ye=Qe.getLineAndCharacterOfPosition(te).line,We=oa(Qe,te),Fe=We.kind===18&&We.parent.kind===207;if(Ve.indentStyle===1||Fe)return o(Qe,te,Ve);if(ze.kind===27&&ze.parent.kind!==223){const Ct=h(ze,Qe,Ve);if(Ct!==-1)return Ct}const st=ne(te,ze.parent,Qe);if(st&&!vf(st,ze)){const Et=[215,216].indexOf(We.parent.kind)!==-1?0:Ve.indentSize;return M(st,Qe,Ve)+Et}return s(Qe,te,ze,Ye,Ge,Ve)}e.getIndentation=r;function i(te,Qe,Ve,Ge){const ze=cl(te,Qe).line-1,Oe=cl(te,Ge.pos).line;if(D.assert(Oe>=0),ze<=Oe)return W(Vv(Oe,te),Qe,te,Ve);const Me=Vv(ze,te),{column:Ye,character:We}=ae(Me,Qe,te,Ve);return Ye===0?Ye:te.text.charCodeAt(Me+We)===42?Ye-1:Ye}function o(te,Qe,Ve){let Ge=Qe;for(;Ge>0;){const Oe=te.text.charCodeAt(Ge);if(!gg(Oe))break;Ge--}const ze=w_(Ge,te);return W(ze,Ge,te,Ve)}function s(te,Qe,Ve,Ge,ze,Oe){let Me,Ye=Ve;for(;Ye;){if(SQ(Ye,Qe,te)&&Ee(Oe,Ye,Me,te,!0)){const Fe=I(Ye,te),st=L(Ve,Ye,Ge,te),Ct=st!==0?ze&&st===2?Oe.indentSize:0:Ge!==Fe.line?Oe.indentSize:0;return d(Ye,Fe,void 0,Ct,te,!0,Oe)}const We=de(Ye,te,Oe,!0);if(We!==-1)return We;Me=Ye,Ye=Ye.parent}return f(Oe)}function c(te,Qe,Ve,Ge){const ze=Ve.getLineAndCharacterOfPosition(te.getStart(Ve));return d(te,ze,Qe,0,Ve,!1,Ge)}e.getIndentationForNode=c;function f(te){return te.baseIndentSize||0}e.getBaseIndentation=f;function d(te,Qe,Ve,Ge,ze,Oe,Me){var Ye;let We=te.parent;for(;We;){let Fe=!0;if(Ve){const Vt=te.getStart(ze);Fe=Vt<Ve.pos||Vt>Ve.end}const st=v(We,te,ze),Ct=st.line===Qe.line||k(We,te,Qe.line,ze);if(Fe){const Vt=(Ye=H(te,ze))==null?void 0:Ye[0],tt=!!Vt&&I(Vt,ze).line>st.line;let at=de(te,ze,Me,tt);if(at!==-1||(at=E(te,We,Qe,Ct,ze,Me),at!==-1))return at+Ge}Ee(Me,We,te,ze,Oe)&&!Ct&&(Ge+=Me.indentSize);const Et=O(We,te,Qe.line,ze);te=We,We=te.parent,Qe=Et?ze.getLineAndCharacterOfPosition(te.getStart(ze)):st}return Ge+f(Me)}function v(te,Qe,Ve){const Ge=H(Qe,Ve),ze=Ge?Ge.pos:te.getStart(Ve);return Ve.getLineAndCharacterOfPosition(ze)}function h(te,Qe,Ve){const Ge=Y0e(te);return Ge&&Ge.listItemIndex>0?re(Ge.list.getChildren(),Ge.listItemIndex-1,Qe,Ve):-1}function E(te,Qe,Ve,Ge,ze,Oe){return(Au(te)||vN(te))&&(Qe.kind===308||!Ge)?be(Ve,ze,Oe):-1}let C;(te=>{te[te.Unknown=0]="Unknown",te[te.OpenBrace=1]="OpenBrace",te[te.CloseBrace=2]="CloseBrace"})(C||(C={}));function L(te,Qe,Ve,Ge){const ze=sS(te,Qe,Ge);if(!ze)return 0;if(ze.kind===18)return 1;if(ze.kind===19){const Oe=I(ze,Ge).line;return Ve===Oe?2:0}return 0}function I(te,Qe){return Qe.getLineAndCharacterOfPosition(te.getStart(Qe))}function O(te,Qe,Ve,Ge){if(!(io(te)&&Ur(te.arguments,Qe)))return!1;const ze=te.expression.getEnd();return cl(Ge,ze).line===Ve}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=O;function k(te,Qe,Ve,Ge){if(te.kind===242&&te.elseStatement===Qe){const ze=Es(te,91,Ge);return D.assert(ze!==void 0),I(ze,Ge).line===Ve}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=k;function G(te,Qe,Ve,Ge){if(VC(te)&&(Qe===te.whenTrue||Qe===te.whenFalse)){const ze=cl(Ge,te.condition.end).line;if(Qe===te.whenTrue)return Ve===ze;{const Oe=I(te.whenTrue,Ge).line,Me=cl(Ge,te.whenTrue.end).line;return ze===Oe&&Me===Ve}}return!1}e.childIsUnindentedBranchOfConditionalExpression=G;function V(te,Qe,Ve,Ge){if(bg(te)){if(!te.arguments)return!1;const ze=In(te.arguments,We=>We.pos===Qe.pos);if(!ze)return!1;const Oe=te.arguments.indexOf(ze);if(Oe===0)return!1;const Me=te.arguments[Oe-1],Ye=cl(Ge,Me.getEnd()).line;if(Ve===Ye)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=V;function H(te,Qe){return te.parent&&Y(te.getStart(Qe),te.getEnd(),te.parent,Qe)}e.getContainingList=H;function ne(te,Qe,Ve){return Qe&&Y(te,te,Qe,Ve)}function Y(te,Qe,Ve,Ge){switch(Ve.kind){case 180:return ze(Ve.typeArguments);case 207:return ze(Ve.properties);case 206:return ze(Ve.elements);case 184:return ze(Ve.members);case 259:case 215:case 216:case 171:case 170:case 176:case 173:case 182:case 177:return ze(Ve.typeParameters)||ze(Ve.parameters);case 174:return ze(Ve.parameters);case 260:case 228:case 261:case 262:case 348:return ze(Ve.typeParameters);case 211:case 210:return ze(Ve.typeArguments)||ze(Ve.arguments);case 258:return ze(Ve.declarations);case 272:case 276:return ze(Ve.elements);case 203:case 204:return ze(Ve.elements)}function ze(Oe){return Oe&&y6($(Ve,Oe,Ge),te,Qe)?Oe:void 0}}function $(te,Qe,Ve){const Ge=te.getChildren(Ve);for(let ze=1;ze<Ge.length-1;ze++)if(Ge[ze].pos===Qe.pos&&Ge[ze].end===Qe.end)return{pos:Ge[ze-1].end,end:Ge[ze+1].getStart(Ve)};return Qe}function M(te,Qe,Ve){return te?be(Qe.getLineAndCharacterOfPosition(te.pos),Qe,Ve):-1}function de(te,Qe,Ve,Ge){if(te.parent&&te.parent.kind===258)return-1;const ze=H(te,Qe);if(ze){const Oe=ze.indexOf(te);if(Oe!==-1){const Me=re(ze,Oe,Qe,Ve);if(Me!==-1)return Me}return M(ze,Qe,Ve)+(Ge?Ve.indentSize:0)}return-1}function re(te,Qe,Ve,Ge){D.assert(Qe>=0&&Qe<te.length);const ze=te[Qe];let Oe=I(ze,Ve);for(let Me=Qe-1;Me>=0;Me--){if(te[Me].kind===27)continue;if(Ve.getLineAndCharacterOfPosition(te[Me].end).line!==Oe.line)return be(Oe,Ve,Ge);Oe=I(te[Me],Ve)}return-1}function be(te,Qe,Ve){const Ge=Qe.getPositionOfLineAndCharacter(te.line,0);return W(Ge,Ge+te.character,Qe,Ve)}function ae(te,Qe,Ve,Ge){let ze=0,Oe=0;for(let Me=te;Me<Qe;Me++){const Ye=Ve.text.charCodeAt(Me);if(!Um(Ye))break;Ye===9?Oe+=Ge.tabSize+Oe%Ge.tabSize:Oe++,ze++}return{column:Oe,character:ze}}e.findFirstNonWhitespaceCharacterAndColumn=ae;function W(te,Qe,Ve,Ge){return ae(te,Qe,Ve,Ge).column}e.findFirstNonWhitespaceColumn=W;function ce(te,Qe,Ve,Ge,ze){const Oe=Ve?Ve.kind:0;switch(Qe.kind){case 241:case 260:case 228:case 261:case 263:case 262:case 206:case 238:case 265:case 207:case 184:case 197:case 186:case 266:case 293:case 292:case 214:case 208:case 210:case 211:case 240:case 274:case 250:case 224:case 204:case 203:case 283:case 286:case 282:case 291:case 170:case 176:case 177:case 166:case 181:case 182:case 193:case 212:case 220:case 276:case 272:case 278:case 273:case 169:return!0;case 257:case 299:case 223:if(!te.indentMultiLineObjectLiteralBeginningOnBlankLine&&Ge&&Oe===207)return xe(Ge,Ve);if(Qe.kind===223&&Ge&&Ve&&Oe===281){const Me=Ge.getLineAndCharacterOfPosition(Xo(Ge.text,Qe.pos)).line,Ye=Ge.getLineAndCharacterOfPosition(Xo(Ge.text,Ve.pos)).line;return Me!==Ye}if(Qe.kind!==223)return!0;break;case 243:case 244:case 246:case 247:case 245:case 242:case 259:case 215:case 171:case 173:case 174:case 175:return Oe!==238;case 216:return Ge&&Oe===214?xe(Ge,Ve):Oe!==238;case 275:return Oe!==276;case 269:return Oe!==270||!!Ve.namedBindings&&Ve.namedBindings.kind!==272;case 281:return Oe!==284;case 285:return Oe!==287;case 190:case 189:if(Oe===184||Oe===186)return!1;break}return ze}e.nodeWillIndentChild=ce;function me(te,Qe){switch(te){case 250:case 254:case 248:case 249:return Qe.kind!==238;default:return!1}}function Ee(te,Qe,Ve,Ge,ze=!1){return ce(te,Qe,Ve,Ge,!1)&&!(ze&&Ve&&me(Ve.kind,Qe))}e.shouldIndentChildNode=Ee;function xe(te,Qe){const Ve=Xo(te.text,Qe.pos),Ge=te.getLineAndCharacterOfPosition(Ve).line,ze=te.getLineAndCharacterOfPosition(Qe.end).line;return Ge===ze}})(Pp||(Pp={}))}}),Rc={};X(Rc,{FormattingContext:()=>Wre,FormattingRequestKind:()=>Hre,RuleAction:()=>qre,RuleFlags:()=>Jre,SmartIndenter:()=>Pp,anyContext:()=>CP,createTextRangeWithKind:()=>WU,formatDocument:()=>YQe,formatNodeGivenIndentation:()=>rZe,formatOnClosingCurly:()=>XQe,formatOnEnter:()=>qQe,formatOnOpeningCurly:()=>KQe,formatOnSemicolon:()=>JQe,formatSelection:()=>$Qe,getAllRules:()=>uLe,getFormatContext:()=>FQe,getFormattingScanner:()=>zre,getIndentationString:()=>oie,getRangeOfEnclosingComment:()=>OLe});var ED=S({"src/services/_namespaces/ts.formatting.ts"(){oQe(),sQe(),lQe(),MQe(),zQe(),oZe(),sZe()}}),Qr=S({"src/services/_namespaces/ts.ts"(){Na(),o9(),ABe(),ZBe(),rGe(),mGe(),hGe(),gGe(),xGe(),OGe(),PGe(),FGe(),zGe(),JGe(),vUe(),EUe(),xUe(),LUe(),JUe(),iVe(),To(),Dne(),TAe(),pJe(),vJe(),FJe(),B1e(),oEe(),rKe(),dKe(),jh(),c$e(),P$e(),H$e(),q$e(),aQe(),ED()}});function lZe(){return lie!=null?lie:lie=new j_(ve)}function PLe(e,t,r,i,o){let s=t?"DeprecationError: ":"DeprecationWarning: ";return s+=`'${e}' `,s+=i?`has been deprecated since v${i}`:"is deprecated",s+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",s+=o?` ${Rh(o,[e],0)}`:"",s}function cZe(e,t,r,i){const o=PLe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function uZe(e,t,r,i){let o=!1;return()=>{MLe&&!o&&(D.log.warn(PLe(e,!1,t,r,i)),o=!0)}}function dZe(e,t={}){var r,i;const o=typeof t.typeScriptVersion=="string"?new j_(t.typeScriptVersion):(r=t.typeScriptVersion)!=null?r:lZe(),s=typeof t.errorAfter=="string"?new j_(t.errorAfter):t.errorAfter,c=typeof t.warnAfter=="string"?new j_(t.warnAfter):t.warnAfter,f=typeof t.since=="string"?new j_(t.since):(i=t.since)!=null?i:c,d=t.error||s&&o.compareTo(s)>=0,v=!c||o.compareTo(c)>=0;return d?cZe(e,s,f,t.message):v?uZe(e,s,f,t.message):lo}function fZe(e,t){return function(){return e(),t.apply(this,arguments)}}function sie(e,t){var r;const i=dZe((r=t==null?void 0:t.name)!=null?r:D.getFunctionName(e),t);return fZe(i,e)}var MLe,lie,FLe=S({"src/deprecatedCompat/deprecate.ts"(){qU(),MLe=!0}});function cie(e,t,r,i){if(Object.defineProperty(s,"name",Ka(Ti({},Object.getOwnPropertyDescriptor(s,"name")),{value:e})),i)for(const c of Object.keys(i)){const f=+c;!isNaN(f)&&Fs(t,`${f}`)&&(t[f]=sie(t[f],Ka(Ti({},i[f]),{name:e})))}const o=_Ze(t,r);return s;function s(...c){const f=o(c),d=f!==void 0?t[f]:void 0;if(typeof d=="function")return d(...c);throw new TypeError("Invalid arguments")}}function _Ze(e,t){return r=>{for(let i=0;Fs(e,`${i}`)&&Fs(t,`${i}`);i++){const o=t[i];if(o(r))return i}}}function pZe(e){return{overload:t=>({bind:r=>({finish:()=>cie(e,t,r),deprecate:i=>({finish:()=>cie(e,t,r,i)})})})}}var mZe=S({"src/deprecatedCompat/deprecations.ts"(){qU(),FLe()}}),hZe=S({"src/deprecatedCompat/5.0/identifierProperties.ts"(){qU(),FLe(),V_e(e=>{const t=e.getIdentifierConstructor();Fs(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:sie(function(){return ib(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Fs(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:sie(function(){return this.flags&2048?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),qU=S({"src/deprecatedCompat/_namespaces/ts.ts"(){Na(),mZe(),hZe()}}),BLe={};X(BLe,{ANONYMOUS:()=>Q9,AccessFlags:()=>oW,AssertionLevel:()=>wH,AssignmentDeclarationKind:()=>pW,AssignmentKind:()=>kJ,Associativity:()=>DJ,BreakpointResolver:()=>ree,BuilderFileEmit:()=>o$,BuilderProgramKind:()=>s$,BuilderState:()=>ih,BundleFileSectionKind:()=>NW,CallHierarchy:()=>y2,CharacterCodes:()=>CW,CheckFlags:()=>tW,CheckMode:()=>hF,ClassificationType:()=>fQ,ClassificationTypeNames:()=>dQ,CommentDirectiveType:()=>GH,Comparison:()=>Be,CompletionInfoFlags:()=>iQ,CompletionTriggerKind:()=>Z$,Completions:()=>x2,ConfigFileProgramReloadLevel:()=>DY,ContextFlags:()=>qH,CoreServicesShimHostAdapter:()=>nee,Debug:()=>D,DiagnosticCategory:()=>VR,Diagnostics:()=>_,DocumentHighlights:()=>tB,ElementFlags:()=>aW,EmitFlags:()=>HM,EmitHint:()=>wW,EmitOnly:()=>VH,EndOfLineState:()=>sQ,EnumKind:()=>eW,ExitStatus:()=>HH,ExportKind:()=>gZ,Extension:()=>LW,ExternalEmitHelpers:()=>kW,FileIncludeKind:()=>PM,FilePreprocessingDiagnosticsKind:()=>UH,FileSystemEntryKind:()=>GW,FileWatcherEventKind:()=>FW,FindAllReferences:()=>_l,FlattenLevel:()=>dY,FlowFlags:()=>UR,ForegroundColorEscapeSequences:()=>JY,FunctionFlags:()=>wJ,GeneratedIdentifierFlags:()=>OM,GetLiteralTextFlags:()=>CJ,GoToDefinition:()=>iD,HighlightSpanKind:()=>tQ,ImportKind:()=>hZ,ImportsNotUsedAsValues:()=>bW,IndentStyle:()=>nQ,IndexKind:()=>cW,InferenceFlags:()=>fW,InferencePriority:()=>dW,InlayHintKind:()=>eQ,InlayHints:()=>zne,InternalEmitFlags:()=>IW,InternalSymbolName:()=>nW,InvalidatedProjectKind:()=>B$,JsDoc:()=>Cb,JsTyping:()=>iS,JsxEmit:()=>vW,JsxFlags:()=>FH,JsxReferenceKind:()=>sW,LanguageServiceMode:()=>Y$,LanguageServiceShimHostAdapter:()=>tee,LanguageVariant:()=>xW,LexicalEnvironmentFlags:()=>RW,ListFormat:()=>OW,LogLevel:()=>RH,MemberOverrideStatus:()=>WH,ModifierFlags:()=>RM,ModuleDetectionKind:()=>mW,ModuleInstanceState:()=>UX,ModuleKind:()=>UM,ModuleResolutionKind:()=>jR,ModuleSpecifierEnding:()=>jJ,NavigateTo:()=>F1e,NavigationBar:()=>aEe,NewLineKind:()=>EW,NodeBuilderFlags:()=>JH,NodeCheckFlags:()=>rW,NodeFactoryFlags:()=>KJ,NodeFlags:()=>DM,NodeResolutionFeatures:()=>BX,ObjectFlags:()=>BM,OperationCanceledException:()=>PI,OperatorPrecedence:()=>RJ,OrganizeImports:()=>ap,OrganizeImportsMode:()=>Q$,OuterExpressionKinds:()=>DW,OutliningElementsCollector:()=>nre,OutliningSpanKind:()=>aQ,OutputFileType:()=>oQ,PackageJsonAutoImportPreference:()=>X$,PackageJsonDependencyGroup:()=>K$,PatternMatchKind:()=>aB,PollingInterval:()=>WM,PollingWatchKind:()=>yW,PragmaKindFlags:()=>PW,PrivateIdentifierKind:()=>iK,ProcessLevel:()=>mY,QuotePreference:()=>fZ,RelationComparisonResult:()=>NM,Rename:()=>PU,ScriptElementKind:()=>cQ,ScriptElementKindModifier:()=>uQ,ScriptKind:()=>TW,ScriptSnapshot:()=>J$,ScriptTarget:()=>SW,SemanticClassificationFormat:()=>$$,SemanticMeaning:()=>dZ,SemicolonPreference:()=>rQ,SignatureCheckMode:()=>gF,SignatureFlags:()=>GM,SignatureHelp:()=>xP,SignatureKind:()=>lW,SmartSelectionRange:()=>Nre,SnippetKind:()=>jM,SortKind:()=>IH,StructureIsReused:()=>jH,SymbolAccessibility:()=>YH,SymbolDisplay:()=>zy,SymbolDisplayPartKind:()=>f6,SymbolFlags:()=>MM,SymbolFormatFlags:()=>XH,SyntaxKind:()=>wM,SyntheticSymbolKind:()=>$H,Ternary:()=>_W,ThrottledCancellationToken:()=>YZ,TokenClass:()=>lQ,TokenFlags:()=>BH,TransformFlags:()=>VM,TypeFacts:()=>pF,TypeFlags:()=>FM,TypeFormatFlags:()=>KH,TypeMapKind:()=>uW,TypePredicateKind:()=>QH,TypeReferenceSerializationKind:()=>ZH,TypeScriptServicesFactory:()=>kEe,UnionReduction:()=>zH,UpToDateStatusType:()=>S$,VarianceFlags:()=>iW,Version:()=>j_,VersionRange:()=>MA,WatchDirectoryFlags:()=>AW,WatchDirectoryKind:()=>gW,WatchFileKind:()=>hW,WatchLogLevel:()=>RY,WatchType:()=>k_,accessPrivateIdentifier:()=>Cye,addEmitFlags:()=>cm,addEmitHelper:()=>Gx,addEmitHelpers:()=>Ny,addInternalEmitFlags:()=>Bx,addNodeFactoryPatcher:()=>DMe,addObjectAllocatorPatcher:()=>V_e,addRange:()=>Ai,addRelatedInfo:()=>Yo,addSyntheticLeadingComment:()=>VO,addSyntheticTrailingComment:()=>P7,addToSeen:()=>Lp,advancedAsyncSuperHelper:()=>qO,affectsDeclarationPathOptionDeclarations:()=>hX,affectsEmitOptionDeclarations:()=>mX,allKeysStartWithDot:()=>aF,altDirectorySeparator:()=>ZR,and:()=>bM,append:()=>Bn,appendIfUnique:()=>yy,arrayFrom:()=>No,arrayIsEqualTo:()=>Zp,arrayIsHomogeneous:()=>fpe,arrayIsSorted:()=>Uce,arrayOf:()=>Wce,arrayReverseIterator:()=>R6e,arrayToMap:()=>y1,arrayToMultiMap:()=>RR,arrayToNumericMap:()=>qce,arraysEqual:()=>Oo,assertType:()=>V6e,assign:()=>DR,assignHelper:()=>j7,asyncDelegator:()=>W7,asyncGeneratorHelper:()=>H7,asyncSuperHelper:()=>zO,asyncValues:()=>z7,attachFileToDiagnostics:()=>Ox,awaitHelper:()=>Ux,awaiterHelper:()=>J7,base64decode:()=>D_e,base64encode:()=>w_e,binarySearch:()=>kv,binarySearchKey:()=>rx,bindSourceFile:()=>Fge,breakIntoCharacterSpans:()=>y1e,breakIntoWordSpans:()=>v1e,buildLinkParts:()=>Lbe,buildOpts:()=>z5,buildOverload:()=>pZe,bundlerModuleNameResolver:()=>vge,canBeConvertedToAsync:()=>NZ,canHaveDecorators:()=>i2,canHaveExportModifier:()=>kO,canHaveFlowNode:()=>JN,canHaveIllegalDecorators:()=>BK,canHaveIllegalModifiers:()=>Fme,canHaveIllegalType:()=>E3e,canHaveIllegalTypeParameters:()=>Mme,canHaveJSDoc:()=>KN,canHaveLocals:()=>jm,canHaveModifiers:()=>np,canHaveSymbol:()=>Vm,canJsonReportNoInputFiles:()=>T8,canProduceDiagnostics:()=>LF,canUsePropertyAccess:()=>TJ,canWatchDirectoryOrFile:()=>i6,cartesianProduct:()=>sue,cast:()=>so,chainBundle:()=>rp,chainDiagnosticMessages:()=>Ra,changeAnyExtension:()=>HW,changeCompilerHostLikeToUseCache:()=>Z8,changeExtension:()=>z1,changesAffectModuleResolution:()=>Nz,changesAffectingProgramStructure:()=>nfe,childIsDecorated:()=>ck,classElementOrClassElementParameterIsDecorated:()=>iq,classOrConstructorParameterIsDecorated:()=>F1,classPrivateFieldGetHelper:()=>a5,classPrivateFieldInHelper:()=>s5,classPrivateFieldSetHelper:()=>o5,classicNameResolver:()=>Pge,classifier:()=>AB,cleanExtendedConfigCache:()=>wY,clear:()=>Aa,clearMap:()=>l_,clearSharedExtendedConfigFileWatcher:()=>fve,climbPastPropertyAccess:()=>c9,climbPastPropertyOrElementAccess:()=>q0e,clone:()=>bH,cloneCompilerOptions:()=>dbe,closeFileWatcher:()=>Xm,closeFileWatcherOf:()=>rh,codefix:()=>Yu,collapseTextChangeRangesAcrossMultipleVersions:()=>WPe,collectExternalModuleInfo:()=>rY,combine:()=>OA,combinePaths:()=>Bi,commentPragmas:()=>HR,commonOptionsWithBuild:()=>k8,commonPackageFolders:()=>PJ,compact:()=>kR,compareBooleans:()=>E1,compareDataObjects:()=>Yq,compareDiagnostics:()=>Nk,compareDiagnosticsSkipRelatedInformation:()=>d7,compareEmitHelpers:()=>Qpe,compareNumberOfDirectorySeparators:()=>xO,comparePaths:()=>pT,comparePathsCaseInsensitive:()=>OPe,comparePathsCaseSensitive:()=>NPe,comparePatternKeys:()=>OX,compareProperties:()=>tue,compareStringsCaseInsensitive:()=>hM,compareStringsCaseInsensitiveEslintCompatible:()=>Qce,compareStringsCaseSensitive:()=>Uu,compareStringsCaseSensitiveUI:()=>OR,compareTextSpans:()=>mM,compareValues:()=>qs,compileOnSaveCommandLineOption:()=>A8,compilerOptionsAffectDeclarationPath:()=>tpe,compilerOptionsAffectEmit:()=>epe,compilerOptionsAffectSemanticDiagnostics:()=>Z_e,compilerOptionsDidYouMeanDiagnostics:()=>D8,compilerOptionsIndicateEsModules:()=>BQ,compose:()=>B6e,computeCommonSourceDirectoryOfFilenames:()=>gve,computeLineAndCharacterOfPosition:()=>rN,computeLineOfPosition:()=>GI,computeLineStarts:()=>tN,computePositionOfLineAndCharacter:()=>KW,computeSignature:()=>nS,computeSignatureWithDiagnostics:()=>t$,computeSuggestionDiagnostics:()=>wZ,concatenate:()=>ya,concatenateDiagnosticMessageChains:()=>q_e,consumesNodeCoreModules:()=>W9,contains:()=>Ur,containsIgnoredPath:()=>Vk,containsObjectRestOrSpread:()=>f8,containsParseError:()=>SN,containsPath:()=>Rv,convertCompilerOptionsForTelemetry:()=>I7e,convertCompilerOptionsFromJson:()=>E7e,convertJsonOption:()=>S8,convertToBase64:()=>k_e,convertToObject:()=>Rhe,convertToObjectWorker:()=>b8,convertToOptionsWithAbsolutePaths:()=>nX,convertToRelativePath:()=>FI,convertToTSConfig:()=>s7e,convertTypeAcquisitionFromJson:()=>T7e,copyComments:()=>cS,copyEntries:()=>EN,copyLeadingComments:()=>mL,copyProperties:()=>EH,copyTrailingAsLeadingComments:()=>N6,copyTrailingComments:()=>Vw,couldStartTrivia:()=>zue,countWhere:()=>Wc,createAbstractBuilder:()=>k9e,createAccessorPropertyBackingField:()=>UK,createAccessorPropertyGetRedirector:()=>qme,createAccessorPropertySetRedirector:()=>Jme,createBaseNodeFactory:()=>Ppe,createBinaryExpressionTrampoline:()=>k5,createBindingHelper:()=>RC,createBuildInfo:()=>Y8,createBuilderProgram:()=>n$,createBuilderProgramUsingProgramBuildInfo:()=>Uve,createBuilderStatusReporter:()=>e0e,createCacheWithRedirects:()=>CX,createCacheableExportInfoMap:()=>$be,createCachedDirectoryStructureHost:()=>dve,createClassifier:()=>e1e,createCommentDirectivesMap:()=>_fe,createCompilerDiagnostic:()=>Gs,createCompilerDiagnosticForInvalidCustomType:()=>JK,createCompilerDiagnosticFromMessageChain:()=>u7,createCompilerHost:()=>yve,createCompilerHostFromProgramHost:()=>y$,createCompilerHostWorker:()=>PY,createDetachedDiagnostic:()=>TC,createDiagnosticCollection:()=>hC,createDiagnosticForFileFromMessageChain:()=>$z,createDiagnosticForNode:()=>Nr,createDiagnosticForNodeArray:()=>ZA,createDiagnosticForNodeArrayFromMessageChain:()=>LN,createDiagnosticForNodeFromMessageChain:()=>Eg,createDiagnosticForNodeInSourceFile:()=>md,createDiagnosticForRange:()=>Qz,createDiagnosticMessageChainFromDiagnostic:()=>Sfe,createDiagnosticReporter:()=>a6,createDocumentPositionMapper:()=>yye,createDocumentRegistry:()=>bZ,createDocumentRegistryInternal:()=>s1e,createEmitAndSemanticDiagnosticsBuilderProgram:()=>l$,createEmitHelperFactory:()=>$pe,createEmptyExports:()=>a8,createExpressionForJsxElement:()=>Lme,createExpressionForJsxFragment:()=>Ime,createExpressionForObjectLiteralElementLike:()=>kme,createExpressionForPropertyName:()=>RK,createExpressionFromEntityName:()=>o8,createExternalHelpersImportDeclarationIfNeeded:()=>PK,createFileDiagnostic:()=>Mc,createFileDiagnosticFromMessageChain:()=>C3,createForOfBindingStatement:()=>DK,createGetCanonicalFileName:()=>cu,createGetSourceFile:()=>NY,createGetSymbolAccessibilityDiagnosticForNode:()=>Gy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Yye,createGetSymbolWalker:()=>Vge,createIncrementalCompilerHost:()=>E$,createIncrementalProgram:()=>Zve,createInputFiles:()=>BMe,createInputFilesWithFilePaths:()=>qJ,createInputFilesWithFileTexts:()=>JJ,createJsxFactoryExpression:()=>wK,createLanguageService:()=>pEe,createLanguageServiceSourceFile:()=>mB,createMemberAccessForPropertyName:()=>JT,createModeAwareCache:()=>YT,createModeAwareCacheKey:()=>hw,createModuleResolutionCache:()=>Z5,createModuleResolutionLoader:()=>VY,createModuleSpecifierResolutionHost:()=>f2,createMultiMap:()=>b_,createNodeConverters:()=>Fpe,createNodeFactory:()=>PO,createOptionNameMap:()=>P5,createOverload:()=>cie,createPackageJsonImportFilter:()=>Ww,createPackageJsonInfo:()=>Gbe,createParenthesizerRules:()=>Mpe,createPatternMatcher:()=>f1e,createPrependNodes:()=>zY,createPrinter:()=>oE,createPrinterWithDefaults:()=>LY,createPrinterWithRemoveComments:()=>sE,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>IY,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>$8,createProgram:()=>BF,createProgramHost:()=>v$,createPropertyNameNodeForIdentifierOrLiteral:()=>x7,createQueue:()=>TH,createRange:()=>x_,createRedirectedBuilderProgram:()=>a$,createResolutionCache:()=>Vve,createRuntimeTypeSerializer:()=>Dye,createScanner:()=>Sy,createSemanticDiagnosticsBuilderProgram:()=>I9e,createSet:()=>M6e,createSolutionBuilder:()=>q9e,createSolutionBuilderHost:()=>H9e,createSolutionBuilderWithWatch:()=>J9e,createSolutionBuilderWithWatchHost:()=>W9e,createSortedArray:()=>mH,createSourceFile:()=>m8,createSourceMapGenerator:()=>dye,createSourceMapSource:()=>GMe,createSuperAccessVariableStatement:()=>CF,createSymbolTable:()=>co,createSymlinkCache:()=>npe,createSystemWatchFunctions:()=>Bue,createTextChange:()=>S6,createTextChangeFromStartLength:()=>T9,createTextChangeRange:()=>lN,createTextRangeFromNode:()=>PQ,createTextRangeFromSpan:()=>E9,createTextSpan:()=>Pc,createTextSpanFromBounds:()=>Tc,createTextSpanFromNode:()=>dd,createTextSpanFromRange:()=>r0,createTextSpanFromStringLiteralLikeContent:()=>OQ,createTextWriter:()=>lO,createTokenRange:()=>qq,createTypeChecker:()=>iye,createTypeReferenceDirectiveResolutionCache:()=>eF,createTypeReferenceResolutionLoader:()=>MF,createUnderscoreEscapedMultiMap:()=>Kce,createUnparsedSourceFile:()=>zJ,createWatchCompilerHost:()=>B9e,createWatchCompilerHostOfConfigFile:()=>$ve,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Qve,createWatchFactory:()=>g$,createWatchHost:()=>h$,createWatchProgram:()=>G9e,createWatchStatusReporter:()=>Hve,createWriteFileMeasuringIO:()=>OY,declarationNameToString:()=>Rs,decodeMappings:()=>eY,decodedTextSpanIntersectsWith:()=>t3,decorateHelper:()=>F7,deduplicate:()=>NA,defaultIncludeSpec:()=>K5,defaultInitCompilerOptions:()=>J5,defaultMaximumTruncationLength:()=>RO,detectSortCaseSensitivity:()=>fM,diagnosticCategoryName:()=>kM,diagnosticToString:()=>p2,directoryProbablyExists:()=>om,directorySeparator:()=>Bs,displayPart:()=>Od,displayPartsToString:()=>dEe,disposeEmitNodes:()=>$J,documentSpansEqual:()=>VBe,dumpTracingLegend:()=>wue,elementAt:()=>Ey,elideNodes:()=>zme,emitComments:()=>h_e,emitDetachedComments:()=>g_e,emitFiles:()=>kF,emitFilesAndReportErrors:()=>$F,emitFilesAndReportErrorsAndGetExitStatus:()=>Kve,emitModuleKindIsNonNodeESM:()=>nJ,emitNewLineBeforeLeadingCommentOfPosition:()=>m_e,emitNewLineBeforeLeadingComments:()=>__e,emitNewLineBeforeLeadingCommentsOfPosition:()=>p_e,emitSkippedWithNoDiagnostics:()=>qF,emitUsingBuildInfo:()=>uve,emptyArray:()=>rt,emptyFileSystemEntries:()=>N7,emptyMap:()=>SM,emptyOptions:()=>mm,emptySet:()=>uue,endsWith:()=>cc,ensurePathIsNonModuleName:()=>L1,ensureScriptKind:()=>v7,ensureTrailingDirectorySeparator:()=>Vu,entityNameToString:()=>Pf,enumerateInsertsAndDeletes:()=>oue,equalOwnProperties:()=>zce,equateStringsCaseInsensitive:()=>ax,equateStringsCaseSensitive:()=>ox,equateValues:()=>tb,esDecorateHelper:()=>U7,escapeJsxAttributeString:()=>Lq,escapeLeadingUnderscores:()=>ul,escapeNonAsciiString:()=>oO,escapeSnippetText:()=>GT,escapeString:()=>Ix,every:()=>Zn,expandPreOrPostfixIncrementOrDecrementExpression:()=>S5,explainFiles:()=>Jve,explainIfFileIsRedirectAndImpliedFormat:()=>f$,exportAssignmentIsAlias:()=>fC,exportStarHelper:()=>i5,expressionResultIsUnused:()=>ppe,extend:()=>pM,extendsHelper:()=>K7,extensionFromPath:()=>LO,extensionIsTS:()=>E7,externalHelpersModuleNameText:()=>mb,factory:()=>N,fileExtensionIs:()=>hc,fileExtensionIsOneOf:()=>Ic,fileIncludeReasonToDiagnostics:()=>m$,filter:()=>yn,filterMutate:()=>ni,filterSemanticDiagnostics:()=>GF,find:()=>In,findAncestor:()=>rr,findBestPatternMatch:()=>AH,findChildOfKind:()=>Es,findComputedPropertyNameCacheAssignment:()=>D5,findConfigFile:()=>hve,findContainingList:()=>p9,findDiagnosticForNode:()=>Vbe,findFirstNonJsxWhitespaceToken:()=>nbe,findIndex:()=>mi,findLast:()=>Yr,findLastIndex:()=>ji,findListItemInfo:()=>Y0e,findMap:()=>Uo,findModifier:()=>fL,findNextToken:()=>sS,findPackageJson:()=>Fbe,findPackageJsons:()=>iZ,findPrecedingMatchingToken:()=>v9,findPrecedingToken:()=>Dc,findSuperStatementIndex:()=>SF,findTokenOnLeftOfPosition:()=>g9,findUseStrictPrologue:()=>OK,first:()=>ds,firstDefined:()=>Jt,firstDefinedIterator:()=>dn,firstIterator:()=>Hce,firstOrOnly:()=>sZ,firstOrUndefined:()=>tu,firstOrUndefinedIterator:()=>_M,fixupCompilerOptions:()=>OZ,flatMap:()=>Ga,flatMapIterator:()=>m1,flatMapToMutable:()=>Rf,flatten:()=>Ds,flattenCommaList:()=>Kme,flattenDestructuringAssignment:()=>ZT,flattenDestructuringBinding:()=>iE,flattenDiagnosticMessageText:()=>t0,forEach:()=>Je,forEachAncestor:()=>rfe,forEachAncestorDirectory:()=>mg,forEachChild:()=>Pa,forEachChildRecursively:()=>p8,forEachEmittedFile:()=>SY,forEachEnclosingBlockScopeContainer:()=>Efe,forEachEntry:()=>pf,forEachExternalModuleToImportFrom:()=>mZ,forEachImportClauseDeclaration:()=>K3,forEachKey:()=>nk,forEachLeadingCommentRange:()=>iN,forEachNameInAccessChainWalkingLeft:()=>tMe,forEachResolvedProjectReference:()=>Tve,forEachReturnStatement:()=>AT,forEachRight:()=>Xt,forEachTrailingCommentRange:()=>aN,forEachUnique:()=>jQ,forEachYieldExpression:()=>Afe,forSomeAncestorDirectory:()=>eMe,formatColorAndReset:()=>lE,formatDiagnostic:()=>MY,formatDiagnostics:()=>o9e,formatDiagnosticsWithColorAndContext:()=>Eve,formatGeneratedName:()=>KT,formatGeneratedNamePart:()=>XC,formatLocation:()=>FY,formatMessage:()=>tJ,formatStringFromArgs:()=>Rh,formatting:()=>Rc,fullTripleSlashAMDReferencePathRegEx:()=>IJ,fullTripleSlashReferencePathRegEx:()=>LJ,generateDjb2Hash:()=>WR,generateTSConfig:()=>f7e,generatorHelper:()=>t5,getAdjustedReferenceLocation:()=>xQ,getAdjustedRenameLocation:()=>h9,getAliasDeclarationFromName:()=>yq,getAllAccessorDeclarations:()=>PT,getAllDecoratorsOfClass:()=>sY,getAllDecoratorsOfClassElement:()=>AF,getAllJSDocTags:()=>lz,getAllJSDocTagsOfKind:()=>ZPe,getAllKeys:()=>N6e,getAllProjectOutputs:()=>IF,getAllSuperTypeNodes:()=>pk,getAllUnscopedEmitHelpers:()=>rK,getAllowJSCompilerOption:()=>bO,getAllowSyntheticDefaultImports:()=>FT,getAncestor:()=>ub,getAnyExtensionFromPath:()=>zM,getAreDeclarationMapsEnabled:()=>p7,getAssignedExpandoInitializer:()=>Ex,getAssignedName:()=>rz,getAssignmentDeclarationKind:()=>wl,getAssignmentDeclarationPropertyAccessKind:()=>UN,getAssignmentTargetKind:()=>wT,getAutomaticTypeDirectiveNames:()=>Q5,getBaseFileName:()=>Eu,getBinaryOperatorPrecedence:()=>iO,getBuildInfo:()=>wF,getBuildInfoFileVersionMap:()=>i$,getBuildInfoText:()=>cve,getBuildOrderFromAnyBuildOrder:()=>n9,getBuilderCreationParameters:()=>KF,getBuilderFileEmit:()=>n0,getCheckFlags:()=>Dl,getClassExtendsHeritageElement:()=>G1,getClassLikeDeclarationOfSymbol:()=>Lg,getCombinedLocalAndExportSymbolFlags:()=>kk,getCombinedModifierFlags:()=>Ay,getCombinedNodeFlags:()=>xp,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>tz,getCommentRange:()=>$m,getCommonSourceDirectory:()=>X8,getCommonSourceDirectoryOfConfig:()=>kw,getCompilerOptionValue:()=>m7,getCompilerOptionsDiffValue:()=>d7e,getConditions:()=>nL,getConfigFileParsingDiagnostics:()=>tS,getConstantValue:()=>Wpe,getContainerNode:()=>oS,getContainingClass:()=>wc,getContainingClassStaticBlock:()=>S4e,getContainingFunction:()=>Mf,getContainingFunctionDeclaration:()=>Nfe,getContainingFunctionOrClassStaticBlock:()=>P3,getContainingNodeArray:()=>mpe,getContainingObjectLiteralElement:()=>V6,getContextualTypeFromParent:()=>O9,getContextualTypeFromParentOrAncestorTypeNode:()=>m9,getCurrentTime:()=>l6,getDeclarationDiagnostics:()=>$ye,getDeclarationEmitExtensionForPath:()=>Dq,getDeclarationEmitOutputFilePath:()=>s_e,getDeclarationEmitOutputFilePathWorker:()=>wq,getDeclarationFromName:()=>$N,getDeclarationModifierFlagsFromSymbol:()=>s_,getDeclarationOfKind:()=>Il,getDeclarationsOfKind:()=>efe,getDeclaredExpandoInitializer:()=>MN,getDecorators:()=>Ov,getDefaultCompilerOptions:()=>pB,getDefaultExportInfoWorker:()=>eB,getDefaultFormatCodeSettings:()=>V0e,getDefaultLibFileName:()=>QM,getDefaultLibFilePath:()=>yUe,getDefaultLikeExportInfo:()=>Z9,getDiagnosticText:()=>a7e,getDiagnosticsWithinSpan:()=>jbe,getDirectoryPath:()=>yi,getDocumentPositionMapper:()=>A1e,getESModuleInterop:()=>$_,getEditsForFileRename:()=>c1e,getEffectiveBaseTypeNode:()=>am,getEffectiveConstraintOfTypeParameter:()=>jA,getEffectiveContainerForJSDocTemplateTag:()=>X3,getEffectiveImplementsTypeNodes:()=>_C,getEffectiveInitializer:()=>PN,getEffectiveJSDocHost:()=>dC,getEffectiveModifierFlags:()=>Hu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>E_e,getEffectiveModifierFlagsNoCache:()=>S_e,getEffectiveReturnTypeNode:()=>Cp,getEffectiveSetAccessorTypeAnnotationNode:()=>f_e,getEffectiveTypeAnnotationNode:()=>iu,getEffectiveTypeParameterDeclarations:()=>Mv,getEffectiveTypeRoots:()=>O8,getElementOrPropertyAccessArgumentExpressionOrName:()=>J3,getElementOrPropertyAccessName:()=>xg,getElementsOfBindingOrAssignmentPattern:()=>KC,getEmitDeclarations:()=>Q_,getEmitFlags:()=>bo,getEmitHelpers:()=>M7,getEmitModuleDetectionKind:()=>Y_e,getEmitModuleKind:()=>du,getEmitModuleResolutionKind:()=>Tl,getEmitScriptTarget:()=>ts,getEnclosingBlockScopeContainer:()=>zm,getEncodedSemanticClassifications:()=>yZ,getEncodedSyntacticClassifications:()=>vZ,getEndLinePosition:()=>xN,getEntityNameFromTypeNode:()=>DN,getEntrypointsFromPackageJsonInfo:()=>$7e,getErrorCountForSummary:()=>XF,getErrorSpanForNode:()=>P1,getErrorSummaryText:()=>zve,getEscapedTextOfIdentifierOrLiteral:()=>hk,getExpandoInitializer:()=>lb,getExportAssignmentExpression:()=>vq,getExportInfoMap:()=>P6,getExportNeedsImportStarHelper:()=>bye,getExpressionAssociativity:()=>Sq,getExpressionPrecedence:()=>e7,getExternalHelpersModuleName:()=>l8,getExternalModuleImportEqualsDeclarationExpression:()=>dk,getExternalModuleName:()=>sC,getExternalModuleNameFromDeclaration:()=>a_e,getExternalModuleNameFromPath:()=>kq,getExternalModuleNameLiteral:()=>r2,getExternalModuleRequireArgument:()=>oq,getFallbackOptions:()=>Q8,getFileEmitOutput:()=>Ave,getFileMatcherPatterns:()=>Pk,getFileNamesFromConfigSpecs:()=>x8,getFileWatcherEventKind:()=>Oue,getFilesInErrorForSummary:()=>YF,getFirstConstructorWithBody:()=>Dh,getFirstIdentifier:()=>Ff,getFirstNonSpaceCharacterPosition:()=>Dbe,getFirstProjectOutput:()=>AY,getFixableErrorSpanExpression:()=>oZ,getFormatCodeSettingsForWriting:()=>K9,getFullWidth:()=>TN,getFunctionFlags:()=>Jc,getHeritageClause:()=>eO,getHostSignatureFromJSDoc:()=>cb,getIdentifierAutoGenerate:()=>zMe,getIdentifierGeneratedImportReference:()=>Ype,getIdentifierTypeArguments:()=>UT,getImmediatelyInvokedFunctionExpression:()=>LT,getImpliedNodeFormatForFile:()=>FF,getImpliedNodeFormatForFileWorker:()=>HY,getImportNeedsImportDefaultHelper:()=>nY,getImportNeedsImportStarHelper:()=>TF,getIndentSize:()=>gC,getIndentString:()=>t7,getInitializedVariables:()=>Ik,getInitializerOfBinaryExpression:()=>fq,getInitializerOfBindingOrAssignmentElement:()=>u8,getInterfaceBaseTypeNodes:()=>mk,getInternalEmitFlags:()=>z_,getInvokedExpression:()=>B3,getIsolatedModules:()=>Y_,getJSDocAugmentsTag:()=>Tde,getJSDocClassTag:()=>iz,getJSDocCommentRanges:()=>eq,getJSDocCommentsAndTags:()=>pq,getJSDocDeprecatedTag:()=>az,getJSDocDeprecatedTagNoCache:()=>kde,getJSDocEnumTag:()=>oz,getJSDocHost:()=>Cx,getJSDocImplementsTags:()=>Sde,getJSDocOverrideTagNoCache:()=>Ide,getJSDocParameterTags:()=>qI,getJSDocParameterTagsNoCache:()=>gde,getJSDocPrivateTag:()=>KPe,getJSDocPrivateTagNoCache:()=>Ade,getJSDocProtectedTag:()=>XPe,getJSDocProtectedTagNoCache:()=>Cde,getJSDocPublicTag:()=>JPe,getJSDocPublicTagNoCache:()=>xde,getJSDocReadonlyTag:()=>YPe,getJSDocReadonlyTagNoCache:()=>Lde,getJSDocReturnTag:()=>wde,getJSDocReturnType:()=>uN,getJSDocRoot:()=>_k,getJSDocSatisfiesExpressionType:()=>AJ,getJSDocSatisfiesTag:()=>sz,getJSDocTags:()=>k1,getJSDocTagsNoCache:()=>QPe,getJSDocTemplateTag:()=>$Pe,getJSDocThisTag:()=>r3,getJSDocType:()=>Pv,getJSDocTypeAliasName:()=>FK,getJSDocTypeAssertionType:()=>A5,getJSDocTypeParameterDeclarations:()=>i7,getJSDocTypeParameterTags:()=>vde,getJSDocTypeParameterTagsNoCache:()=>bde,getJSDocTypeTag:()=>I1,getJSXImplicitImportBase:()=>h7,getJSXRuntimeImport:()=>g7,getJSXTransformEnabled:()=>iJ,getKeyForCompilerOptions:()=>AX,getLanguageVariant:()=>gO,getLastChild:()=>$q,getLeadingCommentRanges:()=>xh,getLeadingCommentRangesOfNode:()=>Zz,getLeftmostAccessExpression:()=>Dk,getLeftmostExpression:()=>Rk,getLineAndCharacterOfPosition:()=>cl,getLineInfo:()=>fye,getLineOfLocalPosition:()=>bk,getLineOfLocalPositionFromLineMap:()=>NT,getLineStartPositionForPosition:()=>w_,getLineStarts:()=>hg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>M_e,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>P_e,getLinesBetweenPositions:()=>UI,getLinesBetweenRangeEndAndRangeStart:()=>Jq,getLinesBetweenRangeEndPositions:()=>Y4e,getLiteralText:()=>pfe,getLocalNameForExternalImport:()=>JC,getLocalSymbolForExportDefault:()=>vC,getLocaleSpecificMessage:()=>Po,getLocaleTimeString:()=>o6,getMappedContextSpan:()=>bbe,getMappedDocumentSpan:()=>HQ,getMappedLocation:()=>k6,getMatchedFileSpec:()=>_$,getMatchedIncludeSpec:()=>p$,getMeaningFromDeclaration:()=>_6,getMeaningFromLocation:()=>aS,getMembersOfDeclaration:()=>Cfe,getModeForFileReference:()=>e6,getModeForResolutionAtIndex:()=>BY,getModeForUsageLocation:()=>wp,getModifiedTime:()=>fx,getModifiers:()=>hT,getModuleInstanceState:()=>Dg,getModuleNameStringLiteralAt:()=>VF,getModuleSpecifierEndingPreference:()=>fJ,getModuleSpecifierResolverHost:()=>GQ,getNameForExportedSymbol:()=>z9,getNameFromIndexInfo:()=>Tfe,getNameFromPropertyName:()=>C6,getNameOfAccessExpression:()=>G_e,getNameOfCompilerOptionValue:()=>eX,getNameOfDeclaration:()=>Ia,getNameOfExpando:()=>uq,getNameOfJSDocTypedef:()=>mde,getNameOrArgument:()=>GN,getNameTable:()=>JZ,getNamesForExportedSymbol:()=>Wbe,getNamespaceDeclarationNode:()=>lC,getNewLineCharacter:()=>_b,getNewLineKind:()=>O6,getNewLineOrDefaultFromHost:()=>Tb,getNewTargetContainer:()=>Pfe,getNextJSDocCommentLocation:()=>mq,getNodeForGeneratedName:()=>w5,getNodeId:()=>hs,getNodeKind:()=>cE,getNodeModifiers:()=>Fw,getNodeModulePathParts:()=>EJ,getNonAssignedNameOfDeclaration:()=>nz,getNonAssignmentOperatorForCompoundAssignment:()=>xw,getNonAugmentationDeclaration:()=>Wz,getNonDecoratorTokenPosOfNode:()=>Bz,getNormalizedAbsolutePath:()=>Oa,getNormalizedAbsolutePathWithoutRoot:()=>jW,getNormalizedPathComponents:()=>$R,getObjectFlags:()=>ri,getOperator:()=>Aq,getOperatorAssociativity:()=>xq,getOperatorPrecedence:()=>rO,getOptionFromName:()=>YK,getOptionsNameMap:()=>QC,getOrCreateEmitNode:()=>cd,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Ome,getOrUpdate:()=>RA,getOriginalNode:()=>Cl,getOriginalNodeId:()=>Nl,getOriginalSourceFile:()=>F4e,getOutputDeclarationFileName:()=>Iw,getOutputExtension:()=>xY,getOutputFileNames:()=>zFe,getOutputPathsFor:()=>Lw,getOutputPathsForBundle:()=>Cw,getOwnEmitOutputFilePath:()=>o_e,getOwnKeys:()=>_g,getOwnValues:()=>ix,getPackageJsonInfo:()=>l2,getPackageJsonTypesVersionsPaths:()=>$5,getPackageJsonsVisibleToFile:()=>Bbe,getPackageNameFromTypesPackageName:()=>B8,getPackageScopeForPath:()=>rF,getParameterSymbolFromJSDoc:()=>XN,getParameterTypeNode:()=>CMe,getParentNodeInSpan:()=>I6,getParseTreeNode:()=>va,getParsedCommandLineOfConfigFile:()=>g8,getPathComponents:()=>pd,getPathComponentsRelativeTo:()=>qW,getPathFromPathComponents:()=>C1,getPathUpdater:()=>EZ,getPathsBasePath:()=>Rq,getPatternFromSpec:()=>lJ,getPendingEmitKind:()=>aL,getPositionOfLineAndCharacter:()=>nN,getPossibleGenericSignatures:()=>IQ,getPossibleOriginalInputExtensionForExtension:()=>l_e,getPossibleTypeArgumentsInfo:()=>kQ,getPreEmitDiagnostics:()=>a9e,getPrecedingNonSpaceCharacterPosition:()=>XQ,getPrivateIdentifier:()=>lY,getProperties:()=>aY,getProperty:()=>wR,getPropertyArrayElementValue:()=>Rfe,getPropertyAssignment:()=>rC,getPropertyAssignmentAliasLikeExpression:()=>Zfe,getPropertyNameForPropertyNameNode:()=>U1,getPropertyNameForUniqueESSymbol:()=>P4e,getPropertyNameOfBindingOrAssignmentElement:()=>MK,getPropertySymbolFromBindingElement:()=>w9,getPropertySymbolsFromContextualType:()=>hB,getQuoteFromPreference:()=>ybe,getQuotePreference:()=>Rp,getRangesWhere:()=>pH,getRefactorContextSpan:()=>_2,getReferencedFileLocation:()=>ww,getRegexFromPattern:()=>qv,getRegularExpressionForWildcard:()=>Ok,getRegularExpressionsForWildcards:()=>y7,getRelativePathFromDirectory:()=>Gm,getRelativePathFromFile:()=>QR,getRelativePathToDirectoryOrUrl:()=>_x,getRenameLocation:()=>R6,getReplacementSpanForContextToken:()=>NQ,getResolutionDiagnostic:()=>qY,getResolutionModeOverrideForClause:()=>c2,getResolveJsonModule:()=>BT,getResolvePackageJsonExports:()=>rJ,getResolvePackageJsonImports:()=>fMe,getResolvedExternalModuleName:()=>n7,getResolvedModule:()=>YA,getResolvedTypeReferenceDirective:()=>u4e,getRestIndicatorOfBindingOrAssignmentElement:()=>L5,getRestParameterElementType:()=>nq,getRightMostAssignedExpression:()=>FN,getRootDeclaration:()=>qm,getRootLength:()=>nm,getScriptKind:()=>KQ,getScriptKindFromFileName:()=>dJ,getScriptTargetFeatures:()=>Gz,getSelectedEffectiveModifierFlags:()=>Dx,getSelectedSyntacticModifierFlags:()=>b_e,getSemanticClassifications:()=>t1e,getSemanticJsxChildren:()=>aO,getSetAccessorTypeAnnotationNode:()=>u_e,getSetAccessorValueParameter:()=>Ek,getSetExternalModuleIndicator:()=>yO,getShebang:()=>YM,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>_q,getSingleVariableOfVariableStatement:()=>uC,getSnapshotText:()=>x9,getSnippetElement:()=>ZJ,getSourceFileOfModule:()=>y3,getSourceFileOfNode:()=>er,getSourceFilePathInNewDir:()=>r7,getSourceFilePathInNewDirWorker:()=>Oq,getSourceFileVersionAsHashFromText:()=>QF,getSourceFilesToEmit:()=>Nq,getSourceMapRange:()=>hb,getSourceMapper:()=>x1e,getSourceTextOfNodeFromSourceFile:()=>N1,getSpanOfTokenAtPosition:()=>ky,getSpellingSuggestion:()=>DI,getStartPositionOfLine:()=>Vv,getStartPositionOfRange:()=>Lk,getStartsOnNewLine:()=>UO,getStaticPropertiesAndClassStaticBlock:()=>xF,getStrictOptionValue:()=>C_,getStringComparer:()=>gM,getSuperCallFromStatement:()=>iY,getSuperContainer:()=>kN,getSupportedCodeFixes:()=>fEe,getSupportedExtensions:()=>Mk,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>TO,getSwitchedType:()=>tZ,getSymbolId:()=>Eo,getSymbolNameForPrivateIdentifier:()=>tO,getSymbolTarget:()=>kbe,getSyntacticClassifications:()=>a1e,getSyntacticModifierFlags:()=>Wv,getSyntacticModifierFlagsNoCache:()=>Uq,getSynthesizedDeepClone:()=>Ol,getSynthesizedDeepCloneWithReplacements:()=>D6,getSynthesizedDeepClones:()=>uE,getSynthesizedDeepClonesWithReplacements:()=>YQ,getSyntheticLeadingComments:()=>wC,getSyntheticTrailingComments:()=>jO,getTargetLabel:()=>u9,getTargetOfBindingOrAssignmentElement:()=>Qv,getTemporaryModuleResolutionState:()=>nF,getTextOfConstantValue:()=>mfe,getTextOfIdentifierOrLiteral:()=>K_,getTextOfJSDocComment:()=>dN,getTextOfNode:()=>kc,getTextOfNodeFromSourceText:()=>ak,getTextOfPropertyName:()=>QA,getThisContainer:()=>kd,getThisParameter:()=>V1,getTokenAtPosition:()=>oa,getTokenPosOfNode:()=>ST,getTokenSourceMapRange:()=>HMe,getTouchingPropertyName:()=>Vf,getTouchingToken:()=>Mw,getTrailingCommentRanges:()=>nb,getTrailingSemicolonDeferringWriter:()=>Iq,getTransformFlagsSubtreeExclusions:()=>Gpe,getTransformers:()=>EY,getTsBuildInfoEmitOutputFilePath:()=>Uy,getTsConfigObjectLiteralExpression:()=>lk,getTsConfigPropArray:()=>IN,getTsConfigPropArrayElementValue:()=>O3,getTypeAnnotationNode:()=>d_e,getTypeArgumentOrTypeParameterList:()=>lbe,getTypeKeywordOfTypeOnlyImport:()=>VQ,getTypeNode:()=>Kpe,getTypeNodeIfAccessible:()=>Hw,getTypeParameterFromJsDoc:()=>Jfe,getTypeParameterOwner:()=>zPe,getTypesPackageName:()=>oF,getUILocale:()=>Zce,getUniqueName:()=>uS,getUniqueSymbolId:()=>wbe,getUseDefineForClassFields:()=>EO,getWatchErrorSummaryDiagnosticMessage:()=>u$,getWatchFactory:()=>mve,group:()=>wI,groupBy:()=>Jce,guessIndentation:()=>Zde,handleNoEmitOptions:()=>WY,hasAbstractModifier:()=>H1,hasAccessorModifier:()=>Jm,hasAmbientModifier:()=>Bq,hasChangesInResolutions:()=>Pz,hasChildOfKind:()=>v6,hasContextSensitiveParameters:()=>S7,hasDecorators:()=>o_,hasDocComment:()=>sbe,hasDynamicName:()=>Hv,hasEffectiveModifier:()=>zd,hasEffectiveModifiers:()=>a7,hasEffectiveReadonlyModifier:()=>Tk,hasExtension:()=>BA,hasIndexSignature:()=>eZ,hasInitializer:()=>Uv,hasInvalidEscape:()=>Cq,hasJSDocNodes:()=>Of,hasJSDocParameterTags:()=>Ede,hasJSFileExtension:()=>Mx,hasJsonModuleEmitEnabled:()=>f7,hasOnlyExpressionInitializer:()=>ET,hasOverrideModifier:()=>Fq,hasPossibleExternalModuleReference:()=>bfe,hasProperty:()=>Fs,hasPropertyAccessExpressionWithName:()=>p6,hasQuestionToken:()=>Ax,hasRecordedExternalHelpers:()=>Nme,hasRestParameter:()=>kz,hasScopeMarker:()=>Jde,hasStaticModifier:()=>Sc,hasSyntacticModifier:()=>$r,hasSyntacticModifiers:()=>v_e,hasTSFileExtension:()=>SO,hasTabstop:()=>gpe,hasTrailingDirectorySeparator:()=>wv,hasType:()=>m3,hasTypeArguments:()=>D4e,hasZeroOrOneAsteriskCharacter:()=>aJ,helperString:()=>nK,hostGetCanonicalFileName:()=>db,hostUsesCaseSensitiveFileNames:()=>cO,idText:()=>Mr,identifierIsThisKeyword:()=>Mq,identifierToKeywordKind:()=>ib,identity:()=>yl,identitySourceMapConsumer:()=>EF,ignoreSourceNewlines:()=>tK,ignoredPaths:()=>XR,importDefaultHelper:()=>r5,importFromModuleSpecifier:()=>WN,importNameElisionDisabled:()=>_7,importStarHelper:()=>WO,indexOfAnyCharCode:()=>mc,indexOfNode:()=>$A,indicesOf:()=>LR,inferredTypesContainingFile:()=>WF,insertImports:()=>D9,insertLeadingStatement:()=>_3e,insertSorted:()=>Iv,insertStatementAfterCustomPrologue:()=>R1,insertStatementAfterStandardPrologue:()=>p4e,insertStatementsAfterCustomPrologue:()=>Mz,insertStatementsAfterStandardPrologue:()=>Wm,intersperse:()=>ta,introducesArgumentsExoticObject:()=>wfe,inverseJsxOptionMap:()=>pw,isAbstractConstructorSymbol:()=>F_e,isAbstractModifier:()=>sme,isAccessExpression:()=>dl,isAccessibilityModifier:()=>RQ,isAccessor:()=>ab,isAccessorModifier:()=>cme,isAliasSymbolDeclaration:()=>R4e,isAliasableExpression:()=>ZN,isAmbientModule:()=>ju,isAmbientPropertyDeclaration:()=>qz,isAnonymousFunctionDefinition:()=>gk,isAnyDirectorySeparator:()=>UW,isAnyImportOrBareOrAccessedRequire:()=>vfe,isAnyImportOrReExport:()=>AN,isAnyImportSyntax:()=>xT,isAnySupportedFileExtension:()=>EMe,isApplicableVersionedTypesKey:()=>F8,isArgumentExpressionOfElementAccess:()=>yQ,isArray:()=>Va,isArrayBindingElement:()=>d3,isArrayBindingOrAssignmentElement:()=>hN,isArrayBindingOrAssignmentPattern:()=>bz,isArrayBindingPattern:()=>BC,isArrayLiteralExpression:()=>zu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>jy,isArrayTypeNode:()=>uK,isArrowFunction:()=>Xs,isAsExpression:()=>$O,isAssertClause:()=>g5,isAssertEntry:()=>gme,isAssertionExpression:()=>bT,isAssertionKey:()=>Ode,isAssertsKeyword:()=>ame,isAssignmentDeclaration:()=>fk,isAssignmentExpression:()=>ld,isAssignmentOperator:()=>wy,isAssignmentPattern:()=>ZI,isAssignmentTarget:()=>wh,isAsteriskToken:()=>JO,isAsyncFunction:()=>mC,isAsyncModifier:()=>Xk,isAutoAccessorPropertyDeclaration:()=>_f,isAwaitExpression:()=>UC,isAwaitKeyword:()=>cK,isBigIntLiteral:()=>l5,isBinaryExpression:()=>br,isBinaryOperatorToken:()=>Hme,isBindableObjectDefinePropertyCall:()=>Tx,isBindableStaticAccessExpression:()=>kT,isBindableStaticElementAccessExpression:()=>q3,isBindableStaticNameExpression:()=>Sx,isBindingElement:()=>ms,isBindingElementOfBareOrAccessedRequire:()=>Bfe,isBindingName:()=>Ch,isBindingOrAssignmentElement:()=>Gde,isBindingOrAssignmentPattern:()=>pN,isBindingPattern:()=>Ya,isBlock:()=>uo,isBlockOrCatchScoped:()=>Uz,isBlockScope:()=>Jz,isBlockScopedContainerTopLevel:()=>yfe,isBooleanLiteral:()=>Pde,isBreakOrContinueStatement:()=>YI,isBreakStatement:()=>e3e,isBuildInfoFile:()=>nve,isBuilderProgram:()=>qve,isBundle:()=>yK,isBundleFileTextLike:()=>U_e,isCallChain:()=>gT,isCallExpression:()=>io,isCallExpressionTarget:()=>_Q,isCallLikeExpression:()=>yx,isCallOrNewExpression:()=>bg,isCallOrNewExpressionTarget:()=>pQ,isCallSignatureDeclaration:()=>OC,isCallToHelper:()=>Kk,isCaseBlock:()=>t8,isCaseClause:()=>ow,isCaseKeyword:()=>ume,isCaseOrDefaultClause:()=>Cz,isCatchClause:()=>jC,isCatchClauseVariableDeclaration:()=>hpe,isCatchClauseVariableDeclarationOrBindingElement:()=>Vz,isCheckJsEnabledForFile:()=>IO,isChildOfNodeWithKind:()=>tq,isCircularBuildOrder:()=>d2,isClassDeclaration:()=>Bc,isClassElement:()=>qc,isClassExpression:()=>qu,isClassLike:()=>_i,isClassMemberModifier:()=>gz,isClassOrTypeElement:()=>u3,isClassStaticBlockDeclaration:()=>Rl,isCollapsedRange:()=>X4e,isColonToken:()=>nme,isCommaExpression:()=>s8,isCommaListExpression:()=>rw,isCommaSequence:()=>dw,isCommaToken:()=>tme,isComment:()=>b9,isCommonJsExportPropertyAssignment:()=>R3,isCommonJsExportedExpression:()=>Ife,isCompoundAssignment:()=>z8,isComputedNonLiteralName:()=>CN,isComputedPropertyName:()=>Cs,isConciseBody:()=>_3,isConditionalExpression:()=>VC,isConditionalTypeNode:()=>MC,isConstTypeReference:()=>vg,isConstructSignatureDeclaration:()=>XO,isConstructorDeclaration:()=>Yl,isConstructorTypeNode:()=>Qk,isContextualKeyword:()=>Y3,isContinueStatement:()=>ZMe,isCustomPrologue:()=>I3,isDebuggerStatement:()=>t3e,isDeclaration:()=>Au,isDeclarationBindingElement:()=>_N,isDeclarationFileName:()=>yd,isDeclarationName:()=>Ag,isDeclarationNameOfEnumOrNamespace:()=>hO,isDeclarationReadonly:()=>L3,isDeclarationStatement:()=>Xde,isDeclarationWithTypeParameterChildren:()=>Xz,isDeclarationWithTypeParameters:()=>Kz,isDecorator:()=>Wu,isDecoratorTarget:()=>W0e,isDefaultClause:()=>r8,isDefaultImport:()=>xx,isDefaultModifier:()=>ime,isDefaultedExpandoInitializer:()=>Ufe,isDeleteExpression:()=>_me,isDeleteTarget:()=>gq,isDeprecatedDeclaration:()=>q9,isDestructuringAssignment:()=>Dy,isDiagnosticWithLocation:()=>aZ,isDiskPathRoot:()=>IPe,isDoStatement:()=>$Me,isDotDotDotToken:()=>c5,isDottedName:()=>xk,isDynamicName:()=>Z3,isESSymbolIdentifier:()=>M4e,isEffectiveExternalModule:()=>bx,isEffectiveModuleDeclaration:()=>gfe,isEffectiveStrictModeSourceFile:()=>zz,isElementAccessChain:()=>cz,isElementAccessExpression:()=>fl,isEmittedFileOfProgram:()=>pve,isEmptyArrayLiteral:()=>I_e,isEmptyBindingElement:()=>_de,isEmptyBindingPattern:()=>fde,isEmptyObjectLiteral:()=>Wq,isEmptyStatement:()=>pK,isEmptyStringLiteral:()=>aq,isEndOfDeclarationMarker:()=>i3e,isEntityName:()=>ff,isEntityNameExpression:()=>Xl,isEnumConst:()=>M1,isEnumDeclaration:()=>yb,isEnumMember:()=>Q1,isEqualityOperatorKind:()=>P9,isEqualsGreaterThanToken:()=>rme,isExclamationToken:()=>KO,isExcludedFile:()=>qhe,isExclusivelyTypeOnlyImportOrExport:()=>GY,isExportAssignment:()=>Vl,isExportDeclaration:()=>au,isExportModifier:()=>d5,isExportName:()=>x5,isExportNamespaceAsDefaultDeclaration:()=>T3,isExportOrDefaultModifier:()=>GK,isExportSpecifier:()=>gd,isExportsIdentifier:()=>IT,isExportsOrModuleExportsOrAlias:()=>tE,isExpression:()=>vt,isExpressionNode:()=>Sg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>K0e,isExpressionOfOptionalChainRoot:()=>o3,isExpressionStatement:()=>fu,isExpressionWithTypeArguments:()=>Py,isExpressionWithTypeArgumentsInClassExtendsClause:()=>fO,isExternalModule:()=>rc,isExternalModuleAugmentation:()=>O1,isExternalModuleImportEqualsDeclaration:()=>sb,isExternalModuleIndicator:()=>gN,isExternalModuleNameRelative:()=>zc,isExternalModuleReference:()=>eh,isExternalModuleSymbol:()=>x6,isExternalOrCommonJsModule:()=>mf,isFileLevelUniqueName:()=>b3,isFileProbablyExternalModule:()=>_8,isFirstDeclarationOfSymbolParameter:()=>WQ,isFixablePromiseHandler:()=>RZ,isForInOrOfStatement:()=>JA,isForInStatement:()=>mK,isForInitializer:()=>rm,isForOfStatement:()=>QO,isForStatement:()=>HT,isFunctionBlock:()=>CT,isFunctionBody:()=>Tz,isFunctionDeclaration:()=>xc,isFunctionExpression:()=>Us,isFunctionExpressionOrArrowFunction:()=>CC,isFunctionLike:()=>Xa,isFunctionLikeDeclaration:()=>el,isFunctionLikeKind:()=>gx,isFunctionLikeOrClassStaticBlockDeclaration:()=>WA,isFunctionOrConstructorTypeNode:()=>Bde,isFunctionOrModuleBlock:()=>yz,isFunctionSymbol:()=>jfe,isFunctionTypeNode:()=>Mh,isFutureReservedKeyword:()=>N4e,isGeneratedIdentifier:()=>Ll,isGeneratedPrivateIdentifier:()=>hx,isGetAccessor:()=>Gv,isGetAccessorDeclaration:()=>Z_,isGetOrSetAccessorDeclaration:()=>i3,isGlobalDeclaration:()=>QBe,isGlobalScopeAugmentation:()=>im,isGrammarError:()=>cfe,isHeritageClause:()=>Kd,isHoistedFunction:()=>k3,isHoistedVariableStatement:()=>w3,isIdentifier:()=>je,isIdentifierANonContextualKeyword:()=>$3,isIdentifierName:()=>Qfe,isIdentifierOrThisTypeNode:()=>Gme,isIdentifierPart:()=>rb,isIdentifierStart:()=>Ah,isIdentifierText:()=>H_,isIdentifierTypePredicate:()=>Dfe,isIdentifierTypeReference:()=>dpe,isIfStatement:()=>jT,isIgnoredFileFromWildCardWatching:()=>NF,isImplicitGlob:()=>sJ,isImportCall:()=>hf,isImportClause:()=>Zm,isImportDeclaration:()=>Yc,isImportEqualsDeclaration:()=>_u,isImportKeyword:()=>$k,isImportMeta:()=>tC,isImportOrExportSpecifier:()=>mx,isImportOrExportSpecifierName:()=>Ibe,isImportSpecifier:()=>Nd,isImportTypeAssertionContainer:()=>hme,isImportTypeNode:()=>kg,isImportableFile:()=>pZ,isInComment:()=>Vy,isInExpressionContext:()=>U3,isInJSDoc:()=>NN,isInJSFile:()=>fr,isInJSXText:()=>abe,isInJsonFile:()=>j3,isInNonReferenceComment:()=>_be,isInReferenceComment:()=>fbe,isInRightSideOfInternalImportEqualsDeclaration:()=>s9,isInString:()=>lS,isInTemplateString:()=>LQ,isInTopLevelContext:()=>M3,isIncrementalCompilation:()=>vO,isIndexSignatureDeclaration:()=>Wx,isIndexedAccessTypeNode:()=>Kx,isInferTypeNode:()=>FC,isInfinityOrNaNString:()=>jk,isInitializedProperty:()=>q8,isInitializedVariable:()=>Kq,isInsideJsxElement:()=>y9,isInsideJsxElementOrAttribute:()=>ibe,isInsideNodeModules:()=>Ube,isInsideTemplateLiteral:()=>T6,isInstantiatedModule:()=>zX,isInterfaceDeclaration:()=>ud,isInternalDeclaration:()=>yY,isInternalModuleImportEqualsDeclaration:()=>aC,isInternalName:()=>NK,isIntersectionTypeNode:()=>YO,isIntrinsicJsxName:()=>yk,isIterationStatement:()=>Bv,isJSDoc:()=>th,isJSDocAllType:()=>Tme,isJSDocAugmentsTag:()=>zC,isJSDocAuthorTag:()=>s3e,isJSDocCallbackTag:()=>bK,isJSDocClassTag:()=>xme,isJSDocCommentContainingNode:()=>Lz,isJSDocConstructSignature:()=>cC,isJSDocDeprecatedTag:()=>AK,isJSDocEnumTag:()=>i8,isJSDocFunctionType:()=>WC,isJSDocImplementsTag:()=>LK,isJSDocIndexSignature:()=>H3,isJSDocLikeText:()=>VK,isJSDocLink:()=>bme,isJSDocLinkCode:()=>Eme,isJSDocLinkLike:()=>vx,isJSDocLinkPlain:()=>a3e,isJSDocMemberName:()=>vb,isJSDocNameReference:()=>sw,isJSDocNamepathType:()=>o3e,isJSDocNamespaceBody:()=>a4e,isJSDocNode:()=>KA,isJSDocNonNullableType:()=>y5,isJSDocNullableType:()=>HC,isJSDocOptionalParameter:()=>DO,isJSDocOptionalType:()=>vK,isJSDocOverloadTag:()=>cw,isJSDocOverrideTag:()=>b5,isJSDocParameterTag:()=>_m,isJSDocPrivateTag:()=>TK,isJSDocPropertyLikeTag:()=>l3,isJSDocPropertyTag:()=>Cme,isJSDocProtectedTag:()=>SK,isJSDocPublicTag:()=>EK,isJSDocReadonlyTag:()=>xK,isJSDocReturnTag:()=>E5,isJSDocSatisfiesExpression:()=>xJ,isJSDocSatisfiesTag:()=>T5,isJSDocSeeTag:()=>l3e,isJSDocSignature:()=>Z1,isJSDocTag:()=>tk,isJSDocTemplateTag:()=>kp,isJSDocThisTag:()=>Ame,isJSDocThrowsTag:()=>u3e,isJSDocTypeAlias:()=>S_,isJSDocTypeAssertion:()=>fw,isJSDocTypeExpression:()=>qT,isJSDocTypeLiteral:()=>lw,isJSDocTypeTag:()=>uw,isJSDocTypedefTag:()=>CK,isJSDocUnknownTag:()=>c3e,isJSDocUnknownType:()=>Sme,isJSDocVariadicType:()=>v5,isJSXTagName:()=>uk,isJsonEqual:()=>gJ,isJsonSourceFile:()=>T_,isJsxAttribute:()=>fm,isJsxAttributeLike:()=>p3,isJsxAttributes:()=>$1,isJsxChild:()=>bN,isJsxClosingElement:()=>Zx,isJsxClosingFragment:()=>yme,isJsxElement:()=>Fy,isJsxExpression:()=>aw,isJsxFragment:()=>e2,isJsxOpeningElement:()=>Gh,isJsxOpeningFragment:()=>t2,isJsxOpeningLikeElement:()=>od,isJsxOpeningLikeElementTagName:()=>z0e,isJsxSelfClosingElement:()=>Qx,isJsxSpreadAttribute:()=>WT,isJsxTagNameExpression:()=>ek,isJsxText:()=>Vx,isJumpStatementTarget:()=>m6,isKeyword:()=>Dd,isKnownSymbol:()=>nO,isLabelName:()=>hQ,isLabelOfLabeledStatement:()=>mQ,isLabeledStatement:()=>Y1,isLateVisibilityPaintedStatement:()=>x3,isLeftHandSideExpression:()=>Id,isLeftHandSideOfAssignment:()=>z4e,isLet:()=>sk,isLineBreak:()=>Tu,isLiteralComputedPropertyDeclarationName:()=>QN,isLiteralExpression:()=>yT,isLiteralExpressionOfObject:()=>pz,isLiteralImportTypeNode:()=>ob,isLiteralKind:()=>$I,isLiteralLikeAccess:()=>z3,isLiteralLikeElementAccess:()=>BN,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>d9,isLiteralTypeLikeExpression:()=>T3e,isLiteralTypeLiteral:()=>zde,isLiteralTypeNode:()=>gb,isLocalName:()=>$v,isLogicalOperator:()=>A_e,isLogicalOrCoalescingAssignmentExpression:()=>Vq,isLogicalOrCoalescingAssignmentOperator:()=>Sk,isLogicalOrCoalescingBinaryExpression:()=>dO,isLogicalOrCoalescingBinaryOperator:()=>uO,isMappedTypeNode:()=>tw,isMemberName:()=>yg,isMergeDeclarationMarker:()=>r3e,isMetaProperty:()=>nw,isMethodDeclaration:()=>uc,isMethodOrAccessor:()=>zA,isMethodSignature:()=>Ph,isMinusToken:()=>lK,isMissingDeclaration:()=>n3e,isModifier:()=>_o,isModifierKind:()=>Cy,isModifierLike:()=>il,isModuleAugmentationExternal:()=>Hz,isModuleBlock:()=>dm,isModuleBody:()=>Kde,isModuleDeclaration:()=>$l,isModuleExportsAccessExpression:()=>kh,isModuleIdentifier:()=>dq,isModuleName:()=>jme,isModuleOrEnumDeclaration:()=>yN,isModuleReference:()=>$de,isModuleSpecifierLike:()=>k9,isModuleWithStringLiteralName:()=>S3,isNameOfFunctionDeclaration:()=>bQ,isNameOfModuleDeclaration:()=>vQ,isNamedClassElement:()=>Fde,isNamedDeclaration:()=>Su,isNamedEvaluation:()=>a_,isNamedEvaluationSource:()=>bq,isNamedExportBindings:()=>dz,isNamedExports:()=>tp,isNamedImportBindings:()=>Sz,isNamedImports:()=>My,isNamedImportsOrExports:()=>Zq,isNamedTupleMember:()=>ew,isNamespaceBody:()=>i4e,isNamespaceExport:()=>Bh,isNamespaceExportDeclaration:()=>n8,isNamespaceImport:()=>Yv,isNamespaceReexportDeclaration:()=>Ffe,isNewExpression:()=>X1,isNewExpressionTarget:()=>Nw,isNightly:()=>sO,isNoSubstitutionTemplateLiteral:()=>jx,isNode:()=>t4e,isNodeArray:()=>w1,isNodeArrayMultiLine:()=>O_e,isNodeDescendantOf:()=>DT,isNodeKind:()=>fN,isNodeLikeSystem:()=>LH,isNodeModulesDirectory:()=>qM,isNodeWithPossibleHoistedDeclaration:()=>Kfe,isNonContextualKeyword:()=>e_e,isNonExportDefaultModifier:()=>U3e,isNonGlobalAmbientModule:()=>jz,isNonGlobalDeclaration:()=>Kbe,isNonNullAccess:()=>ype,isNonNullChain:()=>s3,isNonNullExpression:()=>Yx,isNonStaticMethodOrAccessorWithPrivateName:()=>Tye,isNotEmittedOrPartiallyEmittedNode:()=>r4e,isNotEmittedStatement:()=>gK,isNullishCoalesce:()=>uz,isNumber:()=>by,isNumericLiteral:()=>L_,isNumericLiteralName:()=>Oh,isObjectBindingElementWithoutPropertyName:()=>L6,isObjectBindingOrAssignmentElement:()=>mN,isObjectBindingOrAssignmentPattern:()=>vz,isObjectBindingPattern:()=>Qm,isObjectLiteralElement:()=>Iz,isObjectLiteralElementLike:()=>Ly,isObjectLiteralExpression:()=>Is,isObjectLiteralMethod:()=>q_,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>N3,isObjectTypeDeclaration:()=>Nx,isOctalDigit:()=>XW,isOmittedExpression:()=>Fc,isOptionalChain:()=>xu,isOptionalChainRoot:()=>KI,isOptionalDeclaration:()=>SJ,isOptionalJSDocPropertyLikeTag:()=>wO,isOptionalTypeNode:()=>dK,isOuterExpression:()=>C5,isOutermostOptionalChain:()=>XI,isOverrideModifier:()=>lme,isPackedArrayLiteral:()=>vJ,isParameter:()=>Fa,isParameterDeclaration:()=>RT,isParameterOrCatchClauseVariable:()=>bJ,isParameterPropertyDeclaration:()=>df,isParameterPropertyModifier:()=>QI,isParenthesizedExpression:()=>Jd,isParenthesizedTypeNode:()=>qx,isParseTreeNode:()=>zI,isPartOfTypeNode:()=>Ih,isPartOfTypeQuery:()=>V3,isPartiallyEmittedExpression:()=>h5,isPatternMatch:()=>vM,isPinnedComment:()=>E3,isPlainJsFile:()=>v3,isPlusToken:()=>sK,isPossiblyTypeArgumentPosition:()=>E6,isPostfixUnaryExpression:()=>_K,isPrefixUnaryExpression:()=>Xv,isPrivateIdentifier:()=>Oi,isPrivateIdentifierClassElementDeclaration:()=>ad,isPrivateIdentifierPropertyAccessExpression:()=>HA,isPrivateIdentifierSymbol:()=>t_e,isProgramBundleEmitBuildInfo:()=>Ove,isProgramUptoDate:()=>jY,isPrologueDirective:()=>Ap,isPropertyAccessChain:()=>a3,isPropertyAccessEntityNameExpression:()=>_O,isPropertyAccessExpression:()=>Fr,isPropertyAccessOrQualifiedName:()=>Vde,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Ude,isPropertyAssignment:()=>$c,isPropertyDeclaration:()=>ro,isPropertyName:()=>El,isPropertyNameLiteral:()=>J_,isPropertySignature:()=>Bf,isProtoSetter:()=>n_e,isPrototypeAccess:()=>fb,isPrototypePropertyAssignment:()=>VN,isPunctuation:()=>ube,isPushOrUnshiftIdentifier:()=>Eq,isQualifiedName:()=>Rd,isQuestionDotToken:()=>u5,isQuestionOrExclamationToken:()=>Bme,isQuestionOrPlusOrMinusToken:()=>Vme,isQuestionToken:()=>Kv,isRawSourceMap:()=>pye,isReadonlyKeyword:()=>ome,isReadonlyKeywordOrPlusOrMinusToken:()=>Ume,isRecognizedTripleSlashComment:()=>Fz,isReferenceFileLocation:()=>iL,isReferencedFile:()=>Eb,isRegularExpressionLiteral:()=>aK,isRequireCall:()=>wd,isRequireVariableStatement:()=>cq,isRestParameter:()=>Lh,isRestTypeNode:()=>fK,isReturnStatement:()=>Ip,isReturnStatementWithFixablePromiseHandler:()=>oB,isRightSideOfAccessExpression:()=>C_e,isRightSideOfPropertyAccess:()=>cL,isRightSideOfQualifiedName:()=>J0e,isRightSideOfQualifiedNameOrPropertyAccess:()=>Ak,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>L_e,isRootedDiskPath:()=>Bm,isSameEntityName:()=>oC,isSatisfiesExpression:()=>XMe,isScopeMarker:()=>qde,isSemicolonClassElement:()=>pme,isSetAccessor:()=>Iy,isSetAccessorDeclaration:()=>c_,isShebangTrivia:()=>YW,isShorthandAmbientModuleSymbol:()=>ok,isShorthandPropertyAssignment:()=>u_,isSignedNumericLiteral:()=>Q3,isSimpleCopiableExpression:()=>rE,isSimpleInlineableExpression:()=>pm,isSingleOrDoubleQuote:()=>ON,isSourceFile:()=>Ji,isSourceFileFromLibrary:()=>zw,isSourceFileJS:()=>sd,isSourceFileNotJS:()=>A4e,isSourceFileNotJson:()=>sq,isSourceMapping:()=>mye,isSpecialPropertyDeclaration:()=>Vfe,isSpreadAssignment:()=>n2,isSpreadElement:()=>Fh,isStatement:()=>ka,isStatementButNotDeclaration:()=>vN,isStatementOrBlock:()=>Yde,isStatementWithLocals:()=>lfe,isStatic:()=>Ja,isStaticModifier:()=>Hx,isString:()=>Ha,isStringAKeyword:()=>O4e,isStringANonContextualKeyword:()=>Lx,isStringAndEmptyAnonymousObjectIntersection:()=>cbe,isStringDoubleQuoted:()=>W3,isStringLiteral:()=>Ho,isStringLiteralLike:()=>As,isStringLiteralOrJsxExpression:()=>Qde,isStringLiteralOrTemplate:()=>Obe,isStringOrNumericLiteralLike:()=>i_,isStringOrRegularExpressionOrTemplateLiteral:()=>DQ,isStringTextContainingNode:()=>hz,isSuperCall:()=>eC,isSuperKeyword:()=>Yk,isSuperOrSuperProperty:()=>x4e,isSuperProperty:()=>hd,isSupportedSourceFileName:()=>ope,isSwitchStatement:()=>ZO,isSyntaxList:()=>qC,isSyntheticExpression:()=>YMe,isSyntheticReference:()=>$x,isTagName:()=>gQ,isTaggedTemplateExpression:()=>VT,isTaggedTemplateTag:()=>H0e,isTemplateExpression:()=>p5,isTemplateHead:()=>NC,isTemplateLiteral:()=>qA,isTemplateLiteralKind:()=>Fv,isTemplateLiteralToken:()=>Rde,isTemplateLiteralTypeNode:()=>KMe,isTemplateLiteralTypeSpan:()=>dme,isTemplateMiddle:()=>eme,isTemplateMiddleOrTemplateTail:()=>c3,isTemplateSpan:()=>iw,isTemplateTail:()=>oK,isTextWhiteSpaceLike:()=>vbe,isThis:()=>uL,isThisContainerOrFunctionBlock:()=>Ofe,isThisIdentifier:()=>OT,isThisInTypeQuery:()=>wx,isThisInitializedDeclaration:()=>F3,isThisInitializedObjectBindingExpression:()=>Mfe,isThisProperty:()=>wN,isThisTypeNode:()=>_5,isThisTypeParameter:()=>Hk,isThisTypePredicate:()=>T4e,isThrowStatement:()=>hK,isToken:()=>px,isTokenKind:()=>_z,isTraceEnabled:()=>e0,isTransientSymbol:()=>Hm,isTrivia:()=>pC,isTryStatement:()=>e8,isTupleTypeNode:()=>PC,isTypeAlias:()=>qN,isTypeAliasDeclaration:()=>um,isTypeAssertionExpression:()=>fme,isTypeDeclaration:()=>LC,isTypeElement:()=>vT,isTypeKeyword:()=>Bw,isTypeKeywordToken:()=>MQ,isTypeKeywordTokenOrIdentifier:()=>S9,isTypeLiteralNode:()=>yf,isTypeNode:()=>Gi,isTypeNodeKind:()=>Qq,isTypeOfExpression:()=>GC,isTypeOnlyExportDeclaration:()=>Nde,isTypeOnlyImportDeclaration:()=>mz,isTypeOnlyImportOrExportDeclaration:()=>D1,isTypeOperatorNode:()=>Jx,isTypeParameterDeclaration:()=>Ul,isTypePredicateNode:()=>f5,isTypeQueryNode:()=>Zk,isTypeReferenceNode:()=>ep,isTypeReferenceType:()=>h3,isUMDExportSymbol:()=>c7,isUnaryExpression:()=>Ez,isUnaryExpressionWithWrite:()=>Wde,isUnicodeIdentifierStart:()=>JM,isUnionTypeNode:()=>zx,isUnparsedNode:()=>fz,isUnparsedPrepend:()=>vme,isUnparsedSource:()=>zT,isUnparsedTextLike:()=>Dde,isUrl:()=>Uue,isValidBigIntString:()=>T7,isValidESSymbolDeclaration:()=>kfe,isValidTypeOnlyAliasUseSite:()=>Fx,isValueSignatureDeclaration:()=>Xfe,isVarConst:()=>Tg,isVariableDeclaration:()=>Xi,isVariableDeclarationInVariableStatement:()=>D3,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>B1,isVariableDeclarationInitializedToRequire:()=>lq,isVariableDeclarationList:()=>Ju,isVariableLike:()=>nC,isVariableLikeOrAccessor:()=>Lfe,isVariableStatement:()=>gc,isVoidExpression:()=>Xx,isWatchSet:()=>Q4e,isWhileStatement:()=>QMe,isWhiteSpaceLike:()=>gg,isWhiteSpaceSingleLine:()=>Um,isWithStatement:()=>mme,isWriteAccess:()=>wk,isWriteOnlyAccess:()=>Xq,isYieldExpression:()=>m5,jsxModeNeedsExplicitImport:()=>uZ,keywordPart:()=>Yd,last:()=>Jo,lastOrUndefined:()=>rl,length:()=>Le,libMap:()=>L8,libs:()=>C8,lineBreakPart:()=>pL,linkNamePart:()=>Cbe,linkPart:()=>qQ,linkTextPart:()=>R9,listFiles:()=>d$,loadModuleFromGlobalCache:()=>Mge,loadWithModeAwareCache:()=>t6,makeIdentifierFromModuleName:()=>hfe,makeImport:()=>Hy,makeImportIfNecessary:()=>gbe,makeStringLiteral:()=>C9,mangleScopedPackageName:()=>bw,map:()=>zt,mapAllOrFail:()=>Z0,mapDefined:()=>pa,mapDefinedEntries:()=>_H,mapDefinedIterator:()=>h1,mapEntries:()=>Gce,mapIterator:()=>us,mapOneOrMany:()=>Hbe,mapToDisplayParts:()=>i0,matchFiles:()=>uJ,matchPatternOrExact:()=>_J,matchedText:()=>aue,matchesExclude:()=>V5,maybeBind:()=>Vo,maybeSetLocalizedDiagnosticMessages:()=>W_e,memoize:()=>Ld,memoizeCached:()=>Yce,memoizeOne:()=>Mm,memoizeWeak:()=>F6e,metadataHelper:()=>B7,min:()=>SH,minAndMax:()=>cpe,missingFileModifiedTime:()=>pg,modifierToFlag:()=>Rx,modifiersToFlags:()=>Km,moduleOptionDeclaration:()=>_X,moduleResolutionIsEqualTo:()=>ofe,moduleResolutionNameAndModeGetter:()=>Rw,moduleResolutionOptionDeclarations:()=>H5,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Px,moduleResolutionUsesNodeModules:()=>A9,moduleSpecifiers:()=>nE,moveEmitHelpers:()=>qpe,moveRangeEnd:()=>s7,moveRangePastDecorators:()=>zv,moveRangePastModifiers:()=>sm,moveRangePos:()=>pb,moveSyntheticComments:()=>Hpe,mutateMap:()=>EC,mutateMapSkippingNewValues:()=>Cg,needsParentheses:()=>ZQ,needsScopeMarker:()=>f3,newCaseClauseTracker:()=>X9,newPrivateEnvironment:()=>Aye,noEmitNotification:()=>J8,noEmitSubstitution:()=>Aw,noTransformers:()=>TY,noTruncationMaximumTruncationLength:()=>L7,nodeCanBeDecorated:()=>G3,nodeHasName:()=>cN,nodeIsDecorated:()=>iC,nodeIsMissing:()=>kl,nodeIsPresent:()=>E_,nodeIsSynthesized:()=>tl,nodeModuleNameResolver:()=>bge,nodeModulesPathPart:()=>By,nodeNextJsonConfigResolver:()=>Ege,nodeOrChildIsDecorated:()=>RN,nodeOverlapsWithStartEnd:()=>TQ,nodePosToString:()=>_4e,nodeSeenTracker:()=>dL,nodeStartsNewLexicalEnvironment:()=>Tq,nodeToDisplayParts:()=>zBe,noop:()=>lo,noopFileWatcher:()=>oL,noopPush:()=>xM,normalizePath:()=>Ko,normalizeSlashes:()=>ru,not:()=>EM,notImplemented:()=>Wa,notImplementedResolver:()=>DF,nullNodeConverters:()=>WJ,nullParenthesizerRules:()=>HJ,nullTransformationContext:()=>Rg,objectAllocator:()=>Kc,operatorPart:()=>Gw,optionDeclarations:()=>wg,optionMapToObject:()=>ZK,optionsAffectingProgramStructure:()=>gX,optionsForBuild:()=>vX,optionsForWatch:()=>I8,optionsHaveChanges:()=>XA,optionsHaveModuleResolutionChanges:()=>tfe,or:()=>Fm,orderedRemoveItem:()=>yM,orderedRemoveItemAt:()=>T1,outFile:()=>Ks,packageIdToPackageName:()=>g3,packageIdToString:()=>TT,padLeft:()=>sx,padRight:()=>j6e,paramHelper:()=>G7,parameterIsThisKeyword:()=>j1,parameterNamePart:()=>Tbe,parseBaseNodeFactory:()=>qK,parseBigInt:()=>upe,parseBuildCommand:()=>i7e,parseCommandLine:()=>r7e,parseCommandLineWorker:()=>XK,parseConfigFileTextToJson:()=>QK,parseConfigFileWithSystem:()=>O9e,parseConfigHostFromCompilerHostLike:()=>UF,parseCustomTypeOption:()=>M5,parseIsolatedEntityName:()=>o2,parseIsolatedJSDocComment:()=>dhe,parseJSDocTypeExpressionForTests:()=>$3e,parseJsonConfigFileContent:()=>p7e,parseJsonSourceFileConfigFileContent:()=>E8,parseJsonText:()=>h8,parseListTypeOption:()=>The,parseNodeFactory:()=>nh,parseNodeModuleFromPath:()=>IX,parsePackageName:()=>RX,parsePseudoBigInt:()=>Bk,parseValidBigInt:()=>yJ,patchWriteFileEnsuringDirectory:()=>Gue,pathContainsNodeModules:()=>s2,pathIsAbsolute:()=>MI,pathIsBareSpecifier:()=>VW,pathIsRelative:()=>Nf,patternText:()=>iue,perfLogger:()=>tm,performIncrementalCompilation:()=>M9e,performance:()=>BR,plainJSErrors:()=>zF,positionBelongsToNode:()=>SQ,positionIsASICandidate:()=>F9,positionIsSynthesized:()=>lm,positionsAreOnSameLine:()=>A_,preProcessFile:()=>S1e,probablyUsesSemicolons:()=>B9,processCommentPragmas:()=>WK,processPragmasIntoFields:()=>zK,processTaggedTemplateExpression:()=>fY,programContainsEsModules:()=>hbe,programContainsModules:()=>mbe,projectReferenceIsEqualTo:()=>Oz,propKeyHelper:()=>Q7,propertyNamePart:()=>Sbe,pseudoBigIntToString:()=>q1,punctuationPart:()=>Iu,pushIfUnique:()=>v_,quote:()=>jw,quotePreferenceFromString:()=>UQ,rangeContainsPosition:()=>h6,rangeContainsPositionExclusive:()=>g6,rangeContainsRange:()=>vf,rangeContainsRangeExclusive:()=>X0e,rangeContainsStartEnd:()=>y6,rangeEndIsOnSameLineAsRangeStart:()=>mO,rangeEndPositionsAreOnSameLine:()=>R_e,rangeEquals:()=>gH,rangeIsOnSingleLine:()=>MT,rangeOfNode:()=>mJ,rangeOfTypeParameters:()=>hJ,rangeOverlapsWithStartEnd:()=>Pw,rangeStartIsOnSameLineAsRangeEnd:()=>N_e,rangeStartPositionsAreOnSameLine:()=>l7,readBuilderProgram:()=>t9,readConfigFile:()=>y8,readHelper:()=>Y7,readJson:()=>Ck,readJsonConfigFile:()=>Che,readJsonOrUndefined:()=>zq,realizeDiagnostics:()=>ZZ,reduceEachLeadingCommentRange:()=>que,reduceEachTrailingCommentRange:()=>Jue,reduceLeft:()=>Gu,reduceLeftIterator:()=>Rr,reducePathComponents:()=>fT,refactor:()=>_D,regExpEscape:()=>mMe,relativeComplement:()=>Vce,removeAllComments:()=>BO,removeEmitHelper:()=>WMe,removeExtension:()=>AO,removeFileExtension:()=>qd,removeIgnoredPath:()=>c$,removeMinAndVersionNumbers:()=>rue,removeOptionality:()=>obe,removePrefix:()=>RI,removeSuffix:()=>PA,removeTrailingDirectorySeparator:()=>_T,repeatString:()=>A6,replaceElement:()=>vH,resolutionExtensionIsTSOrJson:()=>CO,resolveConfigFileProjectName:()=>T$,resolveJSModule:()=>gge,resolveModuleName:()=>gw,resolveModuleNameFromCache:()=>H7e,resolvePackageNameToPackageJson:()=>F7e,resolvePath:()=>Dv,resolveProjectReferencePath:()=>Dw,resolveTripleslashReference:()=>OF,resolveTypeReferenceDirective:()=>TX,resolvingEmptyArray:()=>C7,restHelper:()=>q7,returnFalse:()=>v1,returnNoopFileWatcher:()=>s6,returnTrue:()=>b1,returnUndefined:()=>eb,returnsPromise:()=>DZ,runInitializersHelper:()=>V7,sameFlatMap:()=>DA,sameMap:()=>no,sameMapping:()=>D5e,scanShebangTrivia:()=>$W,scanTokenAtPosition:()=>xfe,scanner:()=>ku,screenStartingMessageCodes:()=>e9,semanticDiagnosticsOptionDeclarations:()=>pX,serializeCompilerOptions:()=>tX,server:()=>U0e,servicesVersion:()=>KZ,setCommentRange:()=>Xc,setConfigFileInOptions:()=>rX,setConstantValue:()=>zpe,setEachParent:()=>AC,setEmitFlags:()=>sr,setFunctionNameHelper:()=>Z7,setGetSourceFileAsHashVersioned:()=>ZF,setIdentifierAutoGenerate:()=>HO,setIdentifierGeneratedImportReference:()=>Xpe,setIdentifierTypeArguments:()=>Oy,setInternalEmitFlags:()=>GO,setLocalizedDiagnosticMessages:()=>H_e,setModuleDefaultHelper:()=>n5,setNodeFlags:()=>_pe,setObjectAllocator:()=>j_e,setOriginalNode:()=>Wr,setParent:()=>jo,setParentRecursive:()=>Jv,setPrivateIdentifier:()=>QT,setResolvedModule:()=>ife,setResolvedTypeReferenceDirective:()=>afe,setSnippetElement:()=>eK,setSourceMapRange:()=>ps,setStackTraceLimit:()=>gPe,setStartsOnNewLine:()=>QJ,setSyntheticLeadingComments:()=>K1,setSyntheticTrailingComments:()=>DC,setSys:()=>CPe,setSysLog:()=>Pue,setTextRange:()=>ht,setTextRangeEnd:()=>xC,setTextRangePos:()=>Gk,setTextRangePosEnd:()=>Ym,setTextRangePosWidth:()=>Uk,setTokenSourceMapRange:()=>jpe,setTypeNode:()=>Jpe,setUILocale:()=>eue,setValueDeclaration:()=>jN,shouldAllowImportingTsExtension:()=>Ew,shouldPreserveConstEnums:()=>W1,shouldUseUriStyleNodeCoreModules:()=>J9,showModuleSpecifier:()=>B_e,signatureHasLiteralTypes:()=>qX,signatureHasRestParameter:()=>Lu,signatureToDisplayParts:()=>JQ,single:()=>yH,singleElementArray:()=>dT,singleIterator:()=>L6e,singleOrMany:()=>Pm,singleOrUndefined:()=>Om,skipAlias:()=>gf,skipAssertions:()=>y3e,skipConstraint:()=>FQ,skipOuterExpressions:()=>Cu,skipParentheses:()=>Ws,skipPartiallyEmittedExpressions:()=>W_,skipTrivia:()=>Xo,skipTypeChecking:()=>Fk,skipTypeParentheses:()=>hq,skipWhile:()=>cue,sliceAfter:()=>pJ,some:()=>kt,sort:()=>kI,sortAndDeduplicate:()=>IR,sortAndDeduplicateDiagnostics:()=>UA,sourceFileAffectingCompilerOptions:()=>W5,sourceFileMayBeEmitted:()=>kx,sourceMapCommentRegExp:()=>vF,sourceMapCommentRegExpDontCareLineStart:()=>tY,spacePart:()=>Sl,spanMap:()=>dM,spreadArrayHelper:()=>$7,stableSort:()=>vy,startEndContainsRange:()=>EQ,startEndOverlapsWithStartEnd:()=>f9,startOnNewLine:()=>Ku,startTracing:()=>kue,startsWith:()=>Ta,startsWithDirectory:()=>zW,startsWithUnderscore:()=>cZ,startsWithUseStrict:()=>Dme,stringContains:()=>bu,stringContainsAt:()=>Jbe,stringToToken:()=>mT,stripQuotes:()=>X_,supportedDeclarationExtensions:()=>w7,supportedJSExtensions:()=>VJ,supportedJSExtensionsFlat:()=>zk,supportedLocaleDirectories:()=>Dz,supportedTSExtensions:()=>kC,supportedTSExtensionsFlat:()=>UJ,supportedTSImplementationExtensions:()=>D7,suppressLeadingAndTrailingTrivia:()=>$d,suppressLeadingTrivia:()=>N9,suppressTrailingTrivia:()=>Nbe,symbolEscapedNameNoDefault:()=>I9,symbolName:()=>Gl,symbolNameNoDefault:()=>L9,symbolPart:()=>Ebe,symbolToDisplayParts:()=>Uw,syntaxMayBeASICandidate:()=>_Z,syntaxRequiresTrailingSemicolonOrASI:()=>M9,sys:()=>nu,sysLog:()=>zR,tagNamesAreEquivalent:()=>bb,takeWhile:()=>TM,targetOptionDeclaration:()=>w8,templateObjectHelper:()=>X7,testFormatSettings:()=>j0e,textChangeRangeIsUnchanged:()=>dde,textChangeRangeNewSpan:()=>WI,textChanges:()=>gr,textOrKeywordPart:()=>zQ,textPart:()=>jf,textRangeContainsPositionInclusive:()=>ZM,textSpanContainsPosition:()=>ZW,textSpanContainsTextSpan:()=>sde,textSpanEnd:()=>uu,textSpanIntersection:()=>ude,textSpanIntersectsWith:()=>e3,textSpanIntersectsWithPosition:()=>cde,textSpanIntersectsWithTextSpan:()=>HPe,textSpanIsEmpty:()=>ode,textSpanOverlap:()=>lde,textSpanOverlapsWith:()=>jPe,textSpansEqual:()=>_L,textToKeywordObj:()=>oN,timestamp:()=>sl,toArray:()=>NR,toBuilderFileEmit:()=>Bve,toBuilderStateFileInfoForMultiEmit:()=>Fve,toEditorSettings:()=>U6,toFileNameLowerCase:()=>V_,toLowerCase:()=>Xce,toPath:()=>Js,toProgramEmitPending:()=>Gve,tokenIsIdentifierOrKeyword:()=>id,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Wue,tokenToString:()=>vo,trace:()=>ma,tracing:()=>Si,tracingEnabled:()=>GR,transform:()=>bUe,transformClassFields:()=>wye,transformDeclarations:()=>vY,transformECMAScriptModule:()=>gY,transformES2015:()=>Wye,transformES2016:()=>jye,transformES2017:()=>Oye,transformES2018:()=>Pye,transformES2019:()=>Mye,transformES2020:()=>Fye,transformES2021:()=>Bye,transformES5:()=>zye,transformESDecorators:()=>Nye,transformESNext:()=>Gye,transformGenerators:()=>qye,transformJsx:()=>Uye,transformLegacyDecorators:()=>Rye,transformModule:()=>hY,transformNodeModule:()=>Xye,transformNodes:()=>K8,transformSystemModule:()=>Kye,transformTypeScript:()=>Iye,transpile:()=>qGe,transpileModule:()=>N1e,transpileOptionValueCompilerOptions:()=>yX,trimString:()=>S1,trimStringEnd:()=>MR,trimStringStart:()=>NI,tryAddToSet:()=>g1,tryAndIgnoreErrors:()=>j9,tryCast:()=>si,tryDirectoryExists:()=>V9,tryExtractTSExtension:()=>o7,tryFileExists:()=>U9,tryGetClassExtendingExpressionWithTypeArguments:()=>jq,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Hq,tryGetDirectories:()=>G9,tryGetExtensionFromPath:()=>Nh,tryGetImportFromModuleSpecifier:()=>zN,tryGetJSDocSatisfiesTypeNode:()=>A7,tryGetModuleNameFromFile:()=>c8,tryGetModuleSpecifierFromDeclaration:()=>HN,tryGetNativePerformanceHooks:()=>Aue,tryGetPropertyAccessOrIdentifierToString:()=>pO,tryGetPropertyNameOfBindingOrAssignmentElement:()=>I5,tryGetSourceMappingURL:()=>_ye,tryGetTextOfPropertyName:()=>A3,tryIOAndConsumeErrors:()=>H9,tryParsePattern:()=>SC,tryParsePatterns:()=>b7,tryParseRawSourceMap:()=>ZX,tryReadDirectory:()=>rZ,tryReadFile:()=>v8,tryRemoveDirectoryPrefix:()=>oJ,tryRemoveExtension:()=>lpe,tryRemovePrefix:()=>CH,tryRemoveSuffix:()=>nue,typeAcquisitionDeclarations:()=>q5,typeAliasNamePart:()=>xbe,typeDirectiveIsEqualTo:()=>sfe,typeKeywords:()=>Y9,typeParameterNamePart:()=>Abe,typeReferenceResolutionNameAndModeGetter:()=>r6,typeToDisplayParts:()=>w6,unchangedPollThresholds:()=>KR,unchangedTextChangeRange:()=>wz,unescapeLeadingUnderscores:()=>ra,unmangleScopedPackageName:()=>sF,unorderedRemoveItem:()=>PR,unorderedRemoveItemAt:()=>xH,unreachableCodeIsError:()=>$_e,unusedLabelIsError:()=>Q_e,unwrapInnermostStatementOfLabel:()=>rq,updateErrorForNoInputFiles:()=>aX,updateLanguageServiceSourceFile:()=>qZ,updateMissingFilePathsWatch:()=>_ve,updatePackageJsonWatch:()=>n9e,updateResolutionField:()=>tL,updateSharedExtendedConfigFileWatcher:()=>kY,updateSourceFile:()=>HK,updateWatchingWildcardDirectories:()=>RF,usesExtensionsOnImports:()=>ape,usingSingleLineStringWriter:()=>rk,utf16EncodeAsString:()=>HI,validateLocaleAndSetLanguage:()=>qPe,valuesHelper:()=>e5,version:()=>ve,versionMajorMinor:()=>_e,visitArray:()=>QX,visitCommaListElements:()=>W8,visitEachChild:()=>Gn,visitFunctionBody:()=>Uf,visitIterationBody:()=>I_,visitLexicalEnvironment:()=>yF,visitNode:()=>lt,visitNodes:()=>Kn,visitParameterList:()=>Ql,walkUpBindingElementsAndPatterns:()=>VA,walkUpLexicalEnvironments:()=>xye,walkUpOuterExpressions:()=>Rme,walkUpParenthesizedExpressions:()=>jv,walkUpParenthesizedTypes:()=>YN,walkUpParenthesizedTypesAndGetParentAndChild:()=>$fe,whitespaceOrMapCommentRegExp:()=>bF,writeCommentRange:()=>yC,writeFile:()=>vk,writeFileEnsuringDirectories:()=>Pq,zipToModeAwareCache:()=>LX,zipWith:()=>fi});var GLe=S({"src/typescript/_namespaces/ts.ts"(){Na(),o9(),Qr(),qU()}}),gZe=P({"src/typescript/typescript.ts"(e,t){GLe(),GLe(),typeof console!="undefined"&&(D.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=BLe}});return gZe()})();typeof uM!="undefined"&&uM.exports&&(uM.exports=Q0);var v6e=Q0.createClassifier,Mce=Q0.createLanguageService,b6e=Q0.displayPartsToString,E6e=Q0.EndOfLineState,T6e=Q0.flattenDiagnosticMessageText,S6e=Q0.IndentStyle,wA=Q0.ScriptKind,x6e=Q0.ScriptTarget,A6e=Q0.TokenClass,Fce=Q0,ga={};ga["lib.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es5" />
- /// <reference lib="dom" />
- /// <reference lib="webworker.importscripts" />
- /// <reference lib="scripthost" />
- `,ga["lib.decorators.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /**
- * The decorator context types provided to class element decorators.
- */
- type ClassMemberDecoratorContext =
- | ClassMethodDecoratorContext
- | ClassGetterDecoratorContext
- | ClassSetterDecoratorContext
- | ClassFieldDecoratorContext
- | ClassAccessorDecoratorContext
- ;
- /**
- * The decorator context types provided to any decorator.
- */
- type DecoratorContext =
- | ClassDecoratorContext
- | ClassMemberDecoratorContext
- ;
- /**
- * Context provided to a class decorator.
- * @template Class The type of the decorated class associated with this context.
- */
- interface ClassDecoratorContext<
- Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,
- > {
- /** The kind of element that was decorated. */
- readonly kind: "class";
- /** The name of the decorated class. */
- readonly name: string | undefined;
- /**
- * Adds a callback to be invoked after the class definition has been finalized.
- *
- * @example
- * \`\`\`ts
- * function customElement(name: string): ClassDecoratorFunction {
- * return (target, context) => {
- * context.addInitializer(function () {
- * customElements.define(name, this);
- * });
- * }
- * }
- *
- * @customElement("my-element")
- * class MyElement {}
- * \`\`\`
- */
- addInitializer(initializer: (this: Class) => void): void;
- }
- /**
- * Context provided to a class method decorator.
- * @template This The type on which the class element will be defined. For a static class element, this will be
- * the type of the constructor. For a non-static class element, this will be the type of the instance.
- * @template Value The type of the decorated class method.
- */
- interface ClassMethodDecoratorContext<
- This = unknown,
- Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,
- > {
- /** The kind of class element that was decorated. */
- readonly kind: "method";
- /** The name of the decorated class element. */
- readonly name: string | symbol;
- /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
- readonly static: boolean;
- /** A value indicating whether the class element has a private name. */
- readonly private: boolean;
- /** An object that can be used to access the current value of the class element at runtime. */
- readonly access: {
- /**
- * Determines whether an object has a property with the same name as the decorated element.
- */
- has(object: This): boolean;
- /**
- * Gets the current value of the method from the provided object.
- *
- * @example
- * let fn = context.access.get(instance);
- */
- get(object: This): Value;
- };
- /**
- * Adds a callback to be invoked either before static initializers are run (when
- * decorating a \`static\` element), or before instance initializers are run (when
- * decorating a non-\`static\` element).
- *
- * @example
- * \`\`\`ts
- * const bound: ClassMethodDecoratorFunction = (value, context) {
- * if (context.private) throw new TypeError("Not supported on private methods.");
- * context.addInitializer(function () {
- * this[context.name] = this[context.name].bind(this);
- * });
- * }
- *
- * class C {
- * message = "Hello";
- *
- * @bound
- * m() {
- * console.log(this.message);
- * }
- * }
- * \`\`\`
- */
- addInitializer(initializer: (this: This) => void): void;
- }
- /**
- * Context provided to a class getter decorator.
- * @template This The type on which the class element will be defined. For a static class element, this will be
- * the type of the constructor. For a non-static class element, this will be the type of the instance.
- * @template Value The property type of the decorated class getter.
- */
- interface ClassGetterDecoratorContext<
- This = unknown,
- Value = unknown,
- > {
- /** The kind of class element that was decorated. */
- readonly kind: "getter";
- /** The name of the decorated class element. */
- readonly name: string | symbol;
- /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
- readonly static: boolean;
- /** A value indicating whether the class element has a private name. */
- readonly private: boolean;
- /** An object that can be used to access the current value of the class element at runtime. */
- readonly access: {
- /**
- * Determines whether an object has a property with the same name as the decorated element.
- */
- has(object: This): boolean;
- /**
- * Invokes the getter on the provided object.
- *
- * @example
- * let value = context.access.get(instance);
- */
- get(object: This): Value;
- };
- /**
- * Adds a callback to be invoked either before static initializers are run (when
- * decorating a \`static\` element), or before instance initializers are run (when
- * decorating a non-\`static\` element).
- */
- addInitializer(initializer: (this: This) => void): void;
- }
- /**
- * Context provided to a class setter decorator.
- * @template This The type on which the class element will be defined. For a static class element, this will be
- * the type of the constructor. For a non-static class element, this will be the type of the instance.
- * @template Value The type of the decorated class setter.
- */
- interface ClassSetterDecoratorContext<
- This = unknown,
- Value = unknown,
- > {
- /** The kind of class element that was decorated. */
- readonly kind: "setter";
- /** The name of the decorated class element. */
- readonly name: string | symbol;
- /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
- readonly static: boolean;
- /** A value indicating whether the class element has a private name. */
- readonly private: boolean;
- /** An object that can be used to access the current value of the class element at runtime. */
- readonly access: {
- /**
- * Determines whether an object has a property with the same name as the decorated element.
- */
- has(object: This): boolean;
- /**
- * Invokes the setter on the provided object.
- *
- * @example
- * context.access.set(instance, value);
- */
- set(object: This, value: Value): void;
- };
- /**
- * Adds a callback to be invoked either before static initializers are run (when
- * decorating a \`static\` element), or before instance initializers are run (when
- * decorating a non-\`static\` element).
- */
- addInitializer(initializer: (this: This) => void): void;
- }
- /**
- * Context provided to a class \`accessor\` field decorator.
- * @template This The type on which the class element will be defined. For a static class element, this will be
- * the type of the constructor. For a non-static class element, this will be the type of the instance.
- * @template Value The type of decorated class field.
- */
- interface ClassAccessorDecoratorContext<
- This = unknown,
- Value = unknown,
- > {
- /** The kind of class element that was decorated. */
- readonly kind: "accessor";
- /** The name of the decorated class element. */
- readonly name: string | symbol;
- /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
- readonly static: boolean;
- /** A value indicating whether the class element has a private name. */
- readonly private: boolean;
- /** An object that can be used to access the current value of the class element at runtime. */
- readonly access: {
- /**
- * Determines whether an object has a property with the same name as the decorated element.
- */
- has(object: This): boolean;
- /**
- * Invokes the getter on the provided object.
- *
- * @example
- * let value = context.access.get(instance);
- */
- get(object: This): Value;
- /**
- * Invokes the setter on the provided object.
- *
- * @example
- * context.access.set(instance, value);
- */
- set(object: This, value: Value): void;
- };
- /**
- * Adds a callback to be invoked either before static initializers are run (when
- * decorating a \`static\` element), or before instance initializers are run (when
- * decorating a non-\`static\` element).
- */
- addInitializer(initializer: (this: This) => void): void;
- }
- /**
- * Describes the target provided to class \`accessor\` field decorators.
- * @template This The \`this\` type to which the target applies.
- * @template Value The property type for the class \`accessor\` field.
- */
- interface ClassAccessorDecoratorTarget<This, Value> {
- /**
- * Invokes the getter that was defined prior to decorator application.
- *
- * @example
- * let value = target.get.call(instance);
- */
- get(this: This): Value;
- /**
- * Invokes the setter that was defined prior to decorator application.
- *
- * @example
- * target.set.call(instance, value);
- */
- set(this: This, value: Value): void;
- }
- /**
- * Describes the allowed return value from a class \`accessor\` field decorator.
- * @template This The \`this\` type to which the target applies.
- * @template Value The property type for the class \`accessor\` field.
- */
- interface ClassAccessorDecoratorResult<This, Value> {
- /**
- * An optional replacement getter function. If not provided, the existing getter function is used instead.
- */
- get?(this: This): Value;
- /**
- * An optional replacement setter function. If not provided, the existing setter function is used instead.
- */
- set?(this: This, value: Value): void;
- /**
- * An optional initializer mutator that is invoked when the underlying field initializer is evaluated.
- * @param value The incoming initializer value.
- * @returns The replacement initializer value.
- */
- init?(this: This, value: Value): Value;
- }
- /**
- * Context provided to a class field decorator.
- * @template This The type on which the class element will be defined. For a static class element, this will be
- * the type of the constructor. For a non-static class element, this will be the type of the instance.
- * @template Value The type of the decorated class field.
- */
- interface ClassFieldDecoratorContext<
- This = unknown,
- Value = unknown,
- > {
- /** The kind of class element that was decorated. */
- readonly kind: "field";
- /** The name of the decorated class element. */
- readonly name: string | symbol;
- /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
- readonly static: boolean;
- /** A value indicating whether the class element has a private name. */
- readonly private: boolean;
- /** An object that can be used to access the current value of the class element at runtime. */
- readonly access: {
- /**
- * Determines whether an object has a property with the same name as the decorated element.
- */
- has(object: This): boolean;
- /**
- * Gets the value of the field on the provided object.
- */
- get(object: This): Value;
- /**
- * Sets the value of the field on the provided object.
- */
- set(object: This, value: Value): void;
- };
- /**
- * Adds a callback to be invoked either before static initializers are run (when
- * decorating a \`static\` element), or before instance initializers are run (when
- * decorating a non-\`static\` element).
- */
- addInitializer(initializer: (this: This) => void): void;
- }
- `,ga["lib.decorators.legacy.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
- declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
- declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
- declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
- `,ga["lib.dom.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /////////////////////////////
- /// Window APIs
- /////////////////////////////
- interface AddEventListenerOptions extends EventListenerOptions {
- once?: boolean;
- passive?: boolean;
- signal?: AbortSignal;
- }
- interface AesCbcParams extends Algorithm {
- iv: BufferSource;
- }
- interface AesCtrParams extends Algorithm {
- counter: BufferSource;
- length: number;
- }
- interface AesDerivedKeyParams extends Algorithm {
- length: number;
- }
- interface AesGcmParams extends Algorithm {
- additionalData?: BufferSource;
- iv: BufferSource;
- tagLength?: number;
- }
- interface AesKeyAlgorithm extends KeyAlgorithm {
- length: number;
- }
- interface AesKeyGenParams extends Algorithm {
- length: number;
- }
- interface Algorithm {
- name: string;
- }
- interface AnalyserOptions extends AudioNodeOptions {
- fftSize?: number;
- maxDecibels?: number;
- minDecibels?: number;
- smoothingTimeConstant?: number;
- }
- interface AnimationEventInit extends EventInit {
- animationName?: string;
- elapsedTime?: number;
- pseudoElement?: string;
- }
- interface AnimationPlaybackEventInit extends EventInit {
- currentTime?: CSSNumberish | null;
- timelineTime?: CSSNumberish | null;
- }
- interface AssignedNodesOptions {
- flatten?: boolean;
- }
- interface AudioBufferOptions {
- length: number;
- numberOfChannels?: number;
- sampleRate: number;
- }
- interface AudioBufferSourceOptions {
- buffer?: AudioBuffer | null;
- detune?: number;
- loop?: boolean;
- loopEnd?: number;
- loopStart?: number;
- playbackRate?: number;
- }
- interface AudioConfiguration {
- bitrate?: number;
- channels?: string;
- contentType: string;
- samplerate?: number;
- spatialRendering?: boolean;
- }
- interface AudioContextOptions {
- latencyHint?: AudioContextLatencyCategory | number;
- sampleRate?: number;
- }
- interface AudioNodeOptions {
- channelCount?: number;
- channelCountMode?: ChannelCountMode;
- channelInterpretation?: ChannelInterpretation;
- }
- interface AudioProcessingEventInit extends EventInit {
- inputBuffer: AudioBuffer;
- outputBuffer: AudioBuffer;
- playbackTime: number;
- }
- interface AudioTimestamp {
- contextTime?: number;
- performanceTime?: DOMHighResTimeStamp;
- }
- interface AudioWorkletNodeOptions extends AudioNodeOptions {
- numberOfInputs?: number;
- numberOfOutputs?: number;
- outputChannelCount?: number[];
- parameterData?: Record<string, number>;
- processorOptions?: any;
- }
- interface AuthenticationExtensionsClientInputs {
- appid?: string;
- credProps?: boolean;
- hmacCreateSecret?: boolean;
- }
- interface AuthenticationExtensionsClientOutputs {
- appid?: boolean;
- credProps?: CredentialPropertiesOutput;
- hmacCreateSecret?: boolean;
- }
- interface AuthenticatorSelectionCriteria {
- authenticatorAttachment?: AuthenticatorAttachment;
- requireResidentKey?: boolean;
- residentKey?: ResidentKeyRequirement;
- userVerification?: UserVerificationRequirement;
- }
- interface BiquadFilterOptions extends AudioNodeOptions {
- Q?: number;
- detune?: number;
- frequency?: number;
- gain?: number;
- type?: BiquadFilterType;
- }
- interface BlobEventInit {
- data: Blob;
- timecode?: DOMHighResTimeStamp;
- }
- interface BlobPropertyBag {
- endings?: EndingType;
- type?: string;
- }
- interface CSSStyleSheetInit {
- baseURL?: string;
- disabled?: boolean;
- media?: MediaList | string;
- }
- interface CacheQueryOptions {
- ignoreMethod?: boolean;
- ignoreSearch?: boolean;
- ignoreVary?: boolean;
- }
- interface CanvasRenderingContext2DSettings {
- alpha?: boolean;
- colorSpace?: PredefinedColorSpace;
- desynchronized?: boolean;
- willReadFrequently?: boolean;
- }
- interface ChannelMergerOptions extends AudioNodeOptions {
- numberOfInputs?: number;
- }
- interface ChannelSplitterOptions extends AudioNodeOptions {
- numberOfOutputs?: number;
- }
- interface CheckVisibilityOptions {
- checkOpacity?: boolean;
- checkVisibilityCSS?: boolean;
- }
- interface ClientQueryOptions {
- includeUncontrolled?: boolean;
- type?: ClientTypes;
- }
- interface ClipboardEventInit extends EventInit {
- clipboardData?: DataTransfer | null;
- }
- interface ClipboardItemOptions {
- presentationStyle?: PresentationStyle;
- }
- interface CloseEventInit extends EventInit {
- code?: number;
- reason?: string;
- wasClean?: boolean;
- }
- interface CompositionEventInit extends UIEventInit {
- data?: string;
- }
- interface ComputedEffectTiming extends EffectTiming {
- activeDuration?: CSSNumberish;
- currentIteration?: number | null;
- endTime?: CSSNumberish;
- localTime?: CSSNumberish | null;
- progress?: number | null;
- startTime?: CSSNumberish;
- }
- interface ComputedKeyframe {
- composite: CompositeOperationOrAuto;
- computedOffset: number;
- easing: string;
- offset: number | null;
- [property: string]: string | number | null | undefined;
- }
- interface ConstantSourceOptions {
- offset?: number;
- }
- interface ConstrainBooleanParameters {
- exact?: boolean;
- ideal?: boolean;
- }
- interface ConstrainDOMStringParameters {
- exact?: string | string[];
- ideal?: string | string[];
- }
- interface ConstrainDoubleRange extends DoubleRange {
- exact?: number;
- ideal?: number;
- }
- interface ConstrainULongRange extends ULongRange {
- exact?: number;
- ideal?: number;
- }
- interface ConvolverOptions extends AudioNodeOptions {
- buffer?: AudioBuffer | null;
- disableNormalization?: boolean;
- }
- interface CredentialCreationOptions {
- publicKey?: PublicKeyCredentialCreationOptions;
- signal?: AbortSignal;
- }
- interface CredentialPropertiesOutput {
- rk?: boolean;
- }
- interface CredentialRequestOptions {
- mediation?: CredentialMediationRequirement;
- publicKey?: PublicKeyCredentialRequestOptions;
- signal?: AbortSignal;
- }
- interface CryptoKeyPair {
- privateKey: CryptoKey;
- publicKey: CryptoKey;
- }
- interface CustomEventInit<T = any> extends EventInit {
- detail?: T;
- }
- interface DOMMatrix2DInit {
- a?: number;
- b?: number;
- c?: number;
- d?: number;
- e?: number;
- f?: number;
- m11?: number;
- m12?: number;
- m21?: number;
- m22?: number;
- m41?: number;
- m42?: number;
- }
- interface DOMMatrixInit extends DOMMatrix2DInit {
- is2D?: boolean;
- m13?: number;
- m14?: number;
- m23?: number;
- m24?: number;
- m31?: number;
- m32?: number;
- m33?: number;
- m34?: number;
- m43?: number;
- m44?: number;
- }
- interface DOMPointInit {
- w?: number;
- x?: number;
- y?: number;
- z?: number;
- }
- interface DOMQuadInit {
- p1?: DOMPointInit;
- p2?: DOMPointInit;
- p3?: DOMPointInit;
- p4?: DOMPointInit;
- }
- interface DOMRectInit {
- height?: number;
- width?: number;
- x?: number;
- y?: number;
- }
- interface DelayOptions extends AudioNodeOptions {
- delayTime?: number;
- maxDelayTime?: number;
- }
- interface DeviceMotionEventAccelerationInit {
- x?: number | null;
- y?: number | null;
- z?: number | null;
- }
- interface DeviceMotionEventInit extends EventInit {
- acceleration?: DeviceMotionEventAccelerationInit;
- accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;
- interval?: number;
- rotationRate?: DeviceMotionEventRotationRateInit;
- }
- interface DeviceMotionEventRotationRateInit {
- alpha?: number | null;
- beta?: number | null;
- gamma?: number | null;
- }
- interface DeviceOrientationEventInit extends EventInit {
- absolute?: boolean;
- alpha?: number | null;
- beta?: number | null;
- gamma?: number | null;
- }
- interface DisplayMediaStreamOptions {
- audio?: boolean | MediaTrackConstraints;
- video?: boolean | MediaTrackConstraints;
- }
- interface DocumentTimelineOptions {
- originTime?: DOMHighResTimeStamp;
- }
- interface DoubleRange {
- max?: number;
- min?: number;
- }
- interface DragEventInit extends MouseEventInit {
- dataTransfer?: DataTransfer | null;
- }
- interface DynamicsCompressorOptions extends AudioNodeOptions {
- attack?: number;
- knee?: number;
- ratio?: number;
- release?: number;
- threshold?: number;
- }
- interface EcKeyAlgorithm extends KeyAlgorithm {
- namedCurve: NamedCurve;
- }
- interface EcKeyGenParams extends Algorithm {
- namedCurve: NamedCurve;
- }
- interface EcKeyImportParams extends Algorithm {
- namedCurve: NamedCurve;
- }
- interface EcdhKeyDeriveParams extends Algorithm {
- public: CryptoKey;
- }
- interface EcdsaParams extends Algorithm {
- hash: HashAlgorithmIdentifier;
- }
- interface EffectTiming {
- delay?: number;
- direction?: PlaybackDirection;
- duration?: number | string;
- easing?: string;
- endDelay?: number;
- fill?: FillMode;
- iterationStart?: number;
- iterations?: number;
- playbackRate?: number;
- }
- interface ElementCreationOptions {
- is?: string;
- }
- interface ElementDefinitionOptions {
- extends?: string;
- }
- interface ErrorEventInit extends EventInit {
- colno?: number;
- error?: any;
- filename?: string;
- lineno?: number;
- message?: string;
- }
- interface EventInit {
- bubbles?: boolean;
- cancelable?: boolean;
- composed?: boolean;
- }
- interface EventListenerOptions {
- capture?: boolean;
- }
- interface EventModifierInit extends UIEventInit {
- altKey?: boolean;
- ctrlKey?: boolean;
- metaKey?: boolean;
- modifierAltGraph?: boolean;
- modifierCapsLock?: boolean;
- modifierFn?: boolean;
- modifierFnLock?: boolean;
- modifierHyper?: boolean;
- modifierNumLock?: boolean;
- modifierScrollLock?: boolean;
- modifierSuper?: boolean;
- modifierSymbol?: boolean;
- modifierSymbolLock?: boolean;
- shiftKey?: boolean;
- }
- interface EventSourceInit {
- withCredentials?: boolean;
- }
- interface FilePropertyBag extends BlobPropertyBag {
- lastModified?: number;
- }
- interface FileSystemFlags {
- create?: boolean;
- exclusive?: boolean;
- }
- interface FileSystemGetDirectoryOptions {
- create?: boolean;
- }
- interface FileSystemGetFileOptions {
- create?: boolean;
- }
- interface FileSystemRemoveOptions {
- recursive?: boolean;
- }
- interface FocusEventInit extends UIEventInit {
- relatedTarget?: EventTarget | null;
- }
- interface FocusOptions {
- preventScroll?: boolean;
- }
- interface FontFaceDescriptors {
- ascentOverride?: string;
- descentOverride?: string;
- display?: FontDisplay;
- featureSettings?: string;
- lineGapOverride?: string;
- stretch?: string;
- style?: string;
- unicodeRange?: string;
- variant?: string;
- weight?: string;
- }
- interface FontFaceSetLoadEventInit extends EventInit {
- fontfaces?: FontFace[];
- }
- interface FormDataEventInit extends EventInit {
- formData: FormData;
- }
- interface FullscreenOptions {
- navigationUI?: FullscreenNavigationUI;
- }
- interface GainOptions extends AudioNodeOptions {
- gain?: number;
- }
- interface GamepadEventInit extends EventInit {
- gamepad: Gamepad;
- }
- interface GetAnimationsOptions {
- subtree?: boolean;
- }
- interface GetNotificationOptions {
- tag?: string;
- }
- interface GetRootNodeOptions {
- composed?: boolean;
- }
- interface HashChangeEventInit extends EventInit {
- newURL?: string;
- oldURL?: string;
- }
- interface HkdfParams extends Algorithm {
- hash: HashAlgorithmIdentifier;
- info: BufferSource;
- salt: BufferSource;
- }
- interface HmacImportParams extends Algorithm {
- hash: HashAlgorithmIdentifier;
- length?: number;
- }
- interface HmacKeyAlgorithm extends KeyAlgorithm {
- hash: KeyAlgorithm;
- length: number;
- }
- interface HmacKeyGenParams extends Algorithm {
- hash: HashAlgorithmIdentifier;
- length?: number;
- }
- interface IDBDatabaseInfo {
- name?: string;
- version?: number;
- }
- interface IDBIndexParameters {
- multiEntry?: boolean;
- unique?: boolean;
- }
- interface IDBObjectStoreParameters {
- autoIncrement?: boolean;
- keyPath?: string | string[] | null;
- }
- interface IDBTransactionOptions {
- durability?: IDBTransactionDurability;
- }
- interface IDBVersionChangeEventInit extends EventInit {
- newVersion?: number | null;
- oldVersion?: number;
- }
- interface IIRFilterOptions extends AudioNodeOptions {
- feedback: number[];
- feedforward: number[];
- }
- interface IdleRequestOptions {
- timeout?: number;
- }
- interface ImageBitmapOptions {
- colorSpaceConversion?: ColorSpaceConversion;
- imageOrientation?: ImageOrientation;
- premultiplyAlpha?: PremultiplyAlpha;
- resizeHeight?: number;
- resizeQuality?: ResizeQuality;
- resizeWidth?: number;
- }
- interface ImageBitmapRenderingContextSettings {
- alpha?: boolean;
- }
- interface ImageDataSettings {
- colorSpace?: PredefinedColorSpace;
- }
- interface ImageEncodeOptions {
- quality?: number;
- type?: string;
- }
- interface ImportMeta {
- url: string;
- }
- interface InputEventInit extends UIEventInit {
- data?: string | null;
- dataTransfer?: DataTransfer | null;
- inputType?: string;
- isComposing?: boolean;
- targetRanges?: StaticRange[];
- }
- interface IntersectionObserverEntryInit {
- boundingClientRect: DOMRectInit;
- intersectionRatio: number;
- intersectionRect: DOMRectInit;
- isIntersecting: boolean;
- rootBounds: DOMRectInit | null;
- target: Element;
- time: DOMHighResTimeStamp;
- }
- interface IntersectionObserverInit {
- root?: Element | Document | null;
- rootMargin?: string;
- threshold?: number | number[];
- }
- interface JsonWebKey {
- alg?: string;
- crv?: string;
- d?: string;
- dp?: string;
- dq?: string;
- e?: string;
- ext?: boolean;
- k?: string;
- key_ops?: string[];
- kty?: string;
- n?: string;
- oth?: RsaOtherPrimesInfo[];
- p?: string;
- q?: string;
- qi?: string;
- use?: string;
- x?: string;
- y?: string;
- }
- interface KeyAlgorithm {
- name: string;
- }
- interface KeyboardEventInit extends EventModifierInit {
- /** @deprecated */
- charCode?: number;
- code?: string;
- isComposing?: boolean;
- key?: string;
- /** @deprecated */
- keyCode?: number;
- location?: number;
- repeat?: boolean;
- }
- interface Keyframe {
- composite?: CompositeOperationOrAuto;
- easing?: string;
- offset?: number | null;
- [property: string]: string | number | null | undefined;
- }
- interface KeyframeAnimationOptions extends KeyframeEffectOptions {
- id?: string;
- }
- interface KeyframeEffectOptions extends EffectTiming {
- composite?: CompositeOperation;
- iterationComposite?: IterationCompositeOperation;
- pseudoElement?: string | null;
- }
- interface LockInfo {
- clientId?: string;
- mode?: LockMode;
- name?: string;
- }
- interface LockManagerSnapshot {
- held?: LockInfo[];
- pending?: LockInfo[];
- }
- interface LockOptions {
- ifAvailable?: boolean;
- mode?: LockMode;
- signal?: AbortSignal;
- steal?: boolean;
- }
- interface MIDIConnectionEventInit extends EventInit {
- port?: MIDIPort;
- }
- interface MIDIMessageEventInit extends EventInit {
- data?: Uint8Array;
- }
- interface MIDIOptions {
- software?: boolean;
- sysex?: boolean;
- }
- interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
- configuration?: MediaDecodingConfiguration;
- }
- interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
- configuration?: MediaEncodingConfiguration;
- }
- interface MediaCapabilitiesInfo {
- powerEfficient: boolean;
- smooth: boolean;
- supported: boolean;
- }
- interface MediaConfiguration {
- audio?: AudioConfiguration;
- video?: VideoConfiguration;
- }
- interface MediaDecodingConfiguration extends MediaConfiguration {
- type: MediaDecodingType;
- }
- interface MediaElementAudioSourceOptions {
- mediaElement: HTMLMediaElement;
- }
- interface MediaEncodingConfiguration extends MediaConfiguration {
- type: MediaEncodingType;
- }
- interface MediaEncryptedEventInit extends EventInit {
- initData?: ArrayBuffer | null;
- initDataType?: string;
- }
- interface MediaImage {
- sizes?: string;
- src: string;
- type?: string;
- }
- interface MediaKeyMessageEventInit extends EventInit {
- message: ArrayBuffer;
- messageType: MediaKeyMessageType;
- }
- interface MediaKeySystemConfiguration {
- audioCapabilities?: MediaKeySystemMediaCapability[];
- distinctiveIdentifier?: MediaKeysRequirement;
- initDataTypes?: string[];
- label?: string;
- persistentState?: MediaKeysRequirement;
- sessionTypes?: string[];
- videoCapabilities?: MediaKeySystemMediaCapability[];
- }
- interface MediaKeySystemMediaCapability {
- contentType?: string;
- encryptionScheme?: string | null;
- robustness?: string;
- }
- interface MediaMetadataInit {
- album?: string;
- artist?: string;
- artwork?: MediaImage[];
- title?: string;
- }
- interface MediaPositionState {
- duration?: number;
- playbackRate?: number;
- position?: number;
- }
- interface MediaQueryListEventInit extends EventInit {
- matches?: boolean;
- media?: string;
- }
- interface MediaRecorderOptions {
- audioBitsPerSecond?: number;
- bitsPerSecond?: number;
- mimeType?: string;
- videoBitsPerSecond?: number;
- }
- interface MediaSessionActionDetails {
- action: MediaSessionAction;
- fastSeek?: boolean;
- seekOffset?: number;
- seekTime?: number;
- }
- interface MediaStreamAudioSourceOptions {
- mediaStream: MediaStream;
- }
- interface MediaStreamConstraints {
- audio?: boolean | MediaTrackConstraints;
- peerIdentity?: string;
- preferCurrentTab?: boolean;
- video?: boolean | MediaTrackConstraints;
- }
- interface MediaStreamTrackEventInit extends EventInit {
- track: MediaStreamTrack;
- }
- interface MediaTrackCapabilities {
- aspectRatio?: DoubleRange;
- autoGainControl?: boolean[];
- channelCount?: ULongRange;
- deviceId?: string;
- displaySurface?: string;
- echoCancellation?: boolean[];
- facingMode?: string[];
- frameRate?: DoubleRange;
- groupId?: string;
- height?: ULongRange;
- noiseSuppression?: boolean[];
- sampleRate?: ULongRange;
- sampleSize?: ULongRange;
- width?: ULongRange;
- }
- interface MediaTrackConstraintSet {
- aspectRatio?: ConstrainDouble;
- autoGainControl?: ConstrainBoolean;
- channelCount?: ConstrainULong;
- deviceId?: ConstrainDOMString;
- displaySurface?: ConstrainDOMString;
- echoCancellation?: ConstrainBoolean;
- facingMode?: ConstrainDOMString;
- frameRate?: ConstrainDouble;
- groupId?: ConstrainDOMString;
- height?: ConstrainULong;
- noiseSuppression?: ConstrainBoolean;
- sampleRate?: ConstrainULong;
- sampleSize?: ConstrainULong;
- width?: ConstrainULong;
- }
- interface MediaTrackConstraints extends MediaTrackConstraintSet {
- advanced?: MediaTrackConstraintSet[];
- }
- interface MediaTrackSettings {
- aspectRatio?: number;
- autoGainControl?: boolean;
- channelCount?: number;
- deviceId?: string;
- displaySurface?: string;
- echoCancellation?: boolean;
- facingMode?: string;
- frameRate?: number;
- groupId?: string;
- height?: number;
- noiseSuppression?: boolean;
- sampleRate?: number;
- sampleSize?: number;
- width?: number;
- }
- interface MediaTrackSupportedConstraints {
- aspectRatio?: boolean;
- autoGainControl?: boolean;
- channelCount?: boolean;
- deviceId?: boolean;
- displaySurface?: boolean;
- echoCancellation?: boolean;
- facingMode?: boolean;
- frameRate?: boolean;
- groupId?: boolean;
- height?: boolean;
- noiseSuppression?: boolean;
- sampleRate?: boolean;
- sampleSize?: boolean;
- width?: boolean;
- }
- interface MessageEventInit<T = any> extends EventInit {
- data?: T;
- lastEventId?: string;
- origin?: string;
- ports?: MessagePort[];
- source?: MessageEventSource | null;
- }
- interface MouseEventInit extends EventModifierInit {
- button?: number;
- buttons?: number;
- clientX?: number;
- clientY?: number;
- movementX?: number;
- movementY?: number;
- relatedTarget?: EventTarget | null;
- screenX?: number;
- screenY?: number;
- }
- interface MultiCacheQueryOptions extends CacheQueryOptions {
- cacheName?: string;
- }
- interface MutationObserverInit {
- /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */
- attributeFilter?: string[];
- /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */
- attributeOldValue?: boolean;
- /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */
- attributes?: boolean;
- /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */
- characterData?: boolean;
- /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */
- characterDataOldValue?: boolean;
- /** Set to true if mutations to target's children are to be observed. */
- childList?: boolean;
- /** Set to true if mutations to not just target, but also target's descendants are to be observed. */
- subtree?: boolean;
- }
- interface NavigationPreloadState {
- enabled?: boolean;
- headerValue?: string;
- }
- interface NotificationAction {
- action: string;
- icon?: string;
- title: string;
- }
- interface NotificationOptions {
- actions?: NotificationAction[];
- badge?: string;
- body?: string;
- data?: any;
- dir?: NotificationDirection;
- icon?: string;
- image?: string;
- lang?: string;
- renotify?: boolean;
- requireInteraction?: boolean;
- silent?: boolean;
- tag?: string;
- timestamp?: EpochTimeStamp;
- vibrate?: VibratePattern;
- }
- interface OfflineAudioCompletionEventInit extends EventInit {
- renderedBuffer: AudioBuffer;
- }
- interface OfflineAudioContextOptions {
- length: number;
- numberOfChannels?: number;
- sampleRate: number;
- }
- interface OptionalEffectTiming {
- delay?: number;
- direction?: PlaybackDirection;
- duration?: number | string;
- easing?: string;
- endDelay?: number;
- fill?: FillMode;
- iterationStart?: number;
- iterations?: number;
- playbackRate?: number;
- }
- interface OscillatorOptions extends AudioNodeOptions {
- detune?: number;
- frequency?: number;
- periodicWave?: PeriodicWave;
- type?: OscillatorType;
- }
- interface PageTransitionEventInit extends EventInit {
- persisted?: boolean;
- }
- interface PannerOptions extends AudioNodeOptions {
- coneInnerAngle?: number;
- coneOuterAngle?: number;
- coneOuterGain?: number;
- distanceModel?: DistanceModelType;
- maxDistance?: number;
- orientationX?: number;
- orientationY?: number;
- orientationZ?: number;
- panningModel?: PanningModelType;
- positionX?: number;
- positionY?: number;
- positionZ?: number;
- refDistance?: number;
- rolloffFactor?: number;
- }
- interface PaymentCurrencyAmount {
- currency: string;
- value: string;
- }
- interface PaymentDetailsBase {
- displayItems?: PaymentItem[];
- modifiers?: PaymentDetailsModifier[];
- }
- interface PaymentDetailsInit extends PaymentDetailsBase {
- id?: string;
- total: PaymentItem;
- }
- interface PaymentDetailsModifier {
- additionalDisplayItems?: PaymentItem[];
- data?: any;
- supportedMethods: string;
- total?: PaymentItem;
- }
- interface PaymentDetailsUpdate extends PaymentDetailsBase {
- paymentMethodErrors?: any;
- total?: PaymentItem;
- }
- interface PaymentItem {
- amount: PaymentCurrencyAmount;
- label: string;
- pending?: boolean;
- }
- interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
- methodDetails?: any;
- methodName?: string;
- }
- interface PaymentMethodData {
- data?: any;
- supportedMethods: string;
- }
- interface PaymentRequestUpdateEventInit extends EventInit {
- }
- interface PaymentValidationErrors {
- error?: string;
- paymentMethod?: any;
- }
- interface Pbkdf2Params extends Algorithm {
- hash: HashAlgorithmIdentifier;
- iterations: number;
- salt: BufferSource;
- }
- interface PerformanceMarkOptions {
- detail?: any;
- startTime?: DOMHighResTimeStamp;
- }
- interface PerformanceMeasureOptions {
- detail?: any;
- duration?: DOMHighResTimeStamp;
- end?: string | DOMHighResTimeStamp;
- start?: string | DOMHighResTimeStamp;
- }
- interface PerformanceObserverInit {
- buffered?: boolean;
- entryTypes?: string[];
- type?: string;
- }
- interface PeriodicWaveConstraints {
- disableNormalization?: boolean;
- }
- interface PeriodicWaveOptions extends PeriodicWaveConstraints {
- imag?: number[] | Float32Array;
- real?: number[] | Float32Array;
- }
- interface PermissionDescriptor {
- name: PermissionName;
- }
- interface PictureInPictureEventInit extends EventInit {
- pictureInPictureWindow: PictureInPictureWindow;
- }
- interface PointerEventInit extends MouseEventInit {
- coalescedEvents?: PointerEvent[];
- height?: number;
- isPrimary?: boolean;
- pointerId?: number;
- pointerType?: string;
- predictedEvents?: PointerEvent[];
- pressure?: number;
- tangentialPressure?: number;
- tiltX?: number;
- tiltY?: number;
- twist?: number;
- width?: number;
- }
- interface PopStateEventInit extends EventInit {
- state?: any;
- }
- interface PositionOptions {
- enableHighAccuracy?: boolean;
- maximumAge?: number;
- timeout?: number;
- }
- interface ProgressEventInit extends EventInit {
- lengthComputable?: boolean;
- loaded?: number;
- total?: number;
- }
- interface PromiseRejectionEventInit extends EventInit {
- promise: Promise<any>;
- reason?: any;
- }
- interface PropertyIndexedKeyframes {
- composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
- easing?: string | string[];
- offset?: number | (number | null)[];
- [property: string]: string | string[] | number | null | (number | null)[] | undefined;
- }
- interface PublicKeyCredentialCreationOptions {
- attestation?: AttestationConveyancePreference;
- authenticatorSelection?: AuthenticatorSelectionCriteria;
- challenge: BufferSource;
- excludeCredentials?: PublicKeyCredentialDescriptor[];
- extensions?: AuthenticationExtensionsClientInputs;
- pubKeyCredParams: PublicKeyCredentialParameters[];
- rp: PublicKeyCredentialRpEntity;
- timeout?: number;
- user: PublicKeyCredentialUserEntity;
- }
- interface PublicKeyCredentialDescriptor {
- id: BufferSource;
- transports?: AuthenticatorTransport[];
- type: PublicKeyCredentialType;
- }
- interface PublicKeyCredentialEntity {
- name: string;
- }
- interface PublicKeyCredentialParameters {
- alg: COSEAlgorithmIdentifier;
- type: PublicKeyCredentialType;
- }
- interface PublicKeyCredentialRequestOptions {
- allowCredentials?: PublicKeyCredentialDescriptor[];
- challenge: BufferSource;
- extensions?: AuthenticationExtensionsClientInputs;
- rpId?: string;
- timeout?: number;
- userVerification?: UserVerificationRequirement;
- }
- interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
- id?: string;
- }
- interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
- displayName: string;
- id: BufferSource;
- }
- interface PushSubscriptionJSON {
- endpoint?: string;
- expirationTime?: EpochTimeStamp | null;
- keys?: Record<string, string>;
- }
- interface PushSubscriptionOptionsInit {
- applicationServerKey?: BufferSource | string | null;
- userVisibleOnly?: boolean;
- }
- interface QueuingStrategy<T = any> {
- highWaterMark?: number;
- size?: QueuingStrategySize<T>;
- }
- interface QueuingStrategyInit {
- /**
- * Creates a new ByteLengthQueuingStrategy with the provided high water mark.
- *
- * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
- */
- highWaterMark: number;
- }
- interface RTCAnswerOptions extends RTCOfferAnswerOptions {
- }
- interface RTCCertificateExpiration {
- expires?: number;
- }
- interface RTCConfiguration {
- bundlePolicy?: RTCBundlePolicy;
- certificates?: RTCCertificate[];
- iceCandidatePoolSize?: number;
- iceServers?: RTCIceServer[];
- iceTransportPolicy?: RTCIceTransportPolicy;
- rtcpMuxPolicy?: RTCRtcpMuxPolicy;
- }
- interface RTCDTMFToneChangeEventInit extends EventInit {
- tone?: string;
- }
- interface RTCDataChannelEventInit extends EventInit {
- channel: RTCDataChannel;
- }
- interface RTCDataChannelInit {
- id?: number;
- maxPacketLifeTime?: number;
- maxRetransmits?: number;
- negotiated?: boolean;
- ordered?: boolean;
- protocol?: string;
- }
- interface RTCDtlsFingerprint {
- algorithm?: string;
- value?: string;
- }
- interface RTCEncodedAudioFrameMetadata {
- contributingSources?: number[];
- synchronizationSource?: number;
- }
- interface RTCEncodedVideoFrameMetadata {
- contributingSources?: number[];
- dependencies?: number[];
- frameId?: number;
- height?: number;
- spatialIndex?: number;
- synchronizationSource?: number;
- temporalIndex?: number;
- width?: number;
- }
- interface RTCErrorEventInit extends EventInit {
- error: RTCError;
- }
- interface RTCErrorInit {
- errorDetail: RTCErrorDetailType;
- httpRequestStatusCode?: number;
- receivedAlert?: number;
- sctpCauseCode?: number;
- sdpLineNumber?: number;
- sentAlert?: number;
- }
- interface RTCIceCandidateInit {
- candidate?: string;
- sdpMLineIndex?: number | null;
- sdpMid?: string | null;
- usernameFragment?: string | null;
- }
- interface RTCIceCandidatePairStats extends RTCStats {
- availableIncomingBitrate?: number;
- availableOutgoingBitrate?: number;
- bytesReceived?: number;
- bytesSent?: number;
- currentRoundTripTime?: number;
- lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
- lastPacketSentTimestamp?: DOMHighResTimeStamp;
- localCandidateId: string;
- nominated?: boolean;
- remoteCandidateId: string;
- requestsReceived?: number;
- requestsSent?: number;
- responsesReceived?: number;
- responsesSent?: number;
- state: RTCStatsIceCandidatePairState;
- totalRoundTripTime?: number;
- transportId: string;
- }
- interface RTCIceServer {
- credential?: string;
- urls: string | string[];
- username?: string;
- }
- interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
- audioLevel?: number;
- bytesReceived?: number;
- concealedSamples?: number;
- concealmentEvents?: number;
- decoderImplementation?: string;
- estimatedPlayoutTimestamp?: DOMHighResTimeStamp;
- fecPacketsDiscarded?: number;
- fecPacketsReceived?: number;
- firCount?: number;
- frameHeight?: number;
- frameWidth?: number;
- framesDecoded?: number;
- framesDropped?: number;
- framesPerSecond?: number;
- framesReceived?: number;
- headerBytesReceived?: number;
- insertedSamplesForDeceleration?: number;
- jitterBufferDelay?: number;
- jitterBufferEmittedCount?: number;
- keyFramesDecoded?: number;
- kind: string;
- lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
- nackCount?: number;
- packetsDiscarded?: number;
- pliCount?: number;
- qpSum?: number;
- remoteId?: string;
- removedSamplesForAcceleration?: number;
- silentConcealedSamples?: number;
- totalAudioEnergy?: number;
- totalDecodeTime?: number;
- totalInterFrameDelay?: number;
- totalProcessingDelay?: number;
- totalSamplesDuration?: number;
- totalSamplesReceived?: number;
- totalSquaredInterFrameDelay?: number;
- }
- interface RTCLocalSessionDescriptionInit {
- sdp?: string;
- type?: RTCSdpType;
- }
- interface RTCOfferAnswerOptions {
- }
- interface RTCOfferOptions extends RTCOfferAnswerOptions {
- iceRestart?: boolean;
- offerToReceiveAudio?: boolean;
- offerToReceiveVideo?: boolean;
- }
- interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
- firCount?: number;
- frameHeight?: number;
- frameWidth?: number;
- framesEncoded?: number;
- framesPerSecond?: number;
- framesSent?: number;
- headerBytesSent?: number;
- hugeFramesSent?: number;
- keyFramesEncoded?: number;
- mediaSourceId?: string;
- nackCount?: number;
- pliCount?: number;
- qpSum?: number;
- qualityLimitationResolutionChanges?: number;
- remoteId?: string;
- retransmittedBytesSent?: number;
- retransmittedPacketsSent?: number;
- rid?: string;
- targetBitrate?: number;
- totalEncodeTime?: number;
- totalEncodedBytesTarget?: number;
- totalPacketSendDelay?: number;
- }
- interface RTCPeerConnectionIceErrorEventInit extends EventInit {
- address?: string | null;
- errorCode: number;
- errorText?: string;
- port?: number | null;
- url?: string;
- }
- interface RTCPeerConnectionIceEventInit extends EventInit {
- candidate?: RTCIceCandidate | null;
- url?: string | null;
- }
- interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
- jitter?: number;
- packetsLost?: number;
- packetsReceived?: number;
- }
- interface RTCRtcpParameters {
- cname?: string;
- reducedSize?: boolean;
- }
- interface RTCRtpCapabilities {
- codecs: RTCRtpCodecCapability[];
- headerExtensions: RTCRtpHeaderExtensionCapability[];
- }
- interface RTCRtpCodecCapability {
- channels?: number;
- clockRate: number;
- mimeType: string;
- sdpFmtpLine?: string;
- }
- interface RTCRtpCodecParameters {
- channels?: number;
- clockRate: number;
- mimeType: string;
- payloadType: number;
- sdpFmtpLine?: string;
- }
- interface RTCRtpCodingParameters {
- rid?: string;
- }
- interface RTCRtpContributingSource {
- audioLevel?: number;
- rtpTimestamp: number;
- source: number;
- timestamp: DOMHighResTimeStamp;
- }
- interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
- active?: boolean;
- maxBitrate?: number;
- maxFramerate?: number;
- networkPriority?: RTCPriorityType;
- priority?: RTCPriorityType;
- scaleResolutionDownBy?: number;
- }
- interface RTCRtpHeaderExtensionCapability {
- uri?: string;
- }
- interface RTCRtpHeaderExtensionParameters {
- encrypted?: boolean;
- id: number;
- uri: string;
- }
- interface RTCRtpParameters {
- codecs: RTCRtpCodecParameters[];
- headerExtensions: RTCRtpHeaderExtensionParameters[];
- rtcp: RTCRtcpParameters;
- }
- interface RTCRtpReceiveParameters extends RTCRtpParameters {
- }
- interface RTCRtpSendParameters extends RTCRtpParameters {
- degradationPreference?: RTCDegradationPreference;
- encodings: RTCRtpEncodingParameters[];
- transactionId: string;
- }
- interface RTCRtpStreamStats extends RTCStats {
- codecId?: string;
- kind: string;
- ssrc: number;
- transportId?: string;
- }
- interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
- }
- interface RTCRtpTransceiverInit {
- direction?: RTCRtpTransceiverDirection;
- sendEncodings?: RTCRtpEncodingParameters[];
- streams?: MediaStream[];
- }
- interface RTCSentRtpStreamStats extends RTCRtpStreamStats {
- bytesSent?: number;
- packetsSent?: number;
- }
- interface RTCSessionDescriptionInit {
- sdp?: string;
- type: RTCSdpType;
- }
- interface RTCStats {
- id: string;
- timestamp: DOMHighResTimeStamp;
- type: RTCStatsType;
- }
- interface RTCTrackEventInit extends EventInit {
- receiver: RTCRtpReceiver;
- streams?: MediaStream[];
- track: MediaStreamTrack;
- transceiver: RTCRtpTransceiver;
- }
- interface RTCTransportStats extends RTCStats {
- bytesReceived?: number;
- bytesSent?: number;
- dtlsCipher?: string;
- dtlsState: RTCDtlsTransportState;
- localCertificateId?: string;
- remoteCertificateId?: string;
- selectedCandidatePairId?: string;
- srtpCipher?: string;
- tlsVersion?: string;
- }
- interface ReadableStreamGetReaderOptions {
- /**
- * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
- *
- * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
- */
- mode?: ReadableStreamReaderMode;
- }
- interface ReadableStreamReadDoneResult<T> {
- done: true;
- value?: T;
- }
- interface ReadableStreamReadValueResult<T> {
- done: false;
- value: T;
- }
- interface ReadableWritablePair<R = any, W = any> {
- readable: ReadableStream<R>;
- /**
- * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
- *
- * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
- */
- writable: WritableStream<W>;
- }
- interface RegistrationOptions {
- scope?: string;
- type?: WorkerType;
- updateViaCache?: ServiceWorkerUpdateViaCache;
- }
- interface RequestInit {
- /** A BodyInit object or null to set request's body. */
- body?: BodyInit | null;
- /** A string indicating how the request will interact with the browser's cache to set request's cache. */
- cache?: RequestCache;
- /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
- credentials?: RequestCredentials;
- /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
- headers?: HeadersInit;
- /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
- integrity?: string;
- /** A boolean to set request's keepalive. */
- keepalive?: boolean;
- /** A string to set request's method. */
- method?: string;
- /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
- mode?: RequestMode;
- /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
- redirect?: RequestRedirect;
- /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
- referrer?: string;
- /** A referrer policy to set request's referrerPolicy. */
- referrerPolicy?: ReferrerPolicy;
- /** An AbortSignal to set request's signal. */
- signal?: AbortSignal | null;
- /** Can only be null. Used to disassociate request from any Window. */
- window?: null;
- }
- interface ResizeObserverOptions {
- box?: ResizeObserverBoxOptions;
- }
- interface ResponseInit {
- headers?: HeadersInit;
- status?: number;
- statusText?: string;
- }
- interface RsaHashedImportParams extends Algorithm {
- hash: HashAlgorithmIdentifier;
- }
- interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
- hash: KeyAlgorithm;
- }
- interface RsaHashedKeyGenParams extends RsaKeyGenParams {
- hash: HashAlgorithmIdentifier;
- }
- interface RsaKeyAlgorithm extends KeyAlgorithm {
- modulusLength: number;
- publicExponent: BigInteger;
- }
- interface RsaKeyGenParams extends Algorithm {
- modulusLength: number;
- publicExponent: BigInteger;
- }
- interface RsaOaepParams extends Algorithm {
- label?: BufferSource;
- }
- interface RsaOtherPrimesInfo {
- d?: string;
- r?: string;
- t?: string;
- }
- interface RsaPssParams extends Algorithm {
- saltLength: number;
- }
- interface SVGBoundingBoxOptions {
- clipped?: boolean;
- fill?: boolean;
- markers?: boolean;
- stroke?: boolean;
- }
- interface ScrollIntoViewOptions extends ScrollOptions {
- block?: ScrollLogicalPosition;
- inline?: ScrollLogicalPosition;
- }
- interface ScrollOptions {
- behavior?: ScrollBehavior;
- }
- interface ScrollToOptions extends ScrollOptions {
- left?: number;
- top?: number;
- }
- interface SecurityPolicyViolationEventInit extends EventInit {
- blockedURI?: string;
- columnNumber?: number;
- disposition: SecurityPolicyViolationEventDisposition;
- documentURI: string;
- effectiveDirective: string;
- lineNumber?: number;
- originalPolicy: string;
- referrer?: string;
- sample?: string;
- sourceFile?: string;
- statusCode: number;
- violatedDirective: string;
- }
- interface ShadowRootInit {
- delegatesFocus?: boolean;
- mode: ShadowRootMode;
- slotAssignment?: SlotAssignmentMode;
- }
- interface ShareData {
- files?: File[];
- text?: string;
- title?: string;
- url?: string;
- }
- interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
- error: SpeechSynthesisErrorCode;
- }
- interface SpeechSynthesisEventInit extends EventInit {
- charIndex?: number;
- charLength?: number;
- elapsedTime?: number;
- name?: string;
- utterance: SpeechSynthesisUtterance;
- }
- interface StaticRangeInit {
- endContainer: Node;
- endOffset: number;
- startContainer: Node;
- startOffset: number;
- }
- interface StereoPannerOptions extends AudioNodeOptions {
- pan?: number;
- }
- interface StorageEstimate {
- quota?: number;
- usage?: number;
- }
- interface StorageEventInit extends EventInit {
- key?: string | null;
- newValue?: string | null;
- oldValue?: string | null;
- storageArea?: Storage | null;
- url?: string;
- }
- interface StreamPipeOptions {
- preventAbort?: boolean;
- preventCancel?: boolean;
- /**
- * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
- *
- * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
- *
- * Errors and closures of the source and destination streams propagate as follows:
- *
- * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
- *
- * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
- *
- * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
- *
- * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
- *
- * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
- */
- preventClose?: boolean;
- signal?: AbortSignal;
- }
- interface StructuredSerializeOptions {
- transfer?: Transferable[];
- }
- interface SubmitEventInit extends EventInit {
- submitter?: HTMLElement | null;
- }
- interface TextDecodeOptions {
- stream?: boolean;
- }
- interface TextDecoderOptions {
- fatal?: boolean;
- ignoreBOM?: boolean;
- }
- interface TextEncoderEncodeIntoResult {
- read?: number;
- written?: number;
- }
- interface TouchEventInit extends EventModifierInit {
- changedTouches?: Touch[];
- targetTouches?: Touch[];
- touches?: Touch[];
- }
- interface TouchInit {
- altitudeAngle?: number;
- azimuthAngle?: number;
- clientX?: number;
- clientY?: number;
- force?: number;
- identifier: number;
- pageX?: number;
- pageY?: number;
- radiusX?: number;
- radiusY?: number;
- rotationAngle?: number;
- screenX?: number;
- screenY?: number;
- target: EventTarget;
- touchType?: TouchType;
- }
- interface TrackEventInit extends EventInit {
- track?: TextTrack | null;
- }
- interface Transformer<I = any, O = any> {
- flush?: TransformerFlushCallback<O>;
- readableType?: undefined;
- start?: TransformerStartCallback<O>;
- transform?: TransformerTransformCallback<I, O>;
- writableType?: undefined;
- }
- interface TransitionEventInit extends EventInit {
- elapsedTime?: number;
- propertyName?: string;
- pseudoElement?: string;
- }
- interface UIEventInit extends EventInit {
- detail?: number;
- view?: Window | null;
- /** @deprecated */
- which?: number;
- }
- interface ULongRange {
- max?: number;
- min?: number;
- }
- interface UnderlyingByteSource {
- autoAllocateChunkSize?: number;
- cancel?: UnderlyingSourceCancelCallback;
- pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
- start?: (controller: ReadableByteStreamController) => any;
- type: "bytes";
- }
- interface UnderlyingDefaultSource<R = any> {
- cancel?: UnderlyingSourceCancelCallback;
- pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
- start?: (controller: ReadableStreamDefaultController<R>) => any;
- type?: undefined;
- }
- interface UnderlyingSink<W = any> {
- abort?: UnderlyingSinkAbortCallback;
- close?: UnderlyingSinkCloseCallback;
- start?: UnderlyingSinkStartCallback;
- type?: undefined;
- write?: UnderlyingSinkWriteCallback<W>;
- }
- interface UnderlyingSource<R = any> {
- autoAllocateChunkSize?: number;
- cancel?: UnderlyingSourceCancelCallback;
- pull?: UnderlyingSourcePullCallback<R>;
- start?: UnderlyingSourceStartCallback<R>;
- type?: ReadableStreamType;
- }
- interface ValidityStateFlags {
- badInput?: boolean;
- customError?: boolean;
- patternMismatch?: boolean;
- rangeOverflow?: boolean;
- rangeUnderflow?: boolean;
- stepMismatch?: boolean;
- tooLong?: boolean;
- tooShort?: boolean;
- typeMismatch?: boolean;
- valueMissing?: boolean;
- }
- interface VideoColorSpaceInit {
- fullRange?: boolean | null;
- matrix?: VideoMatrixCoefficients | null;
- primaries?: VideoColorPrimaries | null;
- transfer?: VideoTransferCharacteristics | null;
- }
- interface VideoConfiguration {
- bitrate: number;
- colorGamut?: ColorGamut;
- contentType: string;
- framerate: number;
- hdrMetadataType?: HdrMetadataType;
- height: number;
- scalabilityMode?: string;
- transferFunction?: TransferFunction;
- width: number;
- }
- interface VideoFrameCallbackMetadata {
- captureTime?: DOMHighResTimeStamp;
- expectedDisplayTime: DOMHighResTimeStamp;
- height: number;
- mediaTime: number;
- presentationTime: DOMHighResTimeStamp;
- presentedFrames: number;
- processingDuration?: number;
- receiveTime?: DOMHighResTimeStamp;
- rtpTimestamp?: number;
- width: number;
- }
- interface WaveShaperOptions extends AudioNodeOptions {
- curve?: number[] | Float32Array;
- oversample?: OverSampleType;
- }
- interface WebGLContextAttributes {
- alpha?: boolean;
- antialias?: boolean;
- depth?: boolean;
- desynchronized?: boolean;
- failIfMajorPerformanceCaveat?: boolean;
- powerPreference?: WebGLPowerPreference;
- premultipliedAlpha?: boolean;
- preserveDrawingBuffer?: boolean;
- stencil?: boolean;
- }
- interface WebGLContextEventInit extends EventInit {
- statusMessage?: string;
- }
- interface WheelEventInit extends MouseEventInit {
- deltaMode?: number;
- deltaX?: number;
- deltaY?: number;
- deltaZ?: number;
- }
- interface WindowPostMessageOptions extends StructuredSerializeOptions {
- targetOrigin?: string;
- }
- interface WorkerOptions {
- credentials?: RequestCredentials;
- name?: string;
- type?: WorkerType;
- }
- interface WorkletOptions {
- credentials?: RequestCredentials;
- }
- type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
- declare var NodeFilter: {
- readonly FILTER_ACCEPT: 1;
- readonly FILTER_REJECT: 2;
- readonly FILTER_SKIP: 3;
- readonly SHOW_ALL: 0xFFFFFFFF;
- readonly SHOW_ELEMENT: 0x1;
- readonly SHOW_ATTRIBUTE: 0x2;
- readonly SHOW_TEXT: 0x4;
- readonly SHOW_CDATA_SECTION: 0x8;
- readonly SHOW_ENTITY_REFERENCE: 0x10;
- readonly SHOW_ENTITY: 0x20;
- readonly SHOW_PROCESSING_INSTRUCTION: 0x40;
- readonly SHOW_COMMENT: 0x80;
- readonly SHOW_DOCUMENT: 0x100;
- readonly SHOW_DOCUMENT_TYPE: 0x200;
- readonly SHOW_DOCUMENT_FRAGMENT: 0x400;
- readonly SHOW_NOTATION: 0x800;
- };
- type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };
- /** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */
- interface ANGLE_instanced_arrays {
- drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
- drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
- vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
- }
- interface ARIAMixin {
- ariaAtomic: string | null;
- ariaAutoComplete: string | null;
- ariaBusy: string | null;
- ariaChecked: string | null;
- ariaColCount: string | null;
- ariaColIndex: string | null;
- ariaColSpan: string | null;
- ariaCurrent: string | null;
- ariaDisabled: string | null;
- ariaExpanded: string | null;
- ariaHasPopup: string | null;
- ariaHidden: string | null;
- ariaInvalid: string | null;
- ariaKeyShortcuts: string | null;
- ariaLabel: string | null;
- ariaLevel: string | null;
- ariaLive: string | null;
- ariaModal: string | null;
- ariaMultiLine: string | null;
- ariaMultiSelectable: string | null;
- ariaOrientation: string | null;
- ariaPlaceholder: string | null;
- ariaPosInSet: string | null;
- ariaPressed: string | null;
- ariaReadOnly: string | null;
- ariaRequired: string | null;
- ariaRoleDescription: string | null;
- ariaRowCount: string | null;
- ariaRowIndex: string | null;
- ariaRowSpan: string | null;
- ariaSelected: string | null;
- ariaSetSize: string | null;
- ariaSort: string | null;
- ariaValueMax: string | null;
- ariaValueMin: string | null;
- ariaValueNow: string | null;
- ariaValueText: string | null;
- role: string | null;
- }
- /** A controller object that allows you to abort one or more DOM requests as and when desired. */
- interface AbortController {
- /** Returns the AbortSignal object associated with this object. */
- readonly signal: AbortSignal;
- /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
- abort(reason?: any): void;
- }
- declare var AbortController: {
- prototype: AbortController;
- new(): AbortController;
- };
- interface AbortSignalEventMap {
- "abort": Event;
- }
- /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
- interface AbortSignal extends EventTarget {
- /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
- readonly aborted: boolean;
- onabort: ((this: AbortSignal, ev: Event) => any) | null;
- readonly reason: any;
- throwIfAborted(): void;
- addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var AbortSignal: {
- prototype: AbortSignal;
- new(): AbortSignal;
- abort(reason?: any): AbortSignal;
- timeout(milliseconds: number): AbortSignal;
- };
- interface AbstractRange {
- /** Returns true if range is collapsed, and false otherwise. */
- readonly collapsed: boolean;
- /** Returns range's end node. */
- readonly endContainer: Node;
- /** Returns range's end offset. */
- readonly endOffset: number;
- /** Returns range's start node. */
- readonly startContainer: Node;
- /** Returns range's start offset. */
- readonly startOffset: number;
- }
- declare var AbstractRange: {
- prototype: AbstractRange;
- new(): AbstractRange;
- };
- interface AbstractWorkerEventMap {
- "error": ErrorEvent;
- }
- interface AbstractWorker {
- onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
- addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- /** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */
- interface AnalyserNode extends AudioNode {
- fftSize: number;
- readonly frequencyBinCount: number;
- maxDecibels: number;
- minDecibels: number;
- smoothingTimeConstant: number;
- getByteFrequencyData(array: Uint8Array): void;
- getByteTimeDomainData(array: Uint8Array): void;
- getFloatFrequencyData(array: Float32Array): void;
- getFloatTimeDomainData(array: Float32Array): void;
- }
- declare var AnalyserNode: {
- prototype: AnalyserNode;
- new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
- };
- interface Animatable {
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
- getAnimations(options?: GetAnimationsOptions): Animation[];
- }
- interface AnimationEventMap {
- "cancel": AnimationPlaybackEvent;
- "finish": AnimationPlaybackEvent;
- "remove": Event;
- }
- interface Animation extends EventTarget {
- currentTime: CSSNumberish | null;
- effect: AnimationEffect | null;
- readonly finished: Promise<Animation>;
- id: string;
- oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
- onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
- onremove: ((this: Animation, ev: Event) => any) | null;
- readonly pending: boolean;
- readonly playState: AnimationPlayState;
- playbackRate: number;
- readonly ready: Promise<Animation>;
- readonly replaceState: AnimationReplaceState;
- startTime: CSSNumberish | null;
- timeline: AnimationTimeline | null;
- cancel(): void;
- commitStyles(): void;
- finish(): void;
- pause(): void;
- persist(): void;
- play(): void;
- reverse(): void;
- updatePlaybackRate(playbackRate: number): void;
- addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var Animation: {
- prototype: Animation;
- new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
- };
- interface AnimationEffect {
- getComputedTiming(): ComputedEffectTiming;
- getTiming(): EffectTiming;
- updateTiming(timing?: OptionalEffectTiming): void;
- }
- declare var AnimationEffect: {
- prototype: AnimationEffect;
- new(): AnimationEffect;
- };
- /** Events providing information related to animations. */
- interface AnimationEvent extends Event {
- readonly animationName: string;
- readonly elapsedTime: number;
- readonly pseudoElement: string;
- }
- declare var AnimationEvent: {
- prototype: AnimationEvent;
- new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
- };
- interface AnimationFrameProvider {
- cancelAnimationFrame(handle: number): void;
- requestAnimationFrame(callback: FrameRequestCallback): number;
- }
- interface AnimationPlaybackEvent extends Event {
- readonly currentTime: CSSNumberish | null;
- readonly timelineTime: CSSNumberish | null;
- }
- declare var AnimationPlaybackEvent: {
- prototype: AnimationPlaybackEvent;
- new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
- };
- interface AnimationTimeline {
- readonly currentTime: number | null;
- }
- declare var AnimationTimeline: {
- prototype: AnimationTimeline;
- new(): AnimationTimeline;
- };
- /** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */
- interface Attr extends Node {
- readonly localName: string;
- readonly name: string;
- readonly namespaceURI: string | null;
- readonly ownerDocument: Document;
- readonly ownerElement: Element | null;
- readonly prefix: string | null;
- /** @deprecated */
- readonly specified: boolean;
- value: string;
- }
- declare var Attr: {
- prototype: Attr;
- new(): Attr;
- };
- /** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */
- interface AudioBuffer {
- readonly duration: number;
- readonly length: number;
- readonly numberOfChannels: number;
- readonly sampleRate: number;
- copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;
- copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;
- getChannelData(channel: number): Float32Array;
- }
- declare var AudioBuffer: {
- prototype: AudioBuffer;
- new(options: AudioBufferOptions): AudioBuffer;
- };
- /** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */
- interface AudioBufferSourceNode extends AudioScheduledSourceNode {
- buffer: AudioBuffer | null;
- readonly detune: AudioParam;
- loop: boolean;
- loopEnd: number;
- loopStart: number;
- readonly playbackRate: AudioParam;
- start(when?: number, offset?: number, duration?: number): void;
- addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var AudioBufferSourceNode: {
- prototype: AudioBufferSourceNode;
- new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
- };
- /** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
- interface AudioContext extends BaseAudioContext {
- readonly baseLatency: number;
- readonly outputLatency: number;
- close(): Promise<void>;
- createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
- createMediaStreamDestination(): MediaStreamAudioDestinationNode;
- createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
- getOutputTimestamp(): AudioTimestamp;
- resume(): Promise<void>;
- suspend(): Promise<void>;
- addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var AudioContext: {
- prototype: AudioContext;
- new(contextOptions?: AudioContextOptions): AudioContext;
- };
- /** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */
- interface AudioDestinationNode extends AudioNode {
- readonly maxChannelCount: number;
- }
- declare var AudioDestinationNode: {
- prototype: AudioDestinationNode;
- new(): AudioDestinationNode;
- };
- /** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */
- interface AudioListener {
- readonly forwardX: AudioParam;
- readonly forwardY: AudioParam;
- readonly forwardZ: AudioParam;
- readonly positionX: AudioParam;
- readonly positionY: AudioParam;
- readonly positionZ: AudioParam;
- readonly upX: AudioParam;
- readonly upY: AudioParam;
- readonly upZ: AudioParam;
- /** @deprecated */
- setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
- /** @deprecated */
- setPosition(x: number, y: number, z: number): void;
- }
- declare var AudioListener: {
- prototype: AudioListener;
- new(): AudioListener;
- };
- /** A generic interface for representing an audio processing module. Examples include: */
- interface AudioNode extends EventTarget {
- channelCount: number;
- channelCountMode: ChannelCountMode;
- channelInterpretation: ChannelInterpretation;
- readonly context: BaseAudioContext;
- readonly numberOfInputs: number;
- readonly numberOfOutputs: number;
- connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
- connect(destinationParam: AudioParam, output?: number): void;
- disconnect(): void;
- disconnect(output: number): void;
- disconnect(destinationNode: AudioNode): void;
- disconnect(destinationNode: AudioNode, output: number): void;
- disconnect(destinationNode: AudioNode, output: number, input: number): void;
- disconnect(destinationParam: AudioParam): void;
- disconnect(destinationParam: AudioParam, output: number): void;
- }
- declare var AudioNode: {
- prototype: AudioNode;
- new(): AudioNode;
- };
- /** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */
- interface AudioParam {
- automationRate: AutomationRate;
- readonly defaultValue: number;
- readonly maxValue: number;
- readonly minValue: number;
- value: number;
- cancelAndHoldAtTime(cancelTime: number): AudioParam;
- cancelScheduledValues(cancelTime: number): AudioParam;
- exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
- linearRampToValueAtTime(value: number, endTime: number): AudioParam;
- setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
- setValueAtTime(value: number, startTime: number): AudioParam;
- setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
- }
- declare var AudioParam: {
- prototype: AudioParam;
- new(): AudioParam;
- };
- interface AudioParamMap {
- forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
- }
- declare var AudioParamMap: {
- prototype: AudioParamMap;
- new(): AudioParamMap;
- };
- /**
- * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
- * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.
- */
- interface AudioProcessingEvent extends Event {
- /** @deprecated */
- readonly inputBuffer: AudioBuffer;
- /** @deprecated */
- readonly outputBuffer: AudioBuffer;
- /** @deprecated */
- readonly playbackTime: number;
- }
- /** @deprecated */
- declare var AudioProcessingEvent: {
- prototype: AudioProcessingEvent;
- new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
- };
- interface AudioScheduledSourceNodeEventMap {
- "ended": Event;
- }
- interface AudioScheduledSourceNode extends AudioNode {
- onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
- start(when?: number): void;
- stop(when?: number): void;
- addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var AudioScheduledSourceNode: {
- prototype: AudioScheduledSourceNode;
- new(): AudioScheduledSourceNode;
- };
- /** Available only in secure contexts. */
- interface AudioWorklet extends Worklet {
- }
- declare var AudioWorklet: {
- prototype: AudioWorklet;
- new(): AudioWorklet;
- };
- interface AudioWorkletNodeEventMap {
- "processorerror": Event;
- }
- /** Available only in secure contexts. */
- interface AudioWorkletNode extends AudioNode {
- onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
- readonly parameters: AudioParamMap;
- readonly port: MessagePort;
- addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var AudioWorkletNode: {
- prototype: AudioWorkletNode;
- new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
- };
- /** Available only in secure contexts. */
- interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
- readonly authenticatorData: ArrayBuffer;
- readonly signature: ArrayBuffer;
- readonly userHandle: ArrayBuffer | null;
- }
- declare var AuthenticatorAssertionResponse: {
- prototype: AuthenticatorAssertionResponse;
- new(): AuthenticatorAssertionResponse;
- };
- /** Available only in secure contexts. */
- interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
- readonly attestationObject: ArrayBuffer;
- getAuthenticatorData(): ArrayBuffer;
- getPublicKey(): ArrayBuffer | null;
- getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
- getTransports(): string[];
- }
- declare var AuthenticatorAttestationResponse: {
- prototype: AuthenticatorAttestationResponse;
- new(): AuthenticatorAttestationResponse;
- };
- /** Available only in secure contexts. */
- interface AuthenticatorResponse {
- readonly clientDataJSON: ArrayBuffer;
- }
- declare var AuthenticatorResponse: {
- prototype: AuthenticatorResponse;
- new(): AuthenticatorResponse;
- };
- interface BarProp {
- readonly visible: boolean;
- }
- declare var BarProp: {
- prototype: BarProp;
- new(): BarProp;
- };
- interface BaseAudioContextEventMap {
- "statechange": Event;
- }
- interface BaseAudioContext extends EventTarget {
- /** Available only in secure contexts. */
- readonly audioWorklet: AudioWorklet;
- readonly currentTime: number;
- readonly destination: AudioDestinationNode;
- readonly listener: AudioListener;
- onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
- readonly sampleRate: number;
- readonly state: AudioContextState;
- createAnalyser(): AnalyserNode;
- createBiquadFilter(): BiquadFilterNode;
- createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
- createBufferSource(): AudioBufferSourceNode;
- createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
- createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
- createConstantSource(): ConstantSourceNode;
- createConvolver(): ConvolverNode;
- createDelay(maxDelayTime?: number): DelayNode;
- createDynamicsCompressor(): DynamicsCompressorNode;
- createGain(): GainNode;
- createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
- createOscillator(): OscillatorNode;
- createPanner(): PannerNode;
- createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
- /** @deprecated */
- createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
- createStereoPanner(): StereoPannerNode;
- createWaveShaper(): WaveShaperNode;
- decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;
- addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var BaseAudioContext: {
- prototype: BaseAudioContext;
- new(): BaseAudioContext;
- };
- /** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */
- interface BeforeUnloadEvent extends Event {
- returnValue: any;
- }
- declare var BeforeUnloadEvent: {
- prototype: BeforeUnloadEvent;
- new(): BeforeUnloadEvent;
- };
- /** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */
- interface BiquadFilterNode extends AudioNode {
- readonly Q: AudioParam;
- readonly detune: AudioParam;
- readonly frequency: AudioParam;
- readonly gain: AudioParam;
- type: BiquadFilterType;
- getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
- }
- declare var BiquadFilterNode: {
- prototype: BiquadFilterNode;
- new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
- };
- /** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
- interface Blob {
- readonly size: number;
- readonly type: string;
- arrayBuffer(): Promise<ArrayBuffer>;
- slice(start?: number, end?: number, contentType?: string): Blob;
- stream(): ReadableStream<Uint8Array>;
- text(): Promise<string>;
- }
- declare var Blob: {
- prototype: Blob;
- new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
- };
- interface BlobEvent extends Event {
- readonly data: Blob;
- readonly timecode: DOMHighResTimeStamp;
- }
- declare var BlobEvent: {
- prototype: BlobEvent;
- new(type: string, eventInitDict: BlobEventInit): BlobEvent;
- };
- interface Body {
- readonly body: ReadableStream<Uint8Array> | null;
- readonly bodyUsed: boolean;
- arrayBuffer(): Promise<ArrayBuffer>;
- blob(): Promise<Blob>;
- formData(): Promise<FormData>;
- json(): Promise<any>;
- text(): Promise<string>;
- }
- interface BroadcastChannelEventMap {
- "message": MessageEvent;
- "messageerror": MessageEvent;
- }
- interface BroadcastChannel extends EventTarget {
- /** Returns the channel name (as passed to the constructor). */
- readonly name: string;
- onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
- onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
- /** Closes the BroadcastChannel object, opening it up to garbage collection. */
- close(): void;
- /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */
- postMessage(message: any): void;
- addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var BroadcastChannel: {
- prototype: BroadcastChannel;
- new(name: string): BroadcastChannel;
- };
- /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
- interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
- readonly highWaterMark: number;
- readonly size: QueuingStrategySize<ArrayBufferView>;
- }
- declare var ByteLengthQueuingStrategy: {
- prototype: ByteLengthQueuingStrategy;
- new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
- };
- /** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. */
- interface CDATASection extends Text {
- }
- declare var CDATASection: {
- prototype: CDATASection;
- new(): CDATASection;
- };
- interface CSSAnimation extends Animation {
- readonly animationName: string;
- addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var CSSAnimation: {
- prototype: CSSAnimation;
- new(): CSSAnimation;
- };
- /** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
- interface CSSConditionRule extends CSSGroupingRule {
- readonly conditionText: string;
- }
- declare var CSSConditionRule: {
- prototype: CSSConditionRule;
- new(): CSSConditionRule;
- };
- interface CSSContainerRule extends CSSConditionRule {
- }
- declare var CSSContainerRule: {
- prototype: CSSContainerRule;
- new(): CSSContainerRule;
- };
- interface CSSCounterStyleRule extends CSSRule {
- additiveSymbols: string;
- fallback: string;
- name: string;
- negative: string;
- pad: string;
- prefix: string;
- range: string;
- speakAs: string;
- suffix: string;
- symbols: string;
- system: string;
- }
- declare var CSSCounterStyleRule: {
- prototype: CSSCounterStyleRule;
- new(): CSSCounterStyleRule;
- };
- interface CSSFontFaceRule extends CSSRule {
- readonly style: CSSStyleDeclaration;
- }
- declare var CSSFontFaceRule: {
- prototype: CSSFontFaceRule;
- new(): CSSFontFaceRule;
- };
- interface CSSFontFeatureValuesRule extends CSSRule {
- fontFamily: string;
- }
- declare var CSSFontFeatureValuesRule: {
- prototype: CSSFontFeatureValuesRule;
- new(): CSSFontFeatureValuesRule;
- };
- interface CSSFontPaletteValuesRule extends CSSRule {
- readonly basePalette: string;
- readonly fontFamily: string;
- readonly name: string;
- readonly overrideColors: string;
- }
- declare var CSSFontPaletteValuesRule: {
- prototype: CSSFontPaletteValuesRule;
- new(): CSSFontPaletteValuesRule;
- };
- /** Any CSS at-rule that contains other rules nested within it. */
- interface CSSGroupingRule extends CSSRule {
- readonly cssRules: CSSRuleList;
- deleteRule(index: number): void;
- insertRule(rule: string, index?: number): number;
- }
- declare var CSSGroupingRule: {
- prototype: CSSGroupingRule;
- new(): CSSGroupingRule;
- };
- interface CSSImportRule extends CSSRule {
- readonly href: string;
- readonly layerName: string | null;
- readonly media: MediaList;
- readonly styleSheet: CSSStyleSheet;
- }
- declare var CSSImportRule: {
- prototype: CSSImportRule;
- new(): CSSImportRule;
- };
- /** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */
- interface CSSKeyframeRule extends CSSRule {
- keyText: string;
- readonly style: CSSStyleDeclaration;
- }
- declare var CSSKeyframeRule: {
- prototype: CSSKeyframeRule;
- new(): CSSKeyframeRule;
- };
- /** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */
- interface CSSKeyframesRule extends CSSRule {
- readonly cssRules: CSSRuleList;
- name: string;
- appendRule(rule: string): void;
- deleteRule(select: string): void;
- findRule(select: string): CSSKeyframeRule | null;
- [index: number]: CSSKeyframeRule;
- }
- declare var CSSKeyframesRule: {
- prototype: CSSKeyframesRule;
- new(): CSSKeyframesRule;
- };
- interface CSSLayerBlockRule extends CSSGroupingRule {
- readonly name: string;
- }
- declare var CSSLayerBlockRule: {
- prototype: CSSLayerBlockRule;
- new(): CSSLayerBlockRule;
- };
- interface CSSLayerStatementRule extends CSSRule {
- readonly nameList: ReadonlyArray<string>;
- }
- declare var CSSLayerStatementRule: {
- prototype: CSSLayerStatementRule;
- new(): CSSLayerStatementRule;
- };
- /** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */
- interface CSSMediaRule extends CSSConditionRule {
- readonly media: MediaList;
- }
- declare var CSSMediaRule: {
- prototype: CSSMediaRule;
- new(): CSSMediaRule;
- };
- /** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */
- interface CSSNamespaceRule extends CSSRule {
- readonly namespaceURI: string;
- readonly prefix: string;
- }
- declare var CSSNamespaceRule: {
- prototype: CSSNamespaceRule;
- new(): CSSNamespaceRule;
- };
- /** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */
- interface CSSPageRule extends CSSGroupingRule {
- selectorText: string;
- readonly style: CSSStyleDeclaration;
- }
- declare var CSSPageRule: {
- prototype: CSSPageRule;
- new(): CSSPageRule;
- };
- /** A single CSS rule. There are several types of rules, listed in the Type constants section below. */
- interface CSSRule {
- cssText: string;
- readonly parentRule: CSSRule | null;
- readonly parentStyleSheet: CSSStyleSheet | null;
- /** @deprecated */
- readonly type: number;
- readonly STYLE_RULE: 1;
- readonly CHARSET_RULE: 2;
- readonly IMPORT_RULE: 3;
- readonly MEDIA_RULE: 4;
- readonly FONT_FACE_RULE: 5;
- readonly PAGE_RULE: 6;
- readonly NAMESPACE_RULE: 10;
- readonly KEYFRAMES_RULE: 7;
- readonly KEYFRAME_RULE: 8;
- readonly SUPPORTS_RULE: 12;
- }
- declare var CSSRule: {
- prototype: CSSRule;
- new(): CSSRule;
- readonly STYLE_RULE: 1;
- readonly CHARSET_RULE: 2;
- readonly IMPORT_RULE: 3;
- readonly MEDIA_RULE: 4;
- readonly FONT_FACE_RULE: 5;
- readonly PAGE_RULE: 6;
- readonly NAMESPACE_RULE: 10;
- readonly KEYFRAMES_RULE: 7;
- readonly KEYFRAME_RULE: 8;
- readonly SUPPORTS_RULE: 12;
- };
- /** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */
- interface CSSRuleList {
- readonly length: number;
- item(index: number): CSSRule | null;
- [index: number]: CSSRule;
- }
- declare var CSSRuleList: {
- prototype: CSSRuleList;
- new(): CSSRuleList;
- };
- /** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
- interface CSSStyleDeclaration {
- accentColor: string;
- alignContent: string;
- alignItems: string;
- alignSelf: string;
- alignmentBaseline: string;
- all: string;
- animation: string;
- animationDelay: string;
- animationDirection: string;
- animationDuration: string;
- animationFillMode: string;
- animationIterationCount: string;
- animationName: string;
- animationPlayState: string;
- animationTimingFunction: string;
- appearance: string;
- aspectRatio: string;
- backdropFilter: string;
- backfaceVisibility: string;
- background: string;
- backgroundAttachment: string;
- backgroundBlendMode: string;
- backgroundClip: string;
- backgroundColor: string;
- backgroundImage: string;
- backgroundOrigin: string;
- backgroundPosition: string;
- backgroundPositionX: string;
- backgroundPositionY: string;
- backgroundRepeat: string;
- backgroundSize: string;
- baselineShift: string;
- blockSize: string;
- border: string;
- borderBlock: string;
- borderBlockColor: string;
- borderBlockEnd: string;
- borderBlockEndColor: string;
- borderBlockEndStyle: string;
- borderBlockEndWidth: string;
- borderBlockStart: string;
- borderBlockStartColor: string;
- borderBlockStartStyle: string;
- borderBlockStartWidth: string;
- borderBlockStyle: string;
- borderBlockWidth: string;
- borderBottom: string;
- borderBottomColor: string;
- borderBottomLeftRadius: string;
- borderBottomRightRadius: string;
- borderBottomStyle: string;
- borderBottomWidth: string;
- borderCollapse: string;
- borderColor: string;
- borderEndEndRadius: string;
- borderEndStartRadius: string;
- borderImage: string;
- borderImageOutset: string;
- borderImageRepeat: string;
- borderImageSlice: string;
- borderImageSource: string;
- borderImageWidth: string;
- borderInline: string;
- borderInlineColor: string;
- borderInlineEnd: string;
- borderInlineEndColor: string;
- borderInlineEndStyle: string;
- borderInlineEndWidth: string;
- borderInlineStart: string;
- borderInlineStartColor: string;
- borderInlineStartStyle: string;
- borderInlineStartWidth: string;
- borderInlineStyle: string;
- borderInlineWidth: string;
- borderLeft: string;
- borderLeftColor: string;
- borderLeftStyle: string;
- borderLeftWidth: string;
- borderRadius: string;
- borderRight: string;
- borderRightColor: string;
- borderRightStyle: string;
- borderRightWidth: string;
- borderSpacing: string;
- borderStartEndRadius: string;
- borderStartStartRadius: string;
- borderStyle: string;
- borderTop: string;
- borderTopColor: string;
- borderTopLeftRadius: string;
- borderTopRightRadius: string;
- borderTopStyle: string;
- borderTopWidth: string;
- borderWidth: string;
- bottom: string;
- boxShadow: string;
- boxSizing: string;
- breakAfter: string;
- breakBefore: string;
- breakInside: string;
- captionSide: string;
- caretColor: string;
- clear: string;
- /** @deprecated */
- clip: string;
- clipPath: string;
- clipRule: string;
- color: string;
- colorInterpolation: string;
- colorInterpolationFilters: string;
- colorScheme: string;
- columnCount: string;
- columnFill: string;
- columnGap: string;
- columnRule: string;
- columnRuleColor: string;
- columnRuleStyle: string;
- columnRuleWidth: string;
- columnSpan: string;
- columnWidth: string;
- columns: string;
- contain: string;
- containIntrinsicBlockSize: string;
- containIntrinsicHeight: string;
- containIntrinsicInlineSize: string;
- containIntrinsicSize: string;
- containIntrinsicWidth: string;
- container: string;
- containerName: string;
- containerType: string;
- content: string;
- contentVisibility: string;
- counterIncrement: string;
- counterReset: string;
- counterSet: string;
- cssFloat: string;
- cssText: string;
- cursor: string;
- direction: string;
- display: string;
- dominantBaseline: string;
- emptyCells: string;
- fill: string;
- fillOpacity: string;
- fillRule: string;
- filter: string;
- flex: string;
- flexBasis: string;
- flexDirection: string;
- flexFlow: string;
- flexGrow: string;
- flexShrink: string;
- flexWrap: string;
- float: string;
- floodColor: string;
- floodOpacity: string;
- font: string;
- fontFamily: string;
- fontFeatureSettings: string;
- fontKerning: string;
- fontOpticalSizing: string;
- fontPalette: string;
- fontSize: string;
- fontSizeAdjust: string;
- fontStretch: string;
- fontStyle: string;
- fontSynthesis: string;
- fontVariant: string;
- fontVariantAlternates: string;
- fontVariantCaps: string;
- fontVariantEastAsian: string;
- fontVariantLigatures: string;
- fontVariantNumeric: string;
- fontVariantPosition: string;
- fontVariationSettings: string;
- fontWeight: string;
- gap: string;
- grid: string;
- gridArea: string;
- gridAutoColumns: string;
- gridAutoFlow: string;
- gridAutoRows: string;
- gridColumn: string;
- gridColumnEnd: string;
- /** @deprecated This is a legacy alias of \`columnGap\`. */
- gridColumnGap: string;
- gridColumnStart: string;
- /** @deprecated This is a legacy alias of \`gap\`. */
- gridGap: string;
- gridRow: string;
- gridRowEnd: string;
- /** @deprecated This is a legacy alias of \`rowGap\`. */
- gridRowGap: string;
- gridRowStart: string;
- gridTemplate: string;
- gridTemplateAreas: string;
- gridTemplateColumns: string;
- gridTemplateRows: string;
- height: string;
- hyphenateCharacter: string;
- hyphens: string;
- /** @deprecated */
- imageOrientation: string;
- imageRendering: string;
- inlineSize: string;
- inset: string;
- insetBlock: string;
- insetBlockEnd: string;
- insetBlockStart: string;
- insetInline: string;
- insetInlineEnd: string;
- insetInlineStart: string;
- isolation: string;
- justifyContent: string;
- justifyItems: string;
- justifySelf: string;
- left: string;
- readonly length: number;
- letterSpacing: string;
- lightingColor: string;
- lineBreak: string;
- lineHeight: string;
- listStyle: string;
- listStyleImage: string;
- listStylePosition: string;
- listStyleType: string;
- margin: string;
- marginBlock: string;
- marginBlockEnd: string;
- marginBlockStart: string;
- marginBottom: string;
- marginInline: string;
- marginInlineEnd: string;
- marginInlineStart: string;
- marginLeft: string;
- marginRight: string;
- marginTop: string;
- marker: string;
- markerEnd: string;
- markerMid: string;
- markerStart: string;
- mask: string;
- maskClip: string;
- maskComposite: string;
- maskImage: string;
- maskMode: string;
- maskOrigin: string;
- maskPosition: string;
- maskRepeat: string;
- maskSize: string;
- maskType: string;
- mathStyle: string;
- maxBlockSize: string;
- maxHeight: string;
- maxInlineSize: string;
- maxWidth: string;
- minBlockSize: string;
- minHeight: string;
- minInlineSize: string;
- minWidth: string;
- mixBlendMode: string;
- objectFit: string;
- objectPosition: string;
- offset: string;
- offsetDistance: string;
- offsetPath: string;
- offsetRotate: string;
- opacity: string;
- order: string;
- orphans: string;
- outline: string;
- outlineColor: string;
- outlineOffset: string;
- outlineStyle: string;
- outlineWidth: string;
- overflow: string;
- overflowAnchor: string;
- overflowClipMargin: string;
- overflowWrap: string;
- overflowX: string;
- overflowY: string;
- overscrollBehavior: string;
- overscrollBehaviorBlock: string;
- overscrollBehaviorInline: string;
- overscrollBehaviorX: string;
- overscrollBehaviorY: string;
- padding: string;
- paddingBlock: string;
- paddingBlockEnd: string;
- paddingBlockStart: string;
- paddingBottom: string;
- paddingInline: string;
- paddingInlineEnd: string;
- paddingInlineStart: string;
- paddingLeft: string;
- paddingRight: string;
- paddingTop: string;
- pageBreakAfter: string;
- pageBreakBefore: string;
- pageBreakInside: string;
- paintOrder: string;
- readonly parentRule: CSSRule | null;
- perspective: string;
- perspectiveOrigin: string;
- placeContent: string;
- placeItems: string;
- placeSelf: string;
- pointerEvents: string;
- position: string;
- printColorAdjust: string;
- quotes: string;
- resize: string;
- right: string;
- rotate: string;
- rowGap: string;
- rubyPosition: string;
- scale: string;
- scrollBehavior: string;
- scrollMargin: string;
- scrollMarginBlock: string;
- scrollMarginBlockEnd: string;
- scrollMarginBlockStart: string;
- scrollMarginBottom: string;
- scrollMarginInline: string;
- scrollMarginInlineEnd: string;
- scrollMarginInlineStart: string;
- scrollMarginLeft: string;
- scrollMarginRight: string;
- scrollMarginTop: string;
- scrollPadding: string;
- scrollPaddingBlock: string;
- scrollPaddingBlockEnd: string;
- scrollPaddingBlockStart: string;
- scrollPaddingBottom: string;
- scrollPaddingInline: string;
- scrollPaddingInlineEnd: string;
- scrollPaddingInlineStart: string;
- scrollPaddingLeft: string;
- scrollPaddingRight: string;
- scrollPaddingTop: string;
- scrollSnapAlign: string;
- scrollSnapStop: string;
- scrollSnapType: string;
- scrollbarGutter: string;
- shapeImageThreshold: string;
- shapeMargin: string;
- shapeOutside: string;
- shapeRendering: string;
- stopColor: string;
- stopOpacity: string;
- stroke: string;
- strokeDasharray: string;
- strokeDashoffset: string;
- strokeLinecap: string;
- strokeLinejoin: string;
- strokeMiterlimit: string;
- strokeOpacity: string;
- strokeWidth: string;
- tabSize: string;
- tableLayout: string;
- textAlign: string;
- textAlignLast: string;
- textAnchor: string;
- textCombineUpright: string;
- textDecoration: string;
- textDecorationColor: string;
- textDecorationLine: string;
- textDecorationSkipInk: string;
- textDecorationStyle: string;
- textDecorationThickness: string;
- textEmphasis: string;
- textEmphasisColor: string;
- textEmphasisPosition: string;
- textEmphasisStyle: string;
- textIndent: string;
- textOrientation: string;
- textOverflow: string;
- textRendering: string;
- textShadow: string;
- textTransform: string;
- textUnderlineOffset: string;
- textUnderlinePosition: string;
- top: string;
- touchAction: string;
- transform: string;
- transformBox: string;
- transformOrigin: string;
- transformStyle: string;
- transition: string;
- transitionDelay: string;
- transitionDuration: string;
- transitionProperty: string;
- transitionTimingFunction: string;
- translate: string;
- unicodeBidi: string;
- userSelect: string;
- verticalAlign: string;
- visibility: string;
- /** @deprecated This is a legacy alias of \`alignContent\`. */
- webkitAlignContent: string;
- /** @deprecated This is a legacy alias of \`alignItems\`. */
- webkitAlignItems: string;
- /** @deprecated This is a legacy alias of \`alignSelf\`. */
- webkitAlignSelf: string;
- /** @deprecated This is a legacy alias of \`animation\`. */
- webkitAnimation: string;
- /** @deprecated This is a legacy alias of \`animationDelay\`. */
- webkitAnimationDelay: string;
- /** @deprecated This is a legacy alias of \`animationDirection\`. */
- webkitAnimationDirection: string;
- /** @deprecated This is a legacy alias of \`animationDuration\`. */
- webkitAnimationDuration: string;
- /** @deprecated This is a legacy alias of \`animationFillMode\`. */
- webkitAnimationFillMode: string;
- /** @deprecated This is a legacy alias of \`animationIterationCount\`. */
- webkitAnimationIterationCount: string;
- /** @deprecated This is a legacy alias of \`animationName\`. */
- webkitAnimationName: string;
- /** @deprecated This is a legacy alias of \`animationPlayState\`. */
- webkitAnimationPlayState: string;
- /** @deprecated This is a legacy alias of \`animationTimingFunction\`. */
- webkitAnimationTimingFunction: string;
- /** @deprecated This is a legacy alias of \`appearance\`. */
- webkitAppearance: string;
- /** @deprecated This is a legacy alias of \`backfaceVisibility\`. */
- webkitBackfaceVisibility: string;
- /** @deprecated This is a legacy alias of \`backgroundClip\`. */
- webkitBackgroundClip: string;
- /** @deprecated This is a legacy alias of \`backgroundOrigin\`. */
- webkitBackgroundOrigin: string;
- /** @deprecated This is a legacy alias of \`backgroundSize\`. */
- webkitBackgroundSize: string;
- /** @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. */
- webkitBorderBottomLeftRadius: string;
- /** @deprecated This is a legacy alias of \`borderBottomRightRadius\`. */
- webkitBorderBottomRightRadius: string;
- /** @deprecated This is a legacy alias of \`borderRadius\`. */
- webkitBorderRadius: string;
- /** @deprecated This is a legacy alias of \`borderTopLeftRadius\`. */
- webkitBorderTopLeftRadius: string;
- /** @deprecated This is a legacy alias of \`borderTopRightRadius\`. */
- webkitBorderTopRightRadius: string;
- /** @deprecated This is a legacy alias of \`boxAlign\`. */
- webkitBoxAlign: string;
- /** @deprecated This is a legacy alias of \`boxFlex\`. */
- webkitBoxFlex: string;
- /** @deprecated This is a legacy alias of \`boxOrdinalGroup\`. */
- webkitBoxOrdinalGroup: string;
- /** @deprecated This is a legacy alias of \`boxOrient\`. */
- webkitBoxOrient: string;
- /** @deprecated This is a legacy alias of \`boxPack\`. */
- webkitBoxPack: string;
- /** @deprecated This is a legacy alias of \`boxShadow\`. */
- webkitBoxShadow: string;
- /** @deprecated This is a legacy alias of \`boxSizing\`. */
- webkitBoxSizing: string;
- /** @deprecated This is a legacy alias of \`filter\`. */
- webkitFilter: string;
- /** @deprecated This is a legacy alias of \`flex\`. */
- webkitFlex: string;
- /** @deprecated This is a legacy alias of \`flexBasis\`. */
- webkitFlexBasis: string;
- /** @deprecated This is a legacy alias of \`flexDirection\`. */
- webkitFlexDirection: string;
- /** @deprecated This is a legacy alias of \`flexFlow\`. */
- webkitFlexFlow: string;
- /** @deprecated This is a legacy alias of \`flexGrow\`. */
- webkitFlexGrow: string;
- /** @deprecated This is a legacy alias of \`flexShrink\`. */
- webkitFlexShrink: string;
- /** @deprecated This is a legacy alias of \`flexWrap\`. */
- webkitFlexWrap: string;
- /** @deprecated This is a legacy alias of \`justifyContent\`. */
- webkitJustifyContent: string;
- webkitLineClamp: string;
- /** @deprecated This is a legacy alias of \`mask\`. */
- webkitMask: string;
- /** @deprecated This is a legacy alias of \`maskBorder\`. */
- webkitMaskBoxImage: string;
- /** @deprecated This is a legacy alias of \`maskBorderOutset\`. */
- webkitMaskBoxImageOutset: string;
- /** @deprecated This is a legacy alias of \`maskBorderRepeat\`. */
- webkitMaskBoxImageRepeat: string;
- /** @deprecated This is a legacy alias of \`maskBorderSlice\`. */
- webkitMaskBoxImageSlice: string;
- /** @deprecated This is a legacy alias of \`maskBorderSource\`. */
- webkitMaskBoxImageSource: string;
- /** @deprecated This is a legacy alias of \`maskBorderWidth\`. */
- webkitMaskBoxImageWidth: string;
- /** @deprecated This is a legacy alias of \`maskClip\`. */
- webkitMaskClip: string;
- webkitMaskComposite: string;
- /** @deprecated This is a legacy alias of \`maskImage\`. */
- webkitMaskImage: string;
- /** @deprecated This is a legacy alias of \`maskOrigin\`. */
- webkitMaskOrigin: string;
- /** @deprecated This is a legacy alias of \`maskPosition\`. */
- webkitMaskPosition: string;
- /** @deprecated This is a legacy alias of \`maskRepeat\`. */
- webkitMaskRepeat: string;
- /** @deprecated This is a legacy alias of \`maskSize\`. */
- webkitMaskSize: string;
- /** @deprecated This is a legacy alias of \`order\`. */
- webkitOrder: string;
- /** @deprecated This is a legacy alias of \`perspective\`. */
- webkitPerspective: string;
- /** @deprecated This is a legacy alias of \`perspectiveOrigin\`. */
- webkitPerspectiveOrigin: string;
- webkitTextFillColor: string;
- /** @deprecated This is a legacy alias of \`textSizeAdjust\`. */
- webkitTextSizeAdjust: string;
- webkitTextStroke: string;
- webkitTextStrokeColor: string;
- webkitTextStrokeWidth: string;
- /** @deprecated This is a legacy alias of \`transform\`. */
- webkitTransform: string;
- /** @deprecated This is a legacy alias of \`transformOrigin\`. */
- webkitTransformOrigin: string;
- /** @deprecated This is a legacy alias of \`transformStyle\`. */
- webkitTransformStyle: string;
- /** @deprecated This is a legacy alias of \`transition\`. */
- webkitTransition: string;
- /** @deprecated This is a legacy alias of \`transitionDelay\`. */
- webkitTransitionDelay: string;
- /** @deprecated This is a legacy alias of \`transitionDuration\`. */
- webkitTransitionDuration: string;
- /** @deprecated This is a legacy alias of \`transitionProperty\`. */
- webkitTransitionProperty: string;
- /** @deprecated This is a legacy alias of \`transitionTimingFunction\`. */
- webkitTransitionTimingFunction: string;
- /** @deprecated This is a legacy alias of \`userSelect\`. */
- webkitUserSelect: string;
- whiteSpace: string;
- widows: string;
- width: string;
- willChange: string;
- wordBreak: string;
- wordSpacing: string;
- /** @deprecated */
- wordWrap: string;
- writingMode: string;
- zIndex: string;
- getPropertyPriority(property: string): string;
- getPropertyValue(property: string): string;
- item(index: number): string;
- removeProperty(property: string): string;
- setProperty(property: string, value: string | null, priority?: string): void;
- [index: number]: string;
- }
- declare var CSSStyleDeclaration: {
- prototype: CSSStyleDeclaration;
- new(): CSSStyleDeclaration;
- };
- /** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */
- interface CSSStyleRule extends CSSRule {
- selectorText: string;
- readonly style: CSSStyleDeclaration;
- }
- declare var CSSStyleRule: {
- prototype: CSSStyleRule;
- new(): CSSStyleRule;
- };
- /** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */
- interface CSSStyleSheet extends StyleSheet {
- readonly cssRules: CSSRuleList;
- readonly ownerRule: CSSRule | null;
- /** @deprecated */
- readonly rules: CSSRuleList;
- /** @deprecated */
- addRule(selector?: string, style?: string, index?: number): number;
- deleteRule(index: number): void;
- insertRule(rule: string, index?: number): number;
- /** @deprecated */
- removeRule(index?: number): void;
- replace(text: string): Promise<CSSStyleSheet>;
- replaceSync(text: string): void;
- }
- declare var CSSStyleSheet: {
- prototype: CSSStyleSheet;
- new(options?: CSSStyleSheetInit): CSSStyleSheet;
- };
- /** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */
- interface CSSSupportsRule extends CSSConditionRule {
- }
- declare var CSSSupportsRule: {
- prototype: CSSSupportsRule;
- new(): CSSSupportsRule;
- };
- interface CSSTransition extends Animation {
- readonly transitionProperty: string;
- addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var CSSTransition: {
- prototype: CSSTransition;
- new(): CSSTransition;
- };
- /**
- * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
- * Available only in secure contexts.
- */
- interface Cache {
- add(request: RequestInfo | URL): Promise<void>;
- addAll(requests: RequestInfo[]): Promise<void>;
- delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
- keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
- match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
- matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
- put(request: RequestInfo | URL, response: Response): Promise<void>;
- }
- declare var Cache: {
- prototype: Cache;
- new(): Cache;
- };
- /**
- * The storage for Cache objects.
- * Available only in secure contexts.
- */
- interface CacheStorage {
- delete(cacheName: string): Promise<boolean>;
- has(cacheName: string): Promise<boolean>;
- keys(): Promise<string[]>;
- match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
- open(cacheName: string): Promise<Cache>;
- }
- declare var CacheStorage: {
- prototype: CacheStorage;
- new(): CacheStorage;
- };
- interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
- readonly canvas: HTMLCanvasElement;
- requestFrame(): void;
- addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var CanvasCaptureMediaStreamTrack: {
- prototype: CanvasCaptureMediaStreamTrack;
- new(): CanvasCaptureMediaStreamTrack;
- };
- interface CanvasCompositing {
- globalAlpha: number;
- globalCompositeOperation: GlobalCompositeOperation;
- }
- interface CanvasDrawImage {
- drawImage(image: CanvasImageSource, dx: number, dy: number): void;
- drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
- drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
- }
- interface CanvasDrawPath {
- beginPath(): void;
- clip(fillRule?: CanvasFillRule): void;
- clip(path: Path2D, fillRule?: CanvasFillRule): void;
- fill(fillRule?: CanvasFillRule): void;
- fill(path: Path2D, fillRule?: CanvasFillRule): void;
- isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
- isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
- isPointInStroke(x: number, y: number): boolean;
- isPointInStroke(path: Path2D, x: number, y: number): boolean;
- stroke(): void;
- stroke(path: Path2D): void;
- }
- interface CanvasFillStrokeStyles {
- fillStyle: string | CanvasGradient | CanvasPattern;
- strokeStyle: string | CanvasGradient | CanvasPattern;
- createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
- createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
- createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
- createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
- }
- interface CanvasFilters {
- filter: string;
- }
- /** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
- interface CanvasGradient {
- /**
- * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
- *
- * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
- */
- addColorStop(offset: number, color: string): void;
- }
- declare var CanvasGradient: {
- prototype: CanvasGradient;
- new(): CanvasGradient;
- };
- interface CanvasImageData {
- createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
- createImageData(imagedata: ImageData): ImageData;
- getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
- putImageData(imagedata: ImageData, dx: number, dy: number): void;
- putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
- }
- interface CanvasImageSmoothing {
- imageSmoothingEnabled: boolean;
- imageSmoothingQuality: ImageSmoothingQuality;
- }
- interface CanvasPath {
- arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
- arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
- bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
- closePath(): void;
- ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
- lineTo(x: number, y: number): void;
- moveTo(x: number, y: number): void;
- quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
- rect(x: number, y: number, w: number, h: number): void;
- roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
- }
- interface CanvasPathDrawingStyles {
- lineCap: CanvasLineCap;
- lineDashOffset: number;
- lineJoin: CanvasLineJoin;
- lineWidth: number;
- miterLimit: number;
- getLineDash(): number[];
- setLineDash(segments: number[]): void;
- }
- /** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
- interface CanvasPattern {
- /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
- setTransform(transform?: DOMMatrix2DInit): void;
- }
- declare var CanvasPattern: {
- prototype: CanvasPattern;
- new(): CanvasPattern;
- };
- interface CanvasRect {
- clearRect(x: number, y: number, w: number, h: number): void;
- fillRect(x: number, y: number, w: number, h: number): void;
- strokeRect(x: number, y: number, w: number, h: number): void;
- }
- /** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. */
- interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
- readonly canvas: HTMLCanvasElement;
- getContextAttributes(): CanvasRenderingContext2DSettings;
- }
- declare var CanvasRenderingContext2D: {
- prototype: CanvasRenderingContext2D;
- new(): CanvasRenderingContext2D;
- };
- interface CanvasShadowStyles {
- shadowBlur: number;
- shadowColor: string;
- shadowOffsetX: number;
- shadowOffsetY: number;
- }
- interface CanvasState {
- restore(): void;
- save(): void;
- }
- interface CanvasText {
- fillText(text: string, x: number, y: number, maxWidth?: number): void;
- measureText(text: string): TextMetrics;
- strokeText(text: string, x: number, y: number, maxWidth?: number): void;
- }
- interface CanvasTextDrawingStyles {
- direction: CanvasDirection;
- font: string;
- fontKerning: CanvasFontKerning;
- textAlign: CanvasTextAlign;
- textBaseline: CanvasTextBaseline;
- }
- interface CanvasTransform {
- getTransform(): DOMMatrix;
- resetTransform(): void;
- rotate(angle: number): void;
- scale(x: number, y: number): void;
- setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
- setTransform(transform?: DOMMatrix2DInit): void;
- transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
- translate(x: number, y: number): void;
- }
- interface CanvasUserInterface {
- drawFocusIfNeeded(element: Element): void;
- drawFocusIfNeeded(path: Path2D, element: Element): void;
- }
- /** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
- interface ChannelMergerNode extends AudioNode {
- }
- declare var ChannelMergerNode: {
- prototype: ChannelMergerNode;
- new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;
- };
- /** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
- interface ChannelSplitterNode extends AudioNode {
- }
- declare var ChannelSplitterNode: {
- prototype: ChannelSplitterNode;
- new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;
- };
- /** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. */
- interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
- data: string;
- readonly length: number;
- readonly ownerDocument: Document;
- appendData(data: string): void;
- deleteData(offset: number, count: number): void;
- insertData(offset: number, data: string): void;
- replaceData(offset: number, count: number, data: string): void;
- substringData(offset: number, count: number): string;
- }
- declare var CharacterData: {
- prototype: CharacterData;
- new(): CharacterData;
- };
- interface ChildNode extends Node {
- /**
- * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
- *
- * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
- */
- after(...nodes: (Node | string)[]): void;
- /**
- * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
- *
- * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
- */
- before(...nodes: (Node | string)[]): void;
- /** Removes node. */
- remove(): void;
- /**
- * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
- *
- * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
- */
- replaceWith(...nodes: (Node | string)[]): void;
- }
- /** @deprecated */
- interface ClientRect extends DOMRect {
- }
- /** Available only in secure contexts. */
- interface Clipboard extends EventTarget {
- read(): Promise<ClipboardItems>;
- readText(): Promise<string>;
- write(data: ClipboardItems): Promise<void>;
- writeText(data: string): Promise<void>;
- }
- declare var Clipboard: {
- prototype: Clipboard;
- new(): Clipboard;
- };
- /** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */
- interface ClipboardEvent extends Event {
- readonly clipboardData: DataTransfer | null;
- }
- declare var ClipboardEvent: {
- prototype: ClipboardEvent;
- new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
- };
- /** Available only in secure contexts. */
- interface ClipboardItem {
- readonly presentationStyle: PresentationStyle;
- readonly types: ReadonlyArray<string>;
- getType(type: string): Promise<Blob>;
- }
- declare var ClipboardItem: {
- prototype: ClipboardItem;
- new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;
- };
- /** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
- interface CloseEvent extends Event {
- /** Returns the WebSocket connection close code provided by the server. */
- readonly code: number;
- /** Returns the WebSocket connection close reason provided by the server. */
- readonly reason: string;
- /** Returns true if the connection closed cleanly; false otherwise. */
- readonly wasClean: boolean;
- }
- declare var CloseEvent: {
- prototype: CloseEvent;
- new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
- };
- /** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */
- interface Comment extends CharacterData {
- }
- declare var Comment: {
- prototype: Comment;
- new(data?: string): Comment;
- };
- /** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */
- interface CompositionEvent extends UIEvent {
- readonly data: string;
- /** @deprecated */
- initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
- }
- declare var CompositionEvent: {
- prototype: CompositionEvent;
- new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
- };
- interface ConstantSourceNode extends AudioScheduledSourceNode {
- readonly offset: AudioParam;
- addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var ConstantSourceNode: {
- prototype: ConstantSourceNode;
- new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
- };
- /** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */
- interface ConvolverNode extends AudioNode {
- buffer: AudioBuffer | null;
- normalize: boolean;
- }
- declare var ConvolverNode: {
- prototype: ConvolverNode;
- new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
- };
- /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
- interface CountQueuingStrategy extends QueuingStrategy {
- readonly highWaterMark: number;
- readonly size: QueuingStrategySize;
- }
- declare var CountQueuingStrategy: {
- prototype: CountQueuingStrategy;
- new(init: QueuingStrategyInit): CountQueuingStrategy;
- };
- /** Available only in secure contexts. */
- interface Credential {
- readonly id: string;
- readonly type: string;
- }
- declare var Credential: {
- prototype: Credential;
- new(): Credential;
- };
- /** Available only in secure contexts. */
- interface CredentialsContainer {
- create(options?: CredentialCreationOptions): Promise<Credential | null>;
- get(options?: CredentialRequestOptions): Promise<Credential | null>;
- preventSilentAccess(): Promise<void>;
- store(credential: Credential): Promise<Credential>;
- }
- declare var CredentialsContainer: {
- prototype: CredentialsContainer;
- new(): CredentialsContainer;
- };
- /** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
- interface Crypto {
- /** Available only in secure contexts. */
- readonly subtle: SubtleCrypto;
- getRandomValues<T extends ArrayBufferView | null>(array: T): T;
- /** Available only in secure contexts. */
- randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
- }
- declare var Crypto: {
- prototype: Crypto;
- new(): Crypto;
- };
- /**
- * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
- * Available only in secure contexts.
- */
- interface CryptoKey {
- readonly algorithm: KeyAlgorithm;
- readonly extractable: boolean;
- readonly type: KeyType;
- readonly usages: KeyUsage[];
- }
- declare var CryptoKey: {
- prototype: CryptoKey;
- new(): CryptoKey;
- };
- interface CustomElementRegistry {
- define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
- get(name: string): CustomElementConstructor | undefined;
- upgrade(root: Node): void;
- whenDefined(name: string): Promise<CustomElementConstructor>;
- }
- declare var CustomElementRegistry: {
- prototype: CustomElementRegistry;
- new(): CustomElementRegistry;
- };
- interface CustomEvent<T = any> extends Event {
- /** Returns any custom data event was created with. Typically used for synthetic events. */
- readonly detail: T;
- /** @deprecated */
- initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
- }
- declare var CustomEvent: {
- prototype: CustomEvent;
- new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
- };
- /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
- interface DOMException extends Error {
- /** @deprecated */
- readonly code: number;
- readonly message: string;
- readonly name: string;
- readonly INDEX_SIZE_ERR: 1;
- readonly DOMSTRING_SIZE_ERR: 2;
- readonly HIERARCHY_REQUEST_ERR: 3;
- readonly WRONG_DOCUMENT_ERR: 4;
- readonly INVALID_CHARACTER_ERR: 5;
- readonly NO_DATA_ALLOWED_ERR: 6;
- readonly NO_MODIFICATION_ALLOWED_ERR: 7;
- readonly NOT_FOUND_ERR: 8;
- readonly NOT_SUPPORTED_ERR: 9;
- readonly INUSE_ATTRIBUTE_ERR: 10;
- readonly INVALID_STATE_ERR: 11;
- readonly SYNTAX_ERR: 12;
- readonly INVALID_MODIFICATION_ERR: 13;
- readonly NAMESPACE_ERR: 14;
- readonly INVALID_ACCESS_ERR: 15;
- readonly VALIDATION_ERR: 16;
- readonly TYPE_MISMATCH_ERR: 17;
- readonly SECURITY_ERR: 18;
- readonly NETWORK_ERR: 19;
- readonly ABORT_ERR: 20;
- readonly URL_MISMATCH_ERR: 21;
- readonly QUOTA_EXCEEDED_ERR: 22;
- readonly TIMEOUT_ERR: 23;
- readonly INVALID_NODE_TYPE_ERR: 24;
- readonly DATA_CLONE_ERR: 25;
- }
- declare var DOMException: {
- prototype: DOMException;
- new(message?: string, name?: string): DOMException;
- readonly INDEX_SIZE_ERR: 1;
- readonly DOMSTRING_SIZE_ERR: 2;
- readonly HIERARCHY_REQUEST_ERR: 3;
- readonly WRONG_DOCUMENT_ERR: 4;
- readonly INVALID_CHARACTER_ERR: 5;
- readonly NO_DATA_ALLOWED_ERR: 6;
- readonly NO_MODIFICATION_ALLOWED_ERR: 7;
- readonly NOT_FOUND_ERR: 8;
- readonly NOT_SUPPORTED_ERR: 9;
- readonly INUSE_ATTRIBUTE_ERR: 10;
- readonly INVALID_STATE_ERR: 11;
- readonly SYNTAX_ERR: 12;
- readonly INVALID_MODIFICATION_ERR: 13;
- readonly NAMESPACE_ERR: 14;
- readonly INVALID_ACCESS_ERR: 15;
- readonly VALIDATION_ERR: 16;
- readonly TYPE_MISMATCH_ERR: 17;
- readonly SECURITY_ERR: 18;
- readonly NETWORK_ERR: 19;
- readonly ABORT_ERR: 20;
- readonly URL_MISMATCH_ERR: 21;
- readonly QUOTA_EXCEEDED_ERR: 22;
- readonly TIMEOUT_ERR: 23;
- readonly INVALID_NODE_TYPE_ERR: 24;
- readonly DATA_CLONE_ERR: 25;
- };
- /** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */
- interface DOMImplementation {
- createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
- createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
- createHTMLDocument(title?: string): Document;
- /** @deprecated */
- hasFeature(...args: any[]): true;
- }
- declare var DOMImplementation: {
- prototype: DOMImplementation;
- new(): DOMImplementation;
- };
- interface DOMMatrix extends DOMMatrixReadOnly {
- a: number;
- b: number;
- c: number;
- d: number;
- e: number;
- f: number;
- m11: number;
- m12: number;
- m13: number;
- m14: number;
- m21: number;
- m22: number;
- m23: number;
- m24: number;
- m31: number;
- m32: number;
- m33: number;
- m34: number;
- m41: number;
- m42: number;
- m43: number;
- m44: number;
- invertSelf(): DOMMatrix;
- multiplySelf(other?: DOMMatrixInit): DOMMatrix;
- preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
- rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
- rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
- rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
- scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- setMatrixValue(transformList: string): DOMMatrix;
- skewXSelf(sx?: number): DOMMatrix;
- skewYSelf(sy?: number): DOMMatrix;
- translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
- }
- declare var DOMMatrix: {
- prototype: DOMMatrix;
- new(init?: string | number[]): DOMMatrix;
- fromFloat32Array(array32: Float32Array): DOMMatrix;
- fromFloat64Array(array64: Float64Array): DOMMatrix;
- fromMatrix(other?: DOMMatrixInit): DOMMatrix;
- };
- type SVGMatrix = DOMMatrix;
- declare var SVGMatrix: typeof DOMMatrix;
- type WebKitCSSMatrix = DOMMatrix;
- declare var WebKitCSSMatrix: typeof DOMMatrix;
- interface DOMMatrixReadOnly {
- readonly a: number;
- readonly b: number;
- readonly c: number;
- readonly d: number;
- readonly e: number;
- readonly f: number;
- readonly is2D: boolean;
- readonly isIdentity: boolean;
- readonly m11: number;
- readonly m12: number;
- readonly m13: number;
- readonly m14: number;
- readonly m21: number;
- readonly m22: number;
- readonly m23: number;
- readonly m24: number;
- readonly m31: number;
- readonly m32: number;
- readonly m33: number;
- readonly m34: number;
- readonly m41: number;
- readonly m42: number;
- readonly m43: number;
- readonly m44: number;
- flipX(): DOMMatrix;
- flipY(): DOMMatrix;
- inverse(): DOMMatrix;
- multiply(other?: DOMMatrixInit): DOMMatrix;
- rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
- rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
- rotateFromVector(x?: number, y?: number): DOMMatrix;
- scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- /** @deprecated */
- scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
- skewX(sx?: number): DOMMatrix;
- skewY(sy?: number): DOMMatrix;
- toFloat32Array(): Float32Array;
- toFloat64Array(): Float64Array;
- toJSON(): any;
- transformPoint(point?: DOMPointInit): DOMPoint;
- translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
- toString(): string;
- }
- declare var DOMMatrixReadOnly: {
- prototype: DOMMatrixReadOnly;
- new(init?: string | number[]): DOMMatrixReadOnly;
- fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
- fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
- fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
- toString(): string;
- };
- /** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
- interface DOMParser {
- /**
- * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).
- *
- * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.
- *
- * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.
- *
- * Values other than the above for type will cause a TypeError exception to be thrown.
- */
- parseFromString(string: string, type: DOMParserSupportedType): Document;
- }
- declare var DOMParser: {
- prototype: DOMParser;
- new(): DOMParser;
- };
- interface DOMPoint extends DOMPointReadOnly {
- w: number;
- x: number;
- y: number;
- z: number;
- }
- declare var DOMPoint: {
- prototype: DOMPoint;
- new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
- fromPoint(other?: DOMPointInit): DOMPoint;
- };
- type SVGPoint = DOMPoint;
- declare var SVGPoint: typeof DOMPoint;
- interface DOMPointReadOnly {
- readonly w: number;
- readonly x: number;
- readonly y: number;
- readonly z: number;
- matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
- toJSON(): any;
- }
- declare var DOMPointReadOnly: {
- prototype: DOMPointReadOnly;
- new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
- fromPoint(other?: DOMPointInit): DOMPointReadOnly;
- };
- interface DOMQuad {
- readonly p1: DOMPoint;
- readonly p2: DOMPoint;
- readonly p3: DOMPoint;
- readonly p4: DOMPoint;
- getBounds(): DOMRect;
- toJSON(): any;
- }
- declare var DOMQuad: {
- prototype: DOMQuad;
- new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
- fromQuad(other?: DOMQuadInit): DOMQuad;
- fromRect(other?: DOMRectInit): DOMQuad;
- };
- interface DOMRect extends DOMRectReadOnly {
- height: number;
- width: number;
- x: number;
- y: number;
- }
- declare var DOMRect: {
- prototype: DOMRect;
- new(x?: number, y?: number, width?: number, height?: number): DOMRect;
- fromRect(other?: DOMRectInit): DOMRect;
- };
- type SVGRect = DOMRect;
- declare var SVGRect: typeof DOMRect;
- interface DOMRectList {
- readonly length: number;
- item(index: number): DOMRect | null;
- [index: number]: DOMRect;
- }
- declare var DOMRectList: {
- prototype: DOMRectList;
- new(): DOMRectList;
- };
- interface DOMRectReadOnly {
- readonly bottom: number;
- readonly height: number;
- readonly left: number;
- readonly right: number;
- readonly top: number;
- readonly width: number;
- readonly x: number;
- readonly y: number;
- toJSON(): any;
- }
- declare var DOMRectReadOnly: {
- prototype: DOMRectReadOnly;
- new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
- fromRect(other?: DOMRectInit): DOMRectReadOnly;
- };
- /** A type returned by some APIs which contains a list of DOMString (strings). */
- interface DOMStringList {
- /** Returns the number of strings in strings. */
- readonly length: number;
- /** Returns true if strings contains string, and false otherwise. */
- contains(string: string): boolean;
- /** Returns the string with index index from strings. */
- item(index: number): string | null;
- [index: number]: string;
- }
- declare var DOMStringList: {
- prototype: DOMStringList;
- new(): DOMStringList;
- };
- /** Used by the dataset HTML attribute to represent data for custom attributes added to elements. */
- interface DOMStringMap {
- [name: string]: string | undefined;
- }
- declare var DOMStringMap: {
- prototype: DOMStringMap;
- new(): DOMStringMap;
- };
- /** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */
- interface DOMTokenList {
- /** Returns the number of tokens. */
- readonly length: number;
- /**
- * Returns the associated set as string.
- *
- * Can be set, to change the associated attribute.
- */
- value: string;
- toString(): string;
- /**
- * Adds all arguments passed, except those already present.
- *
- * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
- *
- * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
- */
- add(...tokens: string[]): void;
- /** Returns true if token is present, and false otherwise. */
- contains(token: string): boolean;
- /** Returns the token with index index. */
- item(index: number): string | null;
- /**
- * Removes arguments passed, if they are present.
- *
- * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
- *
- * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
- */
- remove(...tokens: string[]): void;
- /**
- * Replaces token with newToken.
- *
- * Returns true if token was replaced with newToken, and false otherwise.
- *
- * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
- *
- * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
- */
- replace(token: string, newToken: string): boolean;
- /**
- * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
- *
- * Throws a TypeError if the associated attribute has no supported tokens defined.
- */
- supports(token: string): boolean;
- /**
- * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).
- *
- * Returns true if token is now present, and false otherwise.
- *
- * Throws a "SyntaxError" DOMException if token is empty.
- *
- * Throws an "InvalidCharacterError" DOMException if token contains any spaces.
- */
- toggle(token: string, force?: boolean): boolean;
- forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;
- [index: number]: string;
- }
- declare var DOMTokenList: {
- prototype: DOMTokenList;
- new(): DOMTokenList;
- };
- /** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */
- interface DataTransfer {
- /**
- * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.
- *
- * Can be set, to change the selected operation.
- *
- * The possible values are "none", "copy", "link", and "move".
- */
- dropEffect: "none" | "copy" | "link" | "move";
- /**
- * Returns the kinds of operations that are to be allowed.
- *
- * Can be set (during the dragstart event), to change the allowed operations.
- *
- * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
- */
- effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
- /** Returns a FileList of the files being dragged, if any. */
- readonly files: FileList;
- /** Returns a DataTransferItemList object, with the drag data. */
- readonly items: DataTransferItemList;
- /** Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". */
- readonly types: ReadonlyArray<string>;
- /** Removes the data of the specified formats. Removes all data if the argument is omitted. */
- clearData(format?: string): void;
- /** Returns the specified data. If there is no such data, returns the empty string. */
- getData(format: string): string;
- /** Adds the specified data. */
- setData(format: string, data: string): void;
- /** Uses the given element to update the drag feedback, replacing any previously specified feedback. */
- setDragImage(image: Element, x: number, y: number): void;
- }
- declare var DataTransfer: {
- prototype: DataTransfer;
- new(): DataTransfer;
- };
- /** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */
- interface DataTransferItem {
- /** Returns the drag data item kind, one of: "string", "file". */
- readonly kind: string;
- /** Returns the drag data item type string. */
- readonly type: string;
- /** Returns a File object, if the drag data item kind is File. */
- getAsFile(): File | null;
- /** Invokes the callback with the string data as the argument, if the drag data item kind is text. */
- getAsString(callback: FunctionStringCallback | null): void;
- webkitGetAsEntry(): FileSystemEntry | null;
- }
- declare var DataTransferItem: {
- prototype: DataTransferItem;
- new(): DataTransferItem;
- };
- /** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */
- interface DataTransferItemList {
- /** Returns the number of items in the drag data store. */
- readonly length: number;
- /** Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. */
- add(data: string, type: string): DataTransferItem | null;
- add(data: File): DataTransferItem | null;
- /** Removes all the entries in the drag data store. */
- clear(): void;
- /** Removes the indexth entry in the drag data store. */
- remove(index: number): void;
- [index: number]: DataTransferItem;
- }
- declare var DataTransferItemList: {
- prototype: DataTransferItemList;
- new(): DataTransferItemList;
- };
- /** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */
- interface DelayNode extends AudioNode {
- readonly delayTime: AudioParam;
- }
- declare var DelayNode: {
- prototype: DelayNode;
- new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
- };
- /**
- * The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.
- * Available only in secure contexts.
- */
- interface DeviceMotionEvent extends Event {
- readonly acceleration: DeviceMotionEventAcceleration | null;
- readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
- readonly interval: number;
- readonly rotationRate: DeviceMotionEventRotationRate | null;
- }
- declare var DeviceMotionEvent: {
- prototype: DeviceMotionEvent;
- new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
- };
- /** Available only in secure contexts. */
- interface DeviceMotionEventAcceleration {
- readonly x: number | null;
- readonly y: number | null;
- readonly z: number | null;
- }
- /** Available only in secure contexts. */
- interface DeviceMotionEventRotationRate {
- readonly alpha: number | null;
- readonly beta: number | null;
- readonly gamma: number | null;
- }
- /**
- * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.
- * Available only in secure contexts.
- */
- interface DeviceOrientationEvent extends Event {
- readonly absolute: boolean;
- readonly alpha: number | null;
- readonly beta: number | null;
- readonly gamma: number | null;
- }
- declare var DeviceOrientationEvent: {
- prototype: DeviceOrientationEvent;
- new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
- };
- interface DocumentEventMap extends GlobalEventHandlersEventMap {
- "DOMContentLoaded": Event;
- "fullscreenchange": Event;
- "fullscreenerror": Event;
- "pointerlockchange": Event;
- "pointerlockerror": Event;
- "readystatechange": Event;
- "visibilitychange": Event;
- }
- /** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */
- interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
- /** Sets or gets the URL for the current document. */
- readonly URL: string;
- /**
- * Sets or gets the color of all active links in the document.
- * @deprecated
- */
- alinkColor: string;
- /**
- * Returns a reference to the collection of elements contained by the object.
- * @deprecated
- */
- readonly all: HTMLAllCollection;
- /**
- * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
- * @deprecated
- */
- readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
- /**
- * Retrieves a collection of all applet objects in the document.
- * @deprecated
- */
- readonly applets: HTMLCollection;
- /**
- * Deprecated. Sets or retrieves a value that indicates the background color behind the object.
- * @deprecated
- */
- bgColor: string;
- /** Specifies the beginning and end of the document body. */
- body: HTMLElement;
- /** Returns document's encoding. */
- readonly characterSet: string;
- /**
- * Gets or sets the character set used to encode the object.
- * @deprecated This is a legacy alias of \`characterSet\`.
- */
- readonly charset: string;
- /** Gets a value that indicates whether standards-compliant mode is switched on for the object. */
- readonly compatMode: string;
- /** Returns document's content type. */
- readonly contentType: string;
- /**
- * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
- *
- * Can be set, to add a new cookie to the element's set of HTTP cookies.
- *
- * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.
- */
- cookie: string;
- /**
- * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
- *
- * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
- */
- readonly currentScript: HTMLOrSVGScriptElement | null;
- /** Returns the Window object of the active document. */
- readonly defaultView: (WindowProxy & typeof globalThis) | null;
- /** Sets or gets a value that indicates whether the document can be edited. */
- designMode: string;
- /** Sets or retrieves a value that indicates the reading order of the object. */
- dir: string;
- /** Gets an object representing the document type declaration associated with the current document. */
- readonly doctype: DocumentType | null;
- /** Gets a reference to the root node of the document. */
- readonly documentElement: HTMLElement;
- /** Returns document's URL. */
- readonly documentURI: string;
- /**
- * Sets or gets the security domain of the document.
- * @deprecated
- */
- domain: string;
- /** Retrieves a collection of all embed objects in the document. */
- readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
- /**
- * Sets or gets the foreground (text) color of the document.
- * @deprecated
- */
- fgColor: string;
- /** Retrieves a collection, in source order, of all form objects in the document. */
- readonly forms: HTMLCollectionOf<HTMLFormElement>;
- /** @deprecated */
- readonly fullscreen: boolean;
- /** Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. */
- readonly fullscreenEnabled: boolean;
- /** Returns the head element. */
- readonly head: HTMLHeadElement;
- readonly hidden: boolean;
- /** Retrieves a collection, in source order, of img objects in the document. */
- readonly images: HTMLCollectionOf<HTMLImageElement>;
- /** Gets the implementation object of the current document. */
- readonly implementation: DOMImplementation;
- /**
- * Returns the character encoding used to create the webpage that is loaded into the document object.
- * @deprecated This is a legacy alias of \`characterSet\`.
- */
- readonly inputEncoding: string;
- /** Gets the date that the page was last modified, if the page supplies one. */
- readonly lastModified: string;
- /**
- * Sets or gets the color of the document links.
- * @deprecated
- */
- linkColor: string;
- /** Retrieves a collection of all a objects that specify the href property and all area objects in the document. */
- readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
- /** Contains information about the current URL. */
- get location(): Location;
- set location(href: string | Location);
- onfullscreenchange: ((this: Document, ev: Event) => any) | null;
- onfullscreenerror: ((this: Document, ev: Event) => any) | null;
- onpointerlockchange: ((this: Document, ev: Event) => any) | null;
- onpointerlockerror: ((this: Document, ev: Event) => any) | null;
- /**
- * Fires when the state of the object has changed.
- * @param ev The event
- */
- onreadystatechange: ((this: Document, ev: Event) => any) | null;
- onvisibilitychange: ((this: Document, ev: Event) => any) | null;
- readonly ownerDocument: null;
- readonly pictureInPictureEnabled: boolean;
- /** Return an HTMLCollection of the embed elements in the Document. */
- readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
- /** Retrieves a value that indicates the current state of the object. */
- readonly readyState: DocumentReadyState;
- /** Gets the URL of the location that referred the user to the current page. */
- readonly referrer: string;
- /** @deprecated */
- readonly rootElement: SVGSVGElement | null;
- /** Retrieves a collection of all script objects in the document. */
- readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
- readonly scrollingElement: Element | null;
- readonly timeline: DocumentTimeline;
- /** Contains the title of the document. */
- title: string;
- readonly visibilityState: DocumentVisibilityState;
- /**
- * Sets or gets the color of the links that the user has visited.
- * @deprecated
- */
- vlinkColor: string;
- /**
- * Moves node from another document and returns it.
- *
- * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
- */
- adoptNode<T extends Node>(node: T): T;
- /** @deprecated */
- captureEvents(): void;
- /** @deprecated */
- caretRangeFromPoint(x: number, y: number): Range | null;
- /** @deprecated */
- clear(): void;
- /** Closes an output stream and forces the sent data to display. */
- close(): void;
- /**
- * Creates an attribute object with a specified name.
- * @param name String that sets the attribute object's name.
- */
- createAttribute(localName: string): Attr;
- createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
- /** Returns a CDATASection node whose data is data. */
- createCDATASection(data: string): CDATASection;
- /**
- * Creates a comment object with the specified data.
- * @param data Sets the comment object's data.
- */
- createComment(data: string): Comment;
- /** Creates a new document. */
- createDocumentFragment(): DocumentFragment;
- /**
- * Creates an instance of the element for the specified tag.
- * @param tagName The name of an element.
- */
- createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
- /** @deprecated */
- createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];
- createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
- /**
- * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
- *
- * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
- *
- * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
- *
- * localName does not match the QName production.
- * Namespace prefix is not null and namespace is the empty string.
- * Namespace prefix is "xml" and namespace is not the XML namespace.
- * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
- * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
- *
- * When supplied, options's is can be used to create a customized built-in element.
- */
- createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
- createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
- createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K];
- createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement;
- createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
- createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
- createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
- createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
- createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
- createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
- createEvent(eventInterface: "BlobEvent"): BlobEvent;
- createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
- createEvent(eventInterface: "CloseEvent"): CloseEvent;
- createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
- createEvent(eventInterface: "CustomEvent"): CustomEvent;
- createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
- createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
- createEvent(eventInterface: "DragEvent"): DragEvent;
- createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
- createEvent(eventInterface: "Event"): Event;
- createEvent(eventInterface: "Events"): Event;
- createEvent(eventInterface: "FocusEvent"): FocusEvent;
- createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
- createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
- createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
- createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
- createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
- createEvent(eventInterface: "InputEvent"): InputEvent;
- createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
- createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
- createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
- createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
- createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
- createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
- createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
- createEvent(eventInterface: "MessageEvent"): MessageEvent;
- createEvent(eventInterface: "MouseEvent"): MouseEvent;
- createEvent(eventInterface: "MouseEvents"): MouseEvent;
- createEvent(eventInterface: "MutationEvent"): MutationEvent;
- createEvent(eventInterface: "MutationEvents"): MutationEvent;
- createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
- createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
- createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
- createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
- createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;
- createEvent(eventInterface: "PointerEvent"): PointerEvent;
- createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
- createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
- createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
- createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
- createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
- createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
- createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
- createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
- createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
- createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
- createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
- createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
- createEvent(eventInterface: "StorageEvent"): StorageEvent;
- createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
- createEvent(eventInterface: "TouchEvent"): TouchEvent;
- createEvent(eventInterface: "TrackEvent"): TrackEvent;
- createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
- createEvent(eventInterface: "UIEvent"): UIEvent;
- createEvent(eventInterface: "UIEvents"): UIEvent;
- createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
- createEvent(eventInterface: "WheelEvent"): WheelEvent;
- createEvent(eventInterface: string): Event;
- /**
- * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
- * @param root The root element or node to start traversing on.
- * @param whatToShow The type of nodes or elements to appear in the node list
- * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
- */
- createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
- /** Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. */
- createProcessingInstruction(target: string, data: string): ProcessingInstruction;
- /** Returns an empty range object that has both of its boundary points positioned at the beginning of the document. */
- createRange(): Range;
- /**
- * Creates a text string from the specified value.
- * @param data String that specifies the nodeValue property of the text node.
- */
- createTextNode(data: string): Text;
- /**
- * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
- * @param root The root element or node to start traversing on.
- * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
- * @param filter A custom NodeFilter function to use.
- */
- createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
- /**
- * Executes a command on the current document, current selection, or the given range.
- * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
- * @param showUI Display the user interface, defaults to false.
- * @param value Value to assign.
- * @deprecated
- */
- execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
- /** Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. */
- exitFullscreen(): Promise<void>;
- exitPictureInPicture(): Promise<void>;
- exitPointerLock(): void;
- /**
- * Returns a reference to the first object with the specified value of the ID attribute.
- * @param elementId String that specifies the ID value.
- */
- getElementById(elementId: string): HTMLElement | null;
- /** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
- /**
- * Gets a collection of objects based on the value of the NAME or ID attribute.
- * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
- */
- getElementsByName(elementName: string): NodeListOf<HTMLElement>;
- /**
- * Retrieves a collection of objects based on the specified element name.
- * @param name Specifies the name of an element.
- */
- getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
- getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
- getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
- /** @deprecated */
- getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
- /**
- * If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
- *
- * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
- *
- * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
- *
- * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
- */
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
- getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
- /** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */
- getSelection(): Selection | null;
- /** Gets a value indicating whether the object currently has focus. */
- hasFocus(): boolean;
- hasStorageAccess(): Promise<boolean>;
- /**
- * Returns a copy of node. If deep is true, the copy also includes the node's descendants.
- *
- * If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
- */
- importNode<T extends Node>(node: T, deep?: boolean): T;
- /**
- * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
- * @param url Specifies a MIME type for the document.
- * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
- * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
- * @param replace Specifies whether the existing entry for the document is replaced in the history list.
- */
- open(unused1?: string, unused2?: string): Document;
- open(url: string | URL, name: string, features: string): WindowProxy | null;
- /**
- * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
- * @param commandId Specifies a command identifier.
- * @deprecated
- */
- queryCommandEnabled(commandId: string): boolean;
- /**
- * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
- * @param commandId String that specifies a command identifier.
- * @deprecated
- */
- queryCommandIndeterm(commandId: string): boolean;
- /**
- * Returns a Boolean value that indicates the current state of the command.
- * @param commandId String that specifies a command identifier.
- * @deprecated
- */
- queryCommandState(commandId: string): boolean;
- /**
- * Returns a Boolean value that indicates whether the current command is supported on the current range.
- * @param commandId Specifies a command identifier.
- * @deprecated
- */
- queryCommandSupported(commandId: string): boolean;
- /**
- * Returns the current value of the document, range, or current selection for the given command.
- * @param commandId String that specifies a command identifier.
- * @deprecated
- */
- queryCommandValue(commandId: string): string;
- /** @deprecated */
- releaseEvents(): void;
- requestStorageAccess(): Promise<void>;
- /**
- * Writes one or more HTML expressions to a document in the specified window.
- * @param content Specifies the text and HTML tags to write.
- */
- write(...text: string[]): void;
- /**
- * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
- * @param content The text and HTML tags to write.
- */
- writeln(...text: string[]): void;
- addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var Document: {
- prototype: Document;
- new(): Document;
- };
- /** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */
- interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
- readonly ownerDocument: Document;
- getElementById(elementId: string): HTMLElement | null;
- }
- declare var DocumentFragment: {
- prototype: DocumentFragment;
- new(): DocumentFragment;
- };
- interface DocumentOrShadowRoot {
- /**
- * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
- *
- * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
- *
- * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
- */
- readonly activeElement: Element | null;
- adoptedStyleSheets: CSSStyleSheet[];
- /** Returns document's fullscreen element. */
- readonly fullscreenElement: Element | null;
- readonly pictureInPictureElement: Element | null;
- readonly pointerLockElement: Element | null;
- /** Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. */
- readonly styleSheets: StyleSheetList;
- /**
- * Returns the element for the specified x coordinate and the specified y coordinate.
- * @param x The x-offset
- * @param y The y-offset
- */
- elementFromPoint(x: number, y: number): Element | null;
- elementsFromPoint(x: number, y: number): Element[];
- getAnimations(): Animation[];
- }
- interface DocumentTimeline extends AnimationTimeline {
- }
- declare var DocumentTimeline: {
- prototype: DocumentTimeline;
- new(options?: DocumentTimelineOptions): DocumentTimeline;
- };
- /** A Node containing a doctype. */
- interface DocumentType extends Node, ChildNode {
- readonly name: string;
- readonly ownerDocument: Document;
- readonly publicId: string;
- readonly systemId: string;
- }
- declare var DocumentType: {
- prototype: DocumentType;
- new(): DocumentType;
- };
- /** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */
- interface DragEvent extends MouseEvent {
- /** Returns the DataTransfer object for the event. */
- readonly dataTransfer: DataTransfer | null;
- }
- declare var DragEvent: {
- prototype: DragEvent;
- new(type: string, eventInitDict?: DragEventInit): DragEvent;
- };
- /** Inherits properties from its parent, AudioNode. */
- interface DynamicsCompressorNode extends AudioNode {
- readonly attack: AudioParam;
- readonly knee: AudioParam;
- readonly ratio: AudioParam;
- readonly reduction: number;
- readonly release: AudioParam;
- readonly threshold: AudioParam;
- }
- declare var DynamicsCompressorNode: {
- prototype: DynamicsCompressorNode;
- new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
- };
- interface EXT_blend_minmax {
- readonly MIN_EXT: 0x8007;
- readonly MAX_EXT: 0x8008;
- }
- interface EXT_color_buffer_float {
- }
- interface EXT_color_buffer_half_float {
- readonly RGBA16F_EXT: 0x881A;
- readonly RGB16F_EXT: 0x881B;
- readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
- readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
- }
- interface EXT_float_blend {
- }
- /** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */
- interface EXT_frag_depth {
- }
- interface EXT_sRGB {
- readonly SRGB_EXT: 0x8C40;
- readonly SRGB_ALPHA_EXT: 0x8C42;
- readonly SRGB8_ALPHA8_EXT: 0x8C43;
- readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
- }
- interface EXT_shader_texture_lod {
- }
- interface EXT_texture_compression_bptc {
- readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
- readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
- readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
- readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
- }
- interface EXT_texture_compression_rgtc {
- readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
- readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
- readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
- readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
- }
- /** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
- interface EXT_texture_filter_anisotropic {
- readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
- readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
- }
- interface EXT_texture_norm16 {
- readonly R16_EXT: 0x822A;
- readonly RG16_EXT: 0x822C;
- readonly RGB16_EXT: 0x8054;
- readonly RGBA16_EXT: 0x805B;
- readonly R16_SNORM_EXT: 0x8F98;
- readonly RG16_SNORM_EXT: 0x8F99;
- readonly RGB16_SNORM_EXT: 0x8F9A;
- readonly RGBA16_SNORM_EXT: 0x8F9B;
- }
- interface ElementEventMap {
- "fullscreenchange": Event;
- "fullscreenerror": Event;
- }
- /** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */
- interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
- readonly attributes: NamedNodeMap;
- /** Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. */
- readonly classList: DOMTokenList;
- /** Returns the value of element's class content attribute. Can be set to change it. */
- className: string;
- readonly clientHeight: number;
- readonly clientLeft: number;
- readonly clientTop: number;
- readonly clientWidth: number;
- /** Returns the value of element's id content attribute. Can be set to change it. */
- id: string;
- /** Returns the local name. */
- readonly localName: string;
- /** Returns the namespace. */
- readonly namespaceURI: string | null;
- onfullscreenchange: ((this: Element, ev: Event) => any) | null;
- onfullscreenerror: ((this: Element, ev: Event) => any) | null;
- outerHTML: string;
- readonly ownerDocument: Document;
- readonly part: DOMTokenList;
- /** Returns the namespace prefix. */
- readonly prefix: string | null;
- readonly scrollHeight: number;
- scrollLeft: number;
- scrollTop: number;
- readonly scrollWidth: number;
- /** Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. */
- readonly shadowRoot: ShadowRoot | null;
- /** Returns the value of element's slot content attribute. Can be set to change it. */
- slot: string;
- /** Returns the HTML-uppercased qualified name. */
- readonly tagName: string;
- /** Creates a shadow root for element and returns it. */
- attachShadow(init: ShadowRootInit): ShadowRoot;
- checkVisibility(options?: CheckVisibilityOptions): boolean;
- /** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */
- closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
- closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
- closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
- closest<E extends Element = Element>(selectors: string): E | null;
- /** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */
- getAttribute(qualifiedName: string): string | null;
- /** Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. */
- getAttributeNS(namespace: string | null, localName: string): string | null;
- /** Returns the qualified names of all element's attributes. Can contain duplicates. */
- getAttributeNames(): string[];
- getAttributeNode(qualifiedName: string): Attr | null;
- getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
- getBoundingClientRect(): DOMRect;
- getClientRects(): DOMRectList;
- /** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
- getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
- getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
- getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
- /** @deprecated */
- getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
- getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
- /** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */
- hasAttribute(qualifiedName: string): boolean;
- /** Returns true if element has an attribute whose namespace is namespace and local name is localName. */
- hasAttributeNS(namespace: string | null, localName: string): boolean;
- /** Returns true if element has attributes, and false otherwise. */
- hasAttributes(): boolean;
- hasPointerCapture(pointerId: number): boolean;
- insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
- insertAdjacentHTML(position: InsertPosition, text: string): void;
- insertAdjacentText(where: InsertPosition, data: string): void;
- /** Returns true if matching selectors against element's root yields element, and false otherwise. */
- matches(selectors: string): boolean;
- releasePointerCapture(pointerId: number): void;
- /** Removes element's first attribute whose qualified name is qualifiedName. */
- removeAttribute(qualifiedName: string): void;
- /** Removes element's attribute whose namespace is namespace and local name is localName. */
- removeAttributeNS(namespace: string | null, localName: string): void;
- removeAttributeNode(attr: Attr): Attr;
- /**
- * Displays element fullscreen and resolves promise when done.
- *
- * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
- */
- requestFullscreen(options?: FullscreenOptions): Promise<void>;
- requestPointerLock(): void;
- scroll(options?: ScrollToOptions): void;
- scroll(x: number, y: number): void;
- scrollBy(options?: ScrollToOptions): void;
- scrollBy(x: number, y: number): void;
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
- scrollTo(options?: ScrollToOptions): void;
- scrollTo(x: number, y: number): void;
- /** Sets the value of element's first attribute whose qualified name is qualifiedName to value. */
- setAttribute(qualifiedName: string, value: string): void;
- /** Sets the value of element's attribute whose namespace is namespace and local name is localName to value. */
- setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
- setAttributeNode(attr: Attr): Attr | null;
- setAttributeNodeNS(attr: Attr): Attr | null;
- setPointerCapture(pointerId: number): void;
- /**
- * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
- *
- * Returns true if qualifiedName is now present, and false otherwise.
- */
- toggleAttribute(qualifiedName: string, force?: boolean): boolean;
- /** @deprecated This is a legacy alias of \`matches\`. */
- webkitMatchesSelector(selectors: string): boolean;
- addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var Element: {
- prototype: Element;
- new(): Element;
- };
- interface ElementCSSInlineStyle {
- readonly style: CSSStyleDeclaration;
- }
- interface ElementContentEditable {
- contentEditable: string;
- enterKeyHint: string;
- inputMode: string;
- readonly isContentEditable: boolean;
- }
- interface ElementInternals extends ARIAMixin {
- /** Returns the form owner of internals's target element. */
- readonly form: HTMLFormElement | null;
- /** Returns a NodeList of all the label elements that internals's target element is associated with. */
- readonly labels: NodeList;
- /** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
- readonly shadowRoot: ShadowRoot | null;
- /** Returns the error message that would be shown to the user if internals's target element was to be checked for validity. */
- readonly validationMessage: string;
- /** Returns the ValidityState object for internals's target element. */
- readonly validity: ValidityState;
- /** Returns true if internals's target element will be validated when the form is submitted; false otherwise. */
- readonly willValidate: boolean;
- /** Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. */
- checkValidity(): boolean;
- /** Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. */
- reportValidity(): boolean;
- /**
- * Sets both the state and submission value of internals's target element to value.
- *
- * If value is null, the element won't participate in form submission.
- */
- setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
- /** Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. */
- setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
- }
- declare var ElementInternals: {
- prototype: ElementInternals;
- new(): ElementInternals;
- };
- /** Events providing information related to errors in scripts or in files. */
- interface ErrorEvent extends Event {
- readonly colno: number;
- readonly error: any;
- readonly filename: string;
- readonly lineno: number;
- readonly message: string;
- }
- declare var ErrorEvent: {
- prototype: ErrorEvent;
- new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
- };
- /** An event which takes place in the DOM. */
- interface Event {
- /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
- readonly bubbles: boolean;
- /** @deprecated */
- cancelBubble: boolean;
- /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
- readonly cancelable: boolean;
- /** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */
- readonly composed: boolean;
- /** Returns the object whose event listener's callback is currently being invoked. */
- readonly currentTarget: EventTarget | null;
- /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
- readonly defaultPrevented: boolean;
- /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
- readonly eventPhase: number;
- /** Returns true if event was dispatched by the user agent, and false otherwise. */
- readonly isTrusted: boolean;
- /** @deprecated */
- returnValue: boolean;
- /** @deprecated */
- readonly srcElement: EventTarget | null;
- /** Returns the object to which event is dispatched (its target). */
- readonly target: EventTarget | null;
- /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
- readonly timeStamp: DOMHighResTimeStamp;
- /** Returns the type of event, e.g. "click", "hashchange", or "submit". */
- readonly type: string;
- /** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. */
- composedPath(): EventTarget[];
- /** @deprecated */
- initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
- /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */
- preventDefault(): void;
- /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */
- stopImmediatePropagation(): void;
- /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
- stopPropagation(): void;
- readonly NONE: 0;
- readonly CAPTURING_PHASE: 1;
- readonly AT_TARGET: 2;
- readonly BUBBLING_PHASE: 3;
- }
- declare var Event: {
- prototype: Event;
- new(type: string, eventInitDict?: EventInit): Event;
- readonly NONE: 0;
- readonly CAPTURING_PHASE: 1;
- readonly AT_TARGET: 2;
- readonly BUBBLING_PHASE: 3;
- };
- interface EventCounts {
- forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;
- }
- declare var EventCounts: {
- prototype: EventCounts;
- new(): EventCounts;
- };
- interface EventListener {
- (evt: Event): void;
- }
- interface EventListenerObject {
- handleEvent(object: Event): void;
- }
- interface EventSourceEventMap {
- "error": Event;
- "message": MessageEvent;
- "open": Event;
- }
- interface EventSource extends EventTarget {
- onerror: ((this: EventSource, ev: Event) => any) | null;
- onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
- onopen: ((this: EventSource, ev: Event) => any) | null;
- /** Returns the state of this EventSource object's connection. It can have the values described below. */
- readonly readyState: number;
- /** Returns the URL providing the event stream. */
- readonly url: string;
- /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
- readonly withCredentials: boolean;
- /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
- close(): void;
- readonly CONNECTING: 0;
- readonly OPEN: 1;
- readonly CLOSED: 2;
- addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var EventSource: {
- prototype: EventSource;
- new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
- readonly CONNECTING: 0;
- readonly OPEN: 1;
- readonly CLOSED: 2;
- };
- /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
- interface EventTarget {
- /**
- * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
- *
- * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
- *
- * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
- *
- * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
- *
- * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
- *
- * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
- *
- * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
- */
- addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
- /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
- dispatchEvent(event: Event): boolean;
- /** Removes the event listener in target's event listener list with the same type, callback, and options. */
- removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
- }
- declare var EventTarget: {
- prototype: EventTarget;
- new(): EventTarget;
- };
- /** @deprecated */
- interface External {
- /** @deprecated */
- AddSearchProvider(): void;
- /** @deprecated */
- IsSearchProviderInstalled(): void;
- }
- /** @deprecated */
- declare var External: {
- prototype: External;
- new(): External;
- };
- /** Provides information about files and allows JavaScript in a web page to access their content. */
- interface File extends Blob {
- readonly lastModified: number;
- readonly name: string;
- readonly webkitRelativePath: string;
- }
- declare var File: {
- prototype: File;
- new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
- };
- /** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
- interface FileList {
- readonly length: number;
- item(index: number): File | null;
- [index: number]: File;
- }
- declare var FileList: {
- prototype: FileList;
- new(): FileList;
- };
- interface FileReaderEventMap {
- "abort": ProgressEvent<FileReader>;
- "error": ProgressEvent<FileReader>;
- "load": ProgressEvent<FileReader>;
- "loadend": ProgressEvent<FileReader>;
- "loadstart": ProgressEvent<FileReader>;
- "progress": ProgressEvent<FileReader>;
- }
- /** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */
- interface FileReader extends EventTarget {
- readonly error: DOMException | null;
- onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
- onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
- onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
- onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
- onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
- onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
- readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
- readonly result: string | ArrayBuffer | null;
- abort(): void;
- readAsArrayBuffer(blob: Blob): void;
- readAsBinaryString(blob: Blob): void;
- readAsDataURL(blob: Blob): void;
- readAsText(blob: Blob, encoding?: string): void;
- readonly EMPTY: 0;
- readonly LOADING: 1;
- readonly DONE: 2;
- addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var FileReader: {
- prototype: FileReader;
- new(): FileReader;
- readonly EMPTY: 0;
- readonly LOADING: 1;
- readonly DONE: 2;
- };
- interface FileSystem {
- readonly name: string;
- readonly root: FileSystemDirectoryEntry;
- }
- declare var FileSystem: {
- prototype: FileSystem;
- new(): FileSystem;
- };
- interface FileSystemDirectoryEntry extends FileSystemEntry {
- createReader(): FileSystemDirectoryReader;
- getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
- getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
- }
- declare var FileSystemDirectoryEntry: {
- prototype: FileSystemDirectoryEntry;
- new(): FileSystemDirectoryEntry;
- };
- /** Available only in secure contexts. */
- interface FileSystemDirectoryHandle extends FileSystemHandle {
- readonly kind: "directory";
- getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
- getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
- removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
- resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
- }
- declare var FileSystemDirectoryHandle: {
- prototype: FileSystemDirectoryHandle;
- new(): FileSystemDirectoryHandle;
- };
- interface FileSystemDirectoryReader {
- readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
- }
- declare var FileSystemDirectoryReader: {
- prototype: FileSystemDirectoryReader;
- new(): FileSystemDirectoryReader;
- };
- interface FileSystemEntry {
- readonly filesystem: FileSystem;
- readonly fullPath: string;
- readonly isDirectory: boolean;
- readonly isFile: boolean;
- readonly name: string;
- getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
- }
- declare var FileSystemEntry: {
- prototype: FileSystemEntry;
- new(): FileSystemEntry;
- };
- interface FileSystemFileEntry extends FileSystemEntry {
- file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
- }
- declare var FileSystemFileEntry: {
- prototype: FileSystemFileEntry;
- new(): FileSystemFileEntry;
- };
- /** Available only in secure contexts. */
- interface FileSystemFileHandle extends FileSystemHandle {
- readonly kind: "file";
- getFile(): Promise<File>;
- }
- declare var FileSystemFileHandle: {
- prototype: FileSystemFileHandle;
- new(): FileSystemFileHandle;
- };
- /** Available only in secure contexts. */
- interface FileSystemHandle {
- readonly kind: FileSystemHandleKind;
- readonly name: string;
- isSameEntry(other: FileSystemHandle): Promise<boolean>;
- }
- declare var FileSystemHandle: {
- prototype: FileSystemHandle;
- new(): FileSystemHandle;
- };
- /** Focus-related events like focus, blur, focusin, or focusout. */
- interface FocusEvent extends UIEvent {
- readonly relatedTarget: EventTarget | null;
- }
- declare var FocusEvent: {
- prototype: FocusEvent;
- new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
- };
- interface FontFace {
- ascentOverride: string;
- descentOverride: string;
- display: FontDisplay;
- family: string;
- featureSettings: string;
- lineGapOverride: string;
- readonly loaded: Promise<FontFace>;
- readonly status: FontFaceLoadStatus;
- stretch: string;
- style: string;
- unicodeRange: string;
- variant: string;
- weight: string;
- load(): Promise<FontFace>;
- }
- declare var FontFace: {
- prototype: FontFace;
- new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
- };
- interface FontFaceSetEventMap {
- "loading": Event;
- "loadingdone": Event;
- "loadingerror": Event;
- }
- interface FontFaceSet extends EventTarget {
- onloading: ((this: FontFaceSet, ev: Event) => any) | null;
- onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
- onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
- readonly ready: Promise<FontFaceSet>;
- readonly status: FontFaceSetLoadStatus;
- check(font: string, text?: string): boolean;
- load(font: string, text?: string): Promise<FontFace[]>;
- forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
- addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var FontFaceSet: {
- prototype: FontFaceSet;
- new(initialFaces: FontFace[]): FontFaceSet;
- };
- interface FontFaceSetLoadEvent extends Event {
- readonly fontfaces: ReadonlyArray<FontFace>;
- }
- declare var FontFaceSetLoadEvent: {
- prototype: FontFaceSetLoadEvent;
- new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
- };
- interface FontFaceSource {
- readonly fonts: FontFaceSet;
- }
- /** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
- interface FormData {
- append(name: string, value: string | Blob, fileName?: string): void;
- delete(name: string): void;
- get(name: string): FormDataEntryValue | null;
- getAll(name: string): FormDataEntryValue[];
- has(name: string): boolean;
- set(name: string, value: string | Blob, fileName?: string): void;
- forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
- }
- declare var FormData: {
- prototype: FormData;
- new(form?: HTMLFormElement): FormData;
- };
- interface FormDataEvent extends Event {
- /** Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. */
- readonly formData: FormData;
- }
- declare var FormDataEvent: {
- prototype: FormDataEvent;
- new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
- };
- /** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */
- interface GainNode extends AudioNode {
- readonly gain: AudioParam;
- }
- declare var GainNode: {
- prototype: GainNode;
- new(context: BaseAudioContext, options?: GainOptions): GainNode;
- };
- /**
- * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
- * Available only in secure contexts.
- */
- interface Gamepad {
- readonly axes: ReadonlyArray<number>;
- readonly buttons: ReadonlyArray<GamepadButton>;
- readonly connected: boolean;
- readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
- readonly id: string;
- readonly index: number;
- readonly mapping: GamepadMappingType;
- readonly timestamp: DOMHighResTimeStamp;
- }
- declare var Gamepad: {
- prototype: Gamepad;
- new(): Gamepad;
- };
- /**
- * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
- * Available only in secure contexts.
- */
- interface GamepadButton {
- readonly pressed: boolean;
- readonly touched: boolean;
- readonly value: number;
- }
- declare var GamepadButton: {
- prototype: GamepadButton;
- new(): GamepadButton;
- };
- /**
- * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
- * Available only in secure contexts.
- */
- interface GamepadEvent extends Event {
- readonly gamepad: Gamepad;
- }
- declare var GamepadEvent: {
- prototype: GamepadEvent;
- new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
- };
- /** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */
- interface GamepadHapticActuator {
- readonly type: GamepadHapticActuatorType;
- }
- declare var GamepadHapticActuator: {
- prototype: GamepadHapticActuator;
- new(): GamepadHapticActuator;
- };
- interface GenericTransformStream {
- readonly readable: ReadableStream;
- readonly writable: WritableStream;
- }
- /** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. */
- interface Geolocation {
- clearWatch(watchId: number): void;
- getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
- watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
- }
- declare var Geolocation: {
- prototype: Geolocation;
- new(): Geolocation;
- };
- /** Available only in secure contexts. */
- interface GeolocationCoordinates {
- readonly accuracy: number;
- readonly altitude: number | null;
- readonly altitudeAccuracy: number | null;
- readonly heading: number | null;
- readonly latitude: number;
- readonly longitude: number;
- readonly speed: number | null;
- }
- declare var GeolocationCoordinates: {
- prototype: GeolocationCoordinates;
- new(): GeolocationCoordinates;
- };
- /** Available only in secure contexts. */
- interface GeolocationPosition {
- readonly coords: GeolocationCoordinates;
- readonly timestamp: EpochTimeStamp;
- }
- declare var GeolocationPosition: {
- prototype: GeolocationPosition;
- new(): GeolocationPosition;
- };
- interface GeolocationPositionError {
- readonly code: number;
- readonly message: string;
- readonly PERMISSION_DENIED: 1;
- readonly POSITION_UNAVAILABLE: 2;
- readonly TIMEOUT: 3;
- }
- declare var GeolocationPositionError: {
- prototype: GeolocationPositionError;
- new(): GeolocationPositionError;
- readonly PERMISSION_DENIED: 1;
- readonly POSITION_UNAVAILABLE: 2;
- readonly TIMEOUT: 3;
- };
- interface GlobalEventHandlersEventMap {
- "abort": UIEvent;
- "animationcancel": AnimationEvent;
- "animationend": AnimationEvent;
- "animationiteration": AnimationEvent;
- "animationstart": AnimationEvent;
- "auxclick": MouseEvent;
- "beforeinput": InputEvent;
- "blur": FocusEvent;
- "cancel": Event;
- "canplay": Event;
- "canplaythrough": Event;
- "change": Event;
- "click": MouseEvent;
- "close": Event;
- "compositionend": CompositionEvent;
- "compositionstart": CompositionEvent;
- "compositionupdate": CompositionEvent;
- "contextmenu": MouseEvent;
- "copy": ClipboardEvent;
- "cuechange": Event;
- "cut": ClipboardEvent;
- "dblclick": MouseEvent;
- "drag": DragEvent;
- "dragend": DragEvent;
- "dragenter": DragEvent;
- "dragleave": DragEvent;
- "dragover": DragEvent;
- "dragstart": DragEvent;
- "drop": DragEvent;
- "durationchange": Event;
- "emptied": Event;
- "ended": Event;
- "error": ErrorEvent;
- "focus": FocusEvent;
- "focusin": FocusEvent;
- "focusout": FocusEvent;
- "formdata": FormDataEvent;
- "gotpointercapture": PointerEvent;
- "input": Event;
- "invalid": Event;
- "keydown": KeyboardEvent;
- "keypress": KeyboardEvent;
- "keyup": KeyboardEvent;
- "load": Event;
- "loadeddata": Event;
- "loadedmetadata": Event;
- "loadstart": Event;
- "lostpointercapture": PointerEvent;
- "mousedown": MouseEvent;
- "mouseenter": MouseEvent;
- "mouseleave": MouseEvent;
- "mousemove": MouseEvent;
- "mouseout": MouseEvent;
- "mouseover": MouseEvent;
- "mouseup": MouseEvent;
- "paste": ClipboardEvent;
- "pause": Event;
- "play": Event;
- "playing": Event;
- "pointercancel": PointerEvent;
- "pointerdown": PointerEvent;
- "pointerenter": PointerEvent;
- "pointerleave": PointerEvent;
- "pointermove": PointerEvent;
- "pointerout": PointerEvent;
- "pointerover": PointerEvent;
- "pointerup": PointerEvent;
- "progress": ProgressEvent;
- "ratechange": Event;
- "reset": Event;
- "resize": UIEvent;
- "scroll": Event;
- "securitypolicyviolation": SecurityPolicyViolationEvent;
- "seeked": Event;
- "seeking": Event;
- "select": Event;
- "selectionchange": Event;
- "selectstart": Event;
- "slotchange": Event;
- "stalled": Event;
- "submit": SubmitEvent;
- "suspend": Event;
- "timeupdate": Event;
- "toggle": Event;
- "touchcancel": TouchEvent;
- "touchend": TouchEvent;
- "touchmove": TouchEvent;
- "touchstart": TouchEvent;
- "transitioncancel": TransitionEvent;
- "transitionend": TransitionEvent;
- "transitionrun": TransitionEvent;
- "transitionstart": TransitionEvent;
- "volumechange": Event;
- "waiting": Event;
- "webkitanimationend": Event;
- "webkitanimationiteration": Event;
- "webkitanimationstart": Event;
- "webkittransitionend": Event;
- "wheel": WheelEvent;
- }
- interface GlobalEventHandlers {
- /**
- * Fires when the user aborts the download.
- * @param ev The event.
- */
- onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
- onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
- onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
- onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
- onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
- onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
- /**
- * Fires when the object loses the input focus.
- * @param ev The focus event.
- */
- onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
- oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Occurs when playback is possible, but would require further buffering.
- * @param ev The event.
- */
- oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Fires when the contents of the object or selection have changed.
- * @param ev The event.
- */
- onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Fires when the user clicks the left mouse button on the object
- * @param ev The mouse event.
- */
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
- onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Fires when the user clicks the right mouse button in the client area, opening the context menu.
- * @param ev The mouse event.
- */
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
- oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
- oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
- /**
- * Fires when the user double-clicks the object.
- * @param ev The mouse event.
- */
- ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
- /**
- * Fires on the source object continuously during a drag operation.
- * @param ev The event.
- */
- ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
- /**
- * Fires on the source object when the user releases the mouse at the close of a drag operation.
- * @param ev The event.
- */
- ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
- /**
- * Fires on the target element when the user drags the object to a valid drop target.
- * @param ev The drag event.
- */
- ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
- /**
- * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
- * @param ev The drag event.
- */
- ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
- /**
- * Fires on the target element continuously while the user drags the object over a valid drop target.
- * @param ev The event.
- */
- ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
- /**
- * Fires on the source object when the user starts to drag a text selection or selected object.
- * @param ev The event.
- */
- ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
- ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
- /**
- * Occurs when the duration attribute is updated.
- * @param ev The event.
- */
- ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Occurs when the media element is reset to its initial state.
- * @param ev The event.
- */
- onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Occurs when the end of playback is reached.
- * @param ev The event
- */
- onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Fires when an error occurs during object loading.
- * @param ev The event.
- */
- onerror: OnErrorEventHandler;
- /**
- * Fires when the object receives focus.
- * @param ev The event.
- */
- onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
- onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
- ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Fires when the user presses a key.
- * @param ev The keyboard event
- */
- onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
- /**
- * Fires when the user presses an alphanumeric key.
- * @param ev The event.
- * @deprecated
- */
- onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
- /**
- * Fires when the user releases a key.
- * @param ev The keyboard event
- */
- onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
- /**
- * Fires immediately after the browser loads the object.
- * @param ev The event.
- */
- onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Occurs when media data is loaded at the current playback position.
- * @param ev The event.
- */
- onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Occurs when the duration and dimensions of the media have been determined.
- * @param ev The event.
- */
- onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Occurs when Internet Explorer begins looking for media data.
- * @param ev The event.
- */
- onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- /**
- * Fires when the user clicks the object with either mouse button.
- * @param ev The mouse event.
- */
- onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
- onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
- onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user moves the mouse over the object.
- * @param ev The mouse event.
- */
- onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user moves the mouse pointer outside the boundaries of the object.
- * @param ev The mouse event.
- */
- onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user moves the mouse pointer into the object.
- * @param ev The mouse event.
- */
- onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user releases a mouse button while the mouse is over the object.
- * @param ev The mouse event.
- */
- onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
- onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
- /**
- * Occurs when playback is paused.
- * @param ev The event.
- */
- onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Occurs when the play method is requested.
- * @param ev The event.
- */
- onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Occurs when the audio or video has started playing.
- * @param ev The event.
- */
- onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
- /**
- * Occurs to indicate progress while downloading media data.
- * @param ev The event.
- */
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
- /**
- * Occurs when the playback rate is increased or decreased.
- * @param ev The event.
- */
- onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Fires when the user resets a form.
- * @param ev The event.
- */
- onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
- /**
- * Fires when the user repositions the scroll box in the scroll bar on the object.
- * @param ev The event.
- */
- onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
- /**
- * Occurs when the seek operation ends.
- * @param ev The event.
- */
- onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Occurs when the current playback position is moved.
- * @param ev The event.
- */
- onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Fires when the current selection changes.
- * @param ev The event.
- */
- onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Occurs when the download has stopped.
- * @param ev The event.
- */
- onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
- /**
- * Occurs if the load operation has been intentionally halted.
- * @param ev The event.
- */
- onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Occurs to indicate the current playback position.
- * @param ev The event.
- */
- ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
- ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
- ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
- ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
- ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
- ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
- ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
- ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
- /**
- * Occurs when the volume is changed, or playback is muted or unmuted.
- * @param ev The event.
- */
- onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /**
- * Occurs when playback stops because the next frame of a video resource is not available.
- * @param ev The event.
- */
- onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /** @deprecated This is a legacy alias of \`onanimationend\`. */
- onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /** @deprecated This is a legacy alias of \`onanimationiteration\`. */
- onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /** @deprecated This is a legacy alias of \`onanimationstart\`. */
- onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- /** @deprecated This is a legacy alias of \`ontransitionend\`. */
- onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
- addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- interface HTMLAllCollection {
- /** Returns the number of elements in the collection. */
- readonly length: number;
- /** Returns the item with index index from the collection (determined by tree order). */
- item(nameOrIndex?: string): HTMLCollection | Element | null;
- /**
- * Returns the item with ID or name name from the collection.
- *
- * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
- *
- * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.
- */
- namedItem(name: string): HTMLCollection | Element | null;
- [index: number]: Element;
- }
- declare var HTMLAllCollection: {
- prototype: HTMLAllCollection;
- new(): HTMLAllCollection;
- };
- /** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */
- interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
- /**
- * Sets or retrieves the character set used to encode the object.
- * @deprecated
- */
- charset: string;
- /**
- * Sets or retrieves the coordinates of the object.
- * @deprecated
- */
- coords: string;
- download: string;
- /** Sets or retrieves the language code of the object. */
- hreflang: string;
- /**
- * Sets or retrieves the shape of the object.
- * @deprecated
- */
- name: string;
- ping: string;
- referrerPolicy: string;
- /** Sets or retrieves the relationship between the object and the destination of the link. */
- rel: string;
- readonly relList: DOMTokenList;
- /**
- * Sets or retrieves the relationship between the object and the destination of the link.
- * @deprecated
- */
- rev: string;
- /**
- * Sets or retrieves the shape of the object.
- * @deprecated
- */
- shape: string;
- /** Sets or retrieves the window or frame at which to target content. */
- target: string;
- /** Retrieves or sets the text of the object as a string. */
- text: string;
- type: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLAnchorElement: {
- prototype: HTMLAnchorElement;
- new(): HTMLAnchorElement;
- };
- /** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. */
- interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
- /** Sets or retrieves a text alternative to the graphic. */
- alt: string;
- /** Sets or retrieves the coordinates of the object. */
- coords: string;
- download: string;
- /**
- * Sets or gets whether clicks in this region cause action.
- * @deprecated
- */
- noHref: boolean;
- ping: string;
- referrerPolicy: string;
- rel: string;
- readonly relList: DOMTokenList;
- /** Sets or retrieves the shape of the object. */
- shape: string;
- /** Sets or retrieves the window or frame at which to target content. */
- target: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLAreaElement: {
- prototype: HTMLAreaElement;
- new(): HTMLAreaElement;
- };
- /** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */
- interface HTMLAudioElement extends HTMLMediaElement {
- addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLAudioElement: {
- prototype: HTMLAudioElement;
- new(): HTMLAudioElement;
- };
- /** A HTML line break element (<br>). It inherits from HTMLElement. */
- interface HTMLBRElement extends HTMLElement {
- /**
- * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
- * @deprecated
- */
- clear: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLBRElement: {
- prototype: HTMLBRElement;
- new(): HTMLBRElement;
- };
- /** Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */
- interface HTMLBaseElement extends HTMLElement {
- /** Gets or sets the baseline URL on which relative links are based. */
- href: string;
- /** Sets or retrieves the window or frame at which to target content. */
- target: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLBaseElement: {
- prototype: HTMLBaseElement;
- new(): HTMLBaseElement;
- };
- interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
- }
- /** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */
- interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
- /** @deprecated */
- aLink: string;
- /** @deprecated */
- background: string;
- /** @deprecated */
- bgColor: string;
- /** @deprecated */
- link: string;
- /** @deprecated */
- text: string;
- /** @deprecated */
- vLink: string;
- addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLBodyElement: {
- prototype: HTMLBodyElement;
- new(): HTMLBodyElement;
- };
- /** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */
- interface HTMLButtonElement extends HTMLElement {
- disabled: boolean;
- /** Retrieves a reference to the form that the object is embedded in. */
- readonly form: HTMLFormElement | null;
- /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
- formAction: string;
- /** Used to override the encoding (formEnctype attribute) specified on the form element. */
- formEnctype: string;
- /** Overrides the submit method attribute previously specified on a form element. */
- formMethod: string;
- /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */
- formNoValidate: boolean;
- /** Overrides the target attribute on a form element. */
- formTarget: string;
- readonly labels: NodeListOf<HTMLLabelElement>;
- /** Sets or retrieves the name of the object. */
- name: string;
- /** Gets the classification and default behavior of the button. */
- type: string;
- /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
- readonly validationMessage: string;
- /** Returns a ValidityState object that represents the validity states of an element. */
- readonly validity: ValidityState;
- /** Sets or retrieves the default or selected value of the control. */
- value: string;
- /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
- readonly willValidate: boolean;
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
- checkValidity(): boolean;
- reportValidity(): boolean;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLButtonElement: {
- prototype: HTMLButtonElement;
- new(): HTMLButtonElement;
- };
- /** Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. */
- interface HTMLCanvasElement extends HTMLElement {
- /** Gets or sets the height of a canvas element on a document. */
- height: number;
- /** Gets or sets the width of a canvas element on a document. */
- width: number;
- captureStream(frameRequestRate?: number): MediaStream;
- /**
- * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
- * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
- */
- getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
- getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
- getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
- getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
- getContext(contextId: string, options?: any): RenderingContext | null;
- toBlob(callback: BlobCallback, type?: string, quality?: any): void;
- /**
- * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
- * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
- */
- toDataURL(type?: string, quality?: any): string;
- transferControlToOffscreen(): OffscreenCanvas;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLCanvasElement: {
- prototype: HTMLCanvasElement;
- new(): HTMLCanvasElement;
- };
- /** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */
- interface HTMLCollectionBase {
- /** Sets or retrieves the number of objects in a collection. */
- readonly length: number;
- /** Retrieves an object from various collections. */
- item(index: number): Element | null;
- [index: number]: Element;
- }
- interface HTMLCollection extends HTMLCollectionBase {
- /** Retrieves a select object or an object from an options collection. */
- namedItem(name: string): Element | null;
- }
- declare var HTMLCollection: {
- prototype: HTMLCollection;
- new(): HTMLCollection;
- };
- interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
- item(index: number): T | null;
- namedItem(name: string): T | null;
- [index: number]: T;
- }
- /** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */
- interface HTMLDListElement extends HTMLElement {
- /** @deprecated */
- compact: boolean;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLDListElement: {
- prototype: HTMLDListElement;
- new(): HTMLDListElement;
- };
- /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */
- interface HTMLDataElement extends HTMLElement {
- value: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLDataElement: {
- prototype: HTMLDataElement;
- new(): HTMLDataElement;
- };
- /** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */
- interface HTMLDataListElement extends HTMLElement {
- /** Returns an HTMLCollection of the option elements of the datalist element. */
- readonly options: HTMLCollectionOf<HTMLOptionElement>;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLDataListElement: {
- prototype: HTMLDataListElement;
- new(): HTMLDataListElement;
- };
- interface HTMLDetailsElement extends HTMLElement {
- open: boolean;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLDetailsElement: {
- prototype: HTMLDetailsElement;
- new(): HTMLDetailsElement;
- };
- interface HTMLDialogElement extends HTMLElement {
- open: boolean;
- returnValue: string;
- /**
- * Closes the dialog element.
- *
- * The argument, if provided, provides a return value.
- */
- close(returnValue?: string): void;
- /** Displays the dialog element. */
- show(): void;
- showModal(): void;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLDialogElement: {
- prototype: HTMLDialogElement;
- new(): HTMLDialogElement;
- };
- /** @deprecated */
- interface HTMLDirectoryElement extends HTMLElement {
- /** @deprecated */
- compact: boolean;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- /** @deprecated */
- declare var HTMLDirectoryElement: {
- prototype: HTMLDirectoryElement;
- new(): HTMLDirectoryElement;
- };
- /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */
- interface HTMLDivElement extends HTMLElement {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- * @deprecated
- */
- align: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLDivElement: {
- prototype: HTMLDivElement;
- new(): HTMLDivElement;
- };
- /** @deprecated use Document */
- interface HTMLDocument extends Document {
- addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- /** @deprecated */
- declare var HTMLDocument: {
- prototype: HTMLDocument;
- new(): HTMLDocument;
- };
- interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
- }
- /** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
- interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
- accessKey: string;
- readonly accessKeyLabel: string;
- autocapitalize: string;
- dir: string;
- draggable: boolean;
- hidden: boolean;
- inert: boolean;
- innerText: string;
- lang: string;
- readonly offsetHeight: number;
- readonly offsetLeft: number;
- readonly offsetParent: Element | null;
- readonly offsetTop: number;
- readonly offsetWidth: number;
- outerText: string;
- spellcheck: boolean;
- title: string;
- translate: boolean;
- attachInternals(): ElementInternals;
- click(): void;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLElement: {
- prototype: HTMLElement;
- new(): HTMLElement;
- };
- /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */
- interface HTMLEmbedElement extends HTMLElement {
- /** @deprecated */
- align: string;
- /** Sets or retrieves the height of the object. */
- height: string;
- /**
- * Sets or retrieves the name of the object.
- * @deprecated
- */
- name: string;
- /** Sets or retrieves a URL to be loaded by the object. */
- src: string;
- type: string;
- /** Sets or retrieves the width of the object. */
- width: string;
- getSVGDocument(): Document | null;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLEmbedElement: {
- prototype: HTMLEmbedElement;
- new(): HTMLEmbedElement;
- };
- /** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */
- interface HTMLFieldSetElement extends HTMLElement {
- disabled: boolean;
- /** Returns an HTMLCollection of the form controls in the element. */
- readonly elements: HTMLCollection;
- /** Retrieves a reference to the form that the object is embedded in. */
- readonly form: HTMLFormElement | null;
- name: string;
- /** Returns the string "fieldset". */
- readonly type: string;
- /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
- readonly validationMessage: string;
- /** Returns a ValidityState object that represents the validity states of an element. */
- readonly validity: ValidityState;
- /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
- readonly willValidate: boolean;
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
- checkValidity(): boolean;
- reportValidity(): boolean;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLFieldSetElement: {
- prototype: HTMLFieldSetElement;
- new(): HTMLFieldSetElement;
- };
- /**
- * Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.
- * @deprecated
- */
- interface HTMLFontElement extends HTMLElement {
- /** @deprecated */
- color: string;
- /**
- * Sets or retrieves the current typeface family.
- * @deprecated
- */
- face: string;
- /** @deprecated */
- size: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- /** @deprecated */
- declare var HTMLFontElement: {
- prototype: HTMLFontElement;
- new(): HTMLFontElement;
- };
- /** A collection of HTML form control elements. */
- interface HTMLFormControlsCollection extends HTMLCollectionBase {
- /**
- * Returns the item with ID or name name from the collection.
- *
- * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
- */
- namedItem(name: string): RadioNodeList | Element | null;
- }
- declare var HTMLFormControlsCollection: {
- prototype: HTMLFormControlsCollection;
- new(): HTMLFormControlsCollection;
- };
- /** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */
- interface HTMLFormElement extends HTMLElement {
- /** Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. */
- acceptCharset: string;
- /** Sets or retrieves the URL to which the form content is sent for processing. */
- action: string;
- /** Specifies whether autocomplete is applied to an editable text field. */
- autocomplete: string;
- /** Retrieves a collection, in source order, of all controls in a given form. */
- readonly elements: HTMLFormControlsCollection;
- /** Sets or retrieves the MIME encoding for the form. */
- encoding: string;
- /** Sets or retrieves the encoding type for the form. */
- enctype: string;
- /** Sets or retrieves the number of objects in a collection. */
- readonly length: number;
- /** Sets or retrieves how to send the form data to the server. */
- method: string;
- /** Sets or retrieves the name of the object. */
- name: string;
- /** Designates a form that is not validated when submitted. */
- noValidate: boolean;
- rel: string;
- readonly relList: DOMTokenList;
- /** Sets or retrieves the window or frame at which to target content. */
- target: string;
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
- checkValidity(): boolean;
- reportValidity(): boolean;
- requestSubmit(submitter?: HTMLElement | null): void;
- /** Fires when the user resets a form. */
- reset(): void;
- /** Fires when a FORM is about to be submitted. */
- submit(): void;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- [index: number]: Element;
- [name: string]: any;
- }
- declare var HTMLFormElement: {
- prototype: HTMLFormElement;
- new(): HTMLFormElement;
- };
- /** @deprecated */
- interface HTMLFrameElement extends HTMLElement {
- /**
- * Retrieves the document object of the page or frame.
- * @deprecated
- */
- readonly contentDocument: Document | null;
- /**
- * Retrieves the object of the specified.
- * @deprecated
- */
- readonly contentWindow: WindowProxy | null;
- /**
- * Sets or retrieves whether to display a border for the frame.
- * @deprecated
- */
- frameBorder: string;
- /**
- * Sets or retrieves a URI to a long description of the object.
- * @deprecated
- */
- longDesc: string;
- /**
- * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
- * @deprecated
- */
- marginHeight: string;
- /**
- * Sets or retrieves the left and right margin widths before displaying the text in a frame.
- * @deprecated
- */
- marginWidth: string;
- /**
- * Sets or retrieves the frame name.
- * @deprecated
- */
- name: string;
- /**
- * Sets or retrieves whether the user can resize the frame.
- * @deprecated
- */
- noResize: boolean;
- /**
- * Sets or retrieves whether the frame can be scrolled.
- * @deprecated
- */
- scrolling: string;
- /**
- * Sets or retrieves a URL to be loaded by the object.
- * @deprecated
- */
- src: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- /** @deprecated */
- declare var HTMLFrameElement: {
- prototype: HTMLFrameElement;
- new(): HTMLFrameElement;
- };
- interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
- }
- /**
- * Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.
- * @deprecated
- */
- interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
- /**
- * Sets or retrieves the frame widths of the object.
- * @deprecated
- */
- cols: string;
- /**
- * Sets or retrieves the frame heights of the object.
- * @deprecated
- */
- rows: string;
- addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- /** @deprecated */
- declare var HTMLFrameSetElement: {
- prototype: HTMLFrameSetElement;
- new(): HTMLFrameSetElement;
- };
- /** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */
- interface HTMLHRElement extends HTMLElement {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- * @deprecated
- */
- align: string;
- /** @deprecated */
- color: string;
- /**
- * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
- * @deprecated
- */
- noShade: boolean;
- /** @deprecated */
- size: string;
- /**
- * Sets or retrieves the width of the object.
- * @deprecated
- */
- width: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLHRElement: {
- prototype: HTMLHRElement;
- new(): HTMLHRElement;
- };
- /** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */
- interface HTMLHeadElement extends HTMLElement {
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLHeadElement: {
- prototype: HTMLHeadElement;
- new(): HTMLHeadElement;
- };
- /** The different heading elements. It inherits methods and properties from the HTMLElement interface. */
- interface HTMLHeadingElement extends HTMLElement {
- /**
- * Sets or retrieves a value that indicates the table alignment.
- * @deprecated
- */
- align: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLHeadingElement: {
- prototype: HTMLHeadingElement;
- new(): HTMLHeadingElement;
- };
- /** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */
- interface HTMLHtmlElement extends HTMLElement {
- /**
- * Sets or retrieves the DTD version that governs the current document.
- * @deprecated
- */
- version: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLHtmlElement: {
- prototype: HTMLHtmlElement;
- new(): HTMLHtmlElement;
- };
- interface HTMLHyperlinkElementUtils {
- /**
- * Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
- *
- * Can be set, to change the URL's fragment (ignores leading "#").
- */
- hash: string;
- /**
- * Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
- *
- * Can be set, to change the URL's host and port.
- */
- host: string;
- /**
- * Returns the hyperlink's URL's host.
- *
- * Can be set, to change the URL's host.
- */
- hostname: string;
- /**
- * Returns the hyperlink's URL.
- *
- * Can be set, to change the URL.
- */
- href: string;
- toString(): string;
- /** Returns the hyperlink's URL's origin. */
- readonly origin: string;
- /**
- * Returns the hyperlink's URL's password.
- *
- * Can be set, to change the URL's password.
- */
- password: string;
- /**
- * Returns the hyperlink's URL's path.
- *
- * Can be set, to change the URL's path.
- */
- pathname: string;
- /**
- * Returns the hyperlink's URL's port.
- *
- * Can be set, to change the URL's port.
- */
- port: string;
- /**
- * Returns the hyperlink's URL's scheme.
- *
- * Can be set, to change the URL's scheme.
- */
- protocol: string;
- /**
- * Returns the hyperlink's URL's query (includes leading "?" if non-empty).
- *
- * Can be set, to change the URL's query (ignores leading "?").
- */
- search: string;
- /**
- * Returns the hyperlink's URL's username.
- *
- * Can be set, to change the URL's username.
- */
- username: string;
- }
- /** Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. */
- interface HTMLIFrameElement extends HTMLElement {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- * @deprecated
- */
- align: string;
- allow: string;
- allowFullscreen: boolean;
- /** Retrieves the document object of the page or frame. */
- readonly contentDocument: Document | null;
- /** Retrieves the object of the specified. */
- readonly contentWindow: WindowProxy | null;
- /**
- * Sets or retrieves whether to display a border for the frame.
- * @deprecated
- */
- frameBorder: string;
- /** Sets or retrieves the height of the object. */
- height: string;
- /**
- * Sets or retrieves a URI to a long description of the object.
- * @deprecated
- */
- longDesc: string;
- /**
- * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
- * @deprecated
- */
- marginHeight: string;
- /**
- * Sets or retrieves the left and right margin widths before displaying the text in a frame.
- * @deprecated
- */
- marginWidth: string;
- /** Sets or retrieves the frame name. */
- name: string;
- referrerPolicy: ReferrerPolicy;
- readonly sandbox: DOMTokenList;
- /**
- * Sets or retrieves whether the frame can be scrolled.
- * @deprecated
- */
- scrolling: string;
- /** Sets or retrieves a URL to be loaded by the object. */
- src: string;
- /** Sets or retrives the content of the page that is to contain. */
- srcdoc: string;
- /** Sets or retrieves the width of the object. */
- width: string;
- getSVGDocument(): Document | null;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLIFrameElement: {
- prototype: HTMLIFrameElement;
- new(): HTMLIFrameElement;
- };
- /** Provides special properties and methods for manipulating <img> elements. */
- interface HTMLImageElement extends HTMLElement {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- * @deprecated
- */
- align: string;
- /** Sets or retrieves a text alternative to the graphic. */
- alt: string;
- /**
- * Specifies the properties of a border drawn around an object.
- * @deprecated
- */
- border: string;
- /** Retrieves whether the object is fully loaded. */
- readonly complete: boolean;
- crossOrigin: string | null;
- readonly currentSrc: string;
- decoding: "async" | "sync" | "auto";
- /** Sets or retrieves the height of the object. */
- height: number;
- /**
- * Sets or retrieves the width of the border to draw around the object.
- * @deprecated
- */
- hspace: number;
- /** Sets or retrieves whether the image is a server-side image map. */
- isMap: boolean;
- /** Sets or retrieves the policy for loading image elements that are outside the viewport. */
- loading: "eager" | "lazy";
- /**
- * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
- * @deprecated
- */
- longDesc: string;
- /** @deprecated */
- lowsrc: string;
- /**
- * Sets or retrieves the name of the object.
- * @deprecated
- */
- name: string;
- /** The original height of the image resource before sizing. */
- readonly naturalHeight: number;
- /** The original width of the image resource before sizing. */
- readonly naturalWidth: number;
- referrerPolicy: string;
- sizes: string;
- /** The address or URL of the a media resource that is to be considered. */
- src: string;
- srcset: string;
- /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */
- useMap: string;
- /**
- * Sets or retrieves the vertical margin for the object.
- * @deprecated
- */
- vspace: number;
- /** Sets or retrieves the width of the object. */
- width: number;
- readonly x: number;
- readonly y: number;
- decode(): Promise<void>;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLImageElement: {
- prototype: HTMLImageElement;
- new(): HTMLImageElement;
- };
- /** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */
- interface HTMLInputElement extends HTMLElement {
- /** Sets or retrieves a comma-separated list of content types. */
- accept: string;
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- * @deprecated
- */
- align: string;
- /** Sets or retrieves a text alternative to the graphic. */
- alt: string;
- /** Specifies whether autocomplete is applied to an editable text field. */
- autocomplete: string;
- capture: string;
- /** Sets or retrieves the state of the check box or radio button. */
- checked: boolean;
- /** Sets or retrieves the state of the check box or radio button. */
- defaultChecked: boolean;
- /** Sets or retrieves the initial contents of the object. */
- defaultValue: string;
- dirName: string;
- disabled: boolean;
- /** Returns a FileList object on a file type input object. */
- files: FileList | null;
- /** Retrieves a reference to the form that the object is embedded in. */
- readonly form: HTMLFormElement | null;
- /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
- formAction: string;
- /** Used to override the encoding (formEnctype attribute) specified on the form element. */
- formEnctype: string;
- /** Overrides the submit method attribute previously specified on a form element. */
- formMethod: string;
- /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */
- formNoValidate: boolean;
- /** Overrides the target attribute on a form element. */
- formTarget: string;
- /** Sets or retrieves the height of the object. */
- height: number;
- /** When set, overrides the rendering of checkbox controls so that the current value is not visible. */
- indeterminate: boolean;
- readonly labels: NodeListOf<HTMLLabelElement> | null;
- /** Specifies the ID of a pre-defined datalist of options for an input element. */
- readonly list: HTMLDataListElement | null;
- /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
- max: string;
- /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
- maxLength: number;
- /** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */
- min: string;
- minLength: number;
- /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
- multiple: boolean;
- /** Sets or retrieves the name of the object. */
- name: string;
- /** Gets or sets a string containing a regular expression that the user's input must match. */
- pattern: string;
- /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
- placeholder: string;
- readOnly: boolean;
- /** When present, marks an element that can't be submitted without a value. */
- required: boolean;
- selectionDirection: "forward" | "backward" | "none" | null;
- /** Gets or sets the end position or offset of a text selection. */
- selectionEnd: number | null;
- /** Gets or sets the starting position or offset of a text selection. */
- selectionStart: number | null;
- size: number;
- /** The address or URL of the a media resource that is to be considered. */
- src: string;
- /** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
- step: string;
- /** Returns the content type of the object. */
- type: string;
- /**
- * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
- * @deprecated
- */
- useMap: string;
- /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
- readonly validationMessage: string;
- /** Returns a ValidityState object that represents the validity states of an element. */
- readonly validity: ValidityState;
- /** Returns the value of the data at the cursor's current position. */
- value: string;
- /** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
- valueAsDate: Date | null;
- /** Returns the input field value as a number. */
- valueAsNumber: number;
- readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
- webkitdirectory: boolean;
- /** Sets or retrieves the width of the object. */
- width: number;
- /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
- readonly willValidate: boolean;
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
- checkValidity(): boolean;
- reportValidity(): boolean;
- /** Makes the selection equal to the current object. */
- select(): void;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- setRangeText(replacement: string): void;
- setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
- /**
- * Sets the start and end positions of a selection in a text field.
- * @param start The offset into the text field for the start of the selection.
- * @param end The offset into the text field for the end of the selection.
- * @param direction The direction in which the selection is performed.
- */
- setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
- showPicker(): void;
- /**
- * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
- * @param n Value to decrement the value by.
- */
- stepDown(n?: number): void;
- /**
- * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
- * @param n Value to increment the value by.
- */
- stepUp(n?: number): void;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLInputElement: {
- prototype: HTMLInputElement;
- new(): HTMLInputElement;
- };
- /** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */
- interface HTMLLIElement extends HTMLElement {
- /** @deprecated */
- type: string;
- /** Sets or retrieves the value of a list item. */
- value: number;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLLIElement: {
- prototype: HTMLLIElement;
- new(): HTMLLIElement;
- };
- /** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */
- interface HTMLLabelElement extends HTMLElement {
- /** Returns the form control that is associated with this element. */
- readonly control: HTMLElement | null;
- /** Retrieves a reference to the form that the object is embedded in. */
- readonly form: HTMLFormElement | null;
- /** Sets or retrieves the object to which the given label object is assigned. */
- htmlFor: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLLabelElement: {
- prototype: HTMLLabelElement;
- new(): HTMLLabelElement;
- };
- /** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */
- interface HTMLLegendElement extends HTMLElement {
- /** @deprecated */
- align: string;
- /** Retrieves a reference to the form that the object is embedded in. */
- readonly form: HTMLFormElement | null;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLLegendElement: {
- prototype: HTMLLegendElement;
- new(): HTMLLegendElement;
- };
- /** Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. */
- interface HTMLLinkElement extends HTMLElement, LinkStyle {
- as: string;
- /**
- * Sets or retrieves the character set used to encode the object.
- * @deprecated
- */
- charset: string;
- crossOrigin: string | null;
- disabled: boolean;
- /** Sets or retrieves a destination URL or an anchor point. */
- href: string;
- /** Sets or retrieves the language code of the object. */
- hreflang: string;
- imageSizes: string;
- imageSrcset: string;
- integrity: string;
- /** Sets or retrieves the media type. */
- media: string;
- referrerPolicy: string;
- /** Sets or retrieves the relationship between the object and the destination of the link. */
- rel: string;
- readonly relList: DOMTokenList;
- /**
- * Sets or retrieves the relationship between the object and the destination of the link.
- * @deprecated
- */
- rev: string;
- readonly sizes: DOMTokenList;
- /**
- * Sets or retrieves the window or frame at which to target content.
- * @deprecated
- */
- target: string;
- /** Sets or retrieves the MIME type of the object. */
- type: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLLinkElement: {
- prototype: HTMLLinkElement;
- new(): HTMLLinkElement;
- };
- /** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. */
- interface HTMLMapElement extends HTMLElement {
- /** Retrieves a collection of the area objects defined for the given map object. */
- readonly areas: HTMLCollection;
- /** Sets or retrieves the name of the object. */
- name: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLMapElement: {
- prototype: HTMLMapElement;
- new(): HTMLMapElement;
- };
- /**
- * Provides methods to manipulate <marquee> elements.
- * @deprecated
- */
- interface HTMLMarqueeElement extends HTMLElement {
- /** @deprecated */
- behavior: string;
- /** @deprecated */
- bgColor: string;
- /** @deprecated */
- direction: string;
- /** @deprecated */
- height: string;
- /** @deprecated */
- hspace: number;
- /** @deprecated */
- loop: number;
- /** @deprecated */
- scrollAmount: number;
- /** @deprecated */
- scrollDelay: number;
- /** @deprecated */
- trueSpeed: boolean;
- /** @deprecated */
- vspace: number;
- /** @deprecated */
- width: string;
- /** @deprecated */
- start(): void;
- /** @deprecated */
- stop(): void;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- /** @deprecated */
- declare var HTMLMarqueeElement: {
- prototype: HTMLMarqueeElement;
- new(): HTMLMarqueeElement;
- };
- interface HTMLMediaElementEventMap extends HTMLElementEventMap {
- "encrypted": MediaEncryptedEvent;
- "waitingforkey": Event;
- }
- /** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. */
- interface HTMLMediaElement extends HTMLElement {
- /** Gets or sets a value that indicates whether to start playing the media automatically. */
- autoplay: boolean;
- /** Gets a collection of buffered time ranges. */
- readonly buffered: TimeRanges;
- /** Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). */
- controls: boolean;
- crossOrigin: string | null;
- /** Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. */
- readonly currentSrc: string;
- /** Gets or sets the current playback position, in seconds. */
- currentTime: number;
- defaultMuted: boolean;
- /** Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. */
- defaultPlaybackRate: number;
- disableRemotePlayback: boolean;
- /** Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. */
- readonly duration: number;
- /** Gets information about whether the playback has ended or not. */
- readonly ended: boolean;
- /** Returns an object representing the current error state of the audio or video element. */
- readonly error: MediaError | null;
- /** Gets or sets a flag to specify whether playback should restart after it completes. */
- loop: boolean;
- /** Available only in secure contexts. */
- readonly mediaKeys: MediaKeys | null;
- /** Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */
- muted: boolean;
- /** Gets the current network activity for the element. */
- readonly networkState: number;
- onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
- onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
- /** Gets a flag that specifies whether playback is paused. */
- readonly paused: boolean;
- /** Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. */
- playbackRate: number;
- /** Gets TimeRanges for the current media resource that has been played. */
- readonly played: TimeRanges;
- /** Gets or sets a value indicating what data should be preloaded, if any. */
- preload: "none" | "metadata" | "auto" | "";
- preservesPitch: boolean;
- readonly readyState: number;
- readonly remote: RemotePlayback;
- /** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */
- readonly seekable: TimeRanges;
- /** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */
- readonly seeking: boolean;
- /** The address or URL of the a media resource that is to be considered. */
- src: string;
- srcObject: MediaProvider | null;
- readonly textTracks: TextTrackList;
- /** Gets or sets the volume level for audio portions of the media element. */
- volume: number;
- addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
- /** Returns a string that specifies whether the client can play a given media resource type. */
- canPlayType(type: string): CanPlayTypeResult;
- fastSeek(time: number): void;
- /** Resets the audio or video object and loads a new media resource. */
- load(): void;
- /** Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. */
- pause(): void;
- /** Loads and starts playback of a media resource. */
- play(): Promise<void>;
- /** Available only in secure contexts. */
- setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
- readonly NETWORK_EMPTY: 0;
- readonly NETWORK_IDLE: 1;
- readonly NETWORK_LOADING: 2;
- readonly NETWORK_NO_SOURCE: 3;
- readonly HAVE_NOTHING: 0;
- readonly HAVE_METADATA: 1;
- readonly HAVE_CURRENT_DATA: 2;
- readonly HAVE_FUTURE_DATA: 3;
- readonly HAVE_ENOUGH_DATA: 4;
- addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLMediaElement: {
- prototype: HTMLMediaElement;
- new(): HTMLMediaElement;
- readonly NETWORK_EMPTY: 0;
- readonly NETWORK_IDLE: 1;
- readonly NETWORK_LOADING: 2;
- readonly NETWORK_NO_SOURCE: 3;
- readonly HAVE_NOTHING: 0;
- readonly HAVE_METADATA: 1;
- readonly HAVE_CURRENT_DATA: 2;
- readonly HAVE_FUTURE_DATA: 3;
- readonly HAVE_ENOUGH_DATA: 4;
- };
- interface HTMLMenuElement extends HTMLElement {
- /** @deprecated */
- compact: boolean;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLMenuElement: {
- prototype: HTMLMenuElement;
- new(): HTMLMenuElement;
- };
- /** Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. */
- interface HTMLMetaElement extends HTMLElement {
- /** Gets or sets meta-information to associate with httpEquiv or name. */
- content: string;
- /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
- httpEquiv: string;
- media: string;
- /** Sets or retrieves the value specified in the content attribute of the meta object. */
- name: string;
- /**
- * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
- * @deprecated
- */
- scheme: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLMetaElement: {
- prototype: HTMLMetaElement;
- new(): HTMLMetaElement;
- };
- /** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */
- interface HTMLMeterElement extends HTMLElement {
- high: number;
- readonly labels: NodeListOf<HTMLLabelElement>;
- low: number;
- max: number;
- min: number;
- optimum: number;
- value: number;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLMeterElement: {
- prototype: HTMLMeterElement;
- new(): HTMLMeterElement;
- };
- /** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */
- interface HTMLModElement extends HTMLElement {
- /** Sets or retrieves reference information about the object. */
- cite: string;
- /** Sets or retrieves the date and time of a modification to the object. */
- dateTime: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLModElement: {
- prototype: HTMLModElement;
- new(): HTMLModElement;
- };
- /** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */
- interface HTMLOListElement extends HTMLElement {
- /** @deprecated */
- compact: boolean;
- reversed: boolean;
- /** The starting number. */
- start: number;
- type: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLOListElement: {
- prototype: HTMLOListElement;
- new(): HTMLOListElement;
- };
- /** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */
- interface HTMLObjectElement extends HTMLElement {
- /** @deprecated */
- align: string;
- /**
- * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
- * @deprecated
- */
- archive: string;
- /** @deprecated */
- border: string;
- /**
- * Sets or retrieves the URL of the file containing the compiled Java class.
- * @deprecated
- */
- code: string;
- /**
- * Sets or retrieves the URL of the component.
- * @deprecated
- */
- codeBase: string;
- /**
- * Sets or retrieves the Internet media type for the code associated with the object.
- * @deprecated
- */
- codeType: string;
- /** Retrieves the document object of the page or frame. */
- readonly contentDocument: Document | null;
- readonly contentWindow: WindowProxy | null;
- /** Sets or retrieves the URL that references the data of the object. */
- data: string;
- /** @deprecated */
- declare: boolean;
- /** Retrieves a reference to the form that the object is embedded in. */
- readonly form: HTMLFormElement | null;
- /** Sets or retrieves the height of the object. */
- height: string;
- /** @deprecated */
- hspace: number;
- /** Sets or retrieves the name of the object. */
- name: string;
- /**
- * Sets or retrieves a message to be displayed while an object is loading.
- * @deprecated
- */
- standby: string;
- /** Sets or retrieves the MIME type of the object. */
- type: string;
- /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */
- useMap: string;
- /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
- readonly validationMessage: string;
- /** Returns a ValidityState object that represents the validity states of an element. */
- readonly validity: ValidityState;
- /** @deprecated */
- vspace: number;
- /** Sets or retrieves the width of the object. */
- width: string;
- /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
- readonly willValidate: boolean;
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
- checkValidity(): boolean;
- getSVGDocument(): Document | null;
- reportValidity(): boolean;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLObjectElement: {
- prototype: HTMLObjectElement;
- new(): HTMLObjectElement;
- };
- /** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */
- interface HTMLOptGroupElement extends HTMLElement {
- disabled: boolean;
- /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
- label: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLOptGroupElement: {
- prototype: HTMLOptGroupElement;
- new(): HTMLOptGroupElement;
- };
- /** <option> elements and inherits all classes and methods of the HTMLElement interface. */
- interface HTMLOptionElement extends HTMLElement {
- /** Sets or retrieves the status of an option. */
- defaultSelected: boolean;
- disabled: boolean;
- /** Retrieves a reference to the form that the object is embedded in. */
- readonly form: HTMLFormElement | null;
- /** Sets or retrieves the ordinal position of an option in a list box. */
- readonly index: number;
- /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
- label: string;
- /** Sets or retrieves whether the option in the list box is the default item. */
- selected: boolean;
- /** Sets or retrieves the text string specified by the option tag. */
- text: string;
- /** Sets or retrieves the value which is returned to the server when the form control is submitted. */
- value: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLOptionElement: {
- prototype: HTMLOptionElement;
- new(): HTMLOptionElement;
- };
- /** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */
- interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
- /**
- * Returns the number of elements in the collection.
- *
- * When set to a smaller number, truncates the number of option elements in the corresponding container.
- *
- * When set to a greater number, adds new blank option elements to that container.
- */
- length: number;
- /**
- * Returns the index of the first selected item, if any, or −1 if there is no selected item.
- *
- * Can be set, to change the selection.
- */
- selectedIndex: number;
- /**
- * Inserts element before the node given by before.
- *
- * The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.
- *
- * If before is omitted, null, or a number out of range, then element will be added at the end of the list.
- *
- * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
- */
- add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
- /** Removes the item with index index from the collection. */
- remove(index: number): void;
- }
- declare var HTMLOptionsCollection: {
- prototype: HTMLOptionsCollection;
- new(): HTMLOptionsCollection;
- };
- interface HTMLOrSVGElement {
- autofocus: boolean;
- readonly dataset: DOMStringMap;
- nonce?: string;
- tabIndex: number;
- blur(): void;
- focus(options?: FocusOptions): void;
- }
- /** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */
- interface HTMLOutputElement extends HTMLElement {
- defaultValue: string;
- readonly form: HTMLFormElement | null;
- readonly htmlFor: DOMTokenList;
- readonly labels: NodeListOf<HTMLLabelElement>;
- name: string;
- /** Returns the string "output". */
- readonly type: string;
- readonly validationMessage: string;
- readonly validity: ValidityState;
- /**
- * Returns the element's current value.
- *
- * Can be set, to change the value.
- */
- value: string;
- readonly willValidate: boolean;
- checkValidity(): boolean;
- reportValidity(): boolean;
- setCustomValidity(error: string): void;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLOutputElement: {
- prototype: HTMLOutputElement;
- new(): HTMLOutputElement;
- };
- /** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */
- interface HTMLParagraphElement extends HTMLElement {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- * @deprecated
- */
- align: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLParagraphElement: {
- prototype: HTMLParagraphElement;
- new(): HTMLParagraphElement;
- };
- /**
- * Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element.
- * @deprecated
- */
- interface HTMLParamElement extends HTMLElement {
- /**
- * Sets or retrieves the name of an input parameter for an element.
- * @deprecated
- */
- name: string;
- /**
- * Sets or retrieves the content type of the resource designated by the value attribute.
- * @deprecated
- */
- type: string;
- /**
- * Sets or retrieves the value of an input parameter for an element.
- * @deprecated
- */
- value: string;
- /**
- * Sets or retrieves the data type of the value attribute.
- * @deprecated
- */
- valueType: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- /** @deprecated */
- declare var HTMLParamElement: {
- prototype: HTMLParamElement;
- new(): HTMLParamElement;
- };
- /** A <picture> HTML element. It doesn't implement specific properties or methods. */
- interface HTMLPictureElement extends HTMLElement {
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLPictureElement: {
- prototype: HTMLPictureElement;
- new(): HTMLPictureElement;
- };
- /** Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). */
- interface HTMLPreElement extends HTMLElement {
- /**
- * Sets or gets a value that you can use to implement your own width functionality for the object.
- * @deprecated
- */
- width: number;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLPreElement: {
- prototype: HTMLPreElement;
- new(): HTMLPreElement;
- };
- /** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. */
- interface HTMLProgressElement extends HTMLElement {
- readonly labels: NodeListOf<HTMLLabelElement>;
- /** Defines the maximum, or "done" value for a progress element. */
- max: number;
- /** Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). */
- readonly position: number;
- /** Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. */
- value: number;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLProgressElement: {
- prototype: HTMLProgressElement;
- new(): HTMLProgressElement;
- };
- /** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. */
- interface HTMLQuoteElement extends HTMLElement {
- /** Sets or retrieves reference information about the object. */
- cite: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLQuoteElement: {
- prototype: HTMLQuoteElement;
- new(): HTMLQuoteElement;
- };
- /** HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). */
- interface HTMLScriptElement extends HTMLElement {
- async: boolean;
- /**
- * Sets or retrieves the character set used to encode the object.
- * @deprecated
- */
- charset: string;
- crossOrigin: string | null;
- /** Sets or retrieves the status of the script. */
- defer: boolean;
- /**
- * Sets or retrieves the event for which the script is written.
- * @deprecated
- */
- event: string;
- /**
- * Sets or retrieves the object that is bound to the event script.
- * @deprecated
- */
- htmlFor: string;
- integrity: string;
- noModule: boolean;
- referrerPolicy: string;
- /** Retrieves the URL to an external file that contains the source code or data. */
- src: string;
- /** Retrieves or sets the text of the object as a string. */
- text: string;
- /** Sets or retrieves the MIME type for the associated scripting engine. */
- type: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLScriptElement: {
- prototype: HTMLScriptElement;
- new(): HTMLScriptElement;
- supports(type: string): boolean;
- };
- /** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
- interface HTMLSelectElement extends HTMLElement {
- autocomplete: string;
- disabled: boolean;
- /** Retrieves a reference to the form that the object is embedded in. */
- readonly form: HTMLFormElement | null;
- readonly labels: NodeListOf<HTMLLabelElement>;
- /** Sets or retrieves the number of objects in a collection. */
- length: number;
- /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
- multiple: boolean;
- /** Sets or retrieves the name of the object. */
- name: string;
- /** Returns an HTMLOptionsCollection of the list of options. */
- readonly options: HTMLOptionsCollection;
- /** When present, marks an element that can't be submitted without a value. */
- required: boolean;
- /** Sets or retrieves the index of the selected option in a select object. */
- selectedIndex: number;
- readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
- /** Sets or retrieves the number of rows in the list box. */
- size: number;
- /** Retrieves the type of select control based on the value of the MULTIPLE attribute. */
- readonly type: string;
- /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
- readonly validationMessage: string;
- /** Returns a ValidityState object that represents the validity states of an element. */
- readonly validity: ValidityState;
- /** Sets or retrieves the value which is returned to the server when the form control is submitted. */
- value: string;
- /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
- readonly willValidate: boolean;
- /**
- * Adds an element to the areas, controlRange, or options collection.
- * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
- * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
- */
- add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
- checkValidity(): boolean;
- /**
- * Retrieves a select object or an object from an options collection.
- * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
- * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
- */
- item(index: number): HTMLOptionElement | null;
- /**
- * Retrieves a select object or an object from an options collection.
- * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
- */
- namedItem(name: string): HTMLOptionElement | null;
- /**
- * Removes an element from the collection.
- * @param index Number that specifies the zero-based index of the element to remove from the collection.
- */
- remove(): void;
- remove(index: number): void;
- reportValidity(): boolean;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- [name: number]: HTMLOptionElement | HTMLOptGroupElement;
- }
- declare var HTMLSelectElement: {
- prototype: HTMLSelectElement;
- new(): HTMLSelectElement;
- };
- interface HTMLSlotElement extends HTMLElement {
- name: string;
- assign(...nodes: (Element | Text)[]): void;
- assignedElements(options?: AssignedNodesOptions): Element[];
- assignedNodes(options?: AssignedNodesOptions): Node[];
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLSlotElement: {
- prototype: HTMLSlotElement;
- new(): HTMLSlotElement;
- };
- /** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
- interface HTMLSourceElement extends HTMLElement {
- height: number;
- /** Gets or sets the intended media type of the media source. */
- media: string;
- sizes: string;
- /** The address or URL of the a media resource that is to be considered. */
- src: string;
- srcset: string;
- /** Gets or sets the MIME type of a media resource. */
- type: string;
- width: number;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLSourceElement: {
- prototype: HTMLSourceElement;
- new(): HTMLSourceElement;
- };
- /** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
- interface HTMLSpanElement extends HTMLElement {
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLSpanElement: {
- prototype: HTMLSpanElement;
- new(): HTMLSpanElement;
- };
- /** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
- interface HTMLStyleElement extends HTMLElement, LinkStyle {
- /** Enables or disables the style sheet. */
- disabled: boolean;
- /** Sets or retrieves the media type. */
- media: string;
- /**
- * Retrieves the CSS language in which the style sheet is written.
- * @deprecated
- */
- type: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLStyleElement: {
- prototype: HTMLStyleElement;
- new(): HTMLStyleElement;
- };
- /** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */
- interface HTMLTableCaptionElement extends HTMLElement {
- /**
- * Sets or retrieves the alignment of the caption or legend.
- * @deprecated
- */
- align: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLTableCaptionElement: {
- prototype: HTMLTableCaptionElement;
- new(): HTMLTableCaptionElement;
- };
- /** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */
- interface HTMLTableCellElement extends HTMLElement {
- /** Sets or retrieves abbreviated text for the object. */
- abbr: string;
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- * @deprecated
- */
- align: string;
- /**
- * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
- * @deprecated
- */
- axis: string;
- /** @deprecated */
- bgColor: string;
- /** Retrieves the position of the object in the cells collection of a row. */
- readonly cellIndex: number;
- /** @deprecated */
- ch: string;
- /** @deprecated */
- chOff: string;
- /** Sets or retrieves the number columns in the table that the object should span. */
- colSpan: number;
- /** Sets or retrieves a list of header cells that provide information for the object. */
- headers: string;
- /**
- * Sets or retrieves the height of the object.
- * @deprecated
- */
- height: string;
- /**
- * Sets or retrieves whether the browser automatically performs wordwrap.
- * @deprecated
- */
- noWrap: boolean;
- /** Sets or retrieves how many rows in a table the cell should span. */
- rowSpan: number;
- /** Sets or retrieves the group of cells in a table to which the object's information applies. */
- scope: string;
- /** @deprecated */
- vAlign: string;
- /**
- * Sets or retrieves the width of the object.
- * @deprecated
- */
- width: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLTableCellElement: {
- prototype: HTMLTableCellElement;
- new(): HTMLTableCellElement;
- };
- /** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */
- interface HTMLTableColElement extends HTMLElement {
- /**
- * Sets or retrieves the alignment of the object relative to the display or table.
- * @deprecated
- */
- align: string;
- /** @deprecated */
- ch: string;
- /** @deprecated */
- chOff: string;
- /** Sets or retrieves the number of columns in the group. */
- span: number;
- /** @deprecated */
- vAlign: string;
- /**
- * Sets or retrieves the width of the object.
- * @deprecated
- */
- width: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLTableColElement: {
- prototype: HTMLTableColElement;
- new(): HTMLTableColElement;
- };
- /** @deprecated prefer HTMLTableCellElement */
- interface HTMLTableDataCellElement extends HTMLTableCellElement {
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- /** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */
- interface HTMLTableElement extends HTMLElement {
- /**
- * Sets or retrieves a value that indicates the table alignment.
- * @deprecated
- */
- align: string;
- /** @deprecated */
- bgColor: string;
- /**
- * Sets or retrieves the width of the border to draw around the object.
- * @deprecated
- */
- border: string;
- /** Retrieves the caption object of a table. */
- caption: HTMLTableCaptionElement | null;
- /**
- * Sets or retrieves the amount of space between the border of the cell and the content of the cell.
- * @deprecated
- */
- cellPadding: string;
- /**
- * Sets or retrieves the amount of space between cells in a table.
- * @deprecated
- */
- cellSpacing: string;
- /**
- * Sets or retrieves the way the border frame around the table is displayed.
- * @deprecated
- */
- frame: string;
- /** Sets or retrieves the number of horizontal rows contained in the object. */
- readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
- /**
- * Sets or retrieves which dividing lines (inner borders) are displayed.
- * @deprecated
- */
- rules: string;
- /**
- * Sets or retrieves a description and/or structure of the object.
- * @deprecated
- */
- summary: string;
- /** Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. */
- readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
- /** Retrieves the tFoot object of the table. */
- tFoot: HTMLTableSectionElement | null;
- /** Retrieves the tHead object of the table. */
- tHead: HTMLTableSectionElement | null;
- /**
- * Sets or retrieves the width of the object.
- * @deprecated
- */
- width: string;
- /** Creates an empty caption element in the table. */
- createCaption(): HTMLTableCaptionElement;
- /** Creates an empty tBody element in the table. */
- createTBody(): HTMLTableSectionElement;
- /** Creates an empty tFoot element in the table. */
- createTFoot(): HTMLTableSectionElement;
- /** Returns the tHead element object if successful, or null otherwise. */
- createTHead(): HTMLTableSectionElement;
- /** Deletes the caption element and its contents from the table. */
- deleteCaption(): void;
- /**
- * Removes the specified row (tr) from the element and from the rows collection.
- * @param index Number that specifies the zero-based position in the rows collection of the row to remove.
- */
- deleteRow(index: number): void;
- /** Deletes the tFoot element and its contents from the table. */
- deleteTFoot(): void;
- /** Deletes the tHead element and its contents from the table. */
- deleteTHead(): void;
- /**
- * Creates a new row (tr) in the table, and adds the row to the rows collection.
- * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
- */
- insertRow(index?: number): HTMLTableRowElement;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLTableElement: {
- prototype: HTMLTableElement;
- new(): HTMLTableElement;
- };
- /** @deprecated prefer HTMLTableCellElement */
- interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- /** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */
- interface HTMLTableRowElement extends HTMLElement {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- * @deprecated
- */
- align: string;
- /** @deprecated */
- bgColor: string;
- /** Retrieves a collection of all cells in the table row. */
- readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
- /** @deprecated */
- ch: string;
- /** @deprecated */
- chOff: string;
- /** Retrieves the position of the object in the rows collection for the table. */
- readonly rowIndex: number;
- /** Retrieves the position of the object in the collection. */
- readonly sectionRowIndex: number;
- /** @deprecated */
- vAlign: string;
- /**
- * Removes the specified cell from the table row, as well as from the cells collection.
- * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.
- */
- deleteCell(index: number): void;
- /**
- * Creates a new cell in the table row, and adds the cell to the cells collection.
- * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
- */
- insertCell(index?: number): HTMLTableCellElement;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLTableRowElement: {
- prototype: HTMLTableRowElement;
- new(): HTMLTableRowElement;
- };
- /** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. */
- interface HTMLTableSectionElement extends HTMLElement {
- /**
- * Sets or retrieves a value that indicates the table alignment.
- * @deprecated
- */
- align: string;
- /** @deprecated */
- ch: string;
- /** @deprecated */
- chOff: string;
- /** Sets or retrieves the number of horizontal rows contained in the object. */
- readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
- /** @deprecated */
- vAlign: string;
- /**
- * Removes the specified row (tr) from the element and from the rows collection.
- * @param index Number that specifies the zero-based position in the rows collection of the row to remove.
- */
- deleteRow(index: number): void;
- /**
- * Creates a new row (tr) in the table, and adds the row to the rows collection.
- * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
- */
- insertRow(index?: number): HTMLTableRowElement;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLTableSectionElement: {
- prototype: HTMLTableSectionElement;
- new(): HTMLTableSectionElement;
- };
- /** Enables access to the contents of an HTML <template> element. */
- interface HTMLTemplateElement extends HTMLElement {
- /** Returns the template contents (a DocumentFragment). */
- readonly content: DocumentFragment;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLTemplateElement: {
- prototype: HTMLTemplateElement;
- new(): HTMLTemplateElement;
- };
- /** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */
- interface HTMLTextAreaElement extends HTMLElement {
- autocomplete: string;
- /** Sets or retrieves the width of the object. */
- cols: number;
- /** Sets or retrieves the initial contents of the object. */
- defaultValue: string;
- dirName: string;
- disabled: boolean;
- /** Retrieves a reference to the form that the object is embedded in. */
- readonly form: HTMLFormElement | null;
- readonly labels: NodeListOf<HTMLLabelElement>;
- /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
- maxLength: number;
- minLength: number;
- /** Sets or retrieves the name of the object. */
- name: string;
- /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
- placeholder: string;
- /** Sets or retrieves the value indicated whether the content of the object is read-only. */
- readOnly: boolean;
- /** When present, marks an element that can't be submitted without a value. */
- required: boolean;
- /** Sets or retrieves the number of horizontal rows contained in the object. */
- rows: number;
- selectionDirection: "forward" | "backward" | "none";
- /** Gets or sets the end position or offset of a text selection. */
- selectionEnd: number;
- /** Gets or sets the starting position or offset of a text selection. */
- selectionStart: number;
- readonly textLength: number;
- /** Retrieves the type of control. */
- readonly type: string;
- /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
- readonly validationMessage: string;
- /** Returns a ValidityState object that represents the validity states of an element. */
- readonly validity: ValidityState;
- /** Retrieves or sets the text in the entry field of the textArea element. */
- value: string;
- /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
- readonly willValidate: boolean;
- /** Sets or retrieves how to handle wordwrapping in the object. */
- wrap: string;
- /** Returns whether a form will validate when it is submitted, without having to submit it. */
- checkValidity(): boolean;
- reportValidity(): boolean;
- /** Highlights the input area of a form element. */
- select(): void;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- setRangeText(replacement: string): void;
- setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
- /**
- * Sets the start and end positions of a selection in a text field.
- * @param start The offset into the text field for the start of the selection.
- * @param end The offset into the text field for the end of the selection.
- * @param direction The direction in which the selection is performed.
- */
- setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLTextAreaElement: {
- prototype: HTMLTextAreaElement;
- new(): HTMLTextAreaElement;
- };
- /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */
- interface HTMLTimeElement extends HTMLElement {
- dateTime: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLTimeElement: {
- prototype: HTMLTimeElement;
- new(): HTMLTimeElement;
- };
- /** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */
- interface HTMLTitleElement extends HTMLElement {
- /** Retrieves or sets the text of the object as a string. */
- text: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLTitleElement: {
- prototype: HTMLTitleElement;
- new(): HTMLTitleElement;
- };
- /** The HTMLTrackElement */
- interface HTMLTrackElement extends HTMLElement {
- default: boolean;
- kind: string;
- label: string;
- readonly readyState: number;
- src: string;
- srclang: string;
- /** Returns the TextTrack object corresponding to the text track of the track element. */
- readonly track: TextTrack;
- readonly NONE: 0;
- readonly LOADING: 1;
- readonly LOADED: 2;
- readonly ERROR: 3;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLTrackElement: {
- prototype: HTMLTrackElement;
- new(): HTMLTrackElement;
- readonly NONE: 0;
- readonly LOADING: 1;
- readonly LOADED: 2;
- readonly ERROR: 3;
- };
- /** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */
- interface HTMLUListElement extends HTMLElement {
- /** @deprecated */
- compact: boolean;
- /** @deprecated */
- type: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLUListElement: {
- prototype: HTMLUListElement;
- new(): HTMLUListElement;
- };
- /** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
- interface HTMLUnknownElement extends HTMLElement {
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLUnknownElement: {
- prototype: HTMLUnknownElement;
- new(): HTMLUnknownElement;
- };
- interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
- "enterpictureinpicture": Event;
- "leavepictureinpicture": Event;
- }
- /** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */
- interface HTMLVideoElement extends HTMLMediaElement {
- disablePictureInPicture: boolean;
- /** Gets or sets the height of the video element. */
- height: number;
- onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
- onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
- /** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */
- playsInline: boolean;
- /** Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. */
- poster: string;
- /** Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. */
- readonly videoHeight: number;
- /** Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. */
- readonly videoWidth: number;
- /** Gets or sets the width of the video element. */
- width: number;
- cancelVideoFrameCallback(handle: number): void;
- getVideoPlaybackQuality(): VideoPlaybackQuality;
- requestPictureInPicture(): Promise<PictureInPictureWindow>;
- requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
- addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var HTMLVideoElement: {
- prototype: HTMLVideoElement;
- new(): HTMLVideoElement;
- };
- /** Events that fire when the fragment identifier of the URL has changed. */
- interface HashChangeEvent extends Event {
- /** Returns the URL of the session history entry that is now current. */
- readonly newURL: string;
- /** Returns the URL of the session history entry that was previously current. */
- readonly oldURL: string;
- }
- declare var HashChangeEvent: {
- prototype: HashChangeEvent;
- new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
- };
- /** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */
- interface Headers {
- append(name: string, value: string): void;
- delete(name: string): void;
- get(name: string): string | null;
- has(name: string): boolean;
- set(name: string, value: string): void;
- forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
- }
- declare var Headers: {
- prototype: Headers;
- new(init?: HeadersInit): Headers;
- };
- /** Allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */
- interface History {
- readonly length: number;
- scrollRestoration: ScrollRestoration;
- readonly state: any;
- back(): void;
- forward(): void;
- go(delta?: number): void;
- pushState(data: any, unused: string, url?: string | URL | null): void;
- replaceState(data: any, unused: string, url?: string | URL | null): void;
- }
- declare var History: {
- prototype: History;
- new(): History;
- };
- /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
- interface IDBCursor {
- /** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
- readonly direction: IDBCursorDirection;
- /** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
- readonly key: IDBValidKey;
- /** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
- readonly primaryKey: IDBValidKey;
- readonly request: IDBRequest;
- /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
- readonly source: IDBObjectStore | IDBIndex;
- /** Advances the cursor through the next count records in range. */
- advance(count: number): void;
- /** Advances the cursor to the next record in range. */
- continue(key?: IDBValidKey): void;
- /** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */
- continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
- /**
- * Delete the record pointed at by the cursor with a new value.
- *
- * If successful, request's result will be undefined.
- */
- delete(): IDBRequest<undefined>;
- /**
- * Updated the record pointed at by the cursor with a new value.
- *
- * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
- *
- * If successful, request's result will be the record's key.
- */
- update(value: any): IDBRequest<IDBValidKey>;
- }
- declare var IDBCursor: {
- prototype: IDBCursor;
- new(): IDBCursor;
- };
- /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
- interface IDBCursorWithValue extends IDBCursor {
- /** Returns the cursor's current value. */
- readonly value: any;
- }
- declare var IDBCursorWithValue: {
- prototype: IDBCursorWithValue;
- new(): IDBCursorWithValue;
- };
- interface IDBDatabaseEventMap {
- "abort": Event;
- "close": Event;
- "error": Event;
- "versionchange": IDBVersionChangeEvent;
- }
- /** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
- interface IDBDatabase extends EventTarget {
- /** Returns the name of the database. */
- readonly name: string;
- /** Returns a list of the names of object stores in the database. */
- readonly objectStoreNames: DOMStringList;
- onabort: ((this: IDBDatabase, ev: Event) => any) | null;
- onclose: ((this: IDBDatabase, ev: Event) => any) | null;
- onerror: ((this: IDBDatabase, ev: Event) => any) | null;
- onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
- /** Returns the version of the database. */
- readonly version: number;
- /** Closes the connection once all running transactions have finished. */
- close(): void;
- /**
- * Creates a new object store with the given name and options and returns a new IDBObjectStore.
- *
- * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
- */
- createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
- /**
- * Deletes the object store with the given name.
- *
- * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
- */
- deleteObjectStore(name: string): void;
- /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
- transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
- addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var IDBDatabase: {
- prototype: IDBDatabase;
- new(): IDBDatabase;
- };
- /** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
- interface IDBFactory {
- /**
- * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
- *
- * Throws a "DataError" DOMException if either input is not a valid key.
- */
- cmp(first: any, second: any): number;
- databases(): Promise<IDBDatabaseInfo[]>;
- /** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */
- deleteDatabase(name: string): IDBOpenDBRequest;
- /** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */
- open(name: string, version?: number): IDBOpenDBRequest;
- }
- declare var IDBFactory: {
- prototype: IDBFactory;
- new(): IDBFactory;
- };
- /** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
- interface IDBIndex {
- readonly keyPath: string | string[];
- readonly multiEntry: boolean;
- /** Returns the name of the index. */
- name: string;
- /** Returns the IDBObjectStore the index belongs to. */
- readonly objectStore: IDBObjectStore;
- readonly unique: boolean;
- /**
- * Retrieves the number of records matching the given key or key range in query.
- *
- * If successful, request's result will be the count.
- */
- count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
- /**
- * Retrieves the value of the first record matching the given key or key range in query.
- *
- * If successful, request's result will be the value, or undefined if there was no matching record.
- */
- get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
- /**
- * Retrieves the values of the records matching the given key or key range in query (up to count if given).
- *
- * If successful, request's result will be an Array of the values.
- */
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
- /**
- * Retrieves the keys of records matching the given key or key range in query (up to count if given).
- *
- * If successful, request's result will be an Array of the keys.
- */
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
- /**
- * Retrieves the key of the first record matching the given key or key range in query.
- *
- * If successful, request's result will be the key, or undefined if there was no matching record.
- */
- getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
- /**
- * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
- *
- * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
- */
- openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
- /**
- * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
- *
- * If successful, request's result will be an IDBCursor, or null if there were no matching records.
- */
- openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
- }
- declare var IDBIndex: {
- prototype: IDBIndex;
- new(): IDBIndex;
- };
- /** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
- interface IDBKeyRange {
- /** Returns lower bound, or undefined if none. */
- readonly lower: any;
- /** Returns true if the lower open flag is set, and false otherwise. */
- readonly lowerOpen: boolean;
- /** Returns upper bound, or undefined if none. */
- readonly upper: any;
- /** Returns true if the upper open flag is set, and false otherwise. */
- readonly upperOpen: boolean;
- /** Returns true if key is included in the range, and false otherwise. */
- includes(key: any): boolean;
- }
- declare var IDBKeyRange: {
- prototype: IDBKeyRange;
- new(): IDBKeyRange;
- /** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */
- bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
- /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
- lowerBound(lower: any, open?: boolean): IDBKeyRange;
- /** Returns a new IDBKeyRange spanning only key. */
- only(value: any): IDBKeyRange;
- /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
- upperBound(upper: any, open?: boolean): IDBKeyRange;
- };
- /** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */
- interface IDBObjectStore {
- /** Returns true if the store has a key generator, and false otherwise. */
- readonly autoIncrement: boolean;
- /** Returns a list of the names of indexes in the store. */
- readonly indexNames: DOMStringList;
- /** Returns the key path of the store, or null if none. */
- readonly keyPath: string | string[];
- /** Returns the name of the store. */
- name: string;
- /** Returns the associated transaction. */
- readonly transaction: IDBTransaction;
- /**
- * Adds or updates a record in store with the given value and key.
- *
- * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
- *
- * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
- *
- * If successful, request's result will be the record's key.
- */
- add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
- /**
- * Deletes all records in store.
- *
- * If successful, request's result will be undefined.
- */
- clear(): IDBRequest<undefined>;
- /**
- * Retrieves the number of records matching the given key or key range in query.
- *
- * If successful, request's result will be the count.
- */
- count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
- /**
- * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
- *
- * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
- */
- createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
- /**
- * Deletes records in store with the given key or in the given key range in query.
- *
- * If successful, request's result will be undefined.
- */
- delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
- /**
- * Deletes the index in store with the given name.
- *
- * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
- */
- deleteIndex(name: string): void;
- /**
- * Retrieves the value of the first record matching the given key or key range in query.
- *
- * If successful, request's result will be the value, or undefined if there was no matching record.
- */
- get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
- /**
- * Retrieves the values of the records matching the given key or key range in query (up to count if given).
- *
- * If successful, request's result will be an Array of the values.
- */
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
- /**
- * Retrieves the keys of records matching the given key or key range in query (up to count if given).
- *
- * If successful, request's result will be an Array of the keys.
- */
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
- /**
- * Retrieves the key of the first record matching the given key or key range in query.
- *
- * If successful, request's result will be the key, or undefined if there was no matching record.
- */
- getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
- index(name: string): IDBIndex;
- /**
- * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
- *
- * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
- */
- openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
- /**
- * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
- *
- * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
- */
- openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
- /**
- * Adds or updates a record in store with the given value and key.
- *
- * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
- *
- * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
- *
- * If successful, request's result will be the record's key.
- */
- put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
- }
- declare var IDBObjectStore: {
- prototype: IDBObjectStore;
- new(): IDBObjectStore;
- };
- interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
- "blocked": IDBVersionChangeEvent;
- "upgradeneeded": IDBVersionChangeEvent;
- }
- /** Also inherits methods from its parents IDBRequest and EventTarget. */
- interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
- onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
- onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
- addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var IDBOpenDBRequest: {
- prototype: IDBOpenDBRequest;
- new(): IDBOpenDBRequest;
- };
- interface IDBRequestEventMap {
- "error": Event;
- "success": Event;
- }
- /** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
- interface IDBRequest<T = any> extends EventTarget {
- /** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */
- readonly error: DOMException | null;
- onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
- onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
- /** Returns "pending" until a request is complete, then returns "done". */
- readonly readyState: IDBRequestReadyState;
- /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
- readonly result: T;
- /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
- readonly source: IDBObjectStore | IDBIndex | IDBCursor;
- /** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */
- readonly transaction: IDBTransaction | null;
- addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var IDBRequest: {
- prototype: IDBRequest;
- new(): IDBRequest;
- };
- interface IDBTransactionEventMap {
- "abort": Event;
- "complete": Event;
- "error": Event;
- }
- interface IDBTransaction extends EventTarget {
- /** Returns the transaction's connection. */
- readonly db: IDBDatabase;
- readonly durability: IDBTransactionDurability;
- /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
- readonly error: DOMException | null;
- /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
- readonly mode: IDBTransactionMode;
- /** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */
- readonly objectStoreNames: DOMStringList;
- onabort: ((this: IDBTransaction, ev: Event) => any) | null;
- oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
- onerror: ((this: IDBTransaction, ev: Event) => any) | null;
- /** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
- abort(): void;
- commit(): void;
- /** Returns an IDBObjectStore in the transaction's scope. */
- objectStore(name: string): IDBObjectStore;
- addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var IDBTransaction: {
- prototype: IDBTransaction;
- new(): IDBTransaction;
- };
- /** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
- interface IDBVersionChangeEvent extends Event {
- readonly newVersion: number | null;
- readonly oldVersion: number;
- }
- declare var IDBVersionChangeEvent: {
- prototype: IDBVersionChangeEvent;
- new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
- };
- /** The IIRFilterNode interface of the Web Audio API is a AudioNode processor which implements a general infinite impulse response (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */
- interface IIRFilterNode extends AudioNode {
- getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
- }
- declare var IIRFilterNode: {
- prototype: IIRFilterNode;
- new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
- };
- interface IdleDeadline {
- readonly didTimeout: boolean;
- timeRemaining(): DOMHighResTimeStamp;
- }
- declare var IdleDeadline: {
- prototype: IdleDeadline;
- new(): IdleDeadline;
- };
- interface ImageBitmap {
- /** Returns the intrinsic height of the image, in CSS pixels. */
- readonly height: number;
- /** Returns the intrinsic width of the image, in CSS pixels. */
- readonly width: number;
- /** Releases imageBitmap's underlying bitmap data. */
- close(): void;
- }
- declare var ImageBitmap: {
- prototype: ImageBitmap;
- new(): ImageBitmap;
- };
- interface ImageBitmapRenderingContext {
- /** Returns the canvas element that the context is bound to. */
- readonly canvas: HTMLCanvasElement | OffscreenCanvas;
- /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
- transferFromImageBitmap(bitmap: ImageBitmap | null): void;
- }
- declare var ImageBitmapRenderingContext: {
- prototype: ImageBitmapRenderingContext;
- new(): ImageBitmapRenderingContext;
- };
- /** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
- interface ImageData {
- readonly colorSpace: PredefinedColorSpace;
- /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
- readonly data: Uint8ClampedArray;
- /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
- readonly height: number;
- /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
- readonly width: number;
- }
- declare var ImageData: {
- prototype: ImageData;
- new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
- new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
- };
- interface InnerHTML {
- innerHTML: string;
- }
- /** Available only in secure contexts. */
- interface InputDeviceInfo extends MediaDeviceInfo {
- }
- declare var InputDeviceInfo: {
- prototype: InputDeviceInfo;
- new(): InputDeviceInfo;
- };
- interface InputEvent extends UIEvent {
- readonly data: string | null;
- readonly dataTransfer: DataTransfer | null;
- readonly inputType: string;
- readonly isComposing: boolean;
- getTargetRanges(): StaticRange[];
- }
- declare var InputEvent: {
- prototype: InputEvent;
- new(type: string, eventInitDict?: InputEventInit): InputEvent;
- };
- /** provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport. */
- interface IntersectionObserver {
- readonly root: Element | Document | null;
- readonly rootMargin: string;
- readonly thresholds: ReadonlyArray<number>;
- disconnect(): void;
- observe(target: Element): void;
- takeRecords(): IntersectionObserverEntry[];
- unobserve(target: Element): void;
- }
- declare var IntersectionObserver: {
- prototype: IntersectionObserver;
- new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
- };
- /** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */
- interface IntersectionObserverEntry {
- readonly boundingClientRect: DOMRectReadOnly;
- readonly intersectionRatio: number;
- readonly intersectionRect: DOMRectReadOnly;
- readonly isIntersecting: boolean;
- readonly rootBounds: DOMRectReadOnly | null;
- readonly target: Element;
- readonly time: DOMHighResTimeStamp;
- }
- declare var IntersectionObserverEntry: {
- prototype: IntersectionObserverEntry;
- new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
- };
- interface KHR_parallel_shader_compile {
- readonly COMPLETION_STATUS_KHR: 0x91B1;
- }
- /** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */
- interface KeyboardEvent extends UIEvent {
- readonly altKey: boolean;
- /** @deprecated */
- readonly charCode: number;
- readonly code: string;
- readonly ctrlKey: boolean;
- readonly isComposing: boolean;
- readonly key: string;
- /** @deprecated */
- readonly keyCode: number;
- readonly location: number;
- readonly metaKey: boolean;
- readonly repeat: boolean;
- readonly shiftKey: boolean;
- getModifierState(keyArg: string): boolean;
- /** @deprecated */
- initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
- readonly DOM_KEY_LOCATION_STANDARD: 0x00;
- readonly DOM_KEY_LOCATION_LEFT: 0x01;
- readonly DOM_KEY_LOCATION_RIGHT: 0x02;
- readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
- }
- declare var KeyboardEvent: {
- prototype: KeyboardEvent;
- new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
- readonly DOM_KEY_LOCATION_STANDARD: 0x00;
- readonly DOM_KEY_LOCATION_LEFT: 0x01;
- readonly DOM_KEY_LOCATION_RIGHT: 0x02;
- readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
- };
- interface KeyframeEffect extends AnimationEffect {
- composite: CompositeOperation;
- iterationComposite: IterationCompositeOperation;
- pseudoElement: string | null;
- target: Element | null;
- getKeyframes(): ComputedKeyframe[];
- setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
- }
- declare var KeyframeEffect: {
- prototype: KeyframeEffect;
- new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;
- new(source: KeyframeEffect): KeyframeEffect;
- };
- interface LinkStyle {
- readonly sheet: CSSStyleSheet | null;
- }
- /** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */
- interface Location {
- /** Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. */
- readonly ancestorOrigins: DOMStringList;
- /**
- * Returns the Location object's URL's fragment (includes leading "#" if non-empty).
- *
- * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
- */
- hash: string;
- /**
- * Returns the Location object's URL's host and port (if different from the default port for the scheme).
- *
- * Can be set, to navigate to the same URL with a changed host and port.
- */
- host: string;
- /**
- * Returns the Location object's URL's host.
- *
- * Can be set, to navigate to the same URL with a changed host.
- */
- hostname: string;
- /**
- * Returns the Location object's URL.
- *
- * Can be set, to navigate to the given URL.
- */
- href: string;
- toString(): string;
- /** Returns the Location object's URL's origin. */
- readonly origin: string;
- /**
- * Returns the Location object's URL's path.
- *
- * Can be set, to navigate to the same URL with a changed path.
- */
- pathname: string;
- /**
- * Returns the Location object's URL's port.
- *
- * Can be set, to navigate to the same URL with a changed port.
- */
- port: string;
- /**
- * Returns the Location object's URL's scheme.
- *
- * Can be set, to navigate to the same URL with a changed scheme.
- */
- protocol: string;
- /**
- * Returns the Location object's URL's query (includes leading "?" if non-empty).
- *
- * Can be set, to navigate to the same URL with a changed query (ignores leading "?").
- */
- search: string;
- /** Navigates to the given URL. */
- assign(url: string | URL): void;
- /** Reloads the current page. */
- reload(): void;
- /** Removes the current page from the session history and navigates to the given URL. */
- replace(url: string | URL): void;
- }
- declare var Location: {
- prototype: Location;
- new(): Location;
- };
- /** Available only in secure contexts. */
- interface Lock {
- readonly mode: LockMode;
- readonly name: string;
- }
- declare var Lock: {
- prototype: Lock;
- new(): Lock;
- };
- /** Available only in secure contexts. */
- interface LockManager {
- query(): Promise<LockManagerSnapshot>;
- request(name: string, callback: LockGrantedCallback): Promise<any>;
- request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
- }
- declare var LockManager: {
- prototype: LockManager;
- new(): LockManager;
- };
- interface MIDIAccessEventMap {
- "statechange": Event;
- }
- /** Available only in secure contexts. */
- interface MIDIAccess extends EventTarget {
- readonly inputs: MIDIInputMap;
- onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
- readonly outputs: MIDIOutputMap;
- readonly sysexEnabled: boolean;
- addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MIDIAccess: {
- prototype: MIDIAccess;
- new(): MIDIAccess;
- };
- /** Available only in secure contexts. */
- interface MIDIConnectionEvent extends Event {
- readonly port: MIDIPort;
- }
- declare var MIDIConnectionEvent: {
- prototype: MIDIConnectionEvent;
- new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
- };
- interface MIDIInputEventMap extends MIDIPortEventMap {
- "midimessage": Event;
- }
- /** Available only in secure contexts. */
- interface MIDIInput extends MIDIPort {
- onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
- addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MIDIInput: {
- prototype: MIDIInput;
- new(): MIDIInput;
- };
- /** Available only in secure contexts. */
- interface MIDIInputMap {
- forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
- }
- declare var MIDIInputMap: {
- prototype: MIDIInputMap;
- new(): MIDIInputMap;
- };
- /** Available only in secure contexts. */
- interface MIDIMessageEvent extends Event {
- readonly data: Uint8Array;
- }
- declare var MIDIMessageEvent: {
- prototype: MIDIMessageEvent;
- new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
- };
- /** Available only in secure contexts. */
- interface MIDIOutput extends MIDIPort {
- send(data: number[], timestamp?: DOMHighResTimeStamp): void;
- addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MIDIOutput: {
- prototype: MIDIOutput;
- new(): MIDIOutput;
- };
- /** Available only in secure contexts. */
- interface MIDIOutputMap {
- forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
- }
- declare var MIDIOutputMap: {
- prototype: MIDIOutputMap;
- new(): MIDIOutputMap;
- };
- interface MIDIPortEventMap {
- "statechange": Event;
- }
- /** Available only in secure contexts. */
- interface MIDIPort extends EventTarget {
- readonly connection: MIDIPortConnectionState;
- readonly id: string;
- readonly manufacturer: string | null;
- readonly name: string | null;
- onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
- readonly state: MIDIPortDeviceState;
- readonly type: MIDIPortType;
- readonly version: string | null;
- close(): Promise<MIDIPort>;
- open(): Promise<MIDIPort>;
- addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MIDIPort: {
- prototype: MIDIPort;
- new(): MIDIPort;
- };
- interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
- }
- interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
- addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MathMLElement: {
- prototype: MathMLElement;
- new(): MathMLElement;
- };
- interface MediaCapabilities {
- decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
- encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
- }
- declare var MediaCapabilities: {
- prototype: MediaCapabilities;
- new(): MediaCapabilities;
- };
- /**
- * The MediaDevicesInfo interface contains information that describes a single media input or output device.
- * Available only in secure contexts.
- */
- interface MediaDeviceInfo {
- readonly deviceId: string;
- readonly groupId: string;
- readonly kind: MediaDeviceKind;
- readonly label: string;
- toJSON(): any;
- }
- declare var MediaDeviceInfo: {
- prototype: MediaDeviceInfo;
- new(): MediaDeviceInfo;
- };
- interface MediaDevicesEventMap {
- "devicechange": Event;
- }
- /**
- * Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.
- * Available only in secure contexts.
- */
- interface MediaDevices extends EventTarget {
- ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
- enumerateDevices(): Promise<MediaDeviceInfo[]>;
- getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;
- getSupportedConstraints(): MediaTrackSupportedConstraints;
- getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
- addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MediaDevices: {
- prototype: MediaDevices;
- new(): MediaDevices;
- };
- /** A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. */
- interface MediaElementAudioSourceNode extends AudioNode {
- readonly mediaElement: HTMLMediaElement;
- }
- declare var MediaElementAudioSourceNode: {
- prototype: MediaElementAudioSourceNode;
- new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
- };
- interface MediaEncryptedEvent extends Event {
- readonly initData: ArrayBuffer | null;
- readonly initDataType: string;
- }
- declare var MediaEncryptedEvent: {
- prototype: MediaEncryptedEvent;
- new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
- };
- /** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */
- interface MediaError {
- readonly code: number;
- readonly message: string;
- readonly MEDIA_ERR_ABORTED: 1;
- readonly MEDIA_ERR_NETWORK: 2;
- readonly MEDIA_ERR_DECODE: 3;
- readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
- }
- declare var MediaError: {
- prototype: MediaError;
- new(): MediaError;
- readonly MEDIA_ERR_ABORTED: 1;
- readonly MEDIA_ERR_NETWORK: 2;
- readonly MEDIA_ERR_DECODE: 3;
- readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
- };
- /**
- * This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.
- * Available only in secure contexts.
- */
- interface MediaKeyMessageEvent extends Event {
- readonly message: ArrayBuffer;
- readonly messageType: MediaKeyMessageType;
- }
- declare var MediaKeyMessageEvent: {
- prototype: MediaKeyMessageEvent;
- new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
- };
- interface MediaKeySessionEventMap {
- "keystatuseschange": Event;
- "message": MediaKeyMessageEvent;
- }
- /**
- * This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM).
- * Available only in secure contexts.
- */
- interface MediaKeySession extends EventTarget {
- readonly closed: Promise<MediaKeySessionClosedReason>;
- readonly expiration: number;
- readonly keyStatuses: MediaKeyStatusMap;
- onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
- onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
- readonly sessionId: string;
- close(): Promise<void>;
- generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
- load(sessionId: string): Promise<boolean>;
- remove(): Promise<void>;
- update(response: BufferSource): Promise<void>;
- addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MediaKeySession: {
- prototype: MediaKeySession;
- new(): MediaKeySession;
- };
- /**
- * This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.
- * Available only in secure contexts.
- */
- interface MediaKeyStatusMap {
- readonly size: number;
- get(keyId: BufferSource): MediaKeyStatus | undefined;
- has(keyId: BufferSource): boolean;
- forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
- }
- declare var MediaKeyStatusMap: {
- prototype: MediaKeyStatusMap;
- new(): MediaKeyStatusMap;
- };
- /**
- * This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method.
- * Available only in secure contexts.
- */
- interface MediaKeySystemAccess {
- readonly keySystem: string;
- createMediaKeys(): Promise<MediaKeys>;
- getConfiguration(): MediaKeySystemConfiguration;
- }
- declare var MediaKeySystemAccess: {
- prototype: MediaKeySystemAccess;
- new(): MediaKeySystemAccess;
- };
- /**
- * This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.
- * Available only in secure contexts.
- */
- interface MediaKeys {
- createSession(sessionType?: MediaKeySessionType): MediaKeySession;
- setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
- }
- declare var MediaKeys: {
- prototype: MediaKeys;
- new(): MediaKeys;
- };
- interface MediaList {
- readonly length: number;
- mediaText: string;
- toString(): string;
- appendMedium(medium: string): void;
- deleteMedium(medium: string): void;
- item(index: number): string | null;
- [index: number]: string;
- }
- declare var MediaList: {
- prototype: MediaList;
- new(): MediaList;
- };
- interface MediaMetadata {
- album: string;
- artist: string;
- artwork: ReadonlyArray<MediaImage>;
- title: string;
- }
- declare var MediaMetadata: {
- prototype: MediaMetadata;
- new(init?: MediaMetadataInit): MediaMetadata;
- };
- interface MediaQueryListEventMap {
- "change": MediaQueryListEvent;
- }
- /** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */
- interface MediaQueryList extends EventTarget {
- readonly matches: boolean;
- readonly media: string;
- onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
- /** @deprecated */
- addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
- /** @deprecated */
- removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
- addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MediaQueryList: {
- prototype: MediaQueryList;
- new(): MediaQueryList;
- };
- interface MediaQueryListEvent extends Event {
- readonly matches: boolean;
- readonly media: string;
- }
- declare var MediaQueryListEvent: {
- prototype: MediaQueryListEvent;
- new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
- };
- interface MediaRecorderEventMap {
- "dataavailable": BlobEvent;
- "error": Event;
- "pause": Event;
- "resume": Event;
- "start": Event;
- "stop": Event;
- }
- interface MediaRecorder extends EventTarget {
- readonly audioBitsPerSecond: number;
- readonly mimeType: string;
- ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
- onerror: ((this: MediaRecorder, ev: Event) => any) | null;
- onpause: ((this: MediaRecorder, ev: Event) => any) | null;
- onresume: ((this: MediaRecorder, ev: Event) => any) | null;
- onstart: ((this: MediaRecorder, ev: Event) => any) | null;
- onstop: ((this: MediaRecorder, ev: Event) => any) | null;
- readonly state: RecordingState;
- readonly stream: MediaStream;
- readonly videoBitsPerSecond: number;
- pause(): void;
- requestData(): void;
- resume(): void;
- start(timeslice?: number): void;
- stop(): void;
- addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MediaRecorder: {
- prototype: MediaRecorder;
- new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
- isTypeSupported(type: string): boolean;
- };
- interface MediaSession {
- metadata: MediaMetadata | null;
- playbackState: MediaSessionPlaybackState;
- setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
- setPositionState(state?: MediaPositionState): void;
- }
- declare var MediaSession: {
- prototype: MediaSession;
- new(): MediaSession;
- };
- interface MediaSourceEventMap {
- "sourceclose": Event;
- "sourceended": Event;
- "sourceopen": Event;
- }
- /** This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. */
- interface MediaSource extends EventTarget {
- readonly activeSourceBuffers: SourceBufferList;
- duration: number;
- onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
- onsourceended: ((this: MediaSource, ev: Event) => any) | null;
- onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
- readonly readyState: ReadyState;
- readonly sourceBuffers: SourceBufferList;
- addSourceBuffer(type: string): SourceBuffer;
- clearLiveSeekableRange(): void;
- endOfStream(error?: EndOfStreamError): void;
- removeSourceBuffer(sourceBuffer: SourceBuffer): void;
- setLiveSeekableRange(start: number, end: number): void;
- addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MediaSource: {
- prototype: MediaSource;
- new(): MediaSource;
- isTypeSupported(type: string): boolean;
- };
- interface MediaStreamEventMap {
- "addtrack": MediaStreamTrackEvent;
- "removetrack": MediaStreamTrackEvent;
- }
- /** A stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */
- interface MediaStream extends EventTarget {
- readonly active: boolean;
- readonly id: string;
- onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
- onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
- addTrack(track: MediaStreamTrack): void;
- clone(): MediaStream;
- getAudioTracks(): MediaStreamTrack[];
- getTrackById(trackId: string): MediaStreamTrack | null;
- getTracks(): MediaStreamTrack[];
- getVideoTracks(): MediaStreamTrack[];
- removeTrack(track: MediaStreamTrack): void;
- addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MediaStream: {
- prototype: MediaStream;
- new(): MediaStream;
- new(stream: MediaStream): MediaStream;
- new(tracks: MediaStreamTrack[]): MediaStream;
- };
- interface MediaStreamAudioDestinationNode extends AudioNode {
- readonly stream: MediaStream;
- }
- declare var MediaStreamAudioDestinationNode: {
- prototype: MediaStreamAudioDestinationNode;
- new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;
- };
- /** A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. */
- interface MediaStreamAudioSourceNode extends AudioNode {
- readonly mediaStream: MediaStream;
- }
- declare var MediaStreamAudioSourceNode: {
- prototype: MediaStreamAudioSourceNode;
- new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
- };
- interface MediaStreamTrackEventMap {
- "ended": Event;
- "mute": Event;
- "unmute": Event;
- }
- /** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */
- interface MediaStreamTrack extends EventTarget {
- contentHint: string;
- enabled: boolean;
- readonly id: string;
- readonly kind: string;
- readonly label: string;
- readonly muted: boolean;
- onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
- onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
- onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
- readonly readyState: MediaStreamTrackState;
- applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
- clone(): MediaStreamTrack;
- getCapabilities(): MediaTrackCapabilities;
- getConstraints(): MediaTrackConstraints;
- getSettings(): MediaTrackSettings;
- stop(): void;
- addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MediaStreamTrack: {
- prototype: MediaStreamTrack;
- new(): MediaStreamTrack;
- };
- /** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */
- interface MediaStreamTrackEvent extends Event {
- readonly track: MediaStreamTrack;
- }
- declare var MediaStreamTrackEvent: {
- prototype: MediaStreamTrackEvent;
- new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;
- };
- /** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
- interface MessageChannel {
- /** Returns the first MessagePort object. */
- readonly port1: MessagePort;
- /** Returns the second MessagePort object. */
- readonly port2: MessagePort;
- }
- declare var MessageChannel: {
- prototype: MessageChannel;
- new(): MessageChannel;
- };
- /** A message received by a target object. */
- interface MessageEvent<T = any> extends Event {
- /** Returns the data of the message. */
- readonly data: T;
- /** Returns the last event ID string, for server-sent events. */
- readonly lastEventId: string;
- /** Returns the origin of the message, for server-sent events and cross-document messaging. */
- readonly origin: string;
- /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
- readonly ports: ReadonlyArray<MessagePort>;
- /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
- readonly source: MessageEventSource | null;
- /** @deprecated */
- initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
- }
- declare var MessageEvent: {
- prototype: MessageEvent;
- new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
- };
- interface MessagePortEventMap {
- "message": MessageEvent;
- "messageerror": MessageEvent;
- }
- /** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
- interface MessagePort extends EventTarget {
- onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
- onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
- /** Disconnects the port, so that it is no longer active. */
- close(): void;
- /**
- * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
- *
- * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
- */
- postMessage(message: any, transfer: Transferable[]): void;
- postMessage(message: any, options?: StructuredSerializeOptions): void;
- /** Begins dispatching messages received on the port. */
- start(): void;
- addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MessagePort: {
- prototype: MessagePort;
- new(): MessagePort;
- };
- /**
- * Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.
- * @deprecated
- */
- interface MimeType {
- /**
- * Returns the MIME type's description.
- * @deprecated
- */
- readonly description: string;
- /**
- * Returns the Plugin object that implements this MIME type.
- * @deprecated
- */
- readonly enabledPlugin: Plugin;
- /**
- * Returns the MIME type's typical file extensions, in a comma-separated list.
- * @deprecated
- */
- readonly suffixes: string;
- /**
- * Returns the MIME type.
- * @deprecated
- */
- readonly type: string;
- }
- /** @deprecated */
- declare var MimeType: {
- prototype: MimeType;
- new(): MimeType;
- };
- /**
- * Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.
- * @deprecated
- */
- interface MimeTypeArray {
- /** @deprecated */
- readonly length: number;
- /** @deprecated */
- item(index: number): MimeType | null;
- /** @deprecated */
- namedItem(name: string): MimeType | null;
- [index: number]: MimeType;
- }
- /** @deprecated */
- declare var MimeTypeArray: {
- prototype: MimeTypeArray;
- new(): MimeTypeArray;
- };
- /** Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. */
- interface MouseEvent extends UIEvent {
- readonly altKey: boolean;
- readonly button: number;
- readonly buttons: number;
- readonly clientX: number;
- readonly clientY: number;
- readonly ctrlKey: boolean;
- readonly metaKey: boolean;
- readonly movementX: number;
- readonly movementY: number;
- readonly offsetX: number;
- readonly offsetY: number;
- readonly pageX: number;
- readonly pageY: number;
- readonly relatedTarget: EventTarget | null;
- readonly screenX: number;
- readonly screenY: number;
- readonly shiftKey: boolean;
- readonly x: number;
- readonly y: number;
- getModifierState(keyArg: string): boolean;
- /** @deprecated */
- initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;
- }
- declare var MouseEvent: {
- prototype: MouseEvent;
- new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
- };
- /**
- * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
- * @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.
- */
- interface MutationEvent extends Event {
- /** @deprecated */
- readonly attrChange: number;
- /** @deprecated */
- readonly attrName: string;
- /** @deprecated */
- readonly newValue: string;
- /** @deprecated */
- readonly prevValue: string;
- /** @deprecated */
- readonly relatedNode: Node | null;
- /** @deprecated */
- initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
- readonly MODIFICATION: 1;
- readonly ADDITION: 2;
- readonly REMOVAL: 3;
- }
- /** @deprecated */
- declare var MutationEvent: {
- prototype: MutationEvent;
- new(): MutationEvent;
- readonly MODIFICATION: 1;
- readonly ADDITION: 2;
- readonly REMOVAL: 3;
- };
- /** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */
- interface MutationObserver {
- /** Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked. */
- disconnect(): void;
- /**
- * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).
- *
- * The options argument allows for setting mutation observation options via object members.
- */
- observe(target: Node, options?: MutationObserverInit): void;
- /** Empties the record queue and returns what was in there. */
- takeRecords(): MutationRecord[];
- }
- declare var MutationObserver: {
- prototype: MutationObserver;
- new(callback: MutationCallback): MutationObserver;
- };
- /** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. */
- interface MutationRecord {
- /** Return the nodes added and removed respectively. */
- readonly addedNodes: NodeList;
- /** Returns the local name of the changed attribute, and null otherwise. */
- readonly attributeName: string | null;
- /** Returns the namespace of the changed attribute, and null otherwise. */
- readonly attributeNamespace: string | null;
- /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */
- readonly nextSibling: Node | null;
- /** The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null. */
- readonly oldValue: string | null;
- /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */
- readonly previousSibling: Node | null;
- /** Return the nodes added and removed respectively. */
- readonly removedNodes: NodeList;
- /** Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed. */
- readonly target: Node;
- /** Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes. */
- readonly type: MutationRecordType;
- }
- declare var MutationRecord: {
- prototype: MutationRecord;
- new(): MutationRecord;
- };
- /** A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. */
- interface NamedNodeMap {
- readonly length: number;
- getNamedItem(qualifiedName: string): Attr | null;
- getNamedItemNS(namespace: string | null, localName: string): Attr | null;
- item(index: number): Attr | null;
- removeNamedItem(qualifiedName: string): Attr;
- removeNamedItemNS(namespace: string | null, localName: string): Attr;
- setNamedItem(attr: Attr): Attr | null;
- setNamedItemNS(attr: Attr): Attr | null;
- [index: number]: Attr;
- }
- declare var NamedNodeMap: {
- prototype: NamedNodeMap;
- new(): NamedNodeMap;
- };
- /** Available only in secure contexts. */
- interface NavigationPreloadManager {
- disable(): Promise<void>;
- enable(): Promise<void>;
- getState(): Promise<NavigationPreloadState>;
- setHeaderValue(value: string): Promise<void>;
- }
- declare var NavigationPreloadManager: {
- prototype: NavigationPreloadManager;
- new(): NavigationPreloadManager;
- };
- /** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
- interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
- /** Available only in secure contexts. */
- readonly clipboard: Clipboard;
- /** Available only in secure contexts. */
- readonly credentials: CredentialsContainer;
- readonly doNotTrack: string | null;
- readonly geolocation: Geolocation;
- readonly maxTouchPoints: number;
- readonly mediaCapabilities: MediaCapabilities;
- /** Available only in secure contexts. */
- readonly mediaDevices: MediaDevices;
- readonly mediaSession: MediaSession;
- readonly permissions: Permissions;
- /** Available only in secure contexts. */
- readonly serviceWorker: ServiceWorkerContainer;
- /** Available only in secure contexts. */
- canShare(data?: ShareData): boolean;
- getGamepads(): (Gamepad | null)[];
- /** Available only in secure contexts. */
- requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
- /** Available only in secure contexts. */
- requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
- sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
- /** Available only in secure contexts. */
- share(data?: ShareData): Promise<void>;
- vibrate(pattern: VibratePattern): boolean;
- }
- declare var Navigator: {
- prototype: Navigator;
- new(): Navigator;
- };
- interface NavigatorAutomationInformation {
- readonly webdriver: boolean;
- }
- interface NavigatorConcurrentHardware {
- readonly hardwareConcurrency: number;
- }
- interface NavigatorContentUtils {
- /** Available only in secure contexts. */
- registerProtocolHandler(scheme: string, url: string | URL): void;
- }
- interface NavigatorCookies {
- readonly cookieEnabled: boolean;
- }
- interface NavigatorID {
- /** @deprecated */
- readonly appCodeName: string;
- /** @deprecated */
- readonly appName: string;
- /** @deprecated */
- readonly appVersion: string;
- /** @deprecated */
- readonly platform: string;
- /** @deprecated */
- readonly product: string;
- /** @deprecated */
- readonly productSub: string;
- readonly userAgent: string;
- /** @deprecated */
- readonly vendor: string;
- /** @deprecated */
- readonly vendorSub: string;
- }
- interface NavigatorLanguage {
- readonly language: string;
- readonly languages: ReadonlyArray<string>;
- }
- /** Available only in secure contexts. */
- interface NavigatorLocks {
- readonly locks: LockManager;
- }
- interface NavigatorOnLine {
- readonly onLine: boolean;
- }
- interface NavigatorPlugins {
- /** @deprecated */
- readonly mimeTypes: MimeTypeArray;
- readonly pdfViewerEnabled: boolean;
- /** @deprecated */
- readonly plugins: PluginArray;
- /** @deprecated */
- javaEnabled(): boolean;
- }
- /** Available only in secure contexts. */
- interface NavigatorStorage {
- readonly storage: StorageManager;
- }
- /** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
- interface Node extends EventTarget {
- /** Returns node's node document's document base URL. */
- readonly baseURI: string;
- /** Returns the children. */
- readonly childNodes: NodeListOf<ChildNode>;
- /** Returns the first child. */
- readonly firstChild: ChildNode | null;
- /** Returns true if node is connected and false otherwise. */
- readonly isConnected: boolean;
- /** Returns the last child. */
- readonly lastChild: ChildNode | null;
- /** Returns the next sibling. */
- readonly nextSibling: ChildNode | null;
- /** Returns a string appropriate for the type of node. */
- readonly nodeName: string;
- /** Returns the type of node. */
- readonly nodeType: number;
- nodeValue: string | null;
- /** Returns the node document. Returns null for documents. */
- readonly ownerDocument: Document | null;
- /** Returns the parent element. */
- readonly parentElement: HTMLElement | null;
- /** Returns the parent. */
- readonly parentNode: ParentNode | null;
- /** Returns the previous sibling. */
- readonly previousSibling: ChildNode | null;
- textContent: string | null;
- appendChild<T extends Node>(node: T): T;
- /** Returns a copy of node. If deep is true, the copy also includes the node's descendants. */
- cloneNode(deep?: boolean): Node;
- /** Returns a bitmask indicating the position of other relative to node. */
- compareDocumentPosition(other: Node): number;
- /** Returns true if other is an inclusive descendant of node, and false otherwise. */
- contains(other: Node | null): boolean;
- /** Returns node's root. */
- getRootNode(options?: GetRootNodeOptions): Node;
- /** Returns whether node has children. */
- hasChildNodes(): boolean;
- insertBefore<T extends Node>(node: T, child: Node | null): T;
- isDefaultNamespace(namespace: string | null): boolean;
- /** Returns whether node and otherNode have the same properties. */
- isEqualNode(otherNode: Node | null): boolean;
- isSameNode(otherNode: Node | null): boolean;
- lookupNamespaceURI(prefix: string | null): string | null;
- lookupPrefix(namespace: string | null): string | null;
- /** Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. */
- normalize(): void;
- removeChild<T extends Node>(child: T): T;
- replaceChild<T extends Node>(node: Node, child: T): T;
- /** node is an element. */
- readonly ELEMENT_NODE: 1;
- readonly ATTRIBUTE_NODE: 2;
- /** node is a Text node. */
- readonly TEXT_NODE: 3;
- /** node is a CDATASection node. */
- readonly CDATA_SECTION_NODE: 4;
- readonly ENTITY_REFERENCE_NODE: 5;
- readonly ENTITY_NODE: 6;
- /** node is a ProcessingInstruction node. */
- readonly PROCESSING_INSTRUCTION_NODE: 7;
- /** node is a Comment node. */
- readonly COMMENT_NODE: 8;
- /** node is a document. */
- readonly DOCUMENT_NODE: 9;
- /** node is a doctype. */
- readonly DOCUMENT_TYPE_NODE: 10;
- /** node is a DocumentFragment node. */
- readonly DOCUMENT_FRAGMENT_NODE: 11;
- readonly NOTATION_NODE: 12;
- /** Set when node and other are not in the same tree. */
- readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
- /** Set when other is preceding node. */
- readonly DOCUMENT_POSITION_PRECEDING: 0x02;
- /** Set when other is following node. */
- readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
- /** Set when other is an ancestor of node. */
- readonly DOCUMENT_POSITION_CONTAINS: 0x08;
- /** Set when other is a descendant of node. */
- readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
- }
- declare var Node: {
- prototype: Node;
- new(): Node;
- /** node is an element. */
- readonly ELEMENT_NODE: 1;
- readonly ATTRIBUTE_NODE: 2;
- /** node is a Text node. */
- readonly TEXT_NODE: 3;
- /** node is a CDATASection node. */
- readonly CDATA_SECTION_NODE: 4;
- readonly ENTITY_REFERENCE_NODE: 5;
- readonly ENTITY_NODE: 6;
- /** node is a ProcessingInstruction node. */
- readonly PROCESSING_INSTRUCTION_NODE: 7;
- /** node is a Comment node. */
- readonly COMMENT_NODE: 8;
- /** node is a document. */
- readonly DOCUMENT_NODE: 9;
- /** node is a doctype. */
- readonly DOCUMENT_TYPE_NODE: 10;
- /** node is a DocumentFragment node. */
- readonly DOCUMENT_FRAGMENT_NODE: 11;
- readonly NOTATION_NODE: 12;
- /** Set when node and other are not in the same tree. */
- readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
- /** Set when other is preceding node. */
- readonly DOCUMENT_POSITION_PRECEDING: 0x02;
- /** Set when other is following node. */
- readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
- /** Set when other is an ancestor of node. */
- readonly DOCUMENT_POSITION_CONTAINS: 0x08;
- /** Set when other is a descendant of node. */
- readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
- };
- /** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */
- interface NodeIterator {
- readonly filter: NodeFilter | null;
- readonly pointerBeforeReferenceNode: boolean;
- readonly referenceNode: Node;
- readonly root: Node;
- readonly whatToShow: number;
- /** @deprecated */
- detach(): void;
- nextNode(): Node | null;
- previousNode(): Node | null;
- }
- declare var NodeIterator: {
- prototype: NodeIterator;
- new(): NodeIterator;
- };
- /** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */
- interface NodeList {
- /** Returns the number of nodes in the collection. */
- readonly length: number;
- /** Returns the node with index index from the collection. The nodes are sorted in tree order. */
- item(index: number): Node | null;
- /**
- * Performs the specified action for each node in an list.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
- [index: number]: Node;
- }
- declare var NodeList: {
- prototype: NodeList;
- new(): NodeList;
- };
- interface NodeListOf<TNode extends Node> extends NodeList {
- item(index: number): TNode;
- /**
- * Performs the specified action for each node in an list.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;
- [index: number]: TNode;
- }
- interface NonDocumentTypeChildNode {
- /** Returns the first following sibling that is an element, and null otherwise. */
- readonly nextElementSibling: Element | null;
- /** Returns the first preceding sibling that is an element, and null otherwise. */
- readonly previousElementSibling: Element | null;
- }
- interface NonElementParentNode {
- /** Returns the first element within node's descendants whose ID is elementId. */
- getElementById(elementId: string): Element | null;
- }
- interface NotificationEventMap {
- "click": Event;
- "close": Event;
- "error": Event;
- "show": Event;
- }
- /** This Notifications API interface is used to configure and display desktop notifications to the user. */
- interface Notification extends EventTarget {
- readonly body: string;
- readonly data: any;
- readonly dir: NotificationDirection;
- readonly icon: string;
- readonly lang: string;
- onclick: ((this: Notification, ev: Event) => any) | null;
- onclose: ((this: Notification, ev: Event) => any) | null;
- onerror: ((this: Notification, ev: Event) => any) | null;
- onshow: ((this: Notification, ev: Event) => any) | null;
- readonly tag: string;
- readonly title: string;
- close(): void;
- addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var Notification: {
- prototype: Notification;
- new(title: string, options?: NotificationOptions): Notification;
- readonly permission: NotificationPermission;
- requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
- };
- interface OES_draw_buffers_indexed {
- blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
- blendEquationiOES(buf: GLuint, mode: GLenum): void;
- blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
- blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
- colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
- disableiOES(target: GLenum, index: GLuint): void;
- enableiOES(target: GLenum, index: GLuint): void;
- }
- /** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
- interface OES_element_index_uint {
- }
- interface OES_fbo_render_mipmap {
- }
- /** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
- interface OES_standard_derivatives {
- readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
- }
- /** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
- interface OES_texture_float {
- }
- /** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
- interface OES_texture_float_linear {
- }
- /** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
- interface OES_texture_half_float {
- readonly HALF_FLOAT_OES: 0x8D61;
- }
- /** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
- interface OES_texture_half_float_linear {
- }
- interface OES_vertex_array_object {
- bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
- createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
- deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
- isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
- readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
- }
- interface OVR_multiview2 {
- framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
- readonly MAX_VIEWS_OVR: 0x9631;
- readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
- }
- /** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */
- interface OfflineAudioCompletionEvent extends Event {
- readonly renderedBuffer: AudioBuffer;
- }
- declare var OfflineAudioCompletionEvent: {
- prototype: OfflineAudioCompletionEvent;
- new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
- };
- interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
- "complete": OfflineAudioCompletionEvent;
- }
- /** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */
- interface OfflineAudioContext extends BaseAudioContext {
- readonly length: number;
- oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
- resume(): Promise<void>;
- startRendering(): Promise<AudioBuffer>;
- suspend(suspendTime: number): Promise<void>;
- addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var OfflineAudioContext: {
- prototype: OfflineAudioContext;
- new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
- new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
- };
- interface OffscreenCanvasEventMap {
- "contextlost": Event;
- "contextrestored": Event;
- }
- interface OffscreenCanvas extends EventTarget {
- /**
- * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
- *
- * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
- */
- height: number;
- oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
- oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
- /**
- * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
- *
- * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
- */
- width: number;
- /**
- * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
- *
- * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
- */
- convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
- /**
- * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
- *
- * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
- *
- * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
- */
- getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
- getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
- getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
- getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
- getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
- /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */
- transferToImageBitmap(): ImageBitmap;
- addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var OffscreenCanvas: {
- prototype: OffscreenCanvas;
- new(width: number, height: number): OffscreenCanvas;
- };
- interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
- readonly canvas: OffscreenCanvas;
- commit(): void;
- }
- declare var OffscreenCanvasRenderingContext2D: {
- prototype: OffscreenCanvasRenderingContext2D;
- new(): OffscreenCanvasRenderingContext2D;
- };
- /** The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. */
- interface OscillatorNode extends AudioScheduledSourceNode {
- readonly detune: AudioParam;
- readonly frequency: AudioParam;
- type: OscillatorType;
- setPeriodicWave(periodicWave: PeriodicWave): void;
- addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var OscillatorNode: {
- prototype: OscillatorNode;
- new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
- };
- interface OverconstrainedError extends Error {
- readonly constraint: string;
- }
- declare var OverconstrainedError: {
- prototype: OverconstrainedError;
- new(constraint: string, message?: string): OverconstrainedError;
- };
- /** The PageTransitionEvent is fired when a document is being loaded or unloaded. */
- interface PageTransitionEvent extends Event {
- /**
- * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.
- *
- * For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.
- *
- * Things that can cause the page to be unsalvageable include:
- *
- * The user agent decided to not keep the Document alive in a session history entry after unload
- * Having iframes that are not salvageable
- * Active WebSocket objects
- * Aborting a Document
- */
- readonly persisted: boolean;
- }
- declare var PageTransitionEvent: {
- prototype: PageTransitionEvent;
- new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
- };
- /** A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels! */
- interface PannerNode extends AudioNode {
- coneInnerAngle: number;
- coneOuterAngle: number;
- coneOuterGain: number;
- distanceModel: DistanceModelType;
- maxDistance: number;
- readonly orientationX: AudioParam;
- readonly orientationY: AudioParam;
- readonly orientationZ: AudioParam;
- panningModel: PanningModelType;
- readonly positionX: AudioParam;
- readonly positionY: AudioParam;
- readonly positionZ: AudioParam;
- refDistance: number;
- rolloffFactor: number;
- /** @deprecated */
- setOrientation(x: number, y: number, z: number): void;
- /** @deprecated */
- setPosition(x: number, y: number, z: number): void;
- }
- declare var PannerNode: {
- prototype: PannerNode;
- new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
- };
- interface ParentNode extends Node {
- readonly childElementCount: number;
- /** Returns the child elements. */
- readonly children: HTMLCollection;
- /** Returns the first child that is an element, and null otherwise. */
- readonly firstElementChild: Element | null;
- /** Returns the last child that is an element, and null otherwise. */
- readonly lastElementChild: Element | null;
- /**
- * Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
- *
- * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
- */
- append(...nodes: (Node | string)[]): void;
- /**
- * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
- *
- * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
- */
- prepend(...nodes: (Node | string)[]): void;
- /** Returns the first element that is a descendant of node that matches selectors. */
- querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
- querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
- querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
- /** @deprecated */
- querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
- querySelector<E extends Element = Element>(selectors: string): E | null;
- /** Returns all element descendants of node that match selectors. */
- querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
- querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
- querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
- /** @deprecated */
- querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
- querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
- /**
- * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
- *
- * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
- */
- replaceChildren(...nodes: (Node | string)[]): void;
- }
- /** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
- interface Path2D extends CanvasPath {
- /** Adds to the path the path given by the argument. */
- addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
- }
- declare var Path2D: {
- prototype: Path2D;
- new(path?: Path2D | string): Path2D;
- };
- /** Available only in secure contexts. */
- interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
- readonly methodDetails: any;
- readonly methodName: string;
- }
- declare var PaymentMethodChangeEvent: {
- prototype: PaymentMethodChangeEvent;
- new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
- };
- interface PaymentRequestEventMap {
- "paymentmethodchange": Event;
- }
- /**
- * This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user.
- * Available only in secure contexts.
- */
- interface PaymentRequest extends EventTarget {
- readonly id: string;
- onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
- abort(): Promise<void>;
- canMakePayment(): Promise<boolean>;
- show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
- addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var PaymentRequest: {
- prototype: PaymentRequest;
- new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
- };
- /**
- * This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.
- * Available only in secure contexts.
- */
- interface PaymentRequestUpdateEvent extends Event {
- updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
- }
- declare var PaymentRequestUpdateEvent: {
- prototype: PaymentRequestUpdateEvent;
- new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
- };
- /**
- * This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
- * Available only in secure contexts.
- */
- interface PaymentResponse extends EventTarget {
- readonly details: any;
- readonly methodName: string;
- readonly requestId: string;
- complete(result?: PaymentComplete): Promise<void>;
- retry(errorFields?: PaymentValidationErrors): Promise<void>;
- toJSON(): any;
- }
- declare var PaymentResponse: {
- prototype: PaymentResponse;
- new(): PaymentResponse;
- };
- interface PerformanceEventMap {
- "resourcetimingbufferfull": Event;
- }
- /** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
- interface Performance extends EventTarget {
- readonly eventCounts: EventCounts;
- /** @deprecated */
- readonly navigation: PerformanceNavigation;
- onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
- readonly timeOrigin: DOMHighResTimeStamp;
- /** @deprecated */
- readonly timing: PerformanceTiming;
- clearMarks(markName?: string): void;
- clearMeasures(measureName?: string): void;
- clearResourceTimings(): void;
- getEntries(): PerformanceEntryList;
- getEntriesByName(name: string, type?: string): PerformanceEntryList;
- getEntriesByType(type: string): PerformanceEntryList;
- mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
- measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
- now(): DOMHighResTimeStamp;
- setResourceTimingBufferSize(maxSize: number): void;
- toJSON(): any;
- addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var Performance: {
- prototype: Performance;
- new(): Performance;
- };
- /** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
- interface PerformanceEntry {
- readonly duration: DOMHighResTimeStamp;
- readonly entryType: string;
- readonly name: string;
- readonly startTime: DOMHighResTimeStamp;
- toJSON(): any;
- }
- declare var PerformanceEntry: {
- prototype: PerformanceEntry;
- new(): PerformanceEntry;
- };
- interface PerformanceEventTiming extends PerformanceEntry {
- readonly cancelable: boolean;
- readonly processingEnd: DOMHighResTimeStamp;
- readonly processingStart: DOMHighResTimeStamp;
- readonly target: Node | null;
- toJSON(): any;
- }
- declare var PerformanceEventTiming: {
- prototype: PerformanceEventTiming;
- new(): PerformanceEventTiming;
- };
- /** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
- interface PerformanceMark extends PerformanceEntry {
- readonly detail: any;
- }
- declare var PerformanceMark: {
- prototype: PerformanceMark;
- new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
- };
- /** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
- interface PerformanceMeasure extends PerformanceEntry {
- readonly detail: any;
- }
- declare var PerformanceMeasure: {
- prototype: PerformanceMeasure;
- new(): PerformanceMeasure;
- };
- /**
- * The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
- * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
- */
- interface PerformanceNavigation {
- /** @deprecated */
- readonly redirectCount: number;
- /** @deprecated */
- readonly type: number;
- /** @deprecated */
- toJSON(): any;
- readonly TYPE_NAVIGATE: 0;
- readonly TYPE_RELOAD: 1;
- readonly TYPE_BACK_FORWARD: 2;
- readonly TYPE_RESERVED: 255;
- }
- /** @deprecated */
- declare var PerformanceNavigation: {
- prototype: PerformanceNavigation;
- new(): PerformanceNavigation;
- readonly TYPE_NAVIGATE: 0;
- readonly TYPE_RELOAD: 1;
- readonly TYPE_BACK_FORWARD: 2;
- readonly TYPE_RESERVED: 255;
- };
- /** Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */
- interface PerformanceNavigationTiming extends PerformanceResourceTiming {
- readonly domComplete: DOMHighResTimeStamp;
- readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
- readonly domContentLoadedEventStart: DOMHighResTimeStamp;
- readonly domInteractive: DOMHighResTimeStamp;
- readonly loadEventEnd: DOMHighResTimeStamp;
- readonly loadEventStart: DOMHighResTimeStamp;
- readonly redirectCount: number;
- readonly type: NavigationTimingType;
- readonly unloadEventEnd: DOMHighResTimeStamp;
- readonly unloadEventStart: DOMHighResTimeStamp;
- toJSON(): any;
- }
- declare var PerformanceNavigationTiming: {
- prototype: PerformanceNavigationTiming;
- new(): PerformanceNavigationTiming;
- };
- interface PerformanceObserver {
- disconnect(): void;
- observe(options?: PerformanceObserverInit): void;
- takeRecords(): PerformanceEntryList;
- }
- declare var PerformanceObserver: {
- prototype: PerformanceObserver;
- new(callback: PerformanceObserverCallback): PerformanceObserver;
- readonly supportedEntryTypes: ReadonlyArray<string>;
- };
- interface PerformanceObserverEntryList {
- getEntries(): PerformanceEntryList;
- getEntriesByName(name: string, type?: string): PerformanceEntryList;
- getEntriesByType(type: string): PerformanceEntryList;
- }
- declare var PerformanceObserverEntryList: {
- prototype: PerformanceObserverEntryList;
- new(): PerformanceObserverEntryList;
- };
- interface PerformancePaintTiming extends PerformanceEntry {
- }
- declare var PerformancePaintTiming: {
- prototype: PerformancePaintTiming;
- new(): PerformancePaintTiming;
- };
- /** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
- interface PerformanceResourceTiming extends PerformanceEntry {
- readonly connectEnd: DOMHighResTimeStamp;
- readonly connectStart: DOMHighResTimeStamp;
- readonly decodedBodySize: number;
- readonly domainLookupEnd: DOMHighResTimeStamp;
- readonly domainLookupStart: DOMHighResTimeStamp;
- readonly encodedBodySize: number;
- readonly fetchStart: DOMHighResTimeStamp;
- readonly initiatorType: string;
- readonly nextHopProtocol: string;
- readonly redirectEnd: DOMHighResTimeStamp;
- readonly redirectStart: DOMHighResTimeStamp;
- readonly requestStart: DOMHighResTimeStamp;
- readonly responseEnd: DOMHighResTimeStamp;
- readonly responseStart: DOMHighResTimeStamp;
- readonly secureConnectionStart: DOMHighResTimeStamp;
- readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
- readonly transferSize: number;
- readonly workerStart: DOMHighResTimeStamp;
- toJSON(): any;
- }
- declare var PerformanceResourceTiming: {
- prototype: PerformanceResourceTiming;
- new(): PerformanceResourceTiming;
- };
- interface PerformanceServerTiming {
- readonly description: string;
- readonly duration: DOMHighResTimeStamp;
- readonly name: string;
- toJSON(): any;
- }
- declare var PerformanceServerTiming: {
- prototype: PerformanceServerTiming;
- new(): PerformanceServerTiming;
- };
- /**
- * A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
- * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
- */
- interface PerformanceTiming {
- /** @deprecated */
- readonly connectEnd: number;
- /** @deprecated */
- readonly connectStart: number;
- /** @deprecated */
- readonly domComplete: number;
- /** @deprecated */
- readonly domContentLoadedEventEnd: number;
- /** @deprecated */
- readonly domContentLoadedEventStart: number;
- /** @deprecated */
- readonly domInteractive: number;
- /** @deprecated */
- readonly domLoading: number;
- /** @deprecated */
- readonly domainLookupEnd: number;
- /** @deprecated */
- readonly domainLookupStart: number;
- /** @deprecated */
- readonly fetchStart: number;
- /** @deprecated */
- readonly loadEventEnd: number;
- /** @deprecated */
- readonly loadEventStart: number;
- /** @deprecated */
- readonly navigationStart: number;
- /** @deprecated */
- readonly redirectEnd: number;
- /** @deprecated */
- readonly redirectStart: number;
- /** @deprecated */
- readonly requestStart: number;
- /** @deprecated */
- readonly responseEnd: number;
- /** @deprecated */
- readonly responseStart: number;
- /** @deprecated */
- readonly secureConnectionStart: number;
- /** @deprecated */
- readonly unloadEventEnd: number;
- /** @deprecated */
- readonly unloadEventStart: number;
- /** @deprecated */
- toJSON(): any;
- }
- /** @deprecated */
- declare var PerformanceTiming: {
- prototype: PerformanceTiming;
- new(): PerformanceTiming;
- };
- /** PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). */
- interface PeriodicWave {
- }
- declare var PeriodicWave: {
- prototype: PeriodicWave;
- new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
- };
- interface PermissionStatusEventMap {
- "change": Event;
- }
- interface PermissionStatus extends EventTarget {
- readonly name: string;
- onchange: ((this: PermissionStatus, ev: Event) => any) | null;
- readonly state: PermissionState;
- addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var PermissionStatus: {
- prototype: PermissionStatus;
- new(): PermissionStatus;
- };
- interface Permissions {
- query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
- }
- declare var Permissions: {
- prototype: Permissions;
- new(): Permissions;
- };
- interface PictureInPictureEvent extends Event {
- readonly pictureInPictureWindow: PictureInPictureWindow;
- }
- declare var PictureInPictureEvent: {
- prototype: PictureInPictureEvent;
- new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;
- };
- interface PictureInPictureWindowEventMap {
- "resize": Event;
- }
- interface PictureInPictureWindow extends EventTarget {
- readonly height: number;
- onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
- readonly width: number;
- addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var PictureInPictureWindow: {
- prototype: PictureInPictureWindow;
- new(): PictureInPictureWindow;
- };
- /**
- * Provides information about a browser plugin.
- * @deprecated
- */
- interface Plugin {
- /**
- * Returns the plugin's description.
- * @deprecated
- */
- readonly description: string;
- /**
- * Returns the plugin library's filename, if applicable on the current platform.
- * @deprecated
- */
- readonly filename: string;
- /**
- * Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
- * @deprecated
- */
- readonly length: number;
- /**
- * Returns the plugin's name.
- * @deprecated
- */
- readonly name: string;
- /**
- * Returns the specified MimeType object.
- * @deprecated
- */
- item(index: number): MimeType | null;
- /** @deprecated */
- namedItem(name: string): MimeType | null;
- [index: number]: MimeType;
- }
- /** @deprecated */
- declare var Plugin: {
- prototype: Plugin;
- new(): Plugin;
- };
- /**
- * Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
- * @deprecated
- */
- interface PluginArray {
- /** @deprecated */
- readonly length: number;
- /** @deprecated */
- item(index: number): Plugin | null;
- /** @deprecated */
- namedItem(name: string): Plugin | null;
- /** @deprecated */
- refresh(): void;
- [index: number]: Plugin;
- }
- /** @deprecated */
- declare var PluginArray: {
- prototype: PluginArray;
- new(): PluginArray;
- };
- /** The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */
- interface PointerEvent extends MouseEvent {
- readonly height: number;
- readonly isPrimary: boolean;
- readonly pointerId: number;
- readonly pointerType: string;
- readonly pressure: number;
- readonly tangentialPressure: number;
- readonly tiltX: number;
- readonly tiltY: number;
- readonly twist: number;
- readonly width: number;
- /** Available only in secure contexts. */
- getCoalescedEvents(): PointerEvent[];
- getPredictedEvents(): PointerEvent[];
- }
- declare var PointerEvent: {
- prototype: PointerEvent;
- new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
- };
- /** PopStateEvent is an event handler for the popstate event on the window. */
- interface PopStateEvent extends Event {
- /** Returns a copy of the information that was provided to pushState() or replaceState(). */
- readonly state: any;
- }
- declare var PopStateEvent: {
- prototype: PopStateEvent;
- new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
- };
- /** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */
- interface ProcessingInstruction extends CharacterData, LinkStyle {
- readonly ownerDocument: Document;
- readonly target: string;
- }
- declare var ProcessingInstruction: {
- prototype: ProcessingInstruction;
- new(): ProcessingInstruction;
- };
- /** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
- interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
- readonly lengthComputable: boolean;
- readonly loaded: number;
- readonly target: T | null;
- readonly total: number;
- }
- declare var ProgressEvent: {
- prototype: ProgressEvent;
- new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
- };
- interface PromiseRejectionEvent extends Event {
- readonly promise: Promise<any>;
- readonly reason: any;
- }
- declare var PromiseRejectionEvent: {
- prototype: PromiseRejectionEvent;
- new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
- };
- /** Available only in secure contexts. */
- interface PublicKeyCredential extends Credential {
- readonly authenticatorAttachment: string | null;
- readonly rawId: ArrayBuffer;
- readonly response: AuthenticatorResponse;
- getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
- }
- declare var PublicKeyCredential: {
- prototype: PublicKeyCredential;
- new(): PublicKeyCredential;
- isConditionalMediationAvailable(): Promise<boolean>;
- isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
- };
- /**
- * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
- * Available only in secure contexts.
- */
- interface PushManager {
- getSubscription(): Promise<PushSubscription | null>;
- permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
- subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
- }
- declare var PushManager: {
- prototype: PushManager;
- new(): PushManager;
- readonly supportedContentEncodings: ReadonlyArray<string>;
- };
- /**
- * This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
- * Available only in secure contexts.
- */
- interface PushSubscription {
- readonly endpoint: string;
- readonly expirationTime: EpochTimeStamp | null;
- readonly options: PushSubscriptionOptions;
- getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
- toJSON(): PushSubscriptionJSON;
- unsubscribe(): Promise<boolean>;
- }
- declare var PushSubscription: {
- prototype: PushSubscription;
- new(): PushSubscription;
- };
- /** Available only in secure contexts. */
- interface PushSubscriptionOptions {
- readonly applicationServerKey: ArrayBuffer | null;
- readonly userVisibleOnly: boolean;
- }
- declare var PushSubscriptionOptions: {
- prototype: PushSubscriptionOptions;
- new(): PushSubscriptionOptions;
- };
- interface RTCCertificate {
- readonly expires: EpochTimeStamp;
- getFingerprints(): RTCDtlsFingerprint[];
- }
- declare var RTCCertificate: {
- prototype: RTCCertificate;
- new(): RTCCertificate;
- };
- interface RTCDTMFSenderEventMap {
- "tonechange": RTCDTMFToneChangeEvent;
- }
- interface RTCDTMFSender extends EventTarget {
- readonly canInsertDTMF: boolean;
- ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
- readonly toneBuffer: string;
- insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
- addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var RTCDTMFSender: {
- prototype: RTCDTMFSender;
- new(): RTCDTMFSender;
- };
- /** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */
- interface RTCDTMFToneChangeEvent extends Event {
- readonly tone: string;
- }
- declare var RTCDTMFToneChangeEvent: {
- prototype: RTCDTMFToneChangeEvent;
- new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
- };
- interface RTCDataChannelEventMap {
- "bufferedamountlow": Event;
- "close": Event;
- "closing": Event;
- "error": Event;
- "message": MessageEvent;
- "open": Event;
- }
- interface RTCDataChannel extends EventTarget {
- binaryType: BinaryType;
- readonly bufferedAmount: number;
- bufferedAmountLowThreshold: number;
- readonly id: number | null;
- readonly label: string;
- readonly maxPacketLifeTime: number | null;
- readonly maxRetransmits: number | null;
- readonly negotiated: boolean;
- onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
- onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
- onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
- onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
- onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
- onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
- readonly ordered: boolean;
- readonly protocol: string;
- readonly readyState: RTCDataChannelState;
- close(): void;
- send(data: string): void;
- send(data: Blob): void;
- send(data: ArrayBuffer): void;
- send(data: ArrayBufferView): void;
- addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var RTCDataChannel: {
- prototype: RTCDataChannel;
- new(): RTCDataChannel;
- };
- interface RTCDataChannelEvent extends Event {
- readonly channel: RTCDataChannel;
- }
- declare var RTCDataChannelEvent: {
- prototype: RTCDataChannelEvent;
- new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
- };
- interface RTCDtlsTransportEventMap {
- "error": Event;
- "statechange": Event;
- }
- interface RTCDtlsTransport extends EventTarget {
- readonly iceTransport: RTCIceTransport;
- onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
- onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
- readonly state: RTCDtlsTransportState;
- getRemoteCertificates(): ArrayBuffer[];
- addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var RTCDtlsTransport: {
- prototype: RTCDtlsTransport;
- new(): RTCDtlsTransport;
- };
- interface RTCEncodedAudioFrame {
- data: ArrayBuffer;
- readonly timestamp: number;
- getMetadata(): RTCEncodedAudioFrameMetadata;
- }
- declare var RTCEncodedAudioFrame: {
- prototype: RTCEncodedAudioFrame;
- new(): RTCEncodedAudioFrame;
- };
- interface RTCEncodedVideoFrame {
- data: ArrayBuffer;
- readonly timestamp: number;
- readonly type: RTCEncodedVideoFrameType;
- getMetadata(): RTCEncodedVideoFrameMetadata;
- }
- declare var RTCEncodedVideoFrame: {
- prototype: RTCEncodedVideoFrame;
- new(): RTCEncodedVideoFrame;
- };
- interface RTCError extends DOMException {
- readonly errorDetail: RTCErrorDetailType;
- readonly receivedAlert: number | null;
- readonly sctpCauseCode: number | null;
- readonly sdpLineNumber: number | null;
- readonly sentAlert: number | null;
- }
- declare var RTCError: {
- prototype: RTCError;
- new(init: RTCErrorInit, message?: string): RTCError;
- };
- interface RTCErrorEvent extends Event {
- readonly error: RTCError;
- }
- declare var RTCErrorEvent: {
- prototype: RTCErrorEvent;
- new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
- };
- /** The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
- interface RTCIceCandidate {
- readonly address: string | null;
- readonly candidate: string;
- readonly component: RTCIceComponent | null;
- readonly foundation: string | null;
- readonly port: number | null;
- readonly priority: number | null;
- readonly protocol: RTCIceProtocol | null;
- readonly relatedAddress: string | null;
- readonly relatedPort: number | null;
- readonly sdpMLineIndex: number | null;
- readonly sdpMid: string | null;
- readonly tcpType: RTCIceTcpCandidateType | null;
- readonly type: RTCIceCandidateType | null;
- readonly usernameFragment: string | null;
- toJSON(): RTCIceCandidateInit;
- }
- declare var RTCIceCandidate: {
- prototype: RTCIceCandidate;
- new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
- };
- interface RTCIceTransportEventMap {
- "gatheringstatechange": Event;
- "statechange": Event;
- }
- /** Provides access to information about the ICE transport layer over which the data is being sent and received. */
- interface RTCIceTransport extends EventTarget {
- readonly gatheringState: RTCIceGathererState;
- ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
- onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
- readonly state: RTCIceTransportState;
- addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var RTCIceTransport: {
- prototype: RTCIceTransport;
- new(): RTCIceTransport;
- };
- interface RTCPeerConnectionEventMap {
- "connectionstatechange": Event;
- "datachannel": RTCDataChannelEvent;
- "icecandidate": RTCPeerConnectionIceEvent;
- "icecandidateerror": Event;
- "iceconnectionstatechange": Event;
- "icegatheringstatechange": Event;
- "negotiationneeded": Event;
- "signalingstatechange": Event;
- "track": RTCTrackEvent;
- }
- /** A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed. */
- interface RTCPeerConnection extends EventTarget {
- readonly canTrickleIceCandidates: boolean | null;
- readonly connectionState: RTCPeerConnectionState;
- readonly currentLocalDescription: RTCSessionDescription | null;
- readonly currentRemoteDescription: RTCSessionDescription | null;
- readonly iceConnectionState: RTCIceConnectionState;
- readonly iceGatheringState: RTCIceGatheringState;
- readonly localDescription: RTCSessionDescription | null;
- onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
- ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
- onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
- onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;
- oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
- onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
- onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
- onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
- ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
- readonly pendingLocalDescription: RTCSessionDescription | null;
- readonly pendingRemoteDescription: RTCSessionDescription | null;
- readonly remoteDescription: RTCSessionDescription | null;
- readonly sctp: RTCSctpTransport | null;
- readonly signalingState: RTCSignalingState;
- addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
- /** @deprecated */
- addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
- addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
- addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
- close(): void;
- createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
- /** @deprecated */
- createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
- createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
- createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
- /** @deprecated */
- createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
- getConfiguration(): RTCConfiguration;
- getReceivers(): RTCRtpReceiver[];
- getSenders(): RTCRtpSender[];
- getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
- getTransceivers(): RTCRtpTransceiver[];
- removeTrack(sender: RTCRtpSender): void;
- restartIce(): void;
- setConfiguration(configuration?: RTCConfiguration): void;
- setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
- /** @deprecated */
- setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
- setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
- /** @deprecated */
- setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
- addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var RTCPeerConnection: {
- prototype: RTCPeerConnection;
- new(configuration?: RTCConfiguration): RTCPeerConnection;
- generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
- };
- interface RTCPeerConnectionIceErrorEvent extends Event {
- readonly address: string | null;
- readonly errorCode: number;
- readonly errorText: string;
- readonly port: number | null;
- readonly url: string;
- }
- declare var RTCPeerConnectionIceErrorEvent: {
- prototype: RTCPeerConnectionIceErrorEvent;
- new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
- };
- /** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
- interface RTCPeerConnectionIceEvent extends Event {
- readonly candidate: RTCIceCandidate | null;
- }
- declare var RTCPeerConnectionIceEvent: {
- prototype: RTCPeerConnectionIceEvent;
- new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;
- };
- /** This WebRTC API interface manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection. */
- interface RTCRtpReceiver {
- readonly track: MediaStreamTrack;
- readonly transport: RTCDtlsTransport | null;
- getContributingSources(): RTCRtpContributingSource[];
- getParameters(): RTCRtpReceiveParameters;
- getStats(): Promise<RTCStatsReport>;
- getSynchronizationSources(): RTCRtpSynchronizationSource[];
- }
- declare var RTCRtpReceiver: {
- prototype: RTCRtpReceiver;
- new(): RTCRtpReceiver;
- getCapabilities(kind: string): RTCRtpCapabilities | null;
- };
- /** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */
- interface RTCRtpSender {
- readonly dtmf: RTCDTMFSender | null;
- readonly track: MediaStreamTrack | null;
- readonly transport: RTCDtlsTransport | null;
- getParameters(): RTCRtpSendParameters;
- getStats(): Promise<RTCStatsReport>;
- replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
- setParameters(parameters: RTCRtpSendParameters): Promise<void>;
- setStreams(...streams: MediaStream[]): void;
- }
- declare var RTCRtpSender: {
- prototype: RTCRtpSender;
- new(): RTCRtpSender;
- getCapabilities(kind: string): RTCRtpCapabilities | null;
- };
- interface RTCRtpTransceiver {
- readonly currentDirection: RTCRtpTransceiverDirection | null;
- direction: RTCRtpTransceiverDirection;
- readonly mid: string | null;
- readonly receiver: RTCRtpReceiver;
- readonly sender: RTCRtpSender;
- setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
- stop(): void;
- }
- declare var RTCRtpTransceiver: {
- prototype: RTCRtpTransceiver;
- new(): RTCRtpTransceiver;
- };
- interface RTCSctpTransportEventMap {
- "statechange": Event;
- }
- interface RTCSctpTransport extends EventTarget {
- readonly maxChannels: number | null;
- readonly maxMessageSize: number;
- onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
- readonly state: RTCSctpTransportState;
- readonly transport: RTCDtlsTransport;
- addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var RTCSctpTransport: {
- prototype: RTCSctpTransport;
- new(): RTCSctpTransport;
- };
- /** One end of a connection—or potential connection—and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */
- interface RTCSessionDescription {
- readonly sdp: string;
- readonly type: RTCSdpType;
- toJSON(): any;
- }
- declare var RTCSessionDescription: {
- prototype: RTCSessionDescription;
- new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
- };
- interface RTCStatsReport {
- forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
- }
- declare var RTCStatsReport: {
- prototype: RTCStatsReport;
- new(): RTCStatsReport;
- };
- interface RTCTrackEvent extends Event {
- readonly receiver: RTCRtpReceiver;
- readonly streams: ReadonlyArray<MediaStream>;
- readonly track: MediaStreamTrack;
- readonly transceiver: RTCRtpTransceiver;
- }
- declare var RTCTrackEvent: {
- prototype: RTCTrackEvent;
- new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
- };
- interface RadioNodeList extends NodeList {
- value: string;
- }
- declare var RadioNodeList: {
- prototype: RadioNodeList;
- new(): RadioNodeList;
- };
- /** A fragment of a document that can contain nodes and parts of text nodes. */
- interface Range extends AbstractRange {
- /** Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. */
- readonly commonAncestorContainer: Node;
- cloneContents(): DocumentFragment;
- cloneRange(): Range;
- collapse(toStart?: boolean): void;
- compareBoundaryPoints(how: number, sourceRange: Range): number;
- /** Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range. */
- comparePoint(node: Node, offset: number): number;
- createContextualFragment(fragment: string): DocumentFragment;
- deleteContents(): void;
- detach(): void;
- extractContents(): DocumentFragment;
- getBoundingClientRect(): DOMRect;
- getClientRects(): DOMRectList;
- insertNode(node: Node): void;
- /** Returns whether range intersects node. */
- intersectsNode(node: Node): boolean;
- isPointInRange(node: Node, offset: number): boolean;
- selectNode(node: Node): void;
- selectNodeContents(node: Node): void;
- setEnd(node: Node, offset: number): void;
- setEndAfter(node: Node): void;
- setEndBefore(node: Node): void;
- setStart(node: Node, offset: number): void;
- setStartAfter(node: Node): void;
- setStartBefore(node: Node): void;
- surroundContents(newParent: Node): void;
- toString(): string;
- readonly START_TO_START: 0;
- readonly START_TO_END: 1;
- readonly END_TO_END: 2;
- readonly END_TO_START: 3;
- }
- declare var Range: {
- prototype: Range;
- new(): Range;
- readonly START_TO_START: 0;
- readonly START_TO_END: 1;
- readonly END_TO_END: 2;
- readonly END_TO_START: 3;
- toString(): string;
- };
- interface ReadableByteStreamController {
- readonly byobRequest: ReadableStreamBYOBRequest | null;
- readonly desiredSize: number | null;
- close(): void;
- enqueue(chunk: ArrayBufferView): void;
- error(e?: any): void;
- }
- declare var ReadableByteStreamController: {
- prototype: ReadableByteStreamController;
- new(): ReadableByteStreamController;
- };
- /** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
- interface ReadableStream<R = any> {
- readonly locked: boolean;
- cancel(reason?: any): Promise<void>;
- getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
- getReader(): ReadableStreamDefaultReader<R>;
- getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
- pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
- pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
- tee(): [ReadableStream<R>, ReadableStream<R>];
- }
- declare var ReadableStream: {
- prototype: ReadableStream;
- new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
- new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
- new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
- };
- interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
- read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
- releaseLock(): void;
- }
- declare var ReadableStreamBYOBReader: {
- prototype: ReadableStreamBYOBReader;
- new(stream: ReadableStream): ReadableStreamBYOBReader;
- };
- interface ReadableStreamBYOBRequest {
- readonly view: ArrayBufferView | null;
- respond(bytesWritten: number): void;
- respondWithNewView(view: ArrayBufferView): void;
- }
- declare var ReadableStreamBYOBRequest: {
- prototype: ReadableStreamBYOBRequest;
- new(): ReadableStreamBYOBRequest;
- };
- interface ReadableStreamDefaultController<R = any> {
- readonly desiredSize: number | null;
- close(): void;
- enqueue(chunk?: R): void;
- error(e?: any): void;
- }
- declare var ReadableStreamDefaultController: {
- prototype: ReadableStreamDefaultController;
- new(): ReadableStreamDefaultController;
- };
- interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
- read(): Promise<ReadableStreamReadResult<R>>;
- releaseLock(): void;
- }
- declare var ReadableStreamDefaultReader: {
- prototype: ReadableStreamDefaultReader;
- new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
- };
- interface ReadableStreamGenericReader {
- readonly closed: Promise<undefined>;
- cancel(reason?: any): Promise<void>;
- }
- interface RemotePlaybackEventMap {
- "connect": Event;
- "connecting": Event;
- "disconnect": Event;
- }
- interface RemotePlayback extends EventTarget {
- onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
- onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
- ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
- readonly state: RemotePlaybackState;
- cancelWatchAvailability(id?: number): Promise<void>;
- prompt(): Promise<void>;
- watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
- addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var RemotePlayback: {
- prototype: RemotePlayback;
- new(): RemotePlayback;
- };
- /** This Fetch API interface represents a resource request. */
- interface Request extends Body {
- /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
- readonly cache: RequestCache;
- /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */
- readonly credentials: RequestCredentials;
- /** Returns the kind of resource requested by request, e.g., "document" or "script". */
- readonly destination: RequestDestination;
- /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */
- readonly headers: Headers;
- /** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */
- readonly integrity: string;
- /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
- readonly keepalive: boolean;
- /** Returns request's HTTP method, which is "GET" by default. */
- readonly method: string;
- /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */
- readonly mode: RequestMode;
- /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */
- readonly redirect: RequestRedirect;
- /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made. */
- readonly referrer: string;
- /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
- readonly referrerPolicy: ReferrerPolicy;
- /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
- readonly signal: AbortSignal;
- /** Returns the URL of request as a string. */
- readonly url: string;
- clone(): Request;
- }
- declare var Request: {
- prototype: Request;
- new(input: RequestInfo | URL, init?: RequestInit): Request;
- };
- interface ResizeObserver {
- disconnect(): void;
- observe(target: Element, options?: ResizeObserverOptions): void;
- unobserve(target: Element): void;
- }
- declare var ResizeObserver: {
- prototype: ResizeObserver;
- new(callback: ResizeObserverCallback): ResizeObserver;
- };
- interface ResizeObserverEntry {
- readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
- readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
- readonly contentRect: DOMRectReadOnly;
- readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
- readonly target: Element;
- }
- declare var ResizeObserverEntry: {
- prototype: ResizeObserverEntry;
- new(): ResizeObserverEntry;
- };
- interface ResizeObserverSize {
- readonly blockSize: number;
- readonly inlineSize: number;
- }
- declare var ResizeObserverSize: {
- prototype: ResizeObserverSize;
- new(): ResizeObserverSize;
- };
- /** This Fetch API interface represents the response to a request. */
- interface Response extends Body {
- readonly headers: Headers;
- readonly ok: boolean;
- readonly redirected: boolean;
- readonly status: number;
- readonly statusText: string;
- readonly type: ResponseType;
- readonly url: string;
- clone(): Response;
- }
- declare var Response: {
- prototype: Response;
- new(body?: BodyInit | null, init?: ResponseInit): Response;
- error(): Response;
- redirect(url: string | URL, status?: number): Response;
- };
- /** Provides access to the properties of <a> element, as well as methods to manipulate them. */
- interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
- rel: string;
- readonly relList: DOMTokenList;
- readonly target: SVGAnimatedString;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGAElement: {
- prototype: SVGAElement;
- new(): SVGAElement;
- };
- /** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */
- interface SVGAngle {
- readonly unitType: number;
- value: number;
- valueAsString: string;
- valueInSpecifiedUnits: number;
- convertToSpecifiedUnits(unitType: number): void;
- newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
- readonly SVG_ANGLETYPE_UNKNOWN: 0;
- readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
- readonly SVG_ANGLETYPE_DEG: 2;
- readonly SVG_ANGLETYPE_RAD: 3;
- readonly SVG_ANGLETYPE_GRAD: 4;
- }
- declare var SVGAngle: {
- prototype: SVGAngle;
- new(): SVGAngle;
- readonly SVG_ANGLETYPE_UNKNOWN: 0;
- readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
- readonly SVG_ANGLETYPE_DEG: 2;
- readonly SVG_ANGLETYPE_RAD: 3;
- readonly SVG_ANGLETYPE_GRAD: 4;
- };
- interface SVGAnimateElement extends SVGAnimationElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGAnimateElement: {
- prototype: SVGAnimateElement;
- new(): SVGAnimateElement;
- };
- interface SVGAnimateMotionElement extends SVGAnimationElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGAnimateMotionElement: {
- prototype: SVGAnimateMotionElement;
- new(): SVGAnimateMotionElement;
- };
- interface SVGAnimateTransformElement extends SVGAnimationElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGAnimateTransformElement: {
- prototype: SVGAnimateTransformElement;
- new(): SVGAnimateTransformElement;
- };
- /** Used for attributes of basic type <angle> which can be animated. */
- interface SVGAnimatedAngle {
- readonly animVal: SVGAngle;
- readonly baseVal: SVGAngle;
- }
- declare var SVGAnimatedAngle: {
- prototype: SVGAnimatedAngle;
- new(): SVGAnimatedAngle;
- };
- /** Used for attributes of type boolean which can be animated. */
- interface SVGAnimatedBoolean {
- readonly animVal: boolean;
- baseVal: boolean;
- }
- declare var SVGAnimatedBoolean: {
- prototype: SVGAnimatedBoolean;
- new(): SVGAnimatedBoolean;
- };
- /** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */
- interface SVGAnimatedEnumeration {
- readonly animVal: number;
- baseVal: number;
- }
- declare var SVGAnimatedEnumeration: {
- prototype: SVGAnimatedEnumeration;
- new(): SVGAnimatedEnumeration;
- };
- /** Used for attributes of basic type <integer> which can be animated. */
- interface SVGAnimatedInteger {
- readonly animVal: number;
- baseVal: number;
- }
- declare var SVGAnimatedInteger: {
- prototype: SVGAnimatedInteger;
- new(): SVGAnimatedInteger;
- };
- /** Used for attributes of basic type <length> which can be animated. */
- interface SVGAnimatedLength {
- readonly animVal: SVGLength;
- readonly baseVal: SVGLength;
- }
- declare var SVGAnimatedLength: {
- prototype: SVGAnimatedLength;
- new(): SVGAnimatedLength;
- };
- /** Used for attributes of type SVGLengthList which can be animated. */
- interface SVGAnimatedLengthList {
- readonly animVal: SVGLengthList;
- readonly baseVal: SVGLengthList;
- }
- declare var SVGAnimatedLengthList: {
- prototype: SVGAnimatedLengthList;
- new(): SVGAnimatedLengthList;
- };
- /** Used for attributes of basic type <Number> which can be animated. */
- interface SVGAnimatedNumber {
- readonly animVal: number;
- baseVal: number;
- }
- declare var SVGAnimatedNumber: {
- prototype: SVGAnimatedNumber;
- new(): SVGAnimatedNumber;
- };
- /** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */
- interface SVGAnimatedNumberList {
- readonly animVal: SVGNumberList;
- readonly baseVal: SVGNumberList;
- }
- declare var SVGAnimatedNumberList: {
- prototype: SVGAnimatedNumberList;
- new(): SVGAnimatedNumberList;
- };
- interface SVGAnimatedPoints {
- readonly animatedPoints: SVGPointList;
- readonly points: SVGPointList;
- }
- /** Used for attributes of type SVGPreserveAspectRatio which can be animated. */
- interface SVGAnimatedPreserveAspectRatio {
- readonly animVal: SVGPreserveAspectRatio;
- readonly baseVal: SVGPreserveAspectRatio;
- }
- declare var SVGAnimatedPreserveAspectRatio: {
- prototype: SVGAnimatedPreserveAspectRatio;
- new(): SVGAnimatedPreserveAspectRatio;
- };
- /** Used for attributes of basic SVGRect which can be animated. */
- interface SVGAnimatedRect {
- readonly animVal: DOMRectReadOnly;
- readonly baseVal: DOMRect;
- }
- declare var SVGAnimatedRect: {
- prototype: SVGAnimatedRect;
- new(): SVGAnimatedRect;
- };
- /** The SVGAnimatedString interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared inside this. */
- interface SVGAnimatedString {
- readonly animVal: string;
- baseVal: string;
- }
- declare var SVGAnimatedString: {
- prototype: SVGAnimatedString;
- new(): SVGAnimatedString;
- };
- /** Used for attributes which take a list of numbers and which can be animated. */
- interface SVGAnimatedTransformList {
- readonly animVal: SVGTransformList;
- readonly baseVal: SVGTransformList;
- }
- declare var SVGAnimatedTransformList: {
- prototype: SVGAnimatedTransformList;
- new(): SVGAnimatedTransformList;
- };
- interface SVGAnimationElement extends SVGElement, SVGTests {
- readonly targetElement: SVGElement | null;
- beginElement(): void;
- beginElementAt(offset: number): void;
- endElement(): void;
- endElementAt(offset: number): void;
- getCurrentTime(): number;
- getSimpleDuration(): number;
- getStartTime(): number;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGAnimationElement: {
- prototype: SVGAnimationElement;
- new(): SVGAnimationElement;
- };
- /** An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. */
- interface SVGCircleElement extends SVGGeometryElement {
- readonly cx: SVGAnimatedLength;
- readonly cy: SVGAnimatedLength;
- readonly r: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGCircleElement: {
- prototype: SVGCircleElement;
- new(): SVGCircleElement;
- };
- /** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */
- interface SVGClipPathElement extends SVGElement {
- readonly clipPathUnits: SVGAnimatedEnumeration;
- readonly transform: SVGAnimatedTransformList;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGClipPathElement: {
- prototype: SVGClipPathElement;
- new(): SVGClipPathElement;
- };
- /** A base interface used by the component transfer function interfaces. */
- interface SVGComponentTransferFunctionElement extends SVGElement {
- readonly amplitude: SVGAnimatedNumber;
- readonly exponent: SVGAnimatedNumber;
- readonly intercept: SVGAnimatedNumber;
- readonly offset: SVGAnimatedNumber;
- readonly slope: SVGAnimatedNumber;
- readonly tableValues: SVGAnimatedNumberList;
- readonly type: SVGAnimatedEnumeration;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGComponentTransferFunctionElement: {
- prototype: SVGComponentTransferFunctionElement;
- new(): SVGComponentTransferFunctionElement;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
- };
- /** Corresponds to the <defs> element. */
- interface SVGDefsElement extends SVGGraphicsElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGDefsElement: {
- prototype: SVGDefsElement;
- new(): SVGDefsElement;
- };
- /** Corresponds to the <desc> element. */
- interface SVGDescElement extends SVGElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGDescElement: {
- prototype: SVGDescElement;
- new(): SVGDescElement;
- };
- interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
- }
- /** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
- interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
- /** @deprecated */
- readonly className: any;
- readonly ownerSVGElement: SVGSVGElement | null;
- readonly viewportElement: SVGElement | null;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGElement: {
- prototype: SVGElement;
- new(): SVGElement;
- };
- /** Provides access to the properties of <ellipse> elements. */
- interface SVGEllipseElement extends SVGGeometryElement {
- readonly cx: SVGAnimatedLength;
- readonly cy: SVGAnimatedLength;
- readonly rx: SVGAnimatedLength;
- readonly ry: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGEllipseElement: {
- prototype: SVGEllipseElement;
- new(): SVGEllipseElement;
- };
- /** Corresponds to the <feBlend> element. */
- interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly in2: SVGAnimatedString;
- readonly mode: SVGAnimatedEnumeration;
- readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
- readonly SVG_FEBLEND_MODE_NORMAL: 1;
- readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
- readonly SVG_FEBLEND_MODE_SCREEN: 3;
- readonly SVG_FEBLEND_MODE_DARKEN: 4;
- readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
- readonly SVG_FEBLEND_MODE_OVERLAY: 6;
- readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
- readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
- readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
- readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
- readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
- readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
- readonly SVG_FEBLEND_MODE_HUE: 13;
- readonly SVG_FEBLEND_MODE_SATURATION: 14;
- readonly SVG_FEBLEND_MODE_COLOR: 15;
- readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEBlendElement: {
- prototype: SVGFEBlendElement;
- new(): SVGFEBlendElement;
- readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
- readonly SVG_FEBLEND_MODE_NORMAL: 1;
- readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
- readonly SVG_FEBLEND_MODE_SCREEN: 3;
- readonly SVG_FEBLEND_MODE_DARKEN: 4;
- readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
- readonly SVG_FEBLEND_MODE_OVERLAY: 6;
- readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
- readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
- readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
- readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
- readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
- readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
- readonly SVG_FEBLEND_MODE_HUE: 13;
- readonly SVG_FEBLEND_MODE_SATURATION: 14;
- readonly SVG_FEBLEND_MODE_COLOR: 15;
- readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
- };
- /** Corresponds to the <feColorMatrix> element. */
- interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly type: SVGAnimatedEnumeration;
- readonly values: SVGAnimatedNumberList;
- readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
- readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
- readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
- readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
- readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEColorMatrixElement: {
- prototype: SVGFEColorMatrixElement;
- new(): SVGFEColorMatrixElement;
- readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
- readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
- readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
- readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
- readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
- };
- /** Corresponds to the <feComponentTransfer> element. */
- interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEComponentTransferElement: {
- prototype: SVGFEComponentTransferElement;
- new(): SVGFEComponentTransferElement;
- };
- /** Corresponds to the <feComposite> element. */
- interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly in2: SVGAnimatedString;
- readonly k1: SVGAnimatedNumber;
- readonly k2: SVGAnimatedNumber;
- readonly k3: SVGAnimatedNumber;
- readonly k4: SVGAnimatedNumber;
- readonly operator: SVGAnimatedEnumeration;
- readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
- readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
- readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
- readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
- readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
- readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
- readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFECompositeElement: {
- prototype: SVGFECompositeElement;
- new(): SVGFECompositeElement;
- readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
- readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
- readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
- readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
- readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
- readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
- readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
- };
- /** Corresponds to the <feConvolveMatrix> element. */
- interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly bias: SVGAnimatedNumber;
- readonly divisor: SVGAnimatedNumber;
- readonly edgeMode: SVGAnimatedEnumeration;
- readonly in1: SVGAnimatedString;
- readonly kernelMatrix: SVGAnimatedNumberList;
- readonly kernelUnitLengthX: SVGAnimatedNumber;
- readonly kernelUnitLengthY: SVGAnimatedNumber;
- readonly orderX: SVGAnimatedInteger;
- readonly orderY: SVGAnimatedInteger;
- readonly preserveAlpha: SVGAnimatedBoolean;
- readonly targetX: SVGAnimatedInteger;
- readonly targetY: SVGAnimatedInteger;
- readonly SVG_EDGEMODE_UNKNOWN: 0;
- readonly SVG_EDGEMODE_DUPLICATE: 1;
- readonly SVG_EDGEMODE_WRAP: 2;
- readonly SVG_EDGEMODE_NONE: 3;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEConvolveMatrixElement: {
- prototype: SVGFEConvolveMatrixElement;
- new(): SVGFEConvolveMatrixElement;
- readonly SVG_EDGEMODE_UNKNOWN: 0;
- readonly SVG_EDGEMODE_DUPLICATE: 1;
- readonly SVG_EDGEMODE_WRAP: 2;
- readonly SVG_EDGEMODE_NONE: 3;
- };
- /** Corresponds to the <feDiffuseLighting> element. */
- interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly diffuseConstant: SVGAnimatedNumber;
- readonly in1: SVGAnimatedString;
- readonly kernelUnitLengthX: SVGAnimatedNumber;
- readonly kernelUnitLengthY: SVGAnimatedNumber;
- readonly surfaceScale: SVGAnimatedNumber;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEDiffuseLightingElement: {
- prototype: SVGFEDiffuseLightingElement;
- new(): SVGFEDiffuseLightingElement;
- };
- /** Corresponds to the <feDisplacementMap> element. */
- interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly in2: SVGAnimatedString;
- readonly scale: SVGAnimatedNumber;
- readonly xChannelSelector: SVGAnimatedEnumeration;
- readonly yChannelSelector: SVGAnimatedEnumeration;
- readonly SVG_CHANNEL_UNKNOWN: 0;
- readonly SVG_CHANNEL_R: 1;
- readonly SVG_CHANNEL_G: 2;
- readonly SVG_CHANNEL_B: 3;
- readonly SVG_CHANNEL_A: 4;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEDisplacementMapElement: {
- prototype: SVGFEDisplacementMapElement;
- new(): SVGFEDisplacementMapElement;
- readonly SVG_CHANNEL_UNKNOWN: 0;
- readonly SVG_CHANNEL_R: 1;
- readonly SVG_CHANNEL_G: 2;
- readonly SVG_CHANNEL_B: 3;
- readonly SVG_CHANNEL_A: 4;
- };
- /** Corresponds to the <feDistantLight> element. */
- interface SVGFEDistantLightElement extends SVGElement {
- readonly azimuth: SVGAnimatedNumber;
- readonly elevation: SVGAnimatedNumber;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEDistantLightElement: {
- prototype: SVGFEDistantLightElement;
- new(): SVGFEDistantLightElement;
- };
- interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly dx: SVGAnimatedNumber;
- readonly dy: SVGAnimatedNumber;
- readonly in1: SVGAnimatedString;
- readonly stdDeviationX: SVGAnimatedNumber;
- readonly stdDeviationY: SVGAnimatedNumber;
- setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEDropShadowElement: {
- prototype: SVGFEDropShadowElement;
- new(): SVGFEDropShadowElement;
- };
- /** Corresponds to the <feFlood> element. */
- interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEFloodElement: {
- prototype: SVGFEFloodElement;
- new(): SVGFEFloodElement;
- };
- /** Corresponds to the <feFuncA> element. */
- interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEFuncAElement: {
- prototype: SVGFEFuncAElement;
- new(): SVGFEFuncAElement;
- };
- /** Corresponds to the <feFuncB> element. */
- interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEFuncBElement: {
- prototype: SVGFEFuncBElement;
- new(): SVGFEFuncBElement;
- };
- /** Corresponds to the <feFuncG> element. */
- interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEFuncGElement: {
- prototype: SVGFEFuncGElement;
- new(): SVGFEFuncGElement;
- };
- /** Corresponds to the <feFuncR> element. */
- interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEFuncRElement: {
- prototype: SVGFEFuncRElement;
- new(): SVGFEFuncRElement;
- };
- /** Corresponds to the <feGaussianBlur> element. */
- interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly stdDeviationX: SVGAnimatedNumber;
- readonly stdDeviationY: SVGAnimatedNumber;
- setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEGaussianBlurElement: {
- prototype: SVGFEGaussianBlurElement;
- new(): SVGFEGaussianBlurElement;
- };
- /** Corresponds to the <feImage> element. */
- interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
- readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEImageElement: {
- prototype: SVGFEImageElement;
- new(): SVGFEImageElement;
- };
- /** Corresponds to the <feMerge> element. */
- interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEMergeElement: {
- prototype: SVGFEMergeElement;
- new(): SVGFEMergeElement;
- };
- /** Corresponds to the <feMergeNode> element. */
- interface SVGFEMergeNodeElement extends SVGElement {
- readonly in1: SVGAnimatedString;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEMergeNodeElement: {
- prototype: SVGFEMergeNodeElement;
- new(): SVGFEMergeNodeElement;
- };
- /** Corresponds to the <feMorphology> element. */
- interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly operator: SVGAnimatedEnumeration;
- readonly radiusX: SVGAnimatedNumber;
- readonly radiusY: SVGAnimatedNumber;
- readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
- readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
- readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEMorphologyElement: {
- prototype: SVGFEMorphologyElement;
- new(): SVGFEMorphologyElement;
- readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
- readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
- readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
- };
- /** Corresponds to the <feOffset> element. */
- interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly dx: SVGAnimatedNumber;
- readonly dy: SVGAnimatedNumber;
- readonly in1: SVGAnimatedString;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEOffsetElement: {
- prototype: SVGFEOffsetElement;
- new(): SVGFEOffsetElement;
- };
- /** Corresponds to the <fePointLight> element. */
- interface SVGFEPointLightElement extends SVGElement {
- readonly x: SVGAnimatedNumber;
- readonly y: SVGAnimatedNumber;
- readonly z: SVGAnimatedNumber;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFEPointLightElement: {
- prototype: SVGFEPointLightElement;
- new(): SVGFEPointLightElement;
- };
- /** Corresponds to the <feSpecularLighting> element. */
- interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly kernelUnitLengthX: SVGAnimatedNumber;
- readonly kernelUnitLengthY: SVGAnimatedNumber;
- readonly specularConstant: SVGAnimatedNumber;
- readonly specularExponent: SVGAnimatedNumber;
- readonly surfaceScale: SVGAnimatedNumber;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFESpecularLightingElement: {
- prototype: SVGFESpecularLightingElement;
- new(): SVGFESpecularLightingElement;
- };
- /** Corresponds to the <feSpotLight> element. */
- interface SVGFESpotLightElement extends SVGElement {
- readonly limitingConeAngle: SVGAnimatedNumber;
- readonly pointsAtX: SVGAnimatedNumber;
- readonly pointsAtY: SVGAnimatedNumber;
- readonly pointsAtZ: SVGAnimatedNumber;
- readonly specularExponent: SVGAnimatedNumber;
- readonly x: SVGAnimatedNumber;
- readonly y: SVGAnimatedNumber;
- readonly z: SVGAnimatedNumber;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFESpotLightElement: {
- prototype: SVGFESpotLightElement;
- new(): SVGFESpotLightElement;
- };
- /** Corresponds to the <feTile> element. */
- interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFETileElement: {
- prototype: SVGFETileElement;
- new(): SVGFETileElement;
- };
- /** Corresponds to the <feTurbulence> element. */
- interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly baseFrequencyX: SVGAnimatedNumber;
- readonly baseFrequencyY: SVGAnimatedNumber;
- readonly numOctaves: SVGAnimatedInteger;
- readonly seed: SVGAnimatedNumber;
- readonly stitchTiles: SVGAnimatedEnumeration;
- readonly type: SVGAnimatedEnumeration;
- readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
- readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
- readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
- readonly SVG_STITCHTYPE_UNKNOWN: 0;
- readonly SVG_STITCHTYPE_STITCH: 1;
- readonly SVG_STITCHTYPE_NOSTITCH: 2;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFETurbulenceElement: {
- prototype: SVGFETurbulenceElement;
- new(): SVGFETurbulenceElement;
- readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
- readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
- readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
- readonly SVG_STITCHTYPE_UNKNOWN: 0;
- readonly SVG_STITCHTYPE_STITCH: 1;
- readonly SVG_STITCHTYPE_NOSTITCH: 2;
- };
- /** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */
- interface SVGFilterElement extends SVGElement, SVGURIReference {
- readonly filterUnits: SVGAnimatedEnumeration;
- readonly height: SVGAnimatedLength;
- readonly primitiveUnits: SVGAnimatedEnumeration;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGFilterElement: {
- prototype: SVGFilterElement;
- new(): SVGFilterElement;
- };
- interface SVGFilterPrimitiveStandardAttributes {
- readonly height: SVGAnimatedLength;
- readonly result: SVGAnimatedString;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- }
- interface SVGFitToViewBox {
- readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
- readonly viewBox: SVGAnimatedRect;
- }
- /** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */
- interface SVGForeignObjectElement extends SVGGraphicsElement {
- readonly height: SVGAnimatedLength;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGForeignObjectElement: {
- prototype: SVGForeignObjectElement;
- new(): SVGForeignObjectElement;
- };
- /** Corresponds to the <g> element. */
- interface SVGGElement extends SVGGraphicsElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGGElement: {
- prototype: SVGGElement;
- new(): SVGGElement;
- };
- interface SVGGeometryElement extends SVGGraphicsElement {
- readonly pathLength: SVGAnimatedNumber;
- getPointAtLength(distance: number): DOMPoint;
- getTotalLength(): number;
- isPointInFill(point?: DOMPointInit): boolean;
- isPointInStroke(point?: DOMPointInit): boolean;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGGeometryElement: {
- prototype: SVGGeometryElement;
- new(): SVGGeometryElement;
- };
- /** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */
- interface SVGGradientElement extends SVGElement, SVGURIReference {
- readonly gradientTransform: SVGAnimatedTransformList;
- readonly gradientUnits: SVGAnimatedEnumeration;
- readonly spreadMethod: SVGAnimatedEnumeration;
- readonly SVG_SPREADMETHOD_UNKNOWN: 0;
- readonly SVG_SPREADMETHOD_PAD: 1;
- readonly SVG_SPREADMETHOD_REFLECT: 2;
- readonly SVG_SPREADMETHOD_REPEAT: 3;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGGradientElement: {
- prototype: SVGGradientElement;
- new(): SVGGradientElement;
- readonly SVG_SPREADMETHOD_UNKNOWN: 0;
- readonly SVG_SPREADMETHOD_PAD: 1;
- readonly SVG_SPREADMETHOD_REFLECT: 2;
- readonly SVG_SPREADMETHOD_REPEAT: 3;
- };
- /** SVG elements whose primary purpose is to directly render graphics into a group. */
- interface SVGGraphicsElement extends SVGElement, SVGTests {
- readonly transform: SVGAnimatedTransformList;
- getBBox(options?: SVGBoundingBoxOptions): DOMRect;
- getCTM(): DOMMatrix | null;
- getScreenCTM(): DOMMatrix | null;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGGraphicsElement: {
- prototype: SVGGraphicsElement;
- new(): SVGGraphicsElement;
- };
- /** Corresponds to the <image> element. */
- interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
- readonly height: SVGAnimatedLength;
- readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGImageElement: {
- prototype: SVGImageElement;
- new(): SVGImageElement;
- };
- /** Correspond to the <length> basic data type. */
- interface SVGLength {
- readonly unitType: number;
- value: number;
- valueAsString: string;
- valueInSpecifiedUnits: number;
- convertToSpecifiedUnits(unitType: number): void;
- newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
- readonly SVG_LENGTHTYPE_UNKNOWN: 0;
- readonly SVG_LENGTHTYPE_NUMBER: 1;
- readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
- readonly SVG_LENGTHTYPE_EMS: 3;
- readonly SVG_LENGTHTYPE_EXS: 4;
- readonly SVG_LENGTHTYPE_PX: 5;
- readonly SVG_LENGTHTYPE_CM: 6;
- readonly SVG_LENGTHTYPE_MM: 7;
- readonly SVG_LENGTHTYPE_IN: 8;
- readonly SVG_LENGTHTYPE_PT: 9;
- readonly SVG_LENGTHTYPE_PC: 10;
- }
- declare var SVGLength: {
- prototype: SVGLength;
- new(): SVGLength;
- readonly SVG_LENGTHTYPE_UNKNOWN: 0;
- readonly SVG_LENGTHTYPE_NUMBER: 1;
- readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
- readonly SVG_LENGTHTYPE_EMS: 3;
- readonly SVG_LENGTHTYPE_EXS: 4;
- readonly SVG_LENGTHTYPE_PX: 5;
- readonly SVG_LENGTHTYPE_CM: 6;
- readonly SVG_LENGTHTYPE_MM: 7;
- readonly SVG_LENGTHTYPE_IN: 8;
- readonly SVG_LENGTHTYPE_PT: 9;
- readonly SVG_LENGTHTYPE_PC: 10;
- };
- /** The SVGLengthList defines a list of SVGLength objects. */
- interface SVGLengthList {
- readonly length: number;
- readonly numberOfItems: number;
- appendItem(newItem: SVGLength): SVGLength;
- clear(): void;
- getItem(index: number): SVGLength;
- initialize(newItem: SVGLength): SVGLength;
- insertItemBefore(newItem: SVGLength, index: number): SVGLength;
- removeItem(index: number): SVGLength;
- replaceItem(newItem: SVGLength, index: number): SVGLength;
- [index: number]: SVGLength;
- }
- declare var SVGLengthList: {
- prototype: SVGLengthList;
- new(): SVGLengthList;
- };
- /** Provides access to the properties of <line> elements, as well as methods to manipulate them. */
- interface SVGLineElement extends SVGGeometryElement {
- readonly x1: SVGAnimatedLength;
- readonly x2: SVGAnimatedLength;
- readonly y1: SVGAnimatedLength;
- readonly y2: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGLineElement: {
- prototype: SVGLineElement;
- new(): SVGLineElement;
- };
- /** Corresponds to the <linearGradient> element. */
- interface SVGLinearGradientElement extends SVGGradientElement {
- readonly x1: SVGAnimatedLength;
- readonly x2: SVGAnimatedLength;
- readonly y1: SVGAnimatedLength;
- readonly y2: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGLinearGradientElement: {
- prototype: SVGLinearGradientElement;
- new(): SVGLinearGradientElement;
- };
- interface SVGMPathElement extends SVGElement, SVGURIReference {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGMPathElement: {
- prototype: SVGMPathElement;
- new(): SVGMPathElement;
- };
- interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
- readonly markerHeight: SVGAnimatedLength;
- readonly markerUnits: SVGAnimatedEnumeration;
- readonly markerWidth: SVGAnimatedLength;
- readonly orientAngle: SVGAnimatedAngle;
- readonly orientType: SVGAnimatedEnumeration;
- readonly refX: SVGAnimatedLength;
- readonly refY: SVGAnimatedLength;
- setOrientToAngle(angle: SVGAngle): void;
- setOrientToAuto(): void;
- readonly SVG_MARKERUNITS_UNKNOWN: 0;
- readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
- readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
- readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
- readonly SVG_MARKER_ORIENT_AUTO: 1;
- readonly SVG_MARKER_ORIENT_ANGLE: 2;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGMarkerElement: {
- prototype: SVGMarkerElement;
- new(): SVGMarkerElement;
- readonly SVG_MARKERUNITS_UNKNOWN: 0;
- readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
- readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
- readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
- readonly SVG_MARKER_ORIENT_AUTO: 1;
- readonly SVG_MARKER_ORIENT_ANGLE: 2;
- };
- /** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */
- interface SVGMaskElement extends SVGElement {
- readonly height: SVGAnimatedLength;
- readonly maskContentUnits: SVGAnimatedEnumeration;
- readonly maskUnits: SVGAnimatedEnumeration;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGMaskElement: {
- prototype: SVGMaskElement;
- new(): SVGMaskElement;
- };
- /** Corresponds to the <metadata> element. */
- interface SVGMetadataElement extends SVGElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGMetadataElement: {
- prototype: SVGMetadataElement;
- new(): SVGMetadataElement;
- };
- /** Corresponds to the <number> basic data type. */
- interface SVGNumber {
- value: number;
- }
- declare var SVGNumber: {
- prototype: SVGNumber;
- new(): SVGNumber;
- };
- /** The SVGNumberList defines a list of SVGNumber objects. */
- interface SVGNumberList {
- readonly length: number;
- readonly numberOfItems: number;
- appendItem(newItem: SVGNumber): SVGNumber;
- clear(): void;
- getItem(index: number): SVGNumber;
- initialize(newItem: SVGNumber): SVGNumber;
- insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
- removeItem(index: number): SVGNumber;
- replaceItem(newItem: SVGNumber, index: number): SVGNumber;
- [index: number]: SVGNumber;
- }
- declare var SVGNumberList: {
- prototype: SVGNumberList;
- new(): SVGNumberList;
- };
- /** Corresponds to the <path> element. */
- interface SVGPathElement extends SVGGeometryElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGPathElement: {
- prototype: SVGPathElement;
- new(): SVGPathElement;
- };
- /** Corresponds to the <pattern> element. */
- interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
- readonly height: SVGAnimatedLength;
- readonly patternContentUnits: SVGAnimatedEnumeration;
- readonly patternTransform: SVGAnimatedTransformList;
- readonly patternUnits: SVGAnimatedEnumeration;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGPatternElement: {
- prototype: SVGPatternElement;
- new(): SVGPatternElement;
- };
- interface SVGPointList {
- readonly length: number;
- readonly numberOfItems: number;
- appendItem(newItem: DOMPoint): DOMPoint;
- clear(): void;
- getItem(index: number): DOMPoint;
- initialize(newItem: DOMPoint): DOMPoint;
- insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
- removeItem(index: number): DOMPoint;
- replaceItem(newItem: DOMPoint, index: number): DOMPoint;
- [index: number]: DOMPoint;
- }
- declare var SVGPointList: {
- prototype: SVGPointList;
- new(): SVGPointList;
- };
- /** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */
- interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGPolygonElement: {
- prototype: SVGPolygonElement;
- new(): SVGPolygonElement;
- };
- /** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */
- interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGPolylineElement: {
- prototype: SVGPolylineElement;
- new(): SVGPolylineElement;
- };
- /** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. */
- interface SVGPreserveAspectRatio {
- align: number;
- meetOrSlice: number;
- readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
- readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
- readonly SVG_MEETORSLICE_UNKNOWN: 0;
- readonly SVG_MEETORSLICE_MEET: 1;
- readonly SVG_MEETORSLICE_SLICE: 2;
- }
- declare var SVGPreserveAspectRatio: {
- prototype: SVGPreserveAspectRatio;
- new(): SVGPreserveAspectRatio;
- readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
- readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
- readonly SVG_MEETORSLICE_UNKNOWN: 0;
- readonly SVG_MEETORSLICE_MEET: 1;
- readonly SVG_MEETORSLICE_SLICE: 2;
- };
- /** Corresponds to the <RadialGradient> element. */
- interface SVGRadialGradientElement extends SVGGradientElement {
- readonly cx: SVGAnimatedLength;
- readonly cy: SVGAnimatedLength;
- readonly fr: SVGAnimatedLength;
- readonly fx: SVGAnimatedLength;
- readonly fy: SVGAnimatedLength;
- readonly r: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGRadialGradientElement: {
- prototype: SVGRadialGradientElement;
- new(): SVGRadialGradientElement;
- };
- /** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */
- interface SVGRectElement extends SVGGeometryElement {
- readonly height: SVGAnimatedLength;
- readonly rx: SVGAnimatedLength;
- readonly ry: SVGAnimatedLength;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGRectElement: {
- prototype: SVGRectElement;
- new(): SVGRectElement;
- };
- interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {
- }
- /** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */
- interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
- currentScale: number;
- readonly currentTranslate: DOMPointReadOnly;
- readonly height: SVGAnimatedLength;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- animationsPaused(): boolean;
- checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
- checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
- createSVGAngle(): SVGAngle;
- createSVGLength(): SVGLength;
- createSVGMatrix(): DOMMatrix;
- createSVGNumber(): SVGNumber;
- createSVGPoint(): DOMPoint;
- createSVGRect(): DOMRect;
- createSVGTransform(): SVGTransform;
- createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
- deselectAll(): void;
- /** @deprecated */
- forceRedraw(): void;
- getCurrentTime(): number;
- getElementById(elementId: string): Element;
- getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
- getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
- pauseAnimations(): void;
- setCurrentTime(seconds: number): void;
- /** @deprecated */
- suspendRedraw(maxWaitMilliseconds: number): number;
- unpauseAnimations(): void;
- /** @deprecated */
- unsuspendRedraw(suspendHandleID: number): void;
- /** @deprecated */
- unsuspendRedrawAll(): void;
- addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGSVGElement: {
- prototype: SVGSVGElement;
- new(): SVGSVGElement;
- };
- /** Corresponds to the SVG <script> element. */
- interface SVGScriptElement extends SVGElement, SVGURIReference {
- type: string;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGScriptElement: {
- prototype: SVGScriptElement;
- new(): SVGScriptElement;
- };
- interface SVGSetElement extends SVGAnimationElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGSetElement: {
- prototype: SVGSetElement;
- new(): SVGSetElement;
- };
- /** Corresponds to the <stop> element. */
- interface SVGStopElement extends SVGElement {
- readonly offset: SVGAnimatedNumber;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGStopElement: {
- prototype: SVGStopElement;
- new(): SVGStopElement;
- };
- /** The SVGStringList defines a list of DOMString objects. */
- interface SVGStringList {
- readonly length: number;
- readonly numberOfItems: number;
- appendItem(newItem: string): string;
- clear(): void;
- getItem(index: number): string;
- initialize(newItem: string): string;
- insertItemBefore(newItem: string, index: number): string;
- removeItem(index: number): string;
- replaceItem(newItem: string, index: number): string;
- [index: number]: string;
- }
- declare var SVGStringList: {
- prototype: SVGStringList;
- new(): SVGStringList;
- };
- /** Corresponds to the SVG <style> element. */
- interface SVGStyleElement extends SVGElement, LinkStyle {
- disabled: boolean;
- media: string;
- title: string;
- /** @deprecated */
- type: string;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGStyleElement: {
- prototype: SVGStyleElement;
- new(): SVGStyleElement;
- };
- /** Corresponds to the <switch> element. */
- interface SVGSwitchElement extends SVGGraphicsElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGSwitchElement: {
- prototype: SVGSwitchElement;
- new(): SVGSwitchElement;
- };
- /** Corresponds to the <symbol> element. */
- interface SVGSymbolElement extends SVGElement, SVGFitToViewBox {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGSymbolElement: {
- prototype: SVGSymbolElement;
- new(): SVGSymbolElement;
- };
- /** A <tspan> element. */
- interface SVGTSpanElement extends SVGTextPositioningElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGTSpanElement: {
- prototype: SVGTSpanElement;
- new(): SVGTSpanElement;
- };
- interface SVGTests {
- readonly requiredExtensions: SVGStringList;
- readonly systemLanguage: SVGStringList;
- }
- /** Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. */
- interface SVGTextContentElement extends SVGGraphicsElement {
- readonly lengthAdjust: SVGAnimatedEnumeration;
- readonly textLength: SVGAnimatedLength;
- getCharNumAtPosition(point?: DOMPointInit): number;
- getComputedTextLength(): number;
- getEndPositionOfChar(charnum: number): DOMPoint;
- getExtentOfChar(charnum: number): DOMRect;
- getNumberOfChars(): number;
- getRotationOfChar(charnum: number): number;
- getStartPositionOfChar(charnum: number): DOMPoint;
- getSubStringLength(charnum: number, nchars: number): number;
- /** @deprecated */
- selectSubString(charnum: number, nchars: number): void;
- readonly LENGTHADJUST_UNKNOWN: 0;
- readonly LENGTHADJUST_SPACING: 1;
- readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGTextContentElement: {
- prototype: SVGTextContentElement;
- new(): SVGTextContentElement;
- readonly LENGTHADJUST_UNKNOWN: 0;
- readonly LENGTHADJUST_SPACING: 1;
- readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
- };
- /** Corresponds to the <text> elements. */
- interface SVGTextElement extends SVGTextPositioningElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGTextElement: {
- prototype: SVGTextElement;
- new(): SVGTextElement;
- };
- /** Corresponds to the <textPath> element. */
- interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
- readonly method: SVGAnimatedEnumeration;
- readonly spacing: SVGAnimatedEnumeration;
- readonly startOffset: SVGAnimatedLength;
- readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
- readonly TEXTPATH_METHODTYPE_ALIGN: 1;
- readonly TEXTPATH_METHODTYPE_STRETCH: 2;
- readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
- readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
- readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGTextPathElement: {
- prototype: SVGTextPathElement;
- new(): SVGTextPathElement;
- readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
- readonly TEXTPATH_METHODTYPE_ALIGN: 1;
- readonly TEXTPATH_METHODTYPE_STRETCH: 2;
- readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
- readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
- readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
- };
- /** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */
- interface SVGTextPositioningElement extends SVGTextContentElement {
- readonly dx: SVGAnimatedLengthList;
- readonly dy: SVGAnimatedLengthList;
- readonly rotate: SVGAnimatedNumberList;
- readonly x: SVGAnimatedLengthList;
- readonly y: SVGAnimatedLengthList;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGTextPositioningElement: {
- prototype: SVGTextPositioningElement;
- new(): SVGTextPositioningElement;
- };
- /** Corresponds to the <title> element. */
- interface SVGTitleElement extends SVGElement {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGTitleElement: {
- prototype: SVGTitleElement;
- new(): SVGTitleElement;
- };
- /** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(…) or matrix(…)) within a transform attribute. */
- interface SVGTransform {
- readonly angle: number;
- readonly matrix: DOMMatrix;
- readonly type: number;
- setMatrix(matrix?: DOMMatrix2DInit): void;
- setRotate(angle: number, cx: number, cy: number): void;
- setScale(sx: number, sy: number): void;
- setSkewX(angle: number): void;
- setSkewY(angle: number): void;
- setTranslate(tx: number, ty: number): void;
- readonly SVG_TRANSFORM_UNKNOWN: 0;
- readonly SVG_TRANSFORM_MATRIX: 1;
- readonly SVG_TRANSFORM_TRANSLATE: 2;
- readonly SVG_TRANSFORM_SCALE: 3;
- readonly SVG_TRANSFORM_ROTATE: 4;
- readonly SVG_TRANSFORM_SKEWX: 5;
- readonly SVG_TRANSFORM_SKEWY: 6;
- }
- declare var SVGTransform: {
- prototype: SVGTransform;
- new(): SVGTransform;
- readonly SVG_TRANSFORM_UNKNOWN: 0;
- readonly SVG_TRANSFORM_MATRIX: 1;
- readonly SVG_TRANSFORM_TRANSLATE: 2;
- readonly SVG_TRANSFORM_SCALE: 3;
- readonly SVG_TRANSFORM_ROTATE: 4;
- readonly SVG_TRANSFORM_SKEWX: 5;
- readonly SVG_TRANSFORM_SKEWY: 6;
- };
- /** The SVGTransformList defines a list of SVGTransform objects. */
- interface SVGTransformList {
- readonly length: number;
- readonly numberOfItems: number;
- appendItem(newItem: SVGTransform): SVGTransform;
- clear(): void;
- consolidate(): SVGTransform | null;
- createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
- getItem(index: number): SVGTransform;
- initialize(newItem: SVGTransform): SVGTransform;
- insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
- removeItem(index: number): SVGTransform;
- replaceItem(newItem: SVGTransform, index: number): SVGTransform;
- [index: number]: SVGTransform;
- }
- declare var SVGTransformList: {
- prototype: SVGTransformList;
- new(): SVGTransformList;
- };
- interface SVGURIReference {
- readonly href: SVGAnimatedString;
- }
- /** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */
- interface SVGUnitTypes {
- readonly SVG_UNIT_TYPE_UNKNOWN: 0;
- readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
- readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
- }
- declare var SVGUnitTypes: {
- prototype: SVGUnitTypes;
- new(): SVGUnitTypes;
- readonly SVG_UNIT_TYPE_UNKNOWN: 0;
- readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
- readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
- };
- /** Corresponds to the <use> element. */
- interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
- readonly height: SVGAnimatedLength;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGUseElement: {
- prototype: SVGUseElement;
- new(): SVGUseElement;
- };
- /** Provides access to the properties of <view> elements, as well as methods to manipulate them. */
- interface SVGViewElement extends SVGElement, SVGFitToViewBox {
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SVGViewElement: {
- prototype: SVGViewElement;
- new(): SVGViewElement;
- };
- /** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
- interface Screen {
- readonly availHeight: number;
- readonly availWidth: number;
- readonly colorDepth: number;
- readonly height: number;
- readonly orientation: ScreenOrientation;
- readonly pixelDepth: number;
- readonly width: number;
- }
- declare var Screen: {
- prototype: Screen;
- new(): Screen;
- };
- interface ScreenOrientationEventMap {
- "change": Event;
- }
- interface ScreenOrientation extends EventTarget {
- readonly angle: number;
- onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
- readonly type: OrientationType;
- lock(orientation: OrientationLockType): Promise<void>;
- unlock(): void;
- addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var ScreenOrientation: {
- prototype: ScreenOrientation;
- new(): ScreenOrientation;
- };
- interface ScriptProcessorNodeEventMap {
- "audioprocess": AudioProcessingEvent;
- }
- /**
- * Allows the generation, processing, or analyzing of audio using JavaScript.
- * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).
- */
- interface ScriptProcessorNode extends AudioNode {
- /** @deprecated */
- readonly bufferSize: number;
- /** @deprecated */
- onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
- addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- /** @deprecated */
- declare var ScriptProcessorNode: {
- prototype: ScriptProcessorNode;
- new(): ScriptProcessorNode;
- };
- /** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
- interface SecurityPolicyViolationEvent extends Event {
- readonly blockedURI: string;
- readonly columnNumber: number;
- readonly disposition: SecurityPolicyViolationEventDisposition;
- readonly documentURI: string;
- readonly effectiveDirective: string;
- readonly lineNumber: number;
- readonly originalPolicy: string;
- readonly referrer: string;
- readonly sample: string;
- readonly sourceFile: string;
- readonly statusCode: number;
- readonly violatedDirective: string;
- }
- declare var SecurityPolicyViolationEvent: {
- prototype: SecurityPolicyViolationEvent;
- new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
- };
- /** A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection(). */
- interface Selection {
- readonly anchorNode: Node | null;
- readonly anchorOffset: number;
- readonly focusNode: Node | null;
- readonly focusOffset: number;
- readonly isCollapsed: boolean;
- readonly rangeCount: number;
- readonly type: string;
- addRange(range: Range): void;
- collapse(node: Node | null, offset?: number): void;
- collapseToEnd(): void;
- collapseToStart(): void;
- containsNode(node: Node, allowPartialContainment?: boolean): boolean;
- deleteFromDocument(): void;
- empty(): void;
- extend(node: Node, offset?: number): void;
- getRangeAt(index: number): Range;
- modify(alter?: string, direction?: string, granularity?: string): void;
- removeAllRanges(): void;
- removeRange(range: Range): void;
- selectAllChildren(node: Node): void;
- setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
- setPosition(node: Node | null, offset?: number): void;
- toString(): string;
- }
- declare var Selection: {
- prototype: Selection;
- new(): Selection;
- toString(): string;
- };
- interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
- "statechange": Event;
- }
- /**
- * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
- * Available only in secure contexts.
- */
- interface ServiceWorker extends EventTarget, AbstractWorker {
- onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
- readonly scriptURL: string;
- readonly state: ServiceWorkerState;
- postMessage(message: any, transfer: Transferable[]): void;
- postMessage(message: any, options?: StructuredSerializeOptions): void;
- addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var ServiceWorker: {
- prototype: ServiceWorker;
- new(): ServiceWorker;
- };
- interface ServiceWorkerContainerEventMap {
- "controllerchange": Event;
- "message": MessageEvent;
- "messageerror": MessageEvent;
- }
- /**
- * The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
- * Available only in secure contexts.
- */
- interface ServiceWorkerContainer extends EventTarget {
- readonly controller: ServiceWorker | null;
- oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
- onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
- onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
- readonly ready: Promise<ServiceWorkerRegistration>;
- getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
- getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
- register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
- startMessages(): void;
- addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var ServiceWorkerContainer: {
- prototype: ServiceWorkerContainer;
- new(): ServiceWorkerContainer;
- };
- interface ServiceWorkerRegistrationEventMap {
- "updatefound": Event;
- }
- /**
- * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
- * Available only in secure contexts.
- */
- interface ServiceWorkerRegistration extends EventTarget {
- readonly active: ServiceWorker | null;
- readonly installing: ServiceWorker | null;
- readonly navigationPreload: NavigationPreloadManager;
- onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
- readonly pushManager: PushManager;
- readonly scope: string;
- readonly updateViaCache: ServiceWorkerUpdateViaCache;
- readonly waiting: ServiceWorker | null;
- getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
- showNotification(title: string, options?: NotificationOptions): Promise<void>;
- unregister(): Promise<boolean>;
- update(): Promise<void>;
- addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var ServiceWorkerRegistration: {
- prototype: ServiceWorkerRegistration;
- new(): ServiceWorkerRegistration;
- };
- interface ShadowRootEventMap {
- "slotchange": Event;
- }
- interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
- readonly delegatesFocus: boolean;
- readonly host: Element;
- readonly mode: ShadowRootMode;
- onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
- readonly slotAssignment: SlotAssignmentMode;
- /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
- addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var ShadowRoot: {
- prototype: ShadowRoot;
- new(): ShadowRoot;
- };
- interface SharedWorker extends EventTarget, AbstractWorker {
- /** Returns sharedWorker's MessagePort object which can be used to communicate with the global environment. */
- readonly port: MessagePort;
- addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SharedWorker: {
- prototype: SharedWorker;
- new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
- };
- interface Slottable {
- readonly assignedSlot: HTMLSlotElement | null;
- }
- interface SourceBufferEventMap {
- "abort": Event;
- "error": Event;
- "update": Event;
- "updateend": Event;
- "updatestart": Event;
- }
- /** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments. */
- interface SourceBuffer extends EventTarget {
- appendWindowEnd: number;
- appendWindowStart: number;
- readonly buffered: TimeRanges;
- mode: AppendMode;
- onabort: ((this: SourceBuffer, ev: Event) => any) | null;
- onerror: ((this: SourceBuffer, ev: Event) => any) | null;
- onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
- onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
- onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
- timestampOffset: number;
- readonly updating: boolean;
- abort(): void;
- appendBuffer(data: BufferSource): void;
- changeType(type: string): void;
- remove(start: number, end: number): void;
- addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SourceBuffer: {
- prototype: SourceBuffer;
- new(): SourceBuffer;
- };
- interface SourceBufferListEventMap {
- "addsourcebuffer": Event;
- "removesourcebuffer": Event;
- }
- /** A simple container list for multiple SourceBuffer objects. */
- interface SourceBufferList extends EventTarget {
- readonly length: number;
- onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
- onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
- addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- [index: number]: SourceBuffer;
- }
- declare var SourceBufferList: {
- prototype: SourceBufferList;
- new(): SourceBufferList;
- };
- interface SpeechRecognitionAlternative {
- readonly confidence: number;
- readonly transcript: string;
- }
- declare var SpeechRecognitionAlternative: {
- prototype: SpeechRecognitionAlternative;
- new(): SpeechRecognitionAlternative;
- };
- interface SpeechRecognitionResult {
- readonly isFinal: boolean;
- readonly length: number;
- item(index: number): SpeechRecognitionAlternative;
- [index: number]: SpeechRecognitionAlternative;
- }
- declare var SpeechRecognitionResult: {
- prototype: SpeechRecognitionResult;
- new(): SpeechRecognitionResult;
- };
- interface SpeechRecognitionResultList {
- readonly length: number;
- item(index: number): SpeechRecognitionResult;
- [index: number]: SpeechRecognitionResult;
- }
- declare var SpeechRecognitionResultList: {
- prototype: SpeechRecognitionResultList;
- new(): SpeechRecognitionResultList;
- };
- interface SpeechSynthesisEventMap {
- "voiceschanged": Event;
- }
- /** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. */
- interface SpeechSynthesis extends EventTarget {
- onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
- readonly paused: boolean;
- readonly pending: boolean;
- readonly speaking: boolean;
- cancel(): void;
- getVoices(): SpeechSynthesisVoice[];
- pause(): void;
- resume(): void;
- speak(utterance: SpeechSynthesisUtterance): void;
- addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SpeechSynthesis: {
- prototype: SpeechSynthesis;
- new(): SpeechSynthesis;
- };
- interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
- readonly error: SpeechSynthesisErrorCode;
- }
- declare var SpeechSynthesisErrorEvent: {
- prototype: SpeechSynthesisErrorEvent;
- new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;
- };
- /** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */
- interface SpeechSynthesisEvent extends Event {
- readonly charIndex: number;
- readonly charLength: number;
- readonly elapsedTime: number;
- readonly name: string;
- readonly utterance: SpeechSynthesisUtterance;
- }
- declare var SpeechSynthesisEvent: {
- prototype: SpeechSynthesisEvent;
- new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;
- };
- interface SpeechSynthesisUtteranceEventMap {
- "boundary": SpeechSynthesisEvent;
- "end": SpeechSynthesisEvent;
- "error": SpeechSynthesisErrorEvent;
- "mark": SpeechSynthesisEvent;
- "pause": SpeechSynthesisEvent;
- "resume": SpeechSynthesisEvent;
- "start": SpeechSynthesisEvent;
- }
- /** This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) */
- interface SpeechSynthesisUtterance extends EventTarget {
- lang: string;
- onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
- onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
- onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
- onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
- onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
- onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
- onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
- pitch: number;
- rate: number;
- text: string;
- voice: SpeechSynthesisVoice | null;
- volume: number;
- addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SpeechSynthesisUtterance: {
- prototype: SpeechSynthesisUtterance;
- new(text?: string): SpeechSynthesisUtterance;
- };
- /** This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. */
- interface SpeechSynthesisVoice {
- readonly default: boolean;
- readonly lang: string;
- readonly localService: boolean;
- readonly name: string;
- readonly voiceURI: string;
- }
- declare var SpeechSynthesisVoice: {
- prototype: SpeechSynthesisVoice;
- new(): SpeechSynthesisVoice;
- };
- interface StaticRange extends AbstractRange {
- }
- declare var StaticRange: {
- prototype: StaticRange;
- new(init: StaticRangeInit): StaticRange;
- };
- /** The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. */
- interface StereoPannerNode extends AudioNode {
- readonly pan: AudioParam;
- }
- declare var StereoPannerNode: {
- prototype: StereoPannerNode;
- new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;
- };
- /** This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */
- interface Storage {
- /** Returns the number of key/value pairs. */
- readonly length: number;
- /**
- * Removes all key/value pairs, if there are any.
- *
- * Dispatches a storage event on Window objects holding an equivalent Storage object.
- */
- clear(): void;
- /** Returns the current value associated with the given key, or null if the given key does not exist. */
- getItem(key: string): string | null;
- /** Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. */
- key(index: number): string | null;
- /**
- * Removes the key/value pair with the given key, if a key/value pair with the given key exists.
- *
- * Dispatches a storage event on Window objects holding an equivalent Storage object.
- */
- removeItem(key: string): void;
- /**
- * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
- *
- * Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
- *
- * Dispatches a storage event on Window objects holding an equivalent Storage object.
- */
- setItem(key: string, value: string): void;
- [name: string]: any;
- }
- declare var Storage: {
- prototype: Storage;
- new(): Storage;
- };
- /** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */
- interface StorageEvent extends Event {
- /** Returns the key of the storage item being changed. */
- readonly key: string | null;
- /** Returns the new value of the key of the storage item whose value is being changed. */
- readonly newValue: string | null;
- /** Returns the old value of the key of the storage item whose value is being changed. */
- readonly oldValue: string | null;
- /** Returns the Storage object that was affected. */
- readonly storageArea: Storage | null;
- /** Returns the URL of the document whose storage item changed. */
- readonly url: string;
- /** @deprecated */
- initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
- }
- declare var StorageEvent: {
- prototype: StorageEvent;
- new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
- };
- /** Available only in secure contexts. */
- interface StorageManager {
- estimate(): Promise<StorageEstimate>;
- getDirectory(): Promise<FileSystemDirectoryHandle>;
- persist(): Promise<boolean>;
- persisted(): Promise<boolean>;
- }
- declare var StorageManager: {
- prototype: StorageManager;
- new(): StorageManager;
- };
- /** @deprecated */
- interface StyleMedia {
- type: string;
- matchMedium(mediaquery: string): boolean;
- }
- /** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */
- interface StyleSheet {
- disabled: boolean;
- readonly href: string | null;
- readonly media: MediaList;
- readonly ownerNode: Element | ProcessingInstruction | null;
- readonly parentStyleSheet: CSSStyleSheet | null;
- readonly title: string | null;
- readonly type: string;
- }
- declare var StyleSheet: {
- prototype: StyleSheet;
- new(): StyleSheet;
- };
- /** A list of StyleSheet. */
- interface StyleSheetList {
- readonly length: number;
- item(index: number): CSSStyleSheet | null;
- [index: number]: CSSStyleSheet;
- }
- declare var StyleSheetList: {
- prototype: StyleSheetList;
- new(): StyleSheetList;
- };
- interface SubmitEvent extends Event {
- /** Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. */
- readonly submitter: HTMLElement | null;
- }
- declare var SubmitEvent: {
- prototype: SubmitEvent;
- new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
- };
- /**
- * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
- * Available only in secure contexts.
- */
- interface SubtleCrypto {
- decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
- deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
- deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
- digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
- encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
- exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
- exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
- generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
- generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
- generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
- importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
- importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
- sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
- unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
- verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
- wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
- }
- declare var SubtleCrypto: {
- prototype: SubtleCrypto;
- new(): SubtleCrypto;
- };
- /** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */
- interface Text extends CharacterData, Slottable {
- /** Returns the combined data of all direct Text node siblings. */
- readonly wholeText: string;
- /** Splits data at the given offset and returns the remainder as Text node. */
- splitText(offset: number): Text;
- }
- declare var Text: {
- prototype: Text;
- new(data?: string): Text;
- };
- /** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
- interface TextDecoder extends TextDecoderCommon {
- /**
- * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
- *
- * \`\`\`
- * var string = "", decoder = new TextDecoder(encoding), buffer;
- * while(buffer = next_chunk()) {
- * string += decoder.decode(buffer, {stream:true});
- * }
- * string += decoder.decode(); // end-of-queue
- * \`\`\`
- *
- * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
- */
- decode(input?: BufferSource, options?: TextDecodeOptions): string;
- }
- declare var TextDecoder: {
- prototype: TextDecoder;
- new(label?: string, options?: TextDecoderOptions): TextDecoder;
- };
- interface TextDecoderCommon {
- /** Returns encoding's name, lowercased. */
- readonly encoding: string;
- /** Returns true if error mode is "fatal", otherwise false. */
- readonly fatal: boolean;
- /** Returns the value of ignore BOM. */
- readonly ignoreBOM: boolean;
- }
- interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
- readonly readable: ReadableStream<string>;
- readonly writable: WritableStream<BufferSource>;
- }
- declare var TextDecoderStream: {
- prototype: TextDecoderStream;
- new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
- };
- /** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
- interface TextEncoder extends TextEncoderCommon {
- /** Returns the result of running UTF-8's encoder. */
- encode(input?: string): Uint8Array;
- /** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */
- encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
- }
- declare var TextEncoder: {
- prototype: TextEncoder;
- new(): TextEncoder;
- };
- interface TextEncoderCommon {
- /** Returns "utf-8". */
- readonly encoding: string;
- }
- interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
- readonly readable: ReadableStream<Uint8Array>;
- readonly writable: WritableStream<string>;
- }
- declare var TextEncoderStream: {
- prototype: TextEncoderStream;
- new(): TextEncoderStream;
- };
- /** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
- interface TextMetrics {
- /** Returns the measurement described below. */
- readonly actualBoundingBoxAscent: number;
- /** Returns the measurement described below. */
- readonly actualBoundingBoxDescent: number;
- /** Returns the measurement described below. */
- readonly actualBoundingBoxLeft: number;
- /** Returns the measurement described below. */
- readonly actualBoundingBoxRight: number;
- /** Returns the measurement described below. */
- readonly fontBoundingBoxAscent: number;
- /** Returns the measurement described below. */
- readonly fontBoundingBoxDescent: number;
- /** Returns the measurement described below. */
- readonly width: number;
- }
- declare var TextMetrics: {
- prototype: TextMetrics;
- new(): TextMetrics;
- };
- interface TextTrackEventMap {
- "cuechange": Event;
- }
- /** This interface also inherits properties from EventTarget. */
- interface TextTrack extends EventTarget {
- /** Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object. */
- readonly activeCues: TextTrackCueList | null;
- /** Returns the text track list of cues, as a TextTrackCueList object. */
- readonly cues: TextTrackCueList | null;
- /**
- * Returns the ID of the given track.
- *
- * For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.
- *
- * For TextTrack objects corresponding to track elements, this is the ID of the track element.
- */
- readonly id: string;
- /** Returns the text track in-band metadata track dispatch type string. */
- readonly inBandMetadataTrackDispatchType: string;
- /** Returns the text track kind string. */
- readonly kind: TextTrackKind;
- /** Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user). */
- readonly label: string;
- /** Returns the text track language string. */
- readonly language: string;
- /**
- * Returns the text track mode, represented by a string from the following list:
- *
- * Can be set, to change the mode.
- */
- mode: TextTrackMode;
- oncuechange: ((this: TextTrack, ev: Event) => any) | null;
- /** Adds the given cue to textTrack's text track list of cues. */
- addCue(cue: TextTrackCue): void;
- /** Removes the given cue from textTrack's text track list of cues. */
- removeCue(cue: TextTrackCue): void;
- addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var TextTrack: {
- prototype: TextTrack;
- new(): TextTrack;
- };
- interface TextTrackCueEventMap {
- "enter": Event;
- "exit": Event;
- }
- /** TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. */
- interface TextTrackCue extends EventTarget {
- /**
- * Returns the text track cue end time, in seconds.
- *
- * Can be set.
- */
- endTime: number;
- /**
- * Returns the text track cue identifier.
- *
- * Can be set.
- */
- id: string;
- onenter: ((this: TextTrackCue, ev: Event) => any) | null;
- onexit: ((this: TextTrackCue, ev: Event) => any) | null;
- /**
- * Returns true if the text track cue pause-on-exit flag is set, false otherwise.
- *
- * Can be set.
- */
- pauseOnExit: boolean;
- /**
- * Returns the text track cue start time, in seconds.
- *
- * Can be set.
- */
- startTime: number;
- /** Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. */
- readonly track: TextTrack | null;
- addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var TextTrackCue: {
- prototype: TextTrackCue;
- new(): TextTrackCue;
- };
- interface TextTrackCueList {
- /** Returns the number of cues in the list. */
- readonly length: number;
- /**
- * Returns the first text track cue (in text track cue order) with text track cue identifier id.
- *
- * Returns null if none of the cues have the given identifier or if the argument is the empty string.
- */
- getCueById(id: string): TextTrackCue | null;
- [index: number]: TextTrackCue;
- }
- declare var TextTrackCueList: {
- prototype: TextTrackCueList;
- new(): TextTrackCueList;
- };
- interface TextTrackListEventMap {
- "addtrack": TrackEvent;
- "change": Event;
- "removetrack": TrackEvent;
- }
- interface TextTrackList extends EventTarget {
- readonly length: number;
- onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
- onchange: ((this: TextTrackList, ev: Event) => any) | null;
- onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
- getTrackById(id: string): TextTrack | null;
- addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- [index: number]: TextTrack;
- }
- declare var TextTrackList: {
- prototype: TextTrackList;
- new(): TextTrackList;
- };
- /** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video> elements. */
- interface TimeRanges {
- /** Returns the number of ranges in the object. */
- readonly length: number;
- /**
- * Returns the time for the end of the range with the given index.
- *
- * Throws an "IndexSizeError" DOMException if the index is out of range.
- */
- end(index: number): number;
- /**
- * Returns the time for the start of the range with the given index.
- *
- * Throws an "IndexSizeError" DOMException if the index is out of range.
- */
- start(index: number): number;
- }
- declare var TimeRanges: {
- prototype: TimeRanges;
- new(): TimeRanges;
- };
- /** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */
- interface Touch {
- readonly clientX: number;
- readonly clientY: number;
- readonly force: number;
- readonly identifier: number;
- readonly pageX: number;
- readonly pageY: number;
- readonly radiusX: number;
- readonly radiusY: number;
- readonly rotationAngle: number;
- readonly screenX: number;
- readonly screenY: number;
- readonly target: EventTarget;
- }
- declare var Touch: {
- prototype: Touch;
- new(touchInitDict: TouchInit): Touch;
- };
- /** An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. */
- interface TouchEvent extends UIEvent {
- readonly altKey: boolean;
- readonly changedTouches: TouchList;
- readonly ctrlKey: boolean;
- readonly metaKey: boolean;
- readonly shiftKey: boolean;
- readonly targetTouches: TouchList;
- readonly touches: TouchList;
- }
- declare var TouchEvent: {
- prototype: TouchEvent;
- new(type: string, eventInitDict?: TouchEventInit): TouchEvent;
- };
- /** A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. */
- interface TouchList {
- readonly length: number;
- item(index: number): Touch | null;
- [index: number]: Touch;
- }
- declare var TouchList: {
- prototype: TouchList;
- new(): TouchList;
- };
- /** The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. */
- interface TrackEvent extends Event {
- /** Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. */
- readonly track: TextTrack | null;
- }
- declare var TrackEvent: {
- prototype: TrackEvent;
- new(type: string, eventInitDict?: TrackEventInit): TrackEvent;
- };
- interface TransformStream<I = any, O = any> {
- readonly readable: ReadableStream<O>;
- readonly writable: WritableStream<I>;
- }
- declare var TransformStream: {
- prototype: TransformStream;
- new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
- };
- interface TransformStreamDefaultController<O = any> {
- readonly desiredSize: number | null;
- enqueue(chunk?: O): void;
- error(reason?: any): void;
- terminate(): void;
- }
- declare var TransformStreamDefaultController: {
- prototype: TransformStreamDefaultController;
- new(): TransformStreamDefaultController;
- };
- /** Events providing information related to transitions. */
- interface TransitionEvent extends Event {
- readonly elapsedTime: number;
- readonly propertyName: string;
- readonly pseudoElement: string;
- }
- declare var TransitionEvent: {
- prototype: TransitionEvent;
- new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;
- };
- /** The nodes of a document subtree and a position within them. */
- interface TreeWalker {
- currentNode: Node;
- readonly filter: NodeFilter | null;
- readonly root: Node;
- readonly whatToShow: number;
- firstChild(): Node | null;
- lastChild(): Node | null;
- nextNode(): Node | null;
- nextSibling(): Node | null;
- parentNode(): Node | null;
- previousNode(): Node | null;
- previousSibling(): Node | null;
- }
- declare var TreeWalker: {
- prototype: TreeWalker;
- new(): TreeWalker;
- };
- /** Simple user interface events. */
- interface UIEvent extends Event {
- readonly detail: number;
- readonly view: Window | null;
- /** @deprecated */
- readonly which: number;
- /** @deprecated */
- initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;
- }
- declare var UIEvent: {
- prototype: UIEvent;
- new(type: string, eventInitDict?: UIEventInit): UIEvent;
- };
- /** The URL interface represents an object providing static methods used for creating object URLs. */
- interface URL {
- hash: string;
- host: string;
- hostname: string;
- href: string;
- toString(): string;
- readonly origin: string;
- password: string;
- pathname: string;
- port: string;
- protocol: string;
- search: string;
- readonly searchParams: URLSearchParams;
- username: string;
- toJSON(): string;
- }
- declare var URL: {
- prototype: URL;
- new(url: string | URL, base?: string | URL): URL;
- createObjectURL(obj: Blob | MediaSource): string;
- revokeObjectURL(url: string): void;
- };
- type webkitURL = URL;
- declare var webkitURL: typeof URL;
- interface URLSearchParams {
- /** Appends a specified key/value pair as a new search parameter. */
- append(name: string, value: string): void;
- /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
- delete(name: string): void;
- /** Returns the first value associated to the given search parameter. */
- get(name: string): string | null;
- /** Returns all the values association with a given search parameter. */
- getAll(name: string): string[];
- /** Returns a Boolean indicating if such a search parameter exists. */
- has(name: string): boolean;
- /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
- set(name: string, value: string): void;
- sort(): void;
- /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
- toString(): string;
- forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
- }
- declare var URLSearchParams: {
- prototype: URLSearchParams;
- new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
- toString(): string;
- };
- interface VTTCue extends TextTrackCue {
- align: AlignSetting;
- line: LineAndPositionSetting;
- lineAlign: LineAlignSetting;
- position: LineAndPositionSetting;
- positionAlign: PositionAlignSetting;
- region: VTTRegion | null;
- size: number;
- snapToLines: boolean;
- text: string;
- vertical: DirectionSetting;
- getCueAsHTML(): DocumentFragment;
- addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var VTTCue: {
- prototype: VTTCue;
- new(startTime: number, endTime: number, text: string): VTTCue;
- };
- interface VTTRegion {
- id: string;
- lines: number;
- regionAnchorX: number;
- regionAnchorY: number;
- scroll: ScrollSetting;
- viewportAnchorX: number;
- viewportAnchorY: number;
- width: number;
- }
- declare var VTTRegion: {
- prototype: VTTRegion;
- new(): VTTRegion;
- };
- /** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. */
- interface ValidityState {
- readonly badInput: boolean;
- readonly customError: boolean;
- readonly patternMismatch: boolean;
- readonly rangeOverflow: boolean;
- readonly rangeUnderflow: boolean;
- readonly stepMismatch: boolean;
- readonly tooLong: boolean;
- readonly tooShort: boolean;
- readonly typeMismatch: boolean;
- readonly valid: boolean;
- readonly valueMissing: boolean;
- }
- declare var ValidityState: {
- prototype: ValidityState;
- new(): ValidityState;
- };
- interface VideoColorSpace {
- readonly fullRange: boolean | null;
- readonly matrix: VideoMatrixCoefficients | null;
- readonly primaries: VideoColorPrimaries | null;
- readonly transfer: VideoTransferCharacteristics | null;
- toJSON(): VideoColorSpaceInit;
- }
- declare var VideoColorSpace: {
- prototype: VideoColorSpace;
- new(init?: VideoColorSpaceInit): VideoColorSpace;
- };
- /** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
- interface VideoPlaybackQuality {
- /** @deprecated */
- readonly corruptedVideoFrames: number;
- readonly creationTime: DOMHighResTimeStamp;
- readonly droppedVideoFrames: number;
- readonly totalVideoFrames: number;
- }
- declare var VideoPlaybackQuality: {
- prototype: VideoPlaybackQuality;
- new(): VideoPlaybackQuality;
- };
- interface VisualViewportEventMap {
- "resize": Event;
- "scroll": Event;
- }
- interface VisualViewport extends EventTarget {
- readonly height: number;
- readonly offsetLeft: number;
- readonly offsetTop: number;
- onresize: ((this: VisualViewport, ev: Event) => any) | null;
- onscroll: ((this: VisualViewport, ev: Event) => any) | null;
- readonly pageLeft: number;
- readonly pageTop: number;
- readonly scale: number;
- readonly width: number;
- addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var VisualViewport: {
- prototype: VisualViewport;
- new(): VisualViewport;
- };
- interface WEBGL_color_buffer_float {
- readonly RGBA32F_EXT: 0x8814;
- readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
- readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
- }
- interface WEBGL_compressed_texture_astc {
- getSupportedProfiles(): string[];
- readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
- readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
- readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
- readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
- readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
- readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
- readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
- readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
- readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
- readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
- readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
- readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
- readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
- readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
- }
- interface WEBGL_compressed_texture_etc {
- readonly COMPRESSED_R11_EAC: 0x9270;
- readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
- readonly COMPRESSED_RG11_EAC: 0x9272;
- readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
- readonly COMPRESSED_RGB8_ETC2: 0x9274;
- readonly COMPRESSED_SRGB8_ETC2: 0x9275;
- readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
- readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
- readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
- readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
- }
- interface WEBGL_compressed_texture_etc1 {
- readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
- }
- /** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
- interface WEBGL_compressed_texture_s3tc {
- readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
- readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
- readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
- readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
- }
- interface WEBGL_compressed_texture_s3tc_srgb {
- readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
- readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
- readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
- readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
- }
- /** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
- interface WEBGL_debug_renderer_info {
- readonly UNMASKED_VENDOR_WEBGL: 0x9245;
- readonly UNMASKED_RENDERER_WEBGL: 0x9246;
- }
- interface WEBGL_debug_shaders {
- getTranslatedShaderSource(shader: WebGLShader): string;
- }
- /** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
- interface WEBGL_depth_texture {
- readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
- }
- interface WEBGL_draw_buffers {
- drawBuffersWEBGL(buffers: GLenum[]): void;
- readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
- readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
- readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
- readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
- readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
- readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
- readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
- readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
- readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
- readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
- readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
- readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
- readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
- readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
- readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
- readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
- readonly DRAW_BUFFER0_WEBGL: 0x8825;
- readonly DRAW_BUFFER1_WEBGL: 0x8826;
- readonly DRAW_BUFFER2_WEBGL: 0x8827;
- readonly DRAW_BUFFER3_WEBGL: 0x8828;
- readonly DRAW_BUFFER4_WEBGL: 0x8829;
- readonly DRAW_BUFFER5_WEBGL: 0x882A;
- readonly DRAW_BUFFER6_WEBGL: 0x882B;
- readonly DRAW_BUFFER7_WEBGL: 0x882C;
- readonly DRAW_BUFFER8_WEBGL: 0x882D;
- readonly DRAW_BUFFER9_WEBGL: 0x882E;
- readonly DRAW_BUFFER10_WEBGL: 0x882F;
- readonly DRAW_BUFFER11_WEBGL: 0x8830;
- readonly DRAW_BUFFER12_WEBGL: 0x8831;
- readonly DRAW_BUFFER13_WEBGL: 0x8832;
- readonly DRAW_BUFFER14_WEBGL: 0x8833;
- readonly DRAW_BUFFER15_WEBGL: 0x8834;
- readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
- readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
- }
- interface WEBGL_lose_context {
- loseContext(): void;
- restoreContext(): void;
- }
- interface WEBGL_multi_draw {
- multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
- multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
- multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
- }
- /** A WaveShaperNode always has exactly one input and one output. */
- interface WaveShaperNode extends AudioNode {
- curve: Float32Array | null;
- oversample: OverSampleType;
- }
- declare var WaveShaperNode: {
- prototype: WaveShaperNode;
- new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
- };
- interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
- }
- declare var WebGL2RenderingContext: {
- prototype: WebGL2RenderingContext;
- new(): WebGL2RenderingContext;
- readonly READ_BUFFER: 0x0C02;
- readonly UNPACK_ROW_LENGTH: 0x0CF2;
- readonly UNPACK_SKIP_ROWS: 0x0CF3;
- readonly UNPACK_SKIP_PIXELS: 0x0CF4;
- readonly PACK_ROW_LENGTH: 0x0D02;
- readonly PACK_SKIP_ROWS: 0x0D03;
- readonly PACK_SKIP_PIXELS: 0x0D04;
- readonly COLOR: 0x1800;
- readonly DEPTH: 0x1801;
- readonly STENCIL: 0x1802;
- readonly RED: 0x1903;
- readonly RGB8: 0x8051;
- readonly RGBA8: 0x8058;
- readonly RGB10_A2: 0x8059;
- readonly TEXTURE_BINDING_3D: 0x806A;
- readonly UNPACK_SKIP_IMAGES: 0x806D;
- readonly UNPACK_IMAGE_HEIGHT: 0x806E;
- readonly TEXTURE_3D: 0x806F;
- readonly TEXTURE_WRAP_R: 0x8072;
- readonly MAX_3D_TEXTURE_SIZE: 0x8073;
- readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
- readonly MAX_ELEMENTS_VERTICES: 0x80E8;
- readonly MAX_ELEMENTS_INDICES: 0x80E9;
- readonly TEXTURE_MIN_LOD: 0x813A;
- readonly TEXTURE_MAX_LOD: 0x813B;
- readonly TEXTURE_BASE_LEVEL: 0x813C;
- readonly TEXTURE_MAX_LEVEL: 0x813D;
- readonly MIN: 0x8007;
- readonly MAX: 0x8008;
- readonly DEPTH_COMPONENT24: 0x81A6;
- readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
- readonly TEXTURE_COMPARE_MODE: 0x884C;
- readonly TEXTURE_COMPARE_FUNC: 0x884D;
- readonly CURRENT_QUERY: 0x8865;
- readonly QUERY_RESULT: 0x8866;
- readonly QUERY_RESULT_AVAILABLE: 0x8867;
- readonly STREAM_READ: 0x88E1;
- readonly STREAM_COPY: 0x88E2;
- readonly STATIC_READ: 0x88E5;
- readonly STATIC_COPY: 0x88E6;
- readonly DYNAMIC_READ: 0x88E9;
- readonly DYNAMIC_COPY: 0x88EA;
- readonly MAX_DRAW_BUFFERS: 0x8824;
- readonly DRAW_BUFFER0: 0x8825;
- readonly DRAW_BUFFER1: 0x8826;
- readonly DRAW_BUFFER2: 0x8827;
- readonly DRAW_BUFFER3: 0x8828;
- readonly DRAW_BUFFER4: 0x8829;
- readonly DRAW_BUFFER5: 0x882A;
- readonly DRAW_BUFFER6: 0x882B;
- readonly DRAW_BUFFER7: 0x882C;
- readonly DRAW_BUFFER8: 0x882D;
- readonly DRAW_BUFFER9: 0x882E;
- readonly DRAW_BUFFER10: 0x882F;
- readonly DRAW_BUFFER11: 0x8830;
- readonly DRAW_BUFFER12: 0x8831;
- readonly DRAW_BUFFER13: 0x8832;
- readonly DRAW_BUFFER14: 0x8833;
- readonly DRAW_BUFFER15: 0x8834;
- readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
- readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
- readonly SAMPLER_3D: 0x8B5F;
- readonly SAMPLER_2D_SHADOW: 0x8B62;
- readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
- readonly PIXEL_PACK_BUFFER: 0x88EB;
- readonly PIXEL_UNPACK_BUFFER: 0x88EC;
- readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
- readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
- readonly FLOAT_MAT2x3: 0x8B65;
- readonly FLOAT_MAT2x4: 0x8B66;
- readonly FLOAT_MAT3x2: 0x8B67;
- readonly FLOAT_MAT3x4: 0x8B68;
- readonly FLOAT_MAT4x2: 0x8B69;
- readonly FLOAT_MAT4x3: 0x8B6A;
- readonly SRGB: 0x8C40;
- readonly SRGB8: 0x8C41;
- readonly SRGB8_ALPHA8: 0x8C43;
- readonly COMPARE_REF_TO_TEXTURE: 0x884E;
- readonly RGBA32F: 0x8814;
- readonly RGB32F: 0x8815;
- readonly RGBA16F: 0x881A;
- readonly RGB16F: 0x881B;
- readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
- readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
- readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
- readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
- readonly MAX_VARYING_COMPONENTS: 0x8B4B;
- readonly TEXTURE_2D_ARRAY: 0x8C1A;
- readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
- readonly R11F_G11F_B10F: 0x8C3A;
- readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
- readonly RGB9_E5: 0x8C3D;
- readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
- readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
- readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
- readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
- readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
- readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
- readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
- readonly RASTERIZER_DISCARD: 0x8C89;
- readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
- readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
- readonly INTERLEAVED_ATTRIBS: 0x8C8C;
- readonly SEPARATE_ATTRIBS: 0x8C8D;
- readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
- readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
- readonly RGBA32UI: 0x8D70;
- readonly RGB32UI: 0x8D71;
- readonly RGBA16UI: 0x8D76;
- readonly RGB16UI: 0x8D77;
- readonly RGBA8UI: 0x8D7C;
- readonly RGB8UI: 0x8D7D;
- readonly RGBA32I: 0x8D82;
- readonly RGB32I: 0x8D83;
- readonly RGBA16I: 0x8D88;
- readonly RGB16I: 0x8D89;
- readonly RGBA8I: 0x8D8E;
- readonly RGB8I: 0x8D8F;
- readonly RED_INTEGER: 0x8D94;
- readonly RGB_INTEGER: 0x8D98;
- readonly RGBA_INTEGER: 0x8D99;
- readonly SAMPLER_2D_ARRAY: 0x8DC1;
- readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
- readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
- readonly UNSIGNED_INT_VEC2: 0x8DC6;
- readonly UNSIGNED_INT_VEC3: 0x8DC7;
- readonly UNSIGNED_INT_VEC4: 0x8DC8;
- readonly INT_SAMPLER_2D: 0x8DCA;
- readonly INT_SAMPLER_3D: 0x8DCB;
- readonly INT_SAMPLER_CUBE: 0x8DCC;
- readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
- readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
- readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
- readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
- readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
- readonly DEPTH_COMPONENT32F: 0x8CAC;
- readonly DEPTH32F_STENCIL8: 0x8CAD;
- readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
- readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
- readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
- readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
- readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
- readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
- readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
- readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
- readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
- readonly FRAMEBUFFER_DEFAULT: 0x8218;
- readonly UNSIGNED_INT_24_8: 0x84FA;
- readonly DEPTH24_STENCIL8: 0x88F0;
- readonly UNSIGNED_NORMALIZED: 0x8C17;
- readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
- readonly READ_FRAMEBUFFER: 0x8CA8;
- readonly DRAW_FRAMEBUFFER: 0x8CA9;
- readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
- readonly RENDERBUFFER_SAMPLES: 0x8CAB;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
- readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
- readonly COLOR_ATTACHMENT1: 0x8CE1;
- readonly COLOR_ATTACHMENT2: 0x8CE2;
- readonly COLOR_ATTACHMENT3: 0x8CE3;
- readonly COLOR_ATTACHMENT4: 0x8CE4;
- readonly COLOR_ATTACHMENT5: 0x8CE5;
- readonly COLOR_ATTACHMENT6: 0x8CE6;
- readonly COLOR_ATTACHMENT7: 0x8CE7;
- readonly COLOR_ATTACHMENT8: 0x8CE8;
- readonly COLOR_ATTACHMENT9: 0x8CE9;
- readonly COLOR_ATTACHMENT10: 0x8CEA;
- readonly COLOR_ATTACHMENT11: 0x8CEB;
- readonly COLOR_ATTACHMENT12: 0x8CEC;
- readonly COLOR_ATTACHMENT13: 0x8CED;
- readonly COLOR_ATTACHMENT14: 0x8CEE;
- readonly COLOR_ATTACHMENT15: 0x8CEF;
- readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
- readonly MAX_SAMPLES: 0x8D57;
- readonly HALF_FLOAT: 0x140B;
- readonly RG: 0x8227;
- readonly RG_INTEGER: 0x8228;
- readonly R8: 0x8229;
- readonly RG8: 0x822B;
- readonly R16F: 0x822D;
- readonly R32F: 0x822E;
- readonly RG16F: 0x822F;
- readonly RG32F: 0x8230;
- readonly R8I: 0x8231;
- readonly R8UI: 0x8232;
- readonly R16I: 0x8233;
- readonly R16UI: 0x8234;
- readonly R32I: 0x8235;
- readonly R32UI: 0x8236;
- readonly RG8I: 0x8237;
- readonly RG8UI: 0x8238;
- readonly RG16I: 0x8239;
- readonly RG16UI: 0x823A;
- readonly RG32I: 0x823B;
- readonly RG32UI: 0x823C;
- readonly VERTEX_ARRAY_BINDING: 0x85B5;
- readonly R8_SNORM: 0x8F94;
- readonly RG8_SNORM: 0x8F95;
- readonly RGB8_SNORM: 0x8F96;
- readonly RGBA8_SNORM: 0x8F97;
- readonly SIGNED_NORMALIZED: 0x8F9C;
- readonly COPY_READ_BUFFER: 0x8F36;
- readonly COPY_WRITE_BUFFER: 0x8F37;
- readonly COPY_READ_BUFFER_BINDING: 0x8F36;
- readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
- readonly UNIFORM_BUFFER: 0x8A11;
- readonly UNIFORM_BUFFER_BINDING: 0x8A28;
- readonly UNIFORM_BUFFER_START: 0x8A29;
- readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
- readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
- readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
- readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
- readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
- readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
- readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
- readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
- readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
- readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
- readonly UNIFORM_TYPE: 0x8A37;
- readonly UNIFORM_SIZE: 0x8A38;
- readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
- readonly UNIFORM_OFFSET: 0x8A3B;
- readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
- readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
- readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
- readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
- readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
- readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
- readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
- readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
- readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
- readonly INVALID_INDEX: 0xFFFFFFFF;
- readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
- readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
- readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
- readonly OBJECT_TYPE: 0x9112;
- readonly SYNC_CONDITION: 0x9113;
- readonly SYNC_STATUS: 0x9114;
- readonly SYNC_FLAGS: 0x9115;
- readonly SYNC_FENCE: 0x9116;
- readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
- readonly UNSIGNALED: 0x9118;
- readonly SIGNALED: 0x9119;
- readonly ALREADY_SIGNALED: 0x911A;
- readonly TIMEOUT_EXPIRED: 0x911B;
- readonly CONDITION_SATISFIED: 0x911C;
- readonly WAIT_FAILED: 0x911D;
- readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
- readonly ANY_SAMPLES_PASSED: 0x8C2F;
- readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
- readonly SAMPLER_BINDING: 0x8919;
- readonly RGB10_A2UI: 0x906F;
- readonly INT_2_10_10_10_REV: 0x8D9F;
- readonly TRANSFORM_FEEDBACK: 0x8E22;
- readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
- readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
- readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
- readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
- readonly MAX_ELEMENT_INDEX: 0x8D6B;
- readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
- readonly TIMEOUT_IGNORED: -1;
- readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
- readonly DEPTH_BUFFER_BIT: 0x00000100;
- readonly STENCIL_BUFFER_BIT: 0x00000400;
- readonly COLOR_BUFFER_BIT: 0x00004000;
- readonly POINTS: 0x0000;
- readonly LINES: 0x0001;
- readonly LINE_LOOP: 0x0002;
- readonly LINE_STRIP: 0x0003;
- readonly TRIANGLES: 0x0004;
- readonly TRIANGLE_STRIP: 0x0005;
- readonly TRIANGLE_FAN: 0x0006;
- readonly ZERO: 0;
- readonly ONE: 1;
- readonly SRC_COLOR: 0x0300;
- readonly ONE_MINUS_SRC_COLOR: 0x0301;
- readonly SRC_ALPHA: 0x0302;
- readonly ONE_MINUS_SRC_ALPHA: 0x0303;
- readonly DST_ALPHA: 0x0304;
- readonly ONE_MINUS_DST_ALPHA: 0x0305;
- readonly DST_COLOR: 0x0306;
- readonly ONE_MINUS_DST_COLOR: 0x0307;
- readonly SRC_ALPHA_SATURATE: 0x0308;
- readonly FUNC_ADD: 0x8006;
- readonly BLEND_EQUATION: 0x8009;
- readonly BLEND_EQUATION_RGB: 0x8009;
- readonly BLEND_EQUATION_ALPHA: 0x883D;
- readonly FUNC_SUBTRACT: 0x800A;
- readonly FUNC_REVERSE_SUBTRACT: 0x800B;
- readonly BLEND_DST_RGB: 0x80C8;
- readonly BLEND_SRC_RGB: 0x80C9;
- readonly BLEND_DST_ALPHA: 0x80CA;
- readonly BLEND_SRC_ALPHA: 0x80CB;
- readonly CONSTANT_COLOR: 0x8001;
- readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
- readonly CONSTANT_ALPHA: 0x8003;
- readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
- readonly BLEND_COLOR: 0x8005;
- readonly ARRAY_BUFFER: 0x8892;
- readonly ELEMENT_ARRAY_BUFFER: 0x8893;
- readonly ARRAY_BUFFER_BINDING: 0x8894;
- readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
- readonly STREAM_DRAW: 0x88E0;
- readonly STATIC_DRAW: 0x88E4;
- readonly DYNAMIC_DRAW: 0x88E8;
- readonly BUFFER_SIZE: 0x8764;
- readonly BUFFER_USAGE: 0x8765;
- readonly CURRENT_VERTEX_ATTRIB: 0x8626;
- readonly FRONT: 0x0404;
- readonly BACK: 0x0405;
- readonly FRONT_AND_BACK: 0x0408;
- readonly CULL_FACE: 0x0B44;
- readonly BLEND: 0x0BE2;
- readonly DITHER: 0x0BD0;
- readonly STENCIL_TEST: 0x0B90;
- readonly DEPTH_TEST: 0x0B71;
- readonly SCISSOR_TEST: 0x0C11;
- readonly POLYGON_OFFSET_FILL: 0x8037;
- readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
- readonly SAMPLE_COVERAGE: 0x80A0;
- readonly NO_ERROR: 0;
- readonly INVALID_ENUM: 0x0500;
- readonly INVALID_VALUE: 0x0501;
- readonly INVALID_OPERATION: 0x0502;
- readonly OUT_OF_MEMORY: 0x0505;
- readonly CW: 0x0900;
- readonly CCW: 0x0901;
- readonly LINE_WIDTH: 0x0B21;
- readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
- readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
- readonly CULL_FACE_MODE: 0x0B45;
- readonly FRONT_FACE: 0x0B46;
- readonly DEPTH_RANGE: 0x0B70;
- readonly DEPTH_WRITEMASK: 0x0B72;
- readonly DEPTH_CLEAR_VALUE: 0x0B73;
- readonly DEPTH_FUNC: 0x0B74;
- readonly STENCIL_CLEAR_VALUE: 0x0B91;
- readonly STENCIL_FUNC: 0x0B92;
- readonly STENCIL_FAIL: 0x0B94;
- readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
- readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
- readonly STENCIL_REF: 0x0B97;
- readonly STENCIL_VALUE_MASK: 0x0B93;
- readonly STENCIL_WRITEMASK: 0x0B98;
- readonly STENCIL_BACK_FUNC: 0x8800;
- readonly STENCIL_BACK_FAIL: 0x8801;
- readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
- readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
- readonly STENCIL_BACK_REF: 0x8CA3;
- readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
- readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
- readonly VIEWPORT: 0x0BA2;
- readonly SCISSOR_BOX: 0x0C10;
- readonly COLOR_CLEAR_VALUE: 0x0C22;
- readonly COLOR_WRITEMASK: 0x0C23;
- readonly UNPACK_ALIGNMENT: 0x0CF5;
- readonly PACK_ALIGNMENT: 0x0D05;
- readonly MAX_TEXTURE_SIZE: 0x0D33;
- readonly MAX_VIEWPORT_DIMS: 0x0D3A;
- readonly SUBPIXEL_BITS: 0x0D50;
- readonly RED_BITS: 0x0D52;
- readonly GREEN_BITS: 0x0D53;
- readonly BLUE_BITS: 0x0D54;
- readonly ALPHA_BITS: 0x0D55;
- readonly DEPTH_BITS: 0x0D56;
- readonly STENCIL_BITS: 0x0D57;
- readonly POLYGON_OFFSET_UNITS: 0x2A00;
- readonly POLYGON_OFFSET_FACTOR: 0x8038;
- readonly TEXTURE_BINDING_2D: 0x8069;
- readonly SAMPLE_BUFFERS: 0x80A8;
- readonly SAMPLES: 0x80A9;
- readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
- readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
- readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
- readonly DONT_CARE: 0x1100;
- readonly FASTEST: 0x1101;
- readonly NICEST: 0x1102;
- readonly GENERATE_MIPMAP_HINT: 0x8192;
- readonly BYTE: 0x1400;
- readonly UNSIGNED_BYTE: 0x1401;
- readonly SHORT: 0x1402;
- readonly UNSIGNED_SHORT: 0x1403;
- readonly INT: 0x1404;
- readonly UNSIGNED_INT: 0x1405;
- readonly FLOAT: 0x1406;
- readonly DEPTH_COMPONENT: 0x1902;
- readonly ALPHA: 0x1906;
- readonly RGB: 0x1907;
- readonly RGBA: 0x1908;
- readonly LUMINANCE: 0x1909;
- readonly LUMINANCE_ALPHA: 0x190A;
- readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
- readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
- readonly UNSIGNED_SHORT_5_6_5: 0x8363;
- readonly FRAGMENT_SHADER: 0x8B30;
- readonly VERTEX_SHADER: 0x8B31;
- readonly MAX_VERTEX_ATTRIBS: 0x8869;
- readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
- readonly MAX_VARYING_VECTORS: 0x8DFC;
- readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
- readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
- readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
- readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
- readonly SHADER_TYPE: 0x8B4F;
- readonly DELETE_STATUS: 0x8B80;
- readonly LINK_STATUS: 0x8B82;
- readonly VALIDATE_STATUS: 0x8B83;
- readonly ATTACHED_SHADERS: 0x8B85;
- readonly ACTIVE_UNIFORMS: 0x8B86;
- readonly ACTIVE_ATTRIBUTES: 0x8B89;
- readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
- readonly CURRENT_PROGRAM: 0x8B8D;
- readonly NEVER: 0x0200;
- readonly LESS: 0x0201;
- readonly EQUAL: 0x0202;
- readonly LEQUAL: 0x0203;
- readonly GREATER: 0x0204;
- readonly NOTEQUAL: 0x0205;
- readonly GEQUAL: 0x0206;
- readonly ALWAYS: 0x0207;
- readonly KEEP: 0x1E00;
- readonly REPLACE: 0x1E01;
- readonly INCR: 0x1E02;
- readonly DECR: 0x1E03;
- readonly INVERT: 0x150A;
- readonly INCR_WRAP: 0x8507;
- readonly DECR_WRAP: 0x8508;
- readonly VENDOR: 0x1F00;
- readonly RENDERER: 0x1F01;
- readonly VERSION: 0x1F02;
- readonly NEAREST: 0x2600;
- readonly LINEAR: 0x2601;
- readonly NEAREST_MIPMAP_NEAREST: 0x2700;
- readonly LINEAR_MIPMAP_NEAREST: 0x2701;
- readonly NEAREST_MIPMAP_LINEAR: 0x2702;
- readonly LINEAR_MIPMAP_LINEAR: 0x2703;
- readonly TEXTURE_MAG_FILTER: 0x2800;
- readonly TEXTURE_MIN_FILTER: 0x2801;
- readonly TEXTURE_WRAP_S: 0x2802;
- readonly TEXTURE_WRAP_T: 0x2803;
- readonly TEXTURE_2D: 0x0DE1;
- readonly TEXTURE: 0x1702;
- readonly TEXTURE_CUBE_MAP: 0x8513;
- readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
- readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
- readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
- readonly TEXTURE0: 0x84C0;
- readonly TEXTURE1: 0x84C1;
- readonly TEXTURE2: 0x84C2;
- readonly TEXTURE3: 0x84C3;
- readonly TEXTURE4: 0x84C4;
- readonly TEXTURE5: 0x84C5;
- readonly TEXTURE6: 0x84C6;
- readonly TEXTURE7: 0x84C7;
- readonly TEXTURE8: 0x84C8;
- readonly TEXTURE9: 0x84C9;
- readonly TEXTURE10: 0x84CA;
- readonly TEXTURE11: 0x84CB;
- readonly TEXTURE12: 0x84CC;
- readonly TEXTURE13: 0x84CD;
- readonly TEXTURE14: 0x84CE;
- readonly TEXTURE15: 0x84CF;
- readonly TEXTURE16: 0x84D0;
- readonly TEXTURE17: 0x84D1;
- readonly TEXTURE18: 0x84D2;
- readonly TEXTURE19: 0x84D3;
- readonly TEXTURE20: 0x84D4;
- readonly TEXTURE21: 0x84D5;
- readonly TEXTURE22: 0x84D6;
- readonly TEXTURE23: 0x84D7;
- readonly TEXTURE24: 0x84D8;
- readonly TEXTURE25: 0x84D9;
- readonly TEXTURE26: 0x84DA;
- readonly TEXTURE27: 0x84DB;
- readonly TEXTURE28: 0x84DC;
- readonly TEXTURE29: 0x84DD;
- readonly TEXTURE30: 0x84DE;
- readonly TEXTURE31: 0x84DF;
- readonly ACTIVE_TEXTURE: 0x84E0;
- readonly REPEAT: 0x2901;
- readonly CLAMP_TO_EDGE: 0x812F;
- readonly MIRRORED_REPEAT: 0x8370;
- readonly FLOAT_VEC2: 0x8B50;
- readonly FLOAT_VEC3: 0x8B51;
- readonly FLOAT_VEC4: 0x8B52;
- readonly INT_VEC2: 0x8B53;
- readonly INT_VEC3: 0x8B54;
- readonly INT_VEC4: 0x8B55;
- readonly BOOL: 0x8B56;
- readonly BOOL_VEC2: 0x8B57;
- readonly BOOL_VEC3: 0x8B58;
- readonly BOOL_VEC4: 0x8B59;
- readonly FLOAT_MAT2: 0x8B5A;
- readonly FLOAT_MAT3: 0x8B5B;
- readonly FLOAT_MAT4: 0x8B5C;
- readonly SAMPLER_2D: 0x8B5E;
- readonly SAMPLER_CUBE: 0x8B60;
- readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
- readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
- readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
- readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
- readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
- readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
- readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
- readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
- readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
- readonly COMPILE_STATUS: 0x8B81;
- readonly LOW_FLOAT: 0x8DF0;
- readonly MEDIUM_FLOAT: 0x8DF1;
- readonly HIGH_FLOAT: 0x8DF2;
- readonly LOW_INT: 0x8DF3;
- readonly MEDIUM_INT: 0x8DF4;
- readonly HIGH_INT: 0x8DF5;
- readonly FRAMEBUFFER: 0x8D40;
- readonly RENDERBUFFER: 0x8D41;
- readonly RGBA4: 0x8056;
- readonly RGB5_A1: 0x8057;
- readonly RGB565: 0x8D62;
- readonly DEPTH_COMPONENT16: 0x81A5;
- readonly STENCIL_INDEX8: 0x8D48;
- readonly DEPTH_STENCIL: 0x84F9;
- readonly RENDERBUFFER_WIDTH: 0x8D42;
- readonly RENDERBUFFER_HEIGHT: 0x8D43;
- readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
- readonly RENDERBUFFER_RED_SIZE: 0x8D50;
- readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
- readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
- readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
- readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
- readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
- readonly COLOR_ATTACHMENT0: 0x8CE0;
- readonly DEPTH_ATTACHMENT: 0x8D00;
- readonly STENCIL_ATTACHMENT: 0x8D20;
- readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
- readonly NONE: 0;
- readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
- readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
- readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
- readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
- readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
- readonly FRAMEBUFFER_BINDING: 0x8CA6;
- readonly RENDERBUFFER_BINDING: 0x8CA7;
- readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
- readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
- readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
- readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
- readonly CONTEXT_LOST_WEBGL: 0x9242;
- readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
- readonly BROWSER_DEFAULT_WEBGL: 0x9244;
- };
- interface WebGL2RenderingContextBase {
- beginQuery(target: GLenum, query: WebGLQuery): void;
- beginTransformFeedback(primitiveMode: GLenum): void;
- bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
- bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
- bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
- bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
- bindVertexArray(array: WebGLVertexArrayObject | null): void;
- blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
- clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
- clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
- clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
- clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
- clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
- compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
- compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
- compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
- compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
- copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
- copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
- createQuery(): WebGLQuery | null;
- createSampler(): WebGLSampler | null;
- createTransformFeedback(): WebGLTransformFeedback | null;
- createVertexArray(): WebGLVertexArrayObject | null;
- deleteQuery(query: WebGLQuery | null): void;
- deleteSampler(sampler: WebGLSampler | null): void;
- deleteSync(sync: WebGLSync | null): void;
- deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
- deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
- drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
- drawBuffers(buffers: GLenum[]): void;
- drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
- drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
- endQuery(target: GLenum): void;
- endTransformFeedback(): void;
- fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
- framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
- getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
- getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
- getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
- getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
- getFragDataLocation(program: WebGLProgram, name: string): GLint;
- getIndexedParameter(target: GLenum, index: GLuint): any;
- getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
- getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
- getQueryParameter(query: WebGLQuery, pname: GLenum): any;
- getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
- getSyncParameter(sync: WebGLSync, pname: GLenum): any;
- getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
- getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
- getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
- invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
- invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
- isQuery(query: WebGLQuery | null): GLboolean;
- isSampler(sampler: WebGLSampler | null): GLboolean;
- isSync(sync: WebGLSync | null): GLboolean;
- isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
- isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
- pauseTransformFeedback(): void;
- readBuffer(src: GLenum): void;
- renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
- resumeTransformFeedback(): void;
- samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
- samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
- texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
- texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
- texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
- texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
- texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
- texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
- texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
- texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
- texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
- transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
- uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
- uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
- uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
- uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
- uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
- uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
- vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
- vertexAttribI4iv(index: GLuint, values: Int32List): void;
- vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
- vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
- vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
- waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
- readonly READ_BUFFER: 0x0C02;
- readonly UNPACK_ROW_LENGTH: 0x0CF2;
- readonly UNPACK_SKIP_ROWS: 0x0CF3;
- readonly UNPACK_SKIP_PIXELS: 0x0CF4;
- readonly PACK_ROW_LENGTH: 0x0D02;
- readonly PACK_SKIP_ROWS: 0x0D03;
- readonly PACK_SKIP_PIXELS: 0x0D04;
- readonly COLOR: 0x1800;
- readonly DEPTH: 0x1801;
- readonly STENCIL: 0x1802;
- readonly RED: 0x1903;
- readonly RGB8: 0x8051;
- readonly RGBA8: 0x8058;
- readonly RGB10_A2: 0x8059;
- readonly TEXTURE_BINDING_3D: 0x806A;
- readonly UNPACK_SKIP_IMAGES: 0x806D;
- readonly UNPACK_IMAGE_HEIGHT: 0x806E;
- readonly TEXTURE_3D: 0x806F;
- readonly TEXTURE_WRAP_R: 0x8072;
- readonly MAX_3D_TEXTURE_SIZE: 0x8073;
- readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
- readonly MAX_ELEMENTS_VERTICES: 0x80E8;
- readonly MAX_ELEMENTS_INDICES: 0x80E9;
- readonly TEXTURE_MIN_LOD: 0x813A;
- readonly TEXTURE_MAX_LOD: 0x813B;
- readonly TEXTURE_BASE_LEVEL: 0x813C;
- readonly TEXTURE_MAX_LEVEL: 0x813D;
- readonly MIN: 0x8007;
- readonly MAX: 0x8008;
- readonly DEPTH_COMPONENT24: 0x81A6;
- readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
- readonly TEXTURE_COMPARE_MODE: 0x884C;
- readonly TEXTURE_COMPARE_FUNC: 0x884D;
- readonly CURRENT_QUERY: 0x8865;
- readonly QUERY_RESULT: 0x8866;
- readonly QUERY_RESULT_AVAILABLE: 0x8867;
- readonly STREAM_READ: 0x88E1;
- readonly STREAM_COPY: 0x88E2;
- readonly STATIC_READ: 0x88E5;
- readonly STATIC_COPY: 0x88E6;
- readonly DYNAMIC_READ: 0x88E9;
- readonly DYNAMIC_COPY: 0x88EA;
- readonly MAX_DRAW_BUFFERS: 0x8824;
- readonly DRAW_BUFFER0: 0x8825;
- readonly DRAW_BUFFER1: 0x8826;
- readonly DRAW_BUFFER2: 0x8827;
- readonly DRAW_BUFFER3: 0x8828;
- readonly DRAW_BUFFER4: 0x8829;
- readonly DRAW_BUFFER5: 0x882A;
- readonly DRAW_BUFFER6: 0x882B;
- readonly DRAW_BUFFER7: 0x882C;
- readonly DRAW_BUFFER8: 0x882D;
- readonly DRAW_BUFFER9: 0x882E;
- readonly DRAW_BUFFER10: 0x882F;
- readonly DRAW_BUFFER11: 0x8830;
- readonly DRAW_BUFFER12: 0x8831;
- readonly DRAW_BUFFER13: 0x8832;
- readonly DRAW_BUFFER14: 0x8833;
- readonly DRAW_BUFFER15: 0x8834;
- readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
- readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
- readonly SAMPLER_3D: 0x8B5F;
- readonly SAMPLER_2D_SHADOW: 0x8B62;
- readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
- readonly PIXEL_PACK_BUFFER: 0x88EB;
- readonly PIXEL_UNPACK_BUFFER: 0x88EC;
- readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
- readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
- readonly FLOAT_MAT2x3: 0x8B65;
- readonly FLOAT_MAT2x4: 0x8B66;
- readonly FLOAT_MAT3x2: 0x8B67;
- readonly FLOAT_MAT3x4: 0x8B68;
- readonly FLOAT_MAT4x2: 0x8B69;
- readonly FLOAT_MAT4x3: 0x8B6A;
- readonly SRGB: 0x8C40;
- readonly SRGB8: 0x8C41;
- readonly SRGB8_ALPHA8: 0x8C43;
- readonly COMPARE_REF_TO_TEXTURE: 0x884E;
- readonly RGBA32F: 0x8814;
- readonly RGB32F: 0x8815;
- readonly RGBA16F: 0x881A;
- readonly RGB16F: 0x881B;
- readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
- readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
- readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
- readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
- readonly MAX_VARYING_COMPONENTS: 0x8B4B;
- readonly TEXTURE_2D_ARRAY: 0x8C1A;
- readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
- readonly R11F_G11F_B10F: 0x8C3A;
- readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
- readonly RGB9_E5: 0x8C3D;
- readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
- readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
- readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
- readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
- readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
- readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
- readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
- readonly RASTERIZER_DISCARD: 0x8C89;
- readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
- readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
- readonly INTERLEAVED_ATTRIBS: 0x8C8C;
- readonly SEPARATE_ATTRIBS: 0x8C8D;
- readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
- readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
- readonly RGBA32UI: 0x8D70;
- readonly RGB32UI: 0x8D71;
- readonly RGBA16UI: 0x8D76;
- readonly RGB16UI: 0x8D77;
- readonly RGBA8UI: 0x8D7C;
- readonly RGB8UI: 0x8D7D;
- readonly RGBA32I: 0x8D82;
- readonly RGB32I: 0x8D83;
- readonly RGBA16I: 0x8D88;
- readonly RGB16I: 0x8D89;
- readonly RGBA8I: 0x8D8E;
- readonly RGB8I: 0x8D8F;
- readonly RED_INTEGER: 0x8D94;
- readonly RGB_INTEGER: 0x8D98;
- readonly RGBA_INTEGER: 0x8D99;
- readonly SAMPLER_2D_ARRAY: 0x8DC1;
- readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
- readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
- readonly UNSIGNED_INT_VEC2: 0x8DC6;
- readonly UNSIGNED_INT_VEC3: 0x8DC7;
- readonly UNSIGNED_INT_VEC4: 0x8DC8;
- readonly INT_SAMPLER_2D: 0x8DCA;
- readonly INT_SAMPLER_3D: 0x8DCB;
- readonly INT_SAMPLER_CUBE: 0x8DCC;
- readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
- readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
- readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
- readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
- readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
- readonly DEPTH_COMPONENT32F: 0x8CAC;
- readonly DEPTH32F_STENCIL8: 0x8CAD;
- readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
- readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
- readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
- readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
- readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
- readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
- readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
- readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
- readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
- readonly FRAMEBUFFER_DEFAULT: 0x8218;
- readonly UNSIGNED_INT_24_8: 0x84FA;
- readonly DEPTH24_STENCIL8: 0x88F0;
- readonly UNSIGNED_NORMALIZED: 0x8C17;
- readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
- readonly READ_FRAMEBUFFER: 0x8CA8;
- readonly DRAW_FRAMEBUFFER: 0x8CA9;
- readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
- readonly RENDERBUFFER_SAMPLES: 0x8CAB;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
- readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
- readonly COLOR_ATTACHMENT1: 0x8CE1;
- readonly COLOR_ATTACHMENT2: 0x8CE2;
- readonly COLOR_ATTACHMENT3: 0x8CE3;
- readonly COLOR_ATTACHMENT4: 0x8CE4;
- readonly COLOR_ATTACHMENT5: 0x8CE5;
- readonly COLOR_ATTACHMENT6: 0x8CE6;
- readonly COLOR_ATTACHMENT7: 0x8CE7;
- readonly COLOR_ATTACHMENT8: 0x8CE8;
- readonly COLOR_ATTACHMENT9: 0x8CE9;
- readonly COLOR_ATTACHMENT10: 0x8CEA;
- readonly COLOR_ATTACHMENT11: 0x8CEB;
- readonly COLOR_ATTACHMENT12: 0x8CEC;
- readonly COLOR_ATTACHMENT13: 0x8CED;
- readonly COLOR_ATTACHMENT14: 0x8CEE;
- readonly COLOR_ATTACHMENT15: 0x8CEF;
- readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
- readonly MAX_SAMPLES: 0x8D57;
- readonly HALF_FLOAT: 0x140B;
- readonly RG: 0x8227;
- readonly RG_INTEGER: 0x8228;
- readonly R8: 0x8229;
- readonly RG8: 0x822B;
- readonly R16F: 0x822D;
- readonly R32F: 0x822E;
- readonly RG16F: 0x822F;
- readonly RG32F: 0x8230;
- readonly R8I: 0x8231;
- readonly R8UI: 0x8232;
- readonly R16I: 0x8233;
- readonly R16UI: 0x8234;
- readonly R32I: 0x8235;
- readonly R32UI: 0x8236;
- readonly RG8I: 0x8237;
- readonly RG8UI: 0x8238;
- readonly RG16I: 0x8239;
- readonly RG16UI: 0x823A;
- readonly RG32I: 0x823B;
- readonly RG32UI: 0x823C;
- readonly VERTEX_ARRAY_BINDING: 0x85B5;
- readonly R8_SNORM: 0x8F94;
- readonly RG8_SNORM: 0x8F95;
- readonly RGB8_SNORM: 0x8F96;
- readonly RGBA8_SNORM: 0x8F97;
- readonly SIGNED_NORMALIZED: 0x8F9C;
- readonly COPY_READ_BUFFER: 0x8F36;
- readonly COPY_WRITE_BUFFER: 0x8F37;
- readonly COPY_READ_BUFFER_BINDING: 0x8F36;
- readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
- readonly UNIFORM_BUFFER: 0x8A11;
- readonly UNIFORM_BUFFER_BINDING: 0x8A28;
- readonly UNIFORM_BUFFER_START: 0x8A29;
- readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
- readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
- readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
- readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
- readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
- readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
- readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
- readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
- readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
- readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
- readonly UNIFORM_TYPE: 0x8A37;
- readonly UNIFORM_SIZE: 0x8A38;
- readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
- readonly UNIFORM_OFFSET: 0x8A3B;
- readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
- readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
- readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
- readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
- readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
- readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
- readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
- readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
- readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
- readonly INVALID_INDEX: 0xFFFFFFFF;
- readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
- readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
- readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
- readonly OBJECT_TYPE: 0x9112;
- readonly SYNC_CONDITION: 0x9113;
- readonly SYNC_STATUS: 0x9114;
- readonly SYNC_FLAGS: 0x9115;
- readonly SYNC_FENCE: 0x9116;
- readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
- readonly UNSIGNALED: 0x9118;
- readonly SIGNALED: 0x9119;
- readonly ALREADY_SIGNALED: 0x911A;
- readonly TIMEOUT_EXPIRED: 0x911B;
- readonly CONDITION_SATISFIED: 0x911C;
- readonly WAIT_FAILED: 0x911D;
- readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
- readonly ANY_SAMPLES_PASSED: 0x8C2F;
- readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
- readonly SAMPLER_BINDING: 0x8919;
- readonly RGB10_A2UI: 0x906F;
- readonly INT_2_10_10_10_REV: 0x8D9F;
- readonly TRANSFORM_FEEDBACK: 0x8E22;
- readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
- readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
- readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
- readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
- readonly MAX_ELEMENT_INDEX: 0x8D6B;
- readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
- readonly TIMEOUT_IGNORED: -1;
- readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
- }
- interface WebGL2RenderingContextOverloads {
- bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
- bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
- bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
- bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
- bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
- compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
- compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
- compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
- compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
- readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
- readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
- readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
- uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- }
- /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
- interface WebGLActiveInfo {
- readonly name: string;
- readonly size: GLint;
- readonly type: GLenum;
- }
- declare var WebGLActiveInfo: {
- prototype: WebGLActiveInfo;
- new(): WebGLActiveInfo;
- };
- /** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
- interface WebGLBuffer {
- }
- declare var WebGLBuffer: {
- prototype: WebGLBuffer;
- new(): WebGLBuffer;
- };
- /** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
- interface WebGLContextEvent extends Event {
- readonly statusMessage: string;
- }
- declare var WebGLContextEvent: {
- prototype: WebGLContextEvent;
- new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
- };
- /** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
- interface WebGLFramebuffer {
- }
- declare var WebGLFramebuffer: {
- prototype: WebGLFramebuffer;
- new(): WebGLFramebuffer;
- };
- /** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
- interface WebGLProgram {
- }
- declare var WebGLProgram: {
- prototype: WebGLProgram;
- new(): WebGLProgram;
- };
- interface WebGLQuery {
- }
- declare var WebGLQuery: {
- prototype: WebGLQuery;
- new(): WebGLQuery;
- };
- /** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
- interface WebGLRenderbuffer {
- }
- declare var WebGLRenderbuffer: {
- prototype: WebGLRenderbuffer;
- new(): WebGLRenderbuffer;
- };
- /** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
- interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
- }
- declare var WebGLRenderingContext: {
- prototype: WebGLRenderingContext;
- new(): WebGLRenderingContext;
- readonly DEPTH_BUFFER_BIT: 0x00000100;
- readonly STENCIL_BUFFER_BIT: 0x00000400;
- readonly COLOR_BUFFER_BIT: 0x00004000;
- readonly POINTS: 0x0000;
- readonly LINES: 0x0001;
- readonly LINE_LOOP: 0x0002;
- readonly LINE_STRIP: 0x0003;
- readonly TRIANGLES: 0x0004;
- readonly TRIANGLE_STRIP: 0x0005;
- readonly TRIANGLE_FAN: 0x0006;
- readonly ZERO: 0;
- readonly ONE: 1;
- readonly SRC_COLOR: 0x0300;
- readonly ONE_MINUS_SRC_COLOR: 0x0301;
- readonly SRC_ALPHA: 0x0302;
- readonly ONE_MINUS_SRC_ALPHA: 0x0303;
- readonly DST_ALPHA: 0x0304;
- readonly ONE_MINUS_DST_ALPHA: 0x0305;
- readonly DST_COLOR: 0x0306;
- readonly ONE_MINUS_DST_COLOR: 0x0307;
- readonly SRC_ALPHA_SATURATE: 0x0308;
- readonly FUNC_ADD: 0x8006;
- readonly BLEND_EQUATION: 0x8009;
- readonly BLEND_EQUATION_RGB: 0x8009;
- readonly BLEND_EQUATION_ALPHA: 0x883D;
- readonly FUNC_SUBTRACT: 0x800A;
- readonly FUNC_REVERSE_SUBTRACT: 0x800B;
- readonly BLEND_DST_RGB: 0x80C8;
- readonly BLEND_SRC_RGB: 0x80C9;
- readonly BLEND_DST_ALPHA: 0x80CA;
- readonly BLEND_SRC_ALPHA: 0x80CB;
- readonly CONSTANT_COLOR: 0x8001;
- readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
- readonly CONSTANT_ALPHA: 0x8003;
- readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
- readonly BLEND_COLOR: 0x8005;
- readonly ARRAY_BUFFER: 0x8892;
- readonly ELEMENT_ARRAY_BUFFER: 0x8893;
- readonly ARRAY_BUFFER_BINDING: 0x8894;
- readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
- readonly STREAM_DRAW: 0x88E0;
- readonly STATIC_DRAW: 0x88E4;
- readonly DYNAMIC_DRAW: 0x88E8;
- readonly BUFFER_SIZE: 0x8764;
- readonly BUFFER_USAGE: 0x8765;
- readonly CURRENT_VERTEX_ATTRIB: 0x8626;
- readonly FRONT: 0x0404;
- readonly BACK: 0x0405;
- readonly FRONT_AND_BACK: 0x0408;
- readonly CULL_FACE: 0x0B44;
- readonly BLEND: 0x0BE2;
- readonly DITHER: 0x0BD0;
- readonly STENCIL_TEST: 0x0B90;
- readonly DEPTH_TEST: 0x0B71;
- readonly SCISSOR_TEST: 0x0C11;
- readonly POLYGON_OFFSET_FILL: 0x8037;
- readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
- readonly SAMPLE_COVERAGE: 0x80A0;
- readonly NO_ERROR: 0;
- readonly INVALID_ENUM: 0x0500;
- readonly INVALID_VALUE: 0x0501;
- readonly INVALID_OPERATION: 0x0502;
- readonly OUT_OF_MEMORY: 0x0505;
- readonly CW: 0x0900;
- readonly CCW: 0x0901;
- readonly LINE_WIDTH: 0x0B21;
- readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
- readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
- readonly CULL_FACE_MODE: 0x0B45;
- readonly FRONT_FACE: 0x0B46;
- readonly DEPTH_RANGE: 0x0B70;
- readonly DEPTH_WRITEMASK: 0x0B72;
- readonly DEPTH_CLEAR_VALUE: 0x0B73;
- readonly DEPTH_FUNC: 0x0B74;
- readonly STENCIL_CLEAR_VALUE: 0x0B91;
- readonly STENCIL_FUNC: 0x0B92;
- readonly STENCIL_FAIL: 0x0B94;
- readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
- readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
- readonly STENCIL_REF: 0x0B97;
- readonly STENCIL_VALUE_MASK: 0x0B93;
- readonly STENCIL_WRITEMASK: 0x0B98;
- readonly STENCIL_BACK_FUNC: 0x8800;
- readonly STENCIL_BACK_FAIL: 0x8801;
- readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
- readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
- readonly STENCIL_BACK_REF: 0x8CA3;
- readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
- readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
- readonly VIEWPORT: 0x0BA2;
- readonly SCISSOR_BOX: 0x0C10;
- readonly COLOR_CLEAR_VALUE: 0x0C22;
- readonly COLOR_WRITEMASK: 0x0C23;
- readonly UNPACK_ALIGNMENT: 0x0CF5;
- readonly PACK_ALIGNMENT: 0x0D05;
- readonly MAX_TEXTURE_SIZE: 0x0D33;
- readonly MAX_VIEWPORT_DIMS: 0x0D3A;
- readonly SUBPIXEL_BITS: 0x0D50;
- readonly RED_BITS: 0x0D52;
- readonly GREEN_BITS: 0x0D53;
- readonly BLUE_BITS: 0x0D54;
- readonly ALPHA_BITS: 0x0D55;
- readonly DEPTH_BITS: 0x0D56;
- readonly STENCIL_BITS: 0x0D57;
- readonly POLYGON_OFFSET_UNITS: 0x2A00;
- readonly POLYGON_OFFSET_FACTOR: 0x8038;
- readonly TEXTURE_BINDING_2D: 0x8069;
- readonly SAMPLE_BUFFERS: 0x80A8;
- readonly SAMPLES: 0x80A9;
- readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
- readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
- readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
- readonly DONT_CARE: 0x1100;
- readonly FASTEST: 0x1101;
- readonly NICEST: 0x1102;
- readonly GENERATE_MIPMAP_HINT: 0x8192;
- readonly BYTE: 0x1400;
- readonly UNSIGNED_BYTE: 0x1401;
- readonly SHORT: 0x1402;
- readonly UNSIGNED_SHORT: 0x1403;
- readonly INT: 0x1404;
- readonly UNSIGNED_INT: 0x1405;
- readonly FLOAT: 0x1406;
- readonly DEPTH_COMPONENT: 0x1902;
- readonly ALPHA: 0x1906;
- readonly RGB: 0x1907;
- readonly RGBA: 0x1908;
- readonly LUMINANCE: 0x1909;
- readonly LUMINANCE_ALPHA: 0x190A;
- readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
- readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
- readonly UNSIGNED_SHORT_5_6_5: 0x8363;
- readonly FRAGMENT_SHADER: 0x8B30;
- readonly VERTEX_SHADER: 0x8B31;
- readonly MAX_VERTEX_ATTRIBS: 0x8869;
- readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
- readonly MAX_VARYING_VECTORS: 0x8DFC;
- readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
- readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
- readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
- readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
- readonly SHADER_TYPE: 0x8B4F;
- readonly DELETE_STATUS: 0x8B80;
- readonly LINK_STATUS: 0x8B82;
- readonly VALIDATE_STATUS: 0x8B83;
- readonly ATTACHED_SHADERS: 0x8B85;
- readonly ACTIVE_UNIFORMS: 0x8B86;
- readonly ACTIVE_ATTRIBUTES: 0x8B89;
- readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
- readonly CURRENT_PROGRAM: 0x8B8D;
- readonly NEVER: 0x0200;
- readonly LESS: 0x0201;
- readonly EQUAL: 0x0202;
- readonly LEQUAL: 0x0203;
- readonly GREATER: 0x0204;
- readonly NOTEQUAL: 0x0205;
- readonly GEQUAL: 0x0206;
- readonly ALWAYS: 0x0207;
- readonly KEEP: 0x1E00;
- readonly REPLACE: 0x1E01;
- readonly INCR: 0x1E02;
- readonly DECR: 0x1E03;
- readonly INVERT: 0x150A;
- readonly INCR_WRAP: 0x8507;
- readonly DECR_WRAP: 0x8508;
- readonly VENDOR: 0x1F00;
- readonly RENDERER: 0x1F01;
- readonly VERSION: 0x1F02;
- readonly NEAREST: 0x2600;
- readonly LINEAR: 0x2601;
- readonly NEAREST_MIPMAP_NEAREST: 0x2700;
- readonly LINEAR_MIPMAP_NEAREST: 0x2701;
- readonly NEAREST_MIPMAP_LINEAR: 0x2702;
- readonly LINEAR_MIPMAP_LINEAR: 0x2703;
- readonly TEXTURE_MAG_FILTER: 0x2800;
- readonly TEXTURE_MIN_FILTER: 0x2801;
- readonly TEXTURE_WRAP_S: 0x2802;
- readonly TEXTURE_WRAP_T: 0x2803;
- readonly TEXTURE_2D: 0x0DE1;
- readonly TEXTURE: 0x1702;
- readonly TEXTURE_CUBE_MAP: 0x8513;
- readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
- readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
- readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
- readonly TEXTURE0: 0x84C0;
- readonly TEXTURE1: 0x84C1;
- readonly TEXTURE2: 0x84C2;
- readonly TEXTURE3: 0x84C3;
- readonly TEXTURE4: 0x84C4;
- readonly TEXTURE5: 0x84C5;
- readonly TEXTURE6: 0x84C6;
- readonly TEXTURE7: 0x84C7;
- readonly TEXTURE8: 0x84C8;
- readonly TEXTURE9: 0x84C9;
- readonly TEXTURE10: 0x84CA;
- readonly TEXTURE11: 0x84CB;
- readonly TEXTURE12: 0x84CC;
- readonly TEXTURE13: 0x84CD;
- readonly TEXTURE14: 0x84CE;
- readonly TEXTURE15: 0x84CF;
- readonly TEXTURE16: 0x84D0;
- readonly TEXTURE17: 0x84D1;
- readonly TEXTURE18: 0x84D2;
- readonly TEXTURE19: 0x84D3;
- readonly TEXTURE20: 0x84D4;
- readonly TEXTURE21: 0x84D5;
- readonly TEXTURE22: 0x84D6;
- readonly TEXTURE23: 0x84D7;
- readonly TEXTURE24: 0x84D8;
- readonly TEXTURE25: 0x84D9;
- readonly TEXTURE26: 0x84DA;
- readonly TEXTURE27: 0x84DB;
- readonly TEXTURE28: 0x84DC;
- readonly TEXTURE29: 0x84DD;
- readonly TEXTURE30: 0x84DE;
- readonly TEXTURE31: 0x84DF;
- readonly ACTIVE_TEXTURE: 0x84E0;
- readonly REPEAT: 0x2901;
- readonly CLAMP_TO_EDGE: 0x812F;
- readonly MIRRORED_REPEAT: 0x8370;
- readonly FLOAT_VEC2: 0x8B50;
- readonly FLOAT_VEC3: 0x8B51;
- readonly FLOAT_VEC4: 0x8B52;
- readonly INT_VEC2: 0x8B53;
- readonly INT_VEC3: 0x8B54;
- readonly INT_VEC4: 0x8B55;
- readonly BOOL: 0x8B56;
- readonly BOOL_VEC2: 0x8B57;
- readonly BOOL_VEC3: 0x8B58;
- readonly BOOL_VEC4: 0x8B59;
- readonly FLOAT_MAT2: 0x8B5A;
- readonly FLOAT_MAT3: 0x8B5B;
- readonly FLOAT_MAT4: 0x8B5C;
- readonly SAMPLER_2D: 0x8B5E;
- readonly SAMPLER_CUBE: 0x8B60;
- readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
- readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
- readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
- readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
- readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
- readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
- readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
- readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
- readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
- readonly COMPILE_STATUS: 0x8B81;
- readonly LOW_FLOAT: 0x8DF0;
- readonly MEDIUM_FLOAT: 0x8DF1;
- readonly HIGH_FLOAT: 0x8DF2;
- readonly LOW_INT: 0x8DF3;
- readonly MEDIUM_INT: 0x8DF4;
- readonly HIGH_INT: 0x8DF5;
- readonly FRAMEBUFFER: 0x8D40;
- readonly RENDERBUFFER: 0x8D41;
- readonly RGBA4: 0x8056;
- readonly RGB5_A1: 0x8057;
- readonly RGB565: 0x8D62;
- readonly DEPTH_COMPONENT16: 0x81A5;
- readonly STENCIL_INDEX8: 0x8D48;
- readonly DEPTH_STENCIL: 0x84F9;
- readonly RENDERBUFFER_WIDTH: 0x8D42;
- readonly RENDERBUFFER_HEIGHT: 0x8D43;
- readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
- readonly RENDERBUFFER_RED_SIZE: 0x8D50;
- readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
- readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
- readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
- readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
- readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
- readonly COLOR_ATTACHMENT0: 0x8CE0;
- readonly DEPTH_ATTACHMENT: 0x8D00;
- readonly STENCIL_ATTACHMENT: 0x8D20;
- readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
- readonly NONE: 0;
- readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
- readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
- readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
- readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
- readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
- readonly FRAMEBUFFER_BINDING: 0x8CA6;
- readonly RENDERBUFFER_BINDING: 0x8CA7;
- readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
- readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
- readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
- readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
- readonly CONTEXT_LOST_WEBGL: 0x9242;
- readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
- readonly BROWSER_DEFAULT_WEBGL: 0x9244;
- };
- interface WebGLRenderingContextBase {
- readonly canvas: HTMLCanvasElement | OffscreenCanvas;
- readonly drawingBufferHeight: GLsizei;
- readonly drawingBufferWidth: GLsizei;
- activeTexture(texture: GLenum): void;
- attachShader(program: WebGLProgram, shader: WebGLShader): void;
- bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
- bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
- bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
- bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
- bindTexture(target: GLenum, texture: WebGLTexture | null): void;
- blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
- blendEquation(mode: GLenum): void;
- blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
- blendFunc(sfactor: GLenum, dfactor: GLenum): void;
- blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
- checkFramebufferStatus(target: GLenum): GLenum;
- clear(mask: GLbitfield): void;
- clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
- clearDepth(depth: GLclampf): void;
- clearStencil(s: GLint): void;
- colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
- compileShader(shader: WebGLShader): void;
- copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
- copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
- createBuffer(): WebGLBuffer | null;
- createFramebuffer(): WebGLFramebuffer | null;
- createProgram(): WebGLProgram | null;
- createRenderbuffer(): WebGLRenderbuffer | null;
- createShader(type: GLenum): WebGLShader | null;
- createTexture(): WebGLTexture | null;
- cullFace(mode: GLenum): void;
- deleteBuffer(buffer: WebGLBuffer | null): void;
- deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
- deleteProgram(program: WebGLProgram | null): void;
- deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
- deleteShader(shader: WebGLShader | null): void;
- deleteTexture(texture: WebGLTexture | null): void;
- depthFunc(func: GLenum): void;
- depthMask(flag: GLboolean): void;
- depthRange(zNear: GLclampf, zFar: GLclampf): void;
- detachShader(program: WebGLProgram, shader: WebGLShader): void;
- disable(cap: GLenum): void;
- disableVertexAttribArray(index: GLuint): void;
- drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
- drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
- enable(cap: GLenum): void;
- enableVertexAttribArray(index: GLuint): void;
- finish(): void;
- flush(): void;
- framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
- framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
- frontFace(mode: GLenum): void;
- generateMipmap(target: GLenum): void;
- getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
- getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
- getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
- getAttribLocation(program: WebGLProgram, name: string): GLint;
- getBufferParameter(target: GLenum, pname: GLenum): any;
- getContextAttributes(): WebGLContextAttributes | null;
- getError(): GLenum;
- getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
- getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
- getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
- getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
- getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
- getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
- getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
- getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
- getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
- getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
- getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
- getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
- getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
- getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
- getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
- getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
- getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
- getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
- getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
- getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
- getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
- getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
- getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
- getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
- getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
- getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
- getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
- getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
- getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
- getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
- getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
- getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
- getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
- getExtension(name: string): any;
- getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
- getParameter(pname: GLenum): any;
- getProgramInfoLog(program: WebGLProgram): string | null;
- getProgramParameter(program: WebGLProgram, pname: GLenum): any;
- getRenderbufferParameter(target: GLenum, pname: GLenum): any;
- getShaderInfoLog(shader: WebGLShader): string | null;
- getShaderParameter(shader: WebGLShader, pname: GLenum): any;
- getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
- getShaderSource(shader: WebGLShader): string | null;
- getSupportedExtensions(): string[] | null;
- getTexParameter(target: GLenum, pname: GLenum): any;
- getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
- getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
- getVertexAttrib(index: GLuint, pname: GLenum): any;
- getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
- hint(target: GLenum, mode: GLenum): void;
- isBuffer(buffer: WebGLBuffer | null): GLboolean;
- isContextLost(): boolean;
- isEnabled(cap: GLenum): GLboolean;
- isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
- isProgram(program: WebGLProgram | null): GLboolean;
- isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
- isShader(shader: WebGLShader | null): GLboolean;
- isTexture(texture: WebGLTexture | null): GLboolean;
- lineWidth(width: GLfloat): void;
- linkProgram(program: WebGLProgram): void;
- pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
- polygonOffset(factor: GLfloat, units: GLfloat): void;
- renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
- sampleCoverage(value: GLclampf, invert: GLboolean): void;
- scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
- shaderSource(shader: WebGLShader, source: string): void;
- stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
- stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
- stencilMask(mask: GLuint): void;
- stencilMaskSeparate(face: GLenum, mask: GLuint): void;
- stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
- stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
- texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
- texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
- uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
- uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
- uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
- uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
- uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
- uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
- uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
- uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
- useProgram(program: WebGLProgram | null): void;
- validateProgram(program: WebGLProgram): void;
- vertexAttrib1f(index: GLuint, x: GLfloat): void;
- vertexAttrib1fv(index: GLuint, values: Float32List): void;
- vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
- vertexAttrib2fv(index: GLuint, values: Float32List): void;
- vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
- vertexAttrib3fv(index: GLuint, values: Float32List): void;
- vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
- vertexAttrib4fv(index: GLuint, values: Float32List): void;
- vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
- viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
- readonly DEPTH_BUFFER_BIT: 0x00000100;
- readonly STENCIL_BUFFER_BIT: 0x00000400;
- readonly COLOR_BUFFER_BIT: 0x00004000;
- readonly POINTS: 0x0000;
- readonly LINES: 0x0001;
- readonly LINE_LOOP: 0x0002;
- readonly LINE_STRIP: 0x0003;
- readonly TRIANGLES: 0x0004;
- readonly TRIANGLE_STRIP: 0x0005;
- readonly TRIANGLE_FAN: 0x0006;
- readonly ZERO: 0;
- readonly ONE: 1;
- readonly SRC_COLOR: 0x0300;
- readonly ONE_MINUS_SRC_COLOR: 0x0301;
- readonly SRC_ALPHA: 0x0302;
- readonly ONE_MINUS_SRC_ALPHA: 0x0303;
- readonly DST_ALPHA: 0x0304;
- readonly ONE_MINUS_DST_ALPHA: 0x0305;
- readonly DST_COLOR: 0x0306;
- readonly ONE_MINUS_DST_COLOR: 0x0307;
- readonly SRC_ALPHA_SATURATE: 0x0308;
- readonly FUNC_ADD: 0x8006;
- readonly BLEND_EQUATION: 0x8009;
- readonly BLEND_EQUATION_RGB: 0x8009;
- readonly BLEND_EQUATION_ALPHA: 0x883D;
- readonly FUNC_SUBTRACT: 0x800A;
- readonly FUNC_REVERSE_SUBTRACT: 0x800B;
- readonly BLEND_DST_RGB: 0x80C8;
- readonly BLEND_SRC_RGB: 0x80C9;
- readonly BLEND_DST_ALPHA: 0x80CA;
- readonly BLEND_SRC_ALPHA: 0x80CB;
- readonly CONSTANT_COLOR: 0x8001;
- readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
- readonly CONSTANT_ALPHA: 0x8003;
- readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
- readonly BLEND_COLOR: 0x8005;
- readonly ARRAY_BUFFER: 0x8892;
- readonly ELEMENT_ARRAY_BUFFER: 0x8893;
- readonly ARRAY_BUFFER_BINDING: 0x8894;
- readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
- readonly STREAM_DRAW: 0x88E0;
- readonly STATIC_DRAW: 0x88E4;
- readonly DYNAMIC_DRAW: 0x88E8;
- readonly BUFFER_SIZE: 0x8764;
- readonly BUFFER_USAGE: 0x8765;
- readonly CURRENT_VERTEX_ATTRIB: 0x8626;
- readonly FRONT: 0x0404;
- readonly BACK: 0x0405;
- readonly FRONT_AND_BACK: 0x0408;
- readonly CULL_FACE: 0x0B44;
- readonly BLEND: 0x0BE2;
- readonly DITHER: 0x0BD0;
- readonly STENCIL_TEST: 0x0B90;
- readonly DEPTH_TEST: 0x0B71;
- readonly SCISSOR_TEST: 0x0C11;
- readonly POLYGON_OFFSET_FILL: 0x8037;
- readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
- readonly SAMPLE_COVERAGE: 0x80A0;
- readonly NO_ERROR: 0;
- readonly INVALID_ENUM: 0x0500;
- readonly INVALID_VALUE: 0x0501;
- readonly INVALID_OPERATION: 0x0502;
- readonly OUT_OF_MEMORY: 0x0505;
- readonly CW: 0x0900;
- readonly CCW: 0x0901;
- readonly LINE_WIDTH: 0x0B21;
- readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
- readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
- readonly CULL_FACE_MODE: 0x0B45;
- readonly FRONT_FACE: 0x0B46;
- readonly DEPTH_RANGE: 0x0B70;
- readonly DEPTH_WRITEMASK: 0x0B72;
- readonly DEPTH_CLEAR_VALUE: 0x0B73;
- readonly DEPTH_FUNC: 0x0B74;
- readonly STENCIL_CLEAR_VALUE: 0x0B91;
- readonly STENCIL_FUNC: 0x0B92;
- readonly STENCIL_FAIL: 0x0B94;
- readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
- readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
- readonly STENCIL_REF: 0x0B97;
- readonly STENCIL_VALUE_MASK: 0x0B93;
- readonly STENCIL_WRITEMASK: 0x0B98;
- readonly STENCIL_BACK_FUNC: 0x8800;
- readonly STENCIL_BACK_FAIL: 0x8801;
- readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
- readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
- readonly STENCIL_BACK_REF: 0x8CA3;
- readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
- readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
- readonly VIEWPORT: 0x0BA2;
- readonly SCISSOR_BOX: 0x0C10;
- readonly COLOR_CLEAR_VALUE: 0x0C22;
- readonly COLOR_WRITEMASK: 0x0C23;
- readonly UNPACK_ALIGNMENT: 0x0CF5;
- readonly PACK_ALIGNMENT: 0x0D05;
- readonly MAX_TEXTURE_SIZE: 0x0D33;
- readonly MAX_VIEWPORT_DIMS: 0x0D3A;
- readonly SUBPIXEL_BITS: 0x0D50;
- readonly RED_BITS: 0x0D52;
- readonly GREEN_BITS: 0x0D53;
- readonly BLUE_BITS: 0x0D54;
- readonly ALPHA_BITS: 0x0D55;
- readonly DEPTH_BITS: 0x0D56;
- readonly STENCIL_BITS: 0x0D57;
- readonly POLYGON_OFFSET_UNITS: 0x2A00;
- readonly POLYGON_OFFSET_FACTOR: 0x8038;
- readonly TEXTURE_BINDING_2D: 0x8069;
- readonly SAMPLE_BUFFERS: 0x80A8;
- readonly SAMPLES: 0x80A9;
- readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
- readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
- readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
- readonly DONT_CARE: 0x1100;
- readonly FASTEST: 0x1101;
- readonly NICEST: 0x1102;
- readonly GENERATE_MIPMAP_HINT: 0x8192;
- readonly BYTE: 0x1400;
- readonly UNSIGNED_BYTE: 0x1401;
- readonly SHORT: 0x1402;
- readonly UNSIGNED_SHORT: 0x1403;
- readonly INT: 0x1404;
- readonly UNSIGNED_INT: 0x1405;
- readonly FLOAT: 0x1406;
- readonly DEPTH_COMPONENT: 0x1902;
- readonly ALPHA: 0x1906;
- readonly RGB: 0x1907;
- readonly RGBA: 0x1908;
- readonly LUMINANCE: 0x1909;
- readonly LUMINANCE_ALPHA: 0x190A;
- readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
- readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
- readonly UNSIGNED_SHORT_5_6_5: 0x8363;
- readonly FRAGMENT_SHADER: 0x8B30;
- readonly VERTEX_SHADER: 0x8B31;
- readonly MAX_VERTEX_ATTRIBS: 0x8869;
- readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
- readonly MAX_VARYING_VECTORS: 0x8DFC;
- readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
- readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
- readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
- readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
- readonly SHADER_TYPE: 0x8B4F;
- readonly DELETE_STATUS: 0x8B80;
- readonly LINK_STATUS: 0x8B82;
- readonly VALIDATE_STATUS: 0x8B83;
- readonly ATTACHED_SHADERS: 0x8B85;
- readonly ACTIVE_UNIFORMS: 0x8B86;
- readonly ACTIVE_ATTRIBUTES: 0x8B89;
- readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
- readonly CURRENT_PROGRAM: 0x8B8D;
- readonly NEVER: 0x0200;
- readonly LESS: 0x0201;
- readonly EQUAL: 0x0202;
- readonly LEQUAL: 0x0203;
- readonly GREATER: 0x0204;
- readonly NOTEQUAL: 0x0205;
- readonly GEQUAL: 0x0206;
- readonly ALWAYS: 0x0207;
- readonly KEEP: 0x1E00;
- readonly REPLACE: 0x1E01;
- readonly INCR: 0x1E02;
- readonly DECR: 0x1E03;
- readonly INVERT: 0x150A;
- readonly INCR_WRAP: 0x8507;
- readonly DECR_WRAP: 0x8508;
- readonly VENDOR: 0x1F00;
- readonly RENDERER: 0x1F01;
- readonly VERSION: 0x1F02;
- readonly NEAREST: 0x2600;
- readonly LINEAR: 0x2601;
- readonly NEAREST_MIPMAP_NEAREST: 0x2700;
- readonly LINEAR_MIPMAP_NEAREST: 0x2701;
- readonly NEAREST_MIPMAP_LINEAR: 0x2702;
- readonly LINEAR_MIPMAP_LINEAR: 0x2703;
- readonly TEXTURE_MAG_FILTER: 0x2800;
- readonly TEXTURE_MIN_FILTER: 0x2801;
- readonly TEXTURE_WRAP_S: 0x2802;
- readonly TEXTURE_WRAP_T: 0x2803;
- readonly TEXTURE_2D: 0x0DE1;
- readonly TEXTURE: 0x1702;
- readonly TEXTURE_CUBE_MAP: 0x8513;
- readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
- readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
- readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
- readonly TEXTURE0: 0x84C0;
- readonly TEXTURE1: 0x84C1;
- readonly TEXTURE2: 0x84C2;
- readonly TEXTURE3: 0x84C3;
- readonly TEXTURE4: 0x84C4;
- readonly TEXTURE5: 0x84C5;
- readonly TEXTURE6: 0x84C6;
- readonly TEXTURE7: 0x84C7;
- readonly TEXTURE8: 0x84C8;
- readonly TEXTURE9: 0x84C9;
- readonly TEXTURE10: 0x84CA;
- readonly TEXTURE11: 0x84CB;
- readonly TEXTURE12: 0x84CC;
- readonly TEXTURE13: 0x84CD;
- readonly TEXTURE14: 0x84CE;
- readonly TEXTURE15: 0x84CF;
- readonly TEXTURE16: 0x84D0;
- readonly TEXTURE17: 0x84D1;
- readonly TEXTURE18: 0x84D2;
- readonly TEXTURE19: 0x84D3;
- readonly TEXTURE20: 0x84D4;
- readonly TEXTURE21: 0x84D5;
- readonly TEXTURE22: 0x84D6;
- readonly TEXTURE23: 0x84D7;
- readonly TEXTURE24: 0x84D8;
- readonly TEXTURE25: 0x84D9;
- readonly TEXTURE26: 0x84DA;
- readonly TEXTURE27: 0x84DB;
- readonly TEXTURE28: 0x84DC;
- readonly TEXTURE29: 0x84DD;
- readonly TEXTURE30: 0x84DE;
- readonly TEXTURE31: 0x84DF;
- readonly ACTIVE_TEXTURE: 0x84E0;
- readonly REPEAT: 0x2901;
- readonly CLAMP_TO_EDGE: 0x812F;
- readonly MIRRORED_REPEAT: 0x8370;
- readonly FLOAT_VEC2: 0x8B50;
- readonly FLOAT_VEC3: 0x8B51;
- readonly FLOAT_VEC4: 0x8B52;
- readonly INT_VEC2: 0x8B53;
- readonly INT_VEC3: 0x8B54;
- readonly INT_VEC4: 0x8B55;
- readonly BOOL: 0x8B56;
- readonly BOOL_VEC2: 0x8B57;
- readonly BOOL_VEC3: 0x8B58;
- readonly BOOL_VEC4: 0x8B59;
- readonly FLOAT_MAT2: 0x8B5A;
- readonly FLOAT_MAT3: 0x8B5B;
- readonly FLOAT_MAT4: 0x8B5C;
- readonly SAMPLER_2D: 0x8B5E;
- readonly SAMPLER_CUBE: 0x8B60;
- readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
- readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
- readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
- readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
- readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
- readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
- readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
- readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
- readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
- readonly COMPILE_STATUS: 0x8B81;
- readonly LOW_FLOAT: 0x8DF0;
- readonly MEDIUM_FLOAT: 0x8DF1;
- readonly HIGH_FLOAT: 0x8DF2;
- readonly LOW_INT: 0x8DF3;
- readonly MEDIUM_INT: 0x8DF4;
- readonly HIGH_INT: 0x8DF5;
- readonly FRAMEBUFFER: 0x8D40;
- readonly RENDERBUFFER: 0x8D41;
- readonly RGBA4: 0x8056;
- readonly RGB5_A1: 0x8057;
- readonly RGB565: 0x8D62;
- readonly DEPTH_COMPONENT16: 0x81A5;
- readonly STENCIL_INDEX8: 0x8D48;
- readonly DEPTH_STENCIL: 0x84F9;
- readonly RENDERBUFFER_WIDTH: 0x8D42;
- readonly RENDERBUFFER_HEIGHT: 0x8D43;
- readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
- readonly RENDERBUFFER_RED_SIZE: 0x8D50;
- readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
- readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
- readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
- readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
- readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
- readonly COLOR_ATTACHMENT0: 0x8CE0;
- readonly DEPTH_ATTACHMENT: 0x8D00;
- readonly STENCIL_ATTACHMENT: 0x8D20;
- readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
- readonly NONE: 0;
- readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
- readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
- readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
- readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
- readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
- readonly FRAMEBUFFER_BINDING: 0x8CA6;
- readonly RENDERBUFFER_BINDING: 0x8CA7;
- readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
- readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
- readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
- readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
- readonly CONTEXT_LOST_WEBGL: 0x9242;
- readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
- readonly BROWSER_DEFAULT_WEBGL: 0x9244;
- }
- interface WebGLRenderingContextOverloads {
- bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
- bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
- bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
- compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
- compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
- readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
- uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
- uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
- uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
- uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
- uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
- uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
- uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
- uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
- }
- interface WebGLSampler {
- }
- declare var WebGLSampler: {
- prototype: WebGLSampler;
- new(): WebGLSampler;
- };
- /** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
- interface WebGLShader {
- }
- declare var WebGLShader: {
- prototype: WebGLShader;
- new(): WebGLShader;
- };
- /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
- interface WebGLShaderPrecisionFormat {
- readonly precision: GLint;
- readonly rangeMax: GLint;
- readonly rangeMin: GLint;
- }
- declare var WebGLShaderPrecisionFormat: {
- prototype: WebGLShaderPrecisionFormat;
- new(): WebGLShaderPrecisionFormat;
- };
- interface WebGLSync {
- }
- declare var WebGLSync: {
- prototype: WebGLSync;
- new(): WebGLSync;
- };
- /** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
- interface WebGLTexture {
- }
- declare var WebGLTexture: {
- prototype: WebGLTexture;
- new(): WebGLTexture;
- };
- interface WebGLTransformFeedback {
- }
- declare var WebGLTransformFeedback: {
- prototype: WebGLTransformFeedback;
- new(): WebGLTransformFeedback;
- };
- /** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
- interface WebGLUniformLocation {
- }
- declare var WebGLUniformLocation: {
- prototype: WebGLUniformLocation;
- new(): WebGLUniformLocation;
- };
- interface WebGLVertexArrayObject {
- }
- declare var WebGLVertexArrayObject: {
- prototype: WebGLVertexArrayObject;
- new(): WebGLVertexArrayObject;
- };
- interface WebGLVertexArrayObjectOES {
- }
- interface WebSocketEventMap {
- "close": CloseEvent;
- "error": Event;
- "message": MessageEvent;
- "open": Event;
- }
- /** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
- interface WebSocket extends EventTarget {
- /**
- * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
- *
- * Can be set, to change how binary data is returned. The default is "blob".
- */
- binaryType: BinaryType;
- /**
- * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
- *
- * If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
- */
- readonly bufferedAmount: number;
- /** Returns the extensions selected by the server, if any. */
- readonly extensions: string;
- onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
- onerror: ((this: WebSocket, ev: Event) => any) | null;
- onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
- onopen: ((this: WebSocket, ev: Event) => any) | null;
- /** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */
- readonly protocol: string;
- /** Returns the state of the WebSocket object's connection. It can have the values described below. */
- readonly readyState: number;
- /** Returns the URL that was used to establish the WebSocket connection. */
- readonly url: string;
- /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
- close(code?: number, reason?: string): void;
- /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
- send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
- readonly CONNECTING: 0;
- readonly OPEN: 1;
- readonly CLOSING: 2;
- readonly CLOSED: 3;
- addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var WebSocket: {
- prototype: WebSocket;
- new(url: string | URL, protocols?: string | string[]): WebSocket;
- readonly CONNECTING: 0;
- readonly OPEN: 1;
- readonly CLOSING: 2;
- readonly CLOSED: 3;
- };
- /** Events that occur due to the user moving a mouse wheel or similar input device. */
- interface WheelEvent extends MouseEvent {
- readonly deltaMode: number;
- readonly deltaX: number;
- readonly deltaY: number;
- readonly deltaZ: number;
- readonly DOM_DELTA_PIXEL: 0x00;
- readonly DOM_DELTA_LINE: 0x01;
- readonly DOM_DELTA_PAGE: 0x02;
- }
- declare var WheelEvent: {
- prototype: WheelEvent;
- new(type: string, eventInitDict?: WheelEventInit): WheelEvent;
- readonly DOM_DELTA_PIXEL: 0x00;
- readonly DOM_DELTA_LINE: 0x01;
- readonly DOM_DELTA_PAGE: 0x02;
- };
- interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
- "DOMContentLoaded": Event;
- "devicemotion": DeviceMotionEvent;
- "deviceorientation": DeviceOrientationEvent;
- "gamepadconnected": GamepadEvent;
- "gamepaddisconnected": GamepadEvent;
- "orientationchange": Event;
- }
- /** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
- interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
- /** @deprecated This is a legacy alias of \`navigator\`. */
- readonly clientInformation: Navigator;
- /** Returns true if the window has been closed, false otherwise. */
- readonly closed: boolean;
- /** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */
- readonly customElements: CustomElementRegistry;
- readonly devicePixelRatio: number;
- readonly document: Document;
- /** @deprecated */
- readonly event: Event | undefined;
- /** @deprecated */
- readonly external: External;
- readonly frameElement: Element | null;
- readonly frames: WindowProxy;
- readonly history: History;
- readonly innerHeight: number;
- readonly innerWidth: number;
- readonly length: number;
- get location(): Location;
- set location(href: string | Location);
- /** Returns true if the location bar is visible; otherwise, returns false. */
- readonly locationbar: BarProp;
- /** Returns true if the menu bar is visible; otherwise, returns false. */
- readonly menubar: BarProp;
- name: string;
- readonly navigator: Navigator;
- /** Available only in secure contexts. */
- ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
- /** Available only in secure contexts. */
- ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
- /** @deprecated */
- onorientationchange: ((this: Window, ev: Event) => any) | null;
- opener: any;
- /** @deprecated */
- readonly orientation: number;
- readonly outerHeight: number;
- readonly outerWidth: number;
- /** @deprecated This is a legacy alias of \`scrollX\`. */
- readonly pageXOffset: number;
- /** @deprecated This is a legacy alias of \`scrollY\`. */
- readonly pageYOffset: number;
- /**
- * Refers to either the parent WindowProxy, or itself.
- *
- * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
- */
- readonly parent: WindowProxy;
- /** Returns true if the personal bar is visible; otherwise, returns false. */
- readonly personalbar: BarProp;
- readonly screen: Screen;
- readonly screenLeft: number;
- readonly screenTop: number;
- readonly screenX: number;
- readonly screenY: number;
- readonly scrollX: number;
- readonly scrollY: number;
- /** Returns true if the scrollbars are visible; otherwise, returns false. */
- readonly scrollbars: BarProp;
- readonly self: Window & typeof globalThis;
- readonly speechSynthesis: SpeechSynthesis;
- /** @deprecated */
- status: string;
- /** Returns true if the status bar is visible; otherwise, returns false. */
- readonly statusbar: BarProp;
- /** Returns true if the toolbar is visible; otherwise, returns false. */
- readonly toolbar: BarProp;
- readonly top: WindowProxy | null;
- readonly visualViewport: VisualViewport | null;
- readonly window: Window & typeof globalThis;
- alert(message?: any): void;
- blur(): void;
- cancelIdleCallback(handle: number): void;
- /** @deprecated */
- captureEvents(): void;
- /** Closes the window. */
- close(): void;
- confirm(message?: string): boolean;
- /** Moves the focus to the window's browsing context, if any. */
- focus(): void;
- getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
- getSelection(): Selection | null;
- matchMedia(query: string): MediaQueryList;
- moveBy(x: number, y: number): void;
- moveTo(x: number, y: number): void;
- open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
- /**
- * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
- *
- * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
- *
- * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
- *
- * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
- *
- * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
- */
- postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
- postMessage(message: any, options?: WindowPostMessageOptions): void;
- print(): void;
- prompt(message?: string, _default?: string): string | null;
- /** @deprecated */
- releaseEvents(): void;
- requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
- resizeBy(x: number, y: number): void;
- resizeTo(width: number, height: number): void;
- scroll(options?: ScrollToOptions): void;
- scroll(x: number, y: number): void;
- scrollBy(options?: ScrollToOptions): void;
- scrollBy(x: number, y: number): void;
- scrollTo(options?: ScrollToOptions): void;
- scrollTo(x: number, y: number): void;
- /** Cancels the document load. */
- stop(): void;
- addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- [index: number]: Window;
- }
- declare var Window: {
- prototype: Window;
- new(): Window;
- };
- interface WindowEventHandlersEventMap {
- "afterprint": Event;
- "beforeprint": Event;
- "beforeunload": BeforeUnloadEvent;
- "gamepadconnected": GamepadEvent;
- "gamepaddisconnected": GamepadEvent;
- "hashchange": HashChangeEvent;
- "languagechange": Event;
- "message": MessageEvent;
- "messageerror": MessageEvent;
- "offline": Event;
- "online": Event;
- "pagehide": PageTransitionEvent;
- "pageshow": PageTransitionEvent;
- "popstate": PopStateEvent;
- "rejectionhandled": PromiseRejectionEvent;
- "storage": StorageEvent;
- "unhandledrejection": PromiseRejectionEvent;
- "unload": Event;
- }
- interface WindowEventHandlers {
- onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
- onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
- onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
- ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
- ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
- onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
- onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
- onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
- onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
- onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
- ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
- onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
- onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
- onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
- onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
- onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
- onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
- onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
- addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- interface WindowLocalStorage {
- readonly localStorage: Storage;
- }
- interface WindowOrWorkerGlobalScope {
- /** Available only in secure contexts. */
- readonly caches: CacheStorage;
- readonly crossOriginIsolated: boolean;
- readonly crypto: Crypto;
- readonly indexedDB: IDBFactory;
- readonly isSecureContext: boolean;
- readonly origin: string;
- readonly performance: Performance;
- atob(data: string): string;
- btoa(data: string): string;
- clearInterval(id: number | undefined): void;
- clearTimeout(id: number | undefined): void;
- createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
- createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
- fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
- queueMicrotask(callback: VoidFunction): void;
- reportError(e: any): void;
- setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
- setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
- structuredClone(value: any, options?: StructuredSerializeOptions): any;
- }
- interface WindowSessionStorage {
- readonly sessionStorage: Storage;
- }
- interface WorkerEventMap extends AbstractWorkerEventMap {
- "message": MessageEvent;
- "messageerror": MessageEvent;
- }
- /** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
- interface Worker extends EventTarget, AbstractWorker {
- onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
- onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
- /** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
- postMessage(message: any, transfer: Transferable[]): void;
- postMessage(message: any, options?: StructuredSerializeOptions): void;
- /** Aborts worker's associated global environment. */
- terminate(): void;
- addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var Worker: {
- prototype: Worker;
- new(scriptURL: string | URL, options?: WorkerOptions): Worker;
- };
- /** Available only in secure contexts. */
- interface Worklet {
- /**
- * Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.
- *
- * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".
- *
- * Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.
- */
- addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
- }
- declare var Worklet: {
- prototype: Worklet;
- new(): Worklet;
- };
- /** This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
- interface WritableStream<W = any> {
- readonly locked: boolean;
- abort(reason?: any): Promise<void>;
- close(): Promise<void>;
- getWriter(): WritableStreamDefaultWriter<W>;
- }
- declare var WritableStream: {
- prototype: WritableStream;
- new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
- };
- /** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
- interface WritableStreamDefaultController {
- readonly signal: AbortSignal;
- error(e?: any): void;
- }
- declare var WritableStreamDefaultController: {
- prototype: WritableStreamDefaultController;
- new(): WritableStreamDefaultController;
- };
- /** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
- interface WritableStreamDefaultWriter<W = any> {
- readonly closed: Promise<undefined>;
- readonly desiredSize: number | null;
- readonly ready: Promise<undefined>;
- abort(reason?: any): Promise<void>;
- close(): Promise<void>;
- releaseLock(): void;
- write(chunk?: W): Promise<void>;
- }
- declare var WritableStreamDefaultWriter: {
- prototype: WritableStreamDefaultWriter;
- new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
- };
- /** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */
- interface XMLDocument extends Document {
- addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var XMLDocument: {
- prototype: XMLDocument;
- new(): XMLDocument;
- };
- interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
- "readystatechange": Event;
- }
- /** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
- interface XMLHttpRequest extends XMLHttpRequestEventTarget {
- onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
- /** Returns client's state. */
- readonly readyState: number;
- /** Returns the response body. */
- readonly response: any;
- /**
- * Returns response as text.
- *
- * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
- */
- readonly responseText: string;
- /**
- * Returns the response type.
- *
- * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
- *
- * When set: setting to "document" is ignored if current global object is not a Window object.
- *
- * When set: throws an "InvalidStateError" DOMException if state is loading or done.
- *
- * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
- */
- responseType: XMLHttpRequestResponseType;
- readonly responseURL: string;
- /**
- * Returns the response as document.
- *
- * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
- */
- readonly responseXML: Document | null;
- readonly status: number;
- readonly statusText: string;
- /**
- * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
- *
- * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
- */
- timeout: number;
- /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
- readonly upload: XMLHttpRequestUpload;
- /**
- * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
- *
- * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
- */
- withCredentials: boolean;
- /** Cancels any network activity. */
- abort(): void;
- getAllResponseHeaders(): string;
- getResponseHeader(name: string): string | null;
- /**
- * Sets the request method, request URL, and synchronous flag.
- *
- * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
- *
- * Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
- *
- * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
- */
- open(method: string, url: string | URL): void;
- open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
- /**
- * Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
- *
- * Throws an "InvalidStateError" DOMException if state is loading or done.
- */
- overrideMimeType(mime: string): void;
- /**
- * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
- *
- * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
- */
- send(body?: Document | XMLHttpRequestBodyInit | null): void;
- /**
- * Combines a header in author request headers.
- *
- * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
- *
- * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
- */
- setRequestHeader(name: string, value: string): void;
- readonly UNSENT: 0;
- readonly OPENED: 1;
- readonly HEADERS_RECEIVED: 2;
- readonly LOADING: 3;
- readonly DONE: 4;
- addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var XMLHttpRequest: {
- prototype: XMLHttpRequest;
- new(): XMLHttpRequest;
- readonly UNSENT: 0;
- readonly OPENED: 1;
- readonly HEADERS_RECEIVED: 2;
- readonly LOADING: 3;
- readonly DONE: 4;
- };
- interface XMLHttpRequestEventTargetEventMap {
- "abort": ProgressEvent<XMLHttpRequestEventTarget>;
- "error": ProgressEvent<XMLHttpRequestEventTarget>;
- "load": ProgressEvent<XMLHttpRequestEventTarget>;
- "loadend": ProgressEvent<XMLHttpRequestEventTarget>;
- "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
- "progress": ProgressEvent<XMLHttpRequestEventTarget>;
- "timeout": ProgressEvent<XMLHttpRequestEventTarget>;
- }
- interface XMLHttpRequestEventTarget extends EventTarget {
- onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var XMLHttpRequestEventTarget: {
- prototype: XMLHttpRequestEventTarget;
- new(): XMLHttpRequestEventTarget;
- };
- interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
- addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var XMLHttpRequestUpload: {
- prototype: XMLHttpRequestUpload;
- new(): XMLHttpRequestUpload;
- };
- /** Provides the serializeToString() method to construct an XML string representing a DOM tree. */
- interface XMLSerializer {
- serializeToString(root: Node): string;
- }
- declare var XMLSerializer: {
- prototype: XMLSerializer;
- new(): XMLSerializer;
- };
- /** The XPathEvaluator interface allows to compile and evaluate XPath expressions. */
- interface XPathEvaluator extends XPathEvaluatorBase {
- }
- declare var XPathEvaluator: {
- prototype: XPathEvaluator;
- new(): XPathEvaluator;
- };
- interface XPathEvaluatorBase {
- createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
- createNSResolver(nodeResolver: Node): XPathNSResolver;
- evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
- }
- /** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */
- interface XPathExpression {
- evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;
- }
- declare var XPathExpression: {
- prototype: XPathExpression;
- new(): XPathExpression;
- };
- /** The results generated by evaluating an XPath expression within the context of a given node. */
- interface XPathResult {
- readonly booleanValue: boolean;
- readonly invalidIteratorState: boolean;
- readonly numberValue: number;
- readonly resultType: number;
- readonly singleNodeValue: Node | null;
- readonly snapshotLength: number;
- readonly stringValue: string;
- iterateNext(): Node | null;
- snapshotItem(index: number): Node | null;
- readonly ANY_TYPE: 0;
- readonly NUMBER_TYPE: 1;
- readonly STRING_TYPE: 2;
- readonly BOOLEAN_TYPE: 3;
- readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
- readonly ORDERED_NODE_ITERATOR_TYPE: 5;
- readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
- readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
- readonly ANY_UNORDERED_NODE_TYPE: 8;
- readonly FIRST_ORDERED_NODE_TYPE: 9;
- }
- declare var XPathResult: {
- prototype: XPathResult;
- new(): XPathResult;
- readonly ANY_TYPE: 0;
- readonly NUMBER_TYPE: 1;
- readonly STRING_TYPE: 2;
- readonly BOOLEAN_TYPE: 3;
- readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
- readonly ORDERED_NODE_ITERATOR_TYPE: 5;
- readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
- readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
- readonly ANY_UNORDERED_NODE_TYPE: 8;
- readonly FIRST_ORDERED_NODE_TYPE: 9;
- };
- /** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */
- interface XSLTProcessor {
- clearParameters(): void;
- getParameter(namespaceURI: string | null, localName: string): any;
- importStylesheet(style: Node): void;
- removeParameter(namespaceURI: string | null, localName: string): void;
- reset(): void;
- setParameter(namespaceURI: string | null, localName: string, value: any): void;
- transformToDocument(source: Node): Document;
- transformToFragment(source: Node, output: Document): DocumentFragment;
- }
- declare var XSLTProcessor: {
- prototype: XSLTProcessor;
- new(): XSLTProcessor;
- };
- interface Console {
- assert(condition?: boolean, ...data: any[]): void;
- clear(): void;
- count(label?: string): void;
- countReset(label?: string): void;
- debug(...data: any[]): void;
- dir(item?: any, options?: any): void;
- dirxml(...data: any[]): void;
- error(...data: any[]): void;
- group(...data: any[]): void;
- groupCollapsed(...data: any[]): void;
- groupEnd(): void;
- info(...data: any[]): void;
- log(...data: any[]): void;
- table(tabularData?: any, properties?: string[]): void;
- time(label?: string): void;
- timeEnd(label?: string): void;
- timeLog(label?: string, ...data: any[]): void;
- timeStamp(label?: string): void;
- trace(...data: any[]): void;
- warn(...data: any[]): void;
- }
- declare var console: Console;
- /** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
- declare namespace CSS {
- function escape(ident: string): string;
- function supports(property: string, value: string): boolean;
- function supports(conditionText: string): boolean;
- }
- declare namespace WebAssembly {
- interface CompileError extends Error {
- }
- var CompileError: {
- prototype: CompileError;
- new(message?: string): CompileError;
- (message?: string): CompileError;
- };
- interface Global {
- value: any;
- valueOf(): any;
- }
- var Global: {
- prototype: Global;
- new(descriptor: GlobalDescriptor, v?: any): Global;
- };
- interface Instance {
- readonly exports: Exports;
- }
- var Instance: {
- prototype: Instance;
- new(module: Module, importObject?: Imports): Instance;
- };
- interface LinkError extends Error {
- }
- var LinkError: {
- prototype: LinkError;
- new(message?: string): LinkError;
- (message?: string): LinkError;
- };
- interface Memory {
- readonly buffer: ArrayBuffer;
- grow(delta: number): number;
- }
- var Memory: {
- prototype: Memory;
- new(descriptor: MemoryDescriptor): Memory;
- };
- interface Module {
- }
- var Module: {
- prototype: Module;
- new(bytes: BufferSource): Module;
- customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
- exports(moduleObject: Module): ModuleExportDescriptor[];
- imports(moduleObject: Module): ModuleImportDescriptor[];
- };
- interface RuntimeError extends Error {
- }
- var RuntimeError: {
- prototype: RuntimeError;
- new(message?: string): RuntimeError;
- (message?: string): RuntimeError;
- };
- interface Table {
- readonly length: number;
- get(index: number): any;
- grow(delta: number, value?: any): number;
- set(index: number, value?: any): void;
- }
- var Table: {
- prototype: Table;
- new(descriptor: TableDescriptor, value?: any): Table;
- };
- interface GlobalDescriptor {
- mutable?: boolean;
- value: ValueType;
- }
- interface MemoryDescriptor {
- initial: number;
- maximum?: number;
- shared?: boolean;
- }
- interface ModuleExportDescriptor {
- kind: ImportExportKind;
- name: string;
- }
- interface ModuleImportDescriptor {
- kind: ImportExportKind;
- module: string;
- name: string;
- }
- interface TableDescriptor {
- element: TableKind;
- initial: number;
- maximum?: number;
- }
- interface WebAssemblyInstantiatedSource {
- instance: Instance;
- module: Module;
- }
- type ImportExportKind = "function" | "global" | "memory" | "table";
- type TableKind = "anyfunc" | "externref";
- type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
- type ExportValue = Function | Global | Memory | Table;
- type Exports = Record<string, ExportValue>;
- type ImportValue = ExportValue | number;
- type Imports = Record<string, ModuleImports>;
- type ModuleImports = Record<string, ImportValue>;
- function compile(bytes: BufferSource): Promise<Module>;
- function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
- function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
- function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
- function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
- function validate(bytes: BufferSource): boolean;
- }
- interface BlobCallback {
- (blob: Blob | null): void;
- }
- interface CustomElementConstructor {
- new (...params: any[]): HTMLElement;
- }
- interface DecodeErrorCallback {
- (error: DOMException): void;
- }
- interface DecodeSuccessCallback {
- (decodedData: AudioBuffer): void;
- }
- interface ErrorCallback {
- (err: DOMException): void;
- }
- interface FileCallback {
- (file: File): void;
- }
- interface FileSystemEntriesCallback {
- (entries: FileSystemEntry[]): void;
- }
- interface FileSystemEntryCallback {
- (entry: FileSystemEntry): void;
- }
- interface FrameRequestCallback {
- (time: DOMHighResTimeStamp): void;
- }
- interface FunctionStringCallback {
- (data: string): void;
- }
- interface IdleRequestCallback {
- (deadline: IdleDeadline): void;
- }
- interface IntersectionObserverCallback {
- (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
- }
- interface LockGrantedCallback {
- (lock: Lock | null): any;
- }
- interface MediaSessionActionHandler {
- (details: MediaSessionActionDetails): void;
- }
- interface MutationCallback {
- (mutations: MutationRecord[], observer: MutationObserver): void;
- }
- interface NotificationPermissionCallback {
- (permission: NotificationPermission): void;
- }
- interface OnBeforeUnloadEventHandlerNonNull {
- (event: Event): string | null;
- }
- interface OnErrorEventHandlerNonNull {
- (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
- }
- interface PerformanceObserverCallback {
- (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
- }
- interface PositionCallback {
- (position: GeolocationPosition): void;
- }
- interface PositionErrorCallback {
- (positionError: GeolocationPositionError): void;
- }
- interface QueuingStrategySize<T = any> {
- (chunk: T): number;
- }
- interface RTCPeerConnectionErrorCallback {
- (error: DOMException): void;
- }
- interface RTCSessionDescriptionCallback {
- (description: RTCSessionDescriptionInit): void;
- }
- interface RemotePlaybackAvailabilityCallback {
- (available: boolean): void;
- }
- interface ResizeObserverCallback {
- (entries: ResizeObserverEntry[], observer: ResizeObserver): void;
- }
- interface TransformerFlushCallback<O> {
- (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
- }
- interface TransformerStartCallback<O> {
- (controller: TransformStreamDefaultController<O>): any;
- }
- interface TransformerTransformCallback<I, O> {
- (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
- }
- interface UnderlyingSinkAbortCallback {
- (reason?: any): void | PromiseLike<void>;
- }
- interface UnderlyingSinkCloseCallback {
- (): void | PromiseLike<void>;
- }
- interface UnderlyingSinkStartCallback {
- (controller: WritableStreamDefaultController): any;
- }
- interface UnderlyingSinkWriteCallback<W> {
- (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
- }
- interface UnderlyingSourceCancelCallback {
- (reason?: any): void | PromiseLike<void>;
- }
- interface UnderlyingSourcePullCallback<R> {
- (controller: ReadableStreamController<R>): void | PromiseLike<void>;
- }
- interface UnderlyingSourceStartCallback<R> {
- (controller: ReadableStreamController<R>): any;
- }
- interface VideoFrameRequestCallback {
- (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;
- }
- interface VoidFunction {
- (): void;
- }
- interface HTMLElementTagNameMap {
- "a": HTMLAnchorElement;
- "abbr": HTMLElement;
- "address": HTMLElement;
- "area": HTMLAreaElement;
- "article": HTMLElement;
- "aside": HTMLElement;
- "audio": HTMLAudioElement;
- "b": HTMLElement;
- "base": HTMLBaseElement;
- "bdi": HTMLElement;
- "bdo": HTMLElement;
- "blockquote": HTMLQuoteElement;
- "body": HTMLBodyElement;
- "br": HTMLBRElement;
- "button": HTMLButtonElement;
- "canvas": HTMLCanvasElement;
- "caption": HTMLTableCaptionElement;
- "cite": HTMLElement;
- "code": HTMLElement;
- "col": HTMLTableColElement;
- "colgroup": HTMLTableColElement;
- "data": HTMLDataElement;
- "datalist": HTMLDataListElement;
- "dd": HTMLElement;
- "del": HTMLModElement;
- "details": HTMLDetailsElement;
- "dfn": HTMLElement;
- "dialog": HTMLDialogElement;
- "div": HTMLDivElement;
- "dl": HTMLDListElement;
- "dt": HTMLElement;
- "em": HTMLElement;
- "embed": HTMLEmbedElement;
- "fieldset": HTMLFieldSetElement;
- "figcaption": HTMLElement;
- "figure": HTMLElement;
- "footer": HTMLElement;
- "form": HTMLFormElement;
- "h1": HTMLHeadingElement;
- "h2": HTMLHeadingElement;
- "h3": HTMLHeadingElement;
- "h4": HTMLHeadingElement;
- "h5": HTMLHeadingElement;
- "h6": HTMLHeadingElement;
- "head": HTMLHeadElement;
- "header": HTMLElement;
- "hgroup": HTMLElement;
- "hr": HTMLHRElement;
- "html": HTMLHtmlElement;
- "i": HTMLElement;
- "iframe": HTMLIFrameElement;
- "img": HTMLImageElement;
- "input": HTMLInputElement;
- "ins": HTMLModElement;
- "kbd": HTMLElement;
- "label": HTMLLabelElement;
- "legend": HTMLLegendElement;
- "li": HTMLLIElement;
- "link": HTMLLinkElement;
- "main": HTMLElement;
- "map": HTMLMapElement;
- "mark": HTMLElement;
- "menu": HTMLMenuElement;
- "meta": HTMLMetaElement;
- "meter": HTMLMeterElement;
- "nav": HTMLElement;
- "noscript": HTMLElement;
- "object": HTMLObjectElement;
- "ol": HTMLOListElement;
- "optgroup": HTMLOptGroupElement;
- "option": HTMLOptionElement;
- "output": HTMLOutputElement;
- "p": HTMLParagraphElement;
- "picture": HTMLPictureElement;
- "pre": HTMLPreElement;
- "progress": HTMLProgressElement;
- "q": HTMLQuoteElement;
- "rp": HTMLElement;
- "rt": HTMLElement;
- "ruby": HTMLElement;
- "s": HTMLElement;
- "samp": HTMLElement;
- "script": HTMLScriptElement;
- "section": HTMLElement;
- "select": HTMLSelectElement;
- "slot": HTMLSlotElement;
- "small": HTMLElement;
- "source": HTMLSourceElement;
- "span": HTMLSpanElement;
- "strong": HTMLElement;
- "style": HTMLStyleElement;
- "sub": HTMLElement;
- "summary": HTMLElement;
- "sup": HTMLElement;
- "table": HTMLTableElement;
- "tbody": HTMLTableSectionElement;
- "td": HTMLTableCellElement;
- "template": HTMLTemplateElement;
- "textarea": HTMLTextAreaElement;
- "tfoot": HTMLTableSectionElement;
- "th": HTMLTableCellElement;
- "thead": HTMLTableSectionElement;
- "time": HTMLTimeElement;
- "title": HTMLTitleElement;
- "tr": HTMLTableRowElement;
- "track": HTMLTrackElement;
- "u": HTMLElement;
- "ul": HTMLUListElement;
- "var": HTMLElement;
- "video": HTMLVideoElement;
- "wbr": HTMLElement;
- }
- interface HTMLElementDeprecatedTagNameMap {
- "acronym": HTMLElement;
- "applet": HTMLUnknownElement;
- "basefont": HTMLElement;
- "bgsound": HTMLUnknownElement;
- "big": HTMLElement;
- "blink": HTMLUnknownElement;
- "center": HTMLElement;
- "dir": HTMLDirectoryElement;
- "font": HTMLFontElement;
- "frame": HTMLFrameElement;
- "frameset": HTMLFrameSetElement;
- "isindex": HTMLUnknownElement;
- "keygen": HTMLUnknownElement;
- "listing": HTMLPreElement;
- "marquee": HTMLMarqueeElement;
- "menuitem": HTMLElement;
- "multicol": HTMLUnknownElement;
- "nextid": HTMLUnknownElement;
- "nobr": HTMLElement;
- "noembed": HTMLElement;
- "noframes": HTMLElement;
- "param": HTMLParamElement;
- "plaintext": HTMLElement;
- "rb": HTMLElement;
- "rtc": HTMLElement;
- "spacer": HTMLUnknownElement;
- "strike": HTMLElement;
- "tt": HTMLElement;
- "xmp": HTMLPreElement;
- }
- interface SVGElementTagNameMap {
- "a": SVGAElement;
- "animate": SVGAnimateElement;
- "animateMotion": SVGAnimateMotionElement;
- "animateTransform": SVGAnimateTransformElement;
- "circle": SVGCircleElement;
- "clipPath": SVGClipPathElement;
- "defs": SVGDefsElement;
- "desc": SVGDescElement;
- "ellipse": SVGEllipseElement;
- "feBlend": SVGFEBlendElement;
- "feColorMatrix": SVGFEColorMatrixElement;
- "feComponentTransfer": SVGFEComponentTransferElement;
- "feComposite": SVGFECompositeElement;
- "feConvolveMatrix": SVGFEConvolveMatrixElement;
- "feDiffuseLighting": SVGFEDiffuseLightingElement;
- "feDisplacementMap": SVGFEDisplacementMapElement;
- "feDistantLight": SVGFEDistantLightElement;
- "feDropShadow": SVGFEDropShadowElement;
- "feFlood": SVGFEFloodElement;
- "feFuncA": SVGFEFuncAElement;
- "feFuncB": SVGFEFuncBElement;
- "feFuncG": SVGFEFuncGElement;
- "feFuncR": SVGFEFuncRElement;
- "feGaussianBlur": SVGFEGaussianBlurElement;
- "feImage": SVGFEImageElement;
- "feMerge": SVGFEMergeElement;
- "feMergeNode": SVGFEMergeNodeElement;
- "feMorphology": SVGFEMorphologyElement;
- "feOffset": SVGFEOffsetElement;
- "fePointLight": SVGFEPointLightElement;
- "feSpecularLighting": SVGFESpecularLightingElement;
- "feSpotLight": SVGFESpotLightElement;
- "feTile": SVGFETileElement;
- "feTurbulence": SVGFETurbulenceElement;
- "filter": SVGFilterElement;
- "foreignObject": SVGForeignObjectElement;
- "g": SVGGElement;
- "image": SVGImageElement;
- "line": SVGLineElement;
- "linearGradient": SVGLinearGradientElement;
- "marker": SVGMarkerElement;
- "mask": SVGMaskElement;
- "metadata": SVGMetadataElement;
- "mpath": SVGMPathElement;
- "path": SVGPathElement;
- "pattern": SVGPatternElement;
- "polygon": SVGPolygonElement;
- "polyline": SVGPolylineElement;
- "radialGradient": SVGRadialGradientElement;
- "rect": SVGRectElement;
- "script": SVGScriptElement;
- "set": SVGSetElement;
- "stop": SVGStopElement;
- "style": SVGStyleElement;
- "svg": SVGSVGElement;
- "switch": SVGSwitchElement;
- "symbol": SVGSymbolElement;
- "text": SVGTextElement;
- "textPath": SVGTextPathElement;
- "title": SVGTitleElement;
- "tspan": SVGTSpanElement;
- "use": SVGUseElement;
- "view": SVGViewElement;
- }
- interface MathMLElementTagNameMap {
- "annotation": MathMLElement;
- "annotation-xml": MathMLElement;
- "maction": MathMLElement;
- "math": MathMLElement;
- "merror": MathMLElement;
- "mfrac": MathMLElement;
- "mi": MathMLElement;
- "mmultiscripts": MathMLElement;
- "mn": MathMLElement;
- "mo": MathMLElement;
- "mover": MathMLElement;
- "mpadded": MathMLElement;
- "mphantom": MathMLElement;
- "mprescripts": MathMLElement;
- "mroot": MathMLElement;
- "mrow": MathMLElement;
- "ms": MathMLElement;
- "mspace": MathMLElement;
- "msqrt": MathMLElement;
- "mstyle": MathMLElement;
- "msub": MathMLElement;
- "msubsup": MathMLElement;
- "msup": MathMLElement;
- "mtable": MathMLElement;
- "mtd": MathMLElement;
- "mtext": MathMLElement;
- "mtr": MathMLElement;
- "munder": MathMLElement;
- "munderover": MathMLElement;
- "semantics": MathMLElement;
- }
- /** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
- type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
- declare var Audio: {
- new(src?: string): HTMLAudioElement;
- };
- declare var Image: {
- new(width?: number, height?: number): HTMLImageElement;
- };
- declare var Option: {
- new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
- };
- /** @deprecated This is a legacy alias of \`navigator\`. */
- declare var clientInformation: Navigator;
- /** Returns true if the window has been closed, false otherwise. */
- declare var closed: boolean;
- /** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */
- declare var customElements: CustomElementRegistry;
- declare var devicePixelRatio: number;
- declare var document: Document;
- /** @deprecated */
- declare var event: Event | undefined;
- /** @deprecated */
- declare var external: External;
- declare var frameElement: Element | null;
- declare var frames: WindowProxy;
- declare var history: History;
- declare var innerHeight: number;
- declare var innerWidth: number;
- declare var length: number;
- declare var location: Location;
- /** Returns true if the location bar is visible; otherwise, returns false. */
- declare var locationbar: BarProp;
- /** Returns true if the menu bar is visible; otherwise, returns false. */
- declare var menubar: BarProp;
- /** @deprecated */
- declare const name: void;
- declare var navigator: Navigator;
- /** Available only in secure contexts. */
- declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
- /** Available only in secure contexts. */
- declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
- /** @deprecated */
- declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
- declare var opener: any;
- /** @deprecated */
- declare var orientation: number;
- declare var outerHeight: number;
- declare var outerWidth: number;
- /** @deprecated This is a legacy alias of \`scrollX\`. */
- declare var pageXOffset: number;
- /** @deprecated This is a legacy alias of \`scrollY\`. */
- declare var pageYOffset: number;
- /**
- * Refers to either the parent WindowProxy, or itself.
- *
- * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
- */
- declare var parent: WindowProxy;
- /** Returns true if the personal bar is visible; otherwise, returns false. */
- declare var personalbar: BarProp;
- declare var screen: Screen;
- declare var screenLeft: number;
- declare var screenTop: number;
- declare var screenX: number;
- declare var screenY: number;
- declare var scrollX: number;
- declare var scrollY: number;
- /** Returns true if the scrollbars are visible; otherwise, returns false. */
- declare var scrollbars: BarProp;
- declare var self: Window & typeof globalThis;
- declare var speechSynthesis: SpeechSynthesis;
- /** @deprecated */
- declare var status: string;
- /** Returns true if the status bar is visible; otherwise, returns false. */
- declare var statusbar: BarProp;
- /** Returns true if the toolbar is visible; otherwise, returns false. */
- declare var toolbar: BarProp;
- declare var top: WindowProxy | null;
- declare var visualViewport: VisualViewport | null;
- declare var window: Window & typeof globalThis;
- declare function alert(message?: any): void;
- declare function blur(): void;
- declare function cancelIdleCallback(handle: number): void;
- /** @deprecated */
- declare function captureEvents(): void;
- /** Closes the window. */
- declare function close(): void;
- declare function confirm(message?: string): boolean;
- /** Moves the focus to the window's browsing context, if any. */
- declare function focus(): void;
- declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
- declare function getSelection(): Selection | null;
- declare function matchMedia(query: string): MediaQueryList;
- declare function moveBy(x: number, y: number): void;
- declare function moveTo(x: number, y: number): void;
- declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
- /**
- * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
- *
- * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
- *
- * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
- *
- * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
- *
- * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
- */
- declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
- declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
- declare function print(): void;
- declare function prompt(message?: string, _default?: string): string | null;
- /** @deprecated */
- declare function releaseEvents(): void;
- declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
- declare function resizeBy(x: number, y: number): void;
- declare function resizeTo(width: number, height: number): void;
- declare function scroll(options?: ScrollToOptions): void;
- declare function scroll(x: number, y: number): void;
- declare function scrollBy(options?: ScrollToOptions): void;
- declare function scrollBy(x: number, y: number): void;
- declare function scrollTo(options?: ScrollToOptions): void;
- declare function scrollTo(x: number, y: number): void;
- /** Cancels the document load. */
- declare function stop(): void;
- declare function toString(): string;
- /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
- declare function dispatchEvent(event: Event): boolean;
- declare function cancelAnimationFrame(handle: number): void;
- declare function requestAnimationFrame(callback: FrameRequestCallback): number;
- /**
- * Fires when the user aborts the download.
- * @param ev The event.
- */
- declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
- declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
- declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
- declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
- declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
- declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
- declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
- /**
- * Fires when the object loses the input focus.
- * @param ev The focus event.
- */
- declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
- declare var oncancel: ((this: Window, ev: Event) => any) | null;
- /**
- * Occurs when playback is possible, but would require further buffering.
- * @param ev The event.
- */
- declare var oncanplay: ((this: Window, ev: Event) => any) | null;
- declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
- /**
- * Fires when the contents of the object or selection have changed.
- * @param ev The event.
- */
- declare var onchange: ((this: Window, ev: Event) => any) | null;
- /**
- * Fires when the user clicks the left mouse button on the object
- * @param ev The mouse event.
- */
- declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
- declare var onclose: ((this: Window, ev: Event) => any) | null;
- /**
- * Fires when the user clicks the right mouse button in the client area, opening the context menu.
- * @param ev The mouse event.
- */
- declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
- declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
- declare var oncuechange: ((this: Window, ev: Event) => any) | null;
- declare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;
- /**
- * Fires when the user double-clicks the object.
- * @param ev The mouse event.
- */
- declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
- /**
- * Fires on the source object continuously during a drag operation.
- * @param ev The event.
- */
- declare var ondrag: ((this: Window, ev: DragEvent) => any) | null;
- /**
- * Fires on the source object when the user releases the mouse at the close of a drag operation.
- * @param ev The event.
- */
- declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
- /**
- * Fires on the target element when the user drags the object to a valid drop target.
- * @param ev The drag event.
- */
- declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
- /**
- * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
- * @param ev The drag event.
- */
- declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;
- /**
- * Fires on the target element continuously while the user drags the object over a valid drop target.
- * @param ev The event.
- */
- declare var ondragover: ((this: Window, ev: DragEvent) => any) | null;
- /**
- * Fires on the source object when the user starts to drag a text selection or selected object.
- * @param ev The event.
- */
- declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
- declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
- /**
- * Occurs when the duration attribute is updated.
- * @param ev The event.
- */
- declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
- /**
- * Occurs when the media element is reset to its initial state.
- * @param ev The event.
- */
- declare var onemptied: ((this: Window, ev: Event) => any) | null;
- /**
- * Occurs when the end of playback is reached.
- * @param ev The event
- */
- declare var onended: ((this: Window, ev: Event) => any) | null;
- /**
- * Fires when an error occurs during object loading.
- * @param ev The event.
- */
- declare var onerror: OnErrorEventHandler;
- /**
- * Fires when the object receives focus.
- * @param ev The event.
- */
- declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
- declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
- declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
- declare var oninput: ((this: Window, ev: Event) => any) | null;
- declare var oninvalid: ((this: Window, ev: Event) => any) | null;
- /**
- * Fires when the user presses a key.
- * @param ev The keyboard event
- */
- declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
- /**
- * Fires when the user presses an alphanumeric key.
- * @param ev The event.
- * @deprecated
- */
- declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
- /**
- * Fires when the user releases a key.
- * @param ev The keyboard event
- */
- declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
- /**
- * Fires immediately after the browser loads the object.
- * @param ev The event.
- */
- declare var onload: ((this: Window, ev: Event) => any) | null;
- /**
- * Occurs when media data is loaded at the current playback position.
- * @param ev The event.
- */
- declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
- /**
- * Occurs when the duration and dimensions of the media have been determined.
- * @param ev The event.
- */
- declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
- /**
- * Occurs when Internet Explorer begins looking for media data.
- * @param ev The event.
- */
- declare var onloadstart: ((this: Window, ev: Event) => any) | null;
- declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
- /**
- * Fires when the user clicks the object with either mouse button.
- * @param ev The mouse event.
- */
- declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
- declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
- declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user moves the mouse over the object.
- * @param ev The mouse event.
- */
- declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user moves the mouse pointer outside the boundaries of the object.
- * @param ev The mouse event.
- */
- declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user moves the mouse pointer into the object.
- * @param ev The mouse event.
- */
- declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
- /**
- * Fires when the user releases a mouse button while the mouse is over the object.
- * @param ev The mouse event.
- */
- declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
- declare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;
- /**
- * Occurs when playback is paused.
- * @param ev The event.
- */
- declare var onpause: ((this: Window, ev: Event) => any) | null;
- /**
- * Occurs when the play method is requested.
- * @param ev The event.
- */
- declare var onplay: ((this: Window, ev: Event) => any) | null;
- /**
- * Occurs when the audio or video has started playing.
- * @param ev The event.
- */
- declare var onplaying: ((this: Window, ev: Event) => any) | null;
- declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
- declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
- declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
- declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
- declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
- declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
- declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
- declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
- /**
- * Occurs to indicate progress while downloading media data.
- * @param ev The event.
- */
- declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
- /**
- * Occurs when the playback rate is increased or decreased.
- * @param ev The event.
- */
- declare var onratechange: ((this: Window, ev: Event) => any) | null;
- /**
- * Fires when the user resets a form.
- * @param ev The event.
- */
- declare var onreset: ((this: Window, ev: Event) => any) | null;
- declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
- /**
- * Fires when the user repositions the scroll box in the scroll bar on the object.
- * @param ev The event.
- */
- declare var onscroll: ((this: Window, ev: Event) => any) | null;
- declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
- /**
- * Occurs when the seek operation ends.
- * @param ev The event.
- */
- declare var onseeked: ((this: Window, ev: Event) => any) | null;
- /**
- * Occurs when the current playback position is moved.
- * @param ev The event.
- */
- declare var onseeking: ((this: Window, ev: Event) => any) | null;
- /**
- * Fires when the current selection changes.
- * @param ev The event.
- */
- declare var onselect: ((this: Window, ev: Event) => any) | null;
- declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
- declare var onselectstart: ((this: Window, ev: Event) => any) | null;
- declare var onslotchange: ((this: Window, ev: Event) => any) | null;
- /**
- * Occurs when the download has stopped.
- * @param ev The event.
- */
- declare var onstalled: ((this: Window, ev: Event) => any) | null;
- declare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;
- /**
- * Occurs if the load operation has been intentionally halted.
- * @param ev The event.
- */
- declare var onsuspend: ((this: Window, ev: Event) => any) | null;
- /**
- * Occurs to indicate the current playback position.
- * @param ev The event.
- */
- declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
- declare var ontoggle: ((this: Window, ev: Event) => any) | null;
- declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
- declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
- declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
- declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
- declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
- declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
- declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
- declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
- /**
- * Occurs when the volume is changed, or playback is muted or unmuted.
- * @param ev The event.
- */
- declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
- /**
- * Occurs when playback stops because the next frame of a video resource is not available.
- * @param ev The event.
- */
- declare var onwaiting: ((this: Window, ev: Event) => any) | null;
- /** @deprecated This is a legacy alias of \`onanimationend\`. */
- declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
- /** @deprecated This is a legacy alias of \`onanimationiteration\`. */
- declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
- /** @deprecated This is a legacy alias of \`onanimationstart\`. */
- declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
- /** @deprecated This is a legacy alias of \`ontransitionend\`. */
- declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
- declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
- declare var onafterprint: ((this: Window, ev: Event) => any) | null;
- declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
- declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
- declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
- declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
- declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
- declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
- declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
- declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
- declare var onoffline: ((this: Window, ev: Event) => any) | null;
- declare var ononline: ((this: Window, ev: Event) => any) | null;
- declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
- declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
- declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
- declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
- declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
- declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
- declare var onunload: ((this: Window, ev: Event) => any) | null;
- declare var localStorage: Storage;
- /** Available only in secure contexts. */
- declare var caches: CacheStorage;
- declare var crossOriginIsolated: boolean;
- declare var crypto: Crypto;
- declare var indexedDB: IDBFactory;
- declare var isSecureContext: boolean;
- declare var origin: string;
- declare var performance: Performance;
- declare function atob(data: string): string;
- declare function btoa(data: string): string;
- declare function clearInterval(id: number | undefined): void;
- declare function clearTimeout(id: number | undefined): void;
- declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
- declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
- declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
- declare function queueMicrotask(callback: VoidFunction): void;
- declare function reportError(e: any): void;
- declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
- declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
- declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
- declare var sessionStorage: Storage;
- declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- type AlgorithmIdentifier = Algorithm | string;
- type BigInteger = Uint8Array;
- type BinaryData = ArrayBuffer | ArrayBufferView;
- type BlobPart = BufferSource | Blob | string;
- type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
- type BufferSource = ArrayBufferView | ArrayBuffer;
- type COSEAlgorithmIdentifier = number;
- type CSSNumberish = number;
- type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
- type ClipboardItemData = Promise<string | Blob>;
- type ClipboardItems = ClipboardItem[];
- type ConstrainBoolean = boolean | ConstrainBooleanParameters;
- type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
- type ConstrainDouble = number | ConstrainDoubleRange;
- type ConstrainULong = number | ConstrainULongRange;
- type DOMHighResTimeStamp = number;
- type EpochTimeStamp = number;
- type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
- type Float32List = Float32Array | GLfloat[];
- type FormDataEntryValue = File | string;
- type GLbitfield = number;
- type GLboolean = boolean;
- type GLclampf = number;
- type GLenum = number;
- type GLfloat = number;
- type GLint = number;
- type GLint64 = number;
- type GLintptr = number;
- type GLsizei = number;
- type GLsizeiptr = number;
- type GLuint = number;
- type GLuint64 = number;
- type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
- type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
- type HashAlgorithmIdentifier = AlgorithmIdentifier;
- type HeadersInit = [string, string][] | Record<string, string> | Headers;
- type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
- type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
- type Int32List = Int32Array | GLint[];
- type LineAndPositionSetting = number | AutoKeyword;
- type MediaProvider = MediaStream | MediaSource | Blob;
- type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
- type MutationRecordType = "attributes" | "characterData" | "childList";
- type NamedCurve = string;
- type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
- type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
- type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
- type PerformanceEntryList = PerformanceEntry[];
- type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
- type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
- type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
- type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
- type RequestInfo = Request | string;
- type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;
- type TimerHandler = string | Function;
- type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
- type Uint32List = Uint32Array | GLuint[];
- type VibratePattern = number | number[];
- type WindowProxy = Window;
- type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
- type AlignSetting = "center" | "end" | "left" | "right" | "start";
- type AnimationPlayState = "finished" | "idle" | "paused" | "running";
- type AnimationReplaceState = "active" | "persisted" | "removed";
- type AppendMode = "segments" | "sequence";
- type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
- type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
- type AudioContextState = "closed" | "running" | "suspended";
- type AuthenticatorAttachment = "cross-platform" | "platform";
- type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
- type AutoKeyword = "auto";
- type AutomationRate = "a-rate" | "k-rate";
- type BinaryType = "arraybuffer" | "blob";
- type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
- type CanPlayTypeResult = "" | "maybe" | "probably";
- type CanvasDirection = "inherit" | "ltr" | "rtl";
- type CanvasFillRule = "evenodd" | "nonzero";
- type CanvasFontKerning = "auto" | "none" | "normal";
- type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
- type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
- type CanvasLineCap = "butt" | "round" | "square";
- type CanvasLineJoin = "bevel" | "miter" | "round";
- type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
- type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
- type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
- type ChannelCountMode = "clamped-max" | "explicit" | "max";
- type ChannelInterpretation = "discrete" | "speakers";
- type ClientTypes = "all" | "sharedworker" | "window" | "worker";
- type ColorGamut = "p3" | "rec2020" | "srgb";
- type ColorSpaceConversion = "default" | "none";
- type CompositeOperation = "accumulate" | "add" | "replace";
- type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
- type CredentialMediationRequirement = "optional" | "required" | "silent";
- type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
- type DirectionSetting = "" | "lr" | "rl";
- type DisplayCaptureSurfaceType = "browser" | "monitor" | "window";
- type DistanceModelType = "exponential" | "inverse" | "linear";
- type DocumentReadyState = "complete" | "interactive" | "loading";
- type DocumentVisibilityState = "hidden" | "visible";
- type EndOfStreamError = "decode" | "network";
- type EndingType = "native" | "transparent";
- type FileSystemHandleKind = "directory" | "file";
- type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
- type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
- type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
- type FontFaceSetLoadStatus = "loaded" | "loading";
- type FullscreenNavigationUI = "auto" | "hide" | "show";
- type GamepadHapticActuatorType = "vibration";
- type GamepadMappingType = "" | "standard" | "xr-standard";
- type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
- type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
- type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
- type IDBRequestReadyState = "done" | "pending";
- type IDBTransactionDurability = "default" | "relaxed" | "strict";
- type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
- type ImageOrientation = "flipY" | "from-image";
- type ImageSmoothingQuality = "high" | "low" | "medium";
- type InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend";
- type IterationCompositeOperation = "accumulate" | "replace";
- type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
- type KeyType = "private" | "public" | "secret";
- type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
- type LineAlignSetting = "center" | "end" | "start";
- type LockMode = "exclusive" | "shared";
- type MIDIPortConnectionState = "closed" | "open" | "pending";
- type MIDIPortDeviceState = "connected" | "disconnected";
- type MIDIPortType = "input" | "output";
- type MediaDecodingType = "file" | "media-source" | "webrtc";
- type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
- type MediaEncodingType = "record" | "webrtc";
- type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";
- type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";
- type MediaKeySessionType = "persistent-license" | "temporary";
- type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
- type MediaKeysRequirement = "not-allowed" | "optional" | "required";
- type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
- type MediaSessionPlaybackState = "none" | "paused" | "playing";
- type MediaStreamTrackState = "ended" | "live";
- type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
- type NotificationDirection = "auto" | "ltr" | "rtl";
- type NotificationPermission = "default" | "denied" | "granted";
- type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
- type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
- type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
- type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
- type OverSampleType = "2x" | "4x" | "none";
- type PanningModelType = "HRTF" | "equalpower";
- type PaymentComplete = "fail" | "success" | "unknown";
- type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
- type PermissionState = "denied" | "granted" | "prompt";
- type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
- type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
- type PredefinedColorSpace = "display-p3" | "srgb";
- type PremultiplyAlpha = "default" | "none" | "premultiply";
- type PresentationStyle = "attachment" | "inline" | "unspecified";
- type PublicKeyCredentialType = "public-key";
- type PushEncryptionKeyName = "auth" | "p256dh";
- type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
- type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
- type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
- type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
- type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
- type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";
- type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
- type RTCIceComponent = "rtcp" | "rtp";
- type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
- type RTCIceGathererState = "complete" | "gathering" | "new";
- type RTCIceGatheringState = "complete" | "gathering" | "new";
- type RTCIceProtocol = "tcp" | "udp";
- type RTCIceTcpCandidateType = "active" | "passive" | "so";
- type RTCIceTransportPolicy = "all" | "relay";
- type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
- type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
- type RTCPriorityType = "high" | "low" | "medium" | "very-low";
- type RTCRtcpMuxPolicy = "require";
- type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
- type RTCSctpTransportState = "closed" | "connected" | "connecting";
- type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
- type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
- type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
- type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
- type ReadableStreamReaderMode = "byob";
- type ReadableStreamType = "bytes";
- type ReadyState = "closed" | "ended" | "open";
- type RecordingState = "inactive" | "paused" | "recording";
- type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
- type RemotePlaybackState = "connected" | "connecting" | "disconnected";
- type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
- type RequestCredentials = "include" | "omit" | "same-origin";
- type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
- type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
- type RequestRedirect = "error" | "follow" | "manual";
- type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
- type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
- type ResizeQuality = "high" | "low" | "medium" | "pixelated";
- type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
- type ScrollBehavior = "auto" | "smooth";
- type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
- type ScrollRestoration = "auto" | "manual";
- type ScrollSetting = "" | "up";
- type SecurityPolicyViolationEventDisposition = "enforce" | "report";
- type SelectionMode = "end" | "preserve" | "select" | "start";
- type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
- type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
- type ShadowRootMode = "closed" | "open";
- type SlotAssignmentMode = "manual" | "named";
- type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
- type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
- type TextTrackMode = "disabled" | "hidden" | "showing";
- type TouchType = "direct" | "stylus";
- type TransferFunction = "hlg" | "pq" | "srgb";
- type UserVerificationRequirement = "discouraged" | "preferred" | "required";
- type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
- type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
- type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
- type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
- type WebGLPowerPreference = "default" | "high-performance" | "low-power";
- type WorkerType = "classic" | "module";
- type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
- `,ga["lib.dom.iterable.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /////////////////////////////
- /// Window Iterable APIs
- /////////////////////////////
- interface AudioParam {
- setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
- }
- interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
- }
- interface BaseAudioContext {
- createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
- createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
- }
- interface CSSKeyframesRule {
- [Symbol.iterator](): IterableIterator<CSSKeyframeRule>;
- }
- interface CSSRuleList {
- [Symbol.iterator](): IterableIterator<CSSRule>;
- }
- interface CSSStyleDeclaration {
- [Symbol.iterator](): IterableIterator<string>;
- }
- interface Cache {
- addAll(requests: Iterable<RequestInfo>): Promise<void>;
- }
- interface CanvasPath {
- roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
- }
- interface CanvasPathDrawingStyles {
- setLineDash(segments: Iterable<number>): void;
- }
- interface DOMRectList {
- [Symbol.iterator](): IterableIterator<DOMRect>;
- }
- interface DOMStringList {
- [Symbol.iterator](): IterableIterator<string>;
- }
- interface DOMTokenList {
- [Symbol.iterator](): IterableIterator<string>;
- entries(): IterableIterator<[number, string]>;
- keys(): IterableIterator<number>;
- values(): IterableIterator<string>;
- }
- interface DataTransferItemList {
- [Symbol.iterator](): IterableIterator<DataTransferItem>;
- }
- interface EventCounts extends ReadonlyMap<string, number> {
- }
- interface FileList {
- [Symbol.iterator](): IterableIterator<File>;
- }
- interface FontFaceSet extends Set<FontFace> {
- }
- interface FormData {
- [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
- /** Returns an array of key, value pairs for every entry in the list. */
- entries(): IterableIterator<[string, FormDataEntryValue]>;
- /** Returns a list of keys in the list. */
- keys(): IterableIterator<string>;
- /** Returns a list of values in the list. */
- values(): IterableIterator<FormDataEntryValue>;
- }
- interface HTMLAllCollection {
- [Symbol.iterator](): IterableIterator<Element>;
- }
- interface HTMLCollectionBase {
- [Symbol.iterator](): IterableIterator<Element>;
- }
- interface HTMLCollectionOf<T extends Element> {
- [Symbol.iterator](): IterableIterator<T>;
- }
- interface HTMLFormElement {
- [Symbol.iterator](): IterableIterator<Element>;
- }
- interface HTMLSelectElement {
- [Symbol.iterator](): IterableIterator<HTMLOptionElement>;
- }
- interface Headers {
- [Symbol.iterator](): IterableIterator<[string, string]>;
- /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
- entries(): IterableIterator<[string, string]>;
- /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
- keys(): IterableIterator<string>;
- /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
- values(): IterableIterator<string>;
- }
- interface IDBDatabase {
- /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
- transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
- }
- interface IDBObjectStore {
- /**
- * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
- *
- * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
- */
- createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
- }
- interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
- }
- interface MIDIOutput {
- send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
- }
- interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
- }
- interface MediaKeyStatusMap {
- [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
- entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
- keys(): IterableIterator<BufferSource>;
- values(): IterableIterator<MediaKeyStatus>;
- }
- interface MediaList {
- [Symbol.iterator](): IterableIterator<string>;
- }
- interface MessageEvent<T = any> {
- /** @deprecated */
- initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
- }
- interface MimeTypeArray {
- [Symbol.iterator](): IterableIterator<MimeType>;
- }
- interface NamedNodeMap {
- [Symbol.iterator](): IterableIterator<Attr>;
- }
- interface Navigator {
- /** Available only in secure contexts. */
- requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
- vibrate(pattern: Iterable<number>): boolean;
- }
- interface NodeList {
- [Symbol.iterator](): IterableIterator<Node>;
- /** Returns an array of key, value pairs for every entry in the list. */
- entries(): IterableIterator<[number, Node]>;
- /** Returns an list of keys in the list. */
- keys(): IterableIterator<number>;
- /** Returns an list of values in the list. */
- values(): IterableIterator<Node>;
- }
- interface NodeListOf<TNode extends Node> {
- [Symbol.iterator](): IterableIterator<TNode>;
- /** Returns an array of key, value pairs for every entry in the list. */
- entries(): IterableIterator<[number, TNode]>;
- /** Returns an list of keys in the list. */
- keys(): IterableIterator<number>;
- /** Returns an list of values in the list. */
- values(): IterableIterator<TNode>;
- }
- interface Plugin {
- [Symbol.iterator](): IterableIterator<MimeType>;
- }
- interface PluginArray {
- [Symbol.iterator](): IterableIterator<Plugin>;
- }
- interface RTCRtpTransceiver {
- setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
- }
- interface RTCStatsReport extends ReadonlyMap<string, any> {
- }
- interface SVGLengthList {
- [Symbol.iterator](): IterableIterator<SVGLength>;
- }
- interface SVGNumberList {
- [Symbol.iterator](): IterableIterator<SVGNumber>;
- }
- interface SVGPointList {
- [Symbol.iterator](): IterableIterator<DOMPoint>;
- }
- interface SVGStringList {
- [Symbol.iterator](): IterableIterator<string>;
- }
- interface SVGTransformList {
- [Symbol.iterator](): IterableIterator<SVGTransform>;
- }
- interface SourceBufferList {
- [Symbol.iterator](): IterableIterator<SourceBuffer>;
- }
- interface SpeechRecognitionResult {
- [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
- }
- interface SpeechRecognitionResultList {
- [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
- }
- interface StyleSheetList {
- [Symbol.iterator](): IterableIterator<CSSStyleSheet>;
- }
- interface SubtleCrypto {
- deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
- generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
- generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
- generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
- importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
- importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
- unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
- }
- interface TextTrackCueList {
- [Symbol.iterator](): IterableIterator<TextTrackCue>;
- }
- interface TextTrackList {
- [Symbol.iterator](): IterableIterator<TextTrack>;
- }
- interface TouchList {
- [Symbol.iterator](): IterableIterator<Touch>;
- }
- interface URLSearchParams {
- [Symbol.iterator](): IterableIterator<[string, string]>;
- /** Returns an array of key, value pairs for every entry in the search params. */
- entries(): IterableIterator<[string, string]>;
- /** Returns a list of keys in the search params. */
- keys(): IterableIterator<string>;
- /** Returns a list of values in the search params. */
- values(): IterableIterator<string>;
- }
- interface WEBGL_draw_buffers {
- drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
- }
- interface WEBGL_multi_draw {
- multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
- multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
- multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
- }
- interface WebGL2RenderingContextBase {
- clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
- clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
- clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
- drawBuffers(buffers: Iterable<GLenum>): void;
- getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
- getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
- invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
- invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
- transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
- uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
- vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
- }
- interface WebGL2RenderingContextOverloads {
- uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- }
- interface WebGLRenderingContextBase {
- vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
- vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
- vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
- vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
- }
- interface WebGLRenderingContextOverloads {
- uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
- uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
- uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
- uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
- uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
- uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
- uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
- uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
- }
- `,ga["lib.es2015.collection.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface Map<K, V> {
- clear(): void;
- /**
- * @returns true if an element in the Map existed and has been removed, or false if the element does not exist.
- */
- delete(key: K): boolean;
- /**
- * Executes a provided function once per each key/value pair in the Map, in insertion order.
- */
- forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
- /**
- * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
- * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
- */
- get(key: K): V | undefined;
- /**
- * @returns boolean indicating whether an element with the specified key exists or not.
- */
- has(key: K): boolean;
- /**
- * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
- */
- set(key: K, value: V): this;
- /**
- * @returns the number of elements in the Map.
- */
- readonly size: number;
- }
- interface MapConstructor {
- new(): Map<any, any>;
- new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
- readonly prototype: Map<any, any>;
- }
- declare var Map: MapConstructor;
- interface ReadonlyMap<K, V> {
- forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
- get(key: K): V | undefined;
- has(key: K): boolean;
- readonly size: number;
- }
- interface WeakMap<K extends object, V> {
- /**
- * Removes the specified element from the WeakMap.
- * @returns true if the element was successfully removed, or false if it was not present.
- */
- delete(key: K): boolean;
- /**
- * @returns a specified element.
- */
- get(key: K): V | undefined;
- /**
- * @returns a boolean indicating whether an element with the specified key exists or not.
- */
- has(key: K): boolean;
- /**
- * Adds a new element with a specified key and value.
- * @param key Must be an object.
- */
- set(key: K, value: V): this;
- }
- interface WeakMapConstructor {
- new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
- readonly prototype: WeakMap<object, any>;
- }
- declare var WeakMap: WeakMapConstructor;
- interface Set<T> {
- /**
- * Appends a new element with a specified value to the end of the Set.
- */
- add(value: T): this;
- clear(): void;
- /**
- * Removes a specified value from the Set.
- * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
- */
- delete(value: T): boolean;
- /**
- * Executes a provided function once per each value in the Set object, in insertion order.
- */
- forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
- /**
- * @returns a boolean indicating whether an element with the specified value exists in the Set or not.
- */
- has(value: T): boolean;
- /**
- * @returns the number of (unique) elements in Set.
- */
- readonly size: number;
- }
- interface SetConstructor {
- new <T = any>(values?: readonly T[] | null): Set<T>;
- readonly prototype: Set<any>;
- }
- declare var Set: SetConstructor;
- interface ReadonlySet<T> {
- forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
- has(value: T): boolean;
- readonly size: number;
- }
- interface WeakSet<T extends object> {
- /**
- * Appends a new object to the end of the WeakSet.
- */
- add(value: T): this;
- /**
- * Removes the specified element from the WeakSet.
- * @returns Returns true if the element existed and has been removed, or false if the element does not exist.
- */
- delete(value: T): boolean;
- /**
- * @returns a boolean indicating whether an object exists in the WeakSet or not.
- */
- has(value: T): boolean;
- }
- interface WeakSetConstructor {
- new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
- readonly prototype: WeakSet<object>;
- }
- declare var WeakSet: WeakSetConstructor;
- `,ga["lib.es2015.core.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface Array<T> {
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
- find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
- /**
- * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: T, start?: number, end?: number): this;
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
- }
- interface ArrayConstructor {
- /**
- * Creates an array from an array-like object.
- * @param arrayLike An array-like object to convert to an array.
- */
- from<T>(arrayLike: ArrayLike<T>): T[];
- /**
- * Creates an array from an iterable object.
- * @param arrayLike An array-like object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of<T>(...items: T[]): T[];
- }
- interface DateConstructor {
- new (value: number | string | Date): Date;
- }
- interface Function {
- /**
- * Returns the name of the function. Function names are read-only and can not be changed.
- */
- readonly name: string;
- }
- interface Math {
- /**
- * Returns the number of leading zero bits in the 32-bit binary representation of a number.
- * @param x A numeric expression.
- */
- clz32(x: number): number;
- /**
- * Returns the result of 32-bit multiplication of two numbers.
- * @param x First number
- * @param y Second number
- */
- imul(x: number, y: number): number;
- /**
- * Returns the sign of the x, indicating whether x is positive, negative or zero.
- * @param x The numeric expression to test
- */
- sign(x: number): number;
- /**
- * Returns the base 10 logarithm of a number.
- * @param x A numeric expression.
- */
- log10(x: number): number;
- /**
- * Returns the base 2 logarithm of a number.
- * @param x A numeric expression.
- */
- log2(x: number): number;
- /**
- * Returns the natural logarithm of 1 + x.
- * @param x A numeric expression.
- */
- log1p(x: number): number;
- /**
- * Returns the result of (e^x - 1), which is an implementation-dependent approximation to
- * subtracting 1 from the exponential function of x (e raised to the power of x, where e
- * is the base of the natural logarithms).
- * @param x A numeric expression.
- */
- expm1(x: number): number;
- /**
- * Returns the hyperbolic cosine of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- cosh(x: number): number;
- /**
- * Returns the hyperbolic sine of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- sinh(x: number): number;
- /**
- * Returns the hyperbolic tangent of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- tanh(x: number): number;
- /**
- * Returns the inverse hyperbolic cosine of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- acosh(x: number): number;
- /**
- * Returns the inverse hyperbolic sine of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- asinh(x: number): number;
- /**
- * Returns the inverse hyperbolic tangent of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- atanh(x: number): number;
- /**
- * Returns the square root of the sum of squares of its arguments.
- * @param values Values to compute the square root for.
- * If no arguments are passed, the result is +0.
- * If there is only one argument, the result is the absolute value.
- * If any argument is +Infinity or -Infinity, the result is +Infinity.
- * If any argument is NaN, the result is NaN.
- * If all arguments are either +0 or −0, the result is +0.
- */
- hypot(...values: number[]): number;
- /**
- * Returns the integral part of the a numeric expression, x, removing any fractional digits.
- * If x is already an integer, the result is x.
- * @param x A numeric expression.
- */
- trunc(x: number): number;
- /**
- * Returns the nearest single precision float representation of a number.
- * @param x A numeric expression.
- */
- fround(x: number): number;
- /**
- * Returns an implementation-dependent approximation to the cube root of number.
- * @param x A numeric expression.
- */
- cbrt(x: number): number;
- }
- interface NumberConstructor {
- /**
- * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
- * that is representable as a Number value, which is approximately:
- * 2.2204460492503130808472633361816 x 10−16.
- */
- readonly EPSILON: number;
- /**
- * Returns true if passed value is finite.
- * Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
- * number. Only finite values of the type number, result in true.
- * @param number A numeric value.
- */
- isFinite(number: unknown): boolean;
- /**
- * Returns true if the value passed is an integer, false otherwise.
- * @param number A numeric value.
- */
- isInteger(number: unknown): boolean;
- /**
- * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
- * number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
- * to a number. Only values of the type number, that are also NaN, result in true.
- * @param number A numeric value.
- */
- isNaN(number: unknown): boolean;
- /**
- * Returns true if the value passed is a safe integer.
- * @param number A numeric value.
- */
- isSafeInteger(number: unknown): boolean;
- /**
- * The value of the largest integer n such that n and n + 1 are both exactly representable as
- * a Number value.
- * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1.
- */
- readonly MAX_SAFE_INTEGER: number;
- /**
- * The value of the smallest integer n such that n and n − 1 are both exactly representable as
- * a Number value.
- * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).
- */
- readonly MIN_SAFE_INTEGER: number;
- /**
- * Converts a string to a floating-point number.
- * @param string A string that contains a floating-point number.
- */
- parseFloat(string: string): number;
- /**
- * Converts A string to an integer.
- * @param string A string to convert into a number.
- * @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
- * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
- * All other strings are considered decimal.
- */
- parseInt(string: string, radix?: number): number;
- }
- interface ObjectConstructor {
- /**
- * Copy the values of all of the enumerable own properties from one or more source objects to a
- * target object. Returns the target object.
- * @param target The target object to copy to.
- * @param source The source object from which to copy properties.
- */
- assign<T extends {}, U>(target: T, source: U): T & U;
- /**
- * Copy the values of all of the enumerable own properties from one or more source objects to a
- * target object. Returns the target object.
- * @param target The target object to copy to.
- * @param source1 The first source object from which to copy properties.
- * @param source2 The second source object from which to copy properties.
- */
- assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
- /**
- * Copy the values of all of the enumerable own properties from one or more source objects to a
- * target object. Returns the target object.
- * @param target The target object to copy to.
- * @param source1 The first source object from which to copy properties.
- * @param source2 The second source object from which to copy properties.
- * @param source3 The third source object from which to copy properties.
- */
- assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
- /**
- * Copy the values of all of the enumerable own properties from one or more source objects to a
- * target object. Returns the target object.
- * @param target The target object to copy to.
- * @param sources One or more source objects from which to copy properties
- */
- assign(target: object, ...sources: any[]): any;
- /**
- * Returns an array of all symbol properties found directly on object o.
- * @param o Object to retrieve the symbols from.
- */
- getOwnPropertySymbols(o: any): symbol[];
- /**
- * Returns the names of the enumerable string properties and methods of an object.
- * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- */
- keys(o: {}): string[];
- /**
- * Returns true if the values are the same value, false otherwise.
- * @param value1 The first value.
- * @param value2 The second value.
- */
- is(value1: any, value2: any): boolean;
- /**
- * Sets the prototype of a specified object o to object proto or null. Returns the object o.
- * @param o The object to change its prototype.
- * @param proto The value of the new prototype or null.
- */
- setPrototypeOf(o: any, proto: object | null): any;
- }
- interface ReadonlyArray<T> {
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
- find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
- }
- interface RegExp {
- /**
- * Returns a string indicating the flags of the regular expression in question. This field is read-only.
- * The characters in this string are sequenced and concatenated in the following order:
- *
- * - "g" for global
- * - "i" for ignoreCase
- * - "m" for multiline
- * - "u" for unicode
- * - "y" for sticky
- *
- * If no flags are set, the value is the empty string.
- */
- readonly flags: string;
- /**
- * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
- * expression. Default is false. Read-only.
- */
- readonly sticky: boolean;
- /**
- * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
- * expression. Default is false. Read-only.
- */
- readonly unicode: boolean;
- }
- interface RegExpConstructor {
- new (pattern: RegExp | string, flags?: string): RegExp;
- (pattern: RegExp | string, flags?: string): RegExp;
- }
- interface String {
- /**
- * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
- * value of the UTF-16 encoded code point starting at the string element at position pos in
- * the String resulting from converting this object to a String.
- * If there is no element at that position, the result is undefined.
- * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
- */
- codePointAt(pos: number): number | undefined;
- /**
- * Returns true if searchString appears as a substring of the result of converting this
- * object to a String, at one or more positions that are
- * greater than or equal to position; otherwise, returns false.
- * @param searchString search string
- * @param position If position is undefined, 0 is assumed, so as to search all of the String.
- */
- includes(searchString: string, position?: number): boolean;
- /**
- * Returns true if the sequence of elements of searchString converted to a String is the
- * same as the corresponding elements of this object (converted to a String) starting at
- * endPosition – length(this). Otherwise returns false.
- */
- endsWith(searchString: string, endPosition?: number): boolean;
- /**
- * Returns the String value result of normalizing the string into the normalization form
- * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
- * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
- * is "NFC"
- */
- normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
- /**
- * Returns the String value result of normalizing the string into the normalization form
- * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
- * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
- * is "NFC"
- */
- normalize(form?: string): string;
- /**
- * Returns a String value that is made from count copies appended together. If count is 0,
- * the empty string is returned.
- * @param count number of copies to append
- */
- repeat(count: number): string;
- /**
- * Returns true if the sequence of elements of searchString converted to a String is the
- * same as the corresponding elements of this object (converted to a String) starting at
- * position. Otherwise returns false.
- */
- startsWith(searchString: string, position?: number): boolean;
- /**
- * Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value
- * @deprecated A legacy feature for browser compatibility
- * @param name
- */
- anchor(name: string): string;
- /**
- * Returns a \`<big>\` HTML element
- * @deprecated A legacy feature for browser compatibility
- */
- big(): string;
- /**
- * Returns a \`<blink>\` HTML element
- * @deprecated A legacy feature for browser compatibility
- */
- blink(): string;
- /**
- * Returns a \`<b>\` HTML element
- * @deprecated A legacy feature for browser compatibility
- */
- bold(): string;
- /**
- * Returns a \`<tt>\` HTML element
- * @deprecated A legacy feature for browser compatibility
- */
- fixed(): string;
- /**
- * Returns a \`<font>\` HTML element and sets the color attribute value
- * @deprecated A legacy feature for browser compatibility
- */
- fontcolor(color: string): string;
- /**
- * Returns a \`<font>\` HTML element and sets the size attribute value
- * @deprecated A legacy feature for browser compatibility
- */
- fontsize(size: number): string;
- /**
- * Returns a \`<font>\` HTML element and sets the size attribute value
- * @deprecated A legacy feature for browser compatibility
- */
- fontsize(size: string): string;
- /**
- * Returns an \`<i>\` HTML element
- * @deprecated A legacy feature for browser compatibility
- */
- italics(): string;
- /**
- * Returns an \`<a>\` HTML element and sets the href attribute value
- * @deprecated A legacy feature for browser compatibility
- */
- link(url: string): string;
- /**
- * Returns a \`<small>\` HTML element
- * @deprecated A legacy feature for browser compatibility
- */
- small(): string;
- /**
- * Returns a \`<strike>\` HTML element
- * @deprecated A legacy feature for browser compatibility
- */
- strike(): string;
- /**
- * Returns a \`<sub>\` HTML element
- * @deprecated A legacy feature for browser compatibility
- */
- sub(): string;
- /**
- * Returns a \`<sup>\` HTML element
- * @deprecated A legacy feature for browser compatibility
- */
- sup(): string;
- }
- interface StringConstructor {
- /**
- * Return the String value whose elements are, in order, the elements in the List elements.
- * If length is 0, the empty string is returned.
- */
- fromCodePoint(...codePoints: number[]): string;
- /**
- * String.raw is usually used as a tag function of a Tagged Template String. When called as
- * such, the first argument will be a well formed template call site object and the rest
- * parameter will contain the substitution values. It can also be called directly, for example,
- * to interleave strings and values from your own tag function, and in this case the only thing
- * it needs from the first argument is the raw property.
- * @param template A well-formed template string call site representation.
- * @param substitutions A set of substitution values.
- */
- raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;
- }
- `,ga["lib.es2015.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es5" />
- /// <reference lib="es2015.core" />
- /// <reference lib="es2015.collection" />
- /// <reference lib="es2015.iterable" />
- /// <reference lib="es2015.generator" />
- /// <reference lib="es2015.promise" />
- /// <reference lib="es2015.proxy" />
- /// <reference lib="es2015.reflect" />
- /// <reference lib="es2015.symbol" />
- /// <reference lib="es2015.symbol.wellknown" />
- `,ga["lib.es2015.generator.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2015.iterable" />
- interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {
- // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
- next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
- return(value: TReturn): IteratorResult<T, TReturn>;
- throw(e: any): IteratorResult<T, TReturn>;
- [Symbol.iterator](): Generator<T, TReturn, TNext>;
- }
- interface GeneratorFunction {
- /**
- * Creates a new Generator object.
- * @param args A list of arguments the function accepts.
- */
- new (...args: any[]): Generator;
- /**
- * Creates a new Generator object.
- * @param args A list of arguments the function accepts.
- */
- (...args: any[]): Generator;
- /**
- * The length of the arguments.
- */
- readonly length: number;
- /**
- * Returns the name of the function.
- */
- readonly name: string;
- /**
- * A reference to the prototype.
- */
- readonly prototype: Generator;
- }
- interface GeneratorFunctionConstructor {
- /**
- * Creates a new Generator function.
- * @param args A list of arguments the function accepts.
- */
- new (...args: string[]): GeneratorFunction;
- /**
- * Creates a new Generator function.
- * @param args A list of arguments the function accepts.
- */
- (...args: string[]): GeneratorFunction;
- /**
- * The length of the arguments.
- */
- readonly length: number;
- /**
- * Returns the name of the function.
- */
- readonly name: string;
- /**
- * A reference to the prototype.
- */
- readonly prototype: GeneratorFunction;
- }
- `,ga["lib.es2015.iterable.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2015.symbol" />
- interface SymbolConstructor {
- /**
- * A method that returns the default iterator for an object. Called by the semantics of the
- * for-of statement.
- */
- readonly iterator: unique symbol;
- }
- interface IteratorYieldResult<TYield> {
- done?: false;
- value: TYield;
- }
- interface IteratorReturnResult<TReturn> {
- done: true;
- value: TReturn;
- }
- type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
- interface Iterator<T, TReturn = any, TNext = undefined> {
- // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
- next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
- return?(value?: TReturn): IteratorResult<T, TReturn>;
- throw?(e?: any): IteratorResult<T, TReturn>;
- }
- interface Iterable<T> {
- [Symbol.iterator](): Iterator<T>;
- }
- interface IterableIterator<T> extends Iterator<T> {
- [Symbol.iterator](): IterableIterator<T>;
- }
- interface Array<T> {
- /** Iterator */
- [Symbol.iterator](): IterableIterator<T>;
- /**
- * Returns an iterable of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, T]>;
- /**
- * Returns an iterable of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an iterable of values in the array
- */
- values(): IterableIterator<T>;
- }
- interface ArrayConstructor {
- /**
- * Creates an array from an iterable object.
- * @param iterable An iterable object to convert to an array.
- */
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
- /**
- * Creates an array from an iterable object.
- * @param iterable An iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
- }
- interface ReadonlyArray<T> {
- /** Iterator of values in the array. */
- [Symbol.iterator](): IterableIterator<T>;
- /**
- * Returns an iterable of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, T]>;
- /**
- * Returns an iterable of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an iterable of values in the array
- */
- values(): IterableIterator<T>;
- }
- interface IArguments {
- /** Iterator */
- [Symbol.iterator](): IterableIterator<any>;
- }
- interface Map<K, V> {
- /** Returns an iterable of entries in the map. */
- [Symbol.iterator](): IterableIterator<[K, V]>;
- /**
- * Returns an iterable of key, value pairs for every entry in the map.
- */
- entries(): IterableIterator<[K, V]>;
- /**
- * Returns an iterable of keys in the map
- */
- keys(): IterableIterator<K>;
- /**
- * Returns an iterable of values in the map
- */
- values(): IterableIterator<V>;
- }
- interface ReadonlyMap<K, V> {
- /** Returns an iterable of entries in the map. */
- [Symbol.iterator](): IterableIterator<[K, V]>;
- /**
- * Returns an iterable of key, value pairs for every entry in the map.
- */
- entries(): IterableIterator<[K, V]>;
- /**
- * Returns an iterable of keys in the map
- */
- keys(): IterableIterator<K>;
- /**
- * Returns an iterable of values in the map
- */
- values(): IterableIterator<V>;
- }
- interface MapConstructor {
- new(): Map<any, any>;
- new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;
- }
- interface WeakMap<K extends object, V> { }
- interface WeakMapConstructor {
- new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
- }
- interface Set<T> {
- /** Iterates over values in the set. */
- [Symbol.iterator](): IterableIterator<T>;
- /**
- * Returns an iterable of [v,v] pairs for every value \`v\` in the set.
- */
- entries(): IterableIterator<[T, T]>;
- /**
- * Despite its name, returns an iterable of the values in the set.
- */
- keys(): IterableIterator<T>;
- /**
- * Returns an iterable of values in the set.
- */
- values(): IterableIterator<T>;
- }
- interface ReadonlySet<T> {
- /** Iterates over values in the set. */
- [Symbol.iterator](): IterableIterator<T>;
- /**
- * Returns an iterable of [v,v] pairs for every value \`v\` in the set.
- */
- entries(): IterableIterator<[T, T]>;
- /**
- * Despite its name, returns an iterable of the values in the set.
- */
- keys(): IterableIterator<T>;
- /**
- * Returns an iterable of values in the set.
- */
- values(): IterableIterator<T>;
- }
- interface SetConstructor {
- new <T>(iterable?: Iterable<T> | null): Set<T>;
- }
- interface WeakSet<T extends object> { }
- interface WeakSetConstructor {
- new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;
- }
- interface Promise<T> { }
- interface PromiseConstructor {
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An iterable of Promises.
- * @returns A new Promise.
- */
- all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
- /**
- * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
- * or rejected.
- * @param values An iterable of Promises.
- * @returns A new Promise.
- */
- race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
- }
- interface String {
- /** Iterator */
- [Symbol.iterator](): IterableIterator<string>;
- }
- interface Int8Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
- }
- interface Int8ArrayConstructor {
- new (elements: Iterable<number>): Int8Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
- }
- interface Uint8Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
- }
- interface Uint8ArrayConstructor {
- new (elements: Iterable<number>): Uint8Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
- }
- interface Uint8ClampedArray {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
- }
- interface Uint8ClampedArrayConstructor {
- new (elements: Iterable<number>): Uint8ClampedArray;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
- }
- interface Int16Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
- }
- interface Int16ArrayConstructor {
- new (elements: Iterable<number>): Int16Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
- }
- interface Uint16Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
- }
- interface Uint16ArrayConstructor {
- new (elements: Iterable<number>): Uint16Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
- }
- interface Int32Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
- }
- interface Int32ArrayConstructor {
- new (elements: Iterable<number>): Int32Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
- }
- interface Uint32Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
- }
- interface Uint32ArrayConstructor {
- new (elements: Iterable<number>): Uint32Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
- }
- interface Float32Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
- }
- interface Float32ArrayConstructor {
- new (elements: Iterable<number>): Float32Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
- }
- interface Float64Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
- }
- interface Float64ArrayConstructor {
- new (elements: Iterable<number>): Float64Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
- }
- `,ga["lib.es2015.promise.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface PromiseConstructor {
- /**
- * A reference to the prototype.
- */
- readonly prototype: Promise<any>;
- /**
- * Creates a new Promise.
- * @param executor A callback used to initialize the promise. This callback is passed two arguments:
- * a resolve callback used to resolve the promise with a value or the result of another promise,
- * and a reject callback used to reject the promise with a provided reason or error.
- */
- new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;
- // see: lib.es2015.iterable.d.ts
- // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
- /**
- * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
- * or rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
- // see: lib.es2015.iterable.d.ts
- // race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
- /**
- * Creates a new rejected promise for the provided reason.
- * @param reason The reason the promise was rejected.
- * @returns A new rejected Promise.
- */
- reject<T = never>(reason?: any): Promise<T>;
- /**
- * Creates a new resolved promise.
- * @returns A resolved promise.
- */
- resolve(): Promise<void>;
- /**
- * Creates a new resolved promise for the provided value.
- * @param value A promise.
- * @returns A promise whose internal state matches the provided promise.
- */
- resolve<T>(value: T): Promise<Awaited<T>>;
- /**
- * Creates a new resolved promise for the provided value.
- * @param value A promise.
- * @returns A promise whose internal state matches the provided promise.
- */
- resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
- }
- declare var Promise: PromiseConstructor;
- `,ga["lib.es2015.proxy.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface ProxyHandler<T extends object> {
- /**
- * A trap method for a function call.
- * @param target The original callable object which is being proxied.
- */
- apply?(target: T, thisArg: any, argArray: any[]): any;
- /**
- * A trap for the \`new\` operator.
- * @param target The original object which is being proxied.
- * @param newTarget The constructor that was originally called.
- */
- construct?(target: T, argArray: any[], newTarget: Function): object;
- /**
- * A trap for \`Object.defineProperty()\`.
- * @param target The original object which is being proxied.
- * @returns A \`Boolean\` indicating whether or not the property has been defined.
- */
- defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean;
- /**
- * A trap for the \`delete\` operator.
- * @param target The original object which is being proxied.
- * @param p The name or \`Symbol\` of the property to delete.
- * @returns A \`Boolean\` indicating whether or not the property was deleted.
- */
- deleteProperty?(target: T, p: string | symbol): boolean;
- /**
- * A trap for getting a property value.
- * @param target The original object which is being proxied.
- * @param p The name or \`Symbol\` of the property to get.
- * @param receiver The proxy or an object that inherits from the proxy.
- */
- get?(target: T, p: string | symbol, receiver: any): any;
- /**
- * A trap for \`Object.getOwnPropertyDescriptor()\`.
- * @param target The original object which is being proxied.
- * @param p The name of the property whose description should be retrieved.
- */
- getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;
- /**
- * A trap for the \`[[GetPrototypeOf]]\` internal method.
- * @param target The original object which is being proxied.
- */
- getPrototypeOf?(target: T): object | null;
- /**
- * A trap for the \`in\` operator.
- * @param target The original object which is being proxied.
- * @param p The name or \`Symbol\` of the property to check for existence.
- */
- has?(target: T, p: string | symbol): boolean;
- /**
- * A trap for \`Object.isExtensible()\`.
- * @param target The original object which is being proxied.
- */
- isExtensible?(target: T): boolean;
- /**
- * A trap for \`Reflect.ownKeys()\`.
- * @param target The original object which is being proxied.
- */
- ownKeys?(target: T): ArrayLike<string | symbol>;
- /**
- * A trap for \`Object.preventExtensions()\`.
- * @param target The original object which is being proxied.
- */
- preventExtensions?(target: T): boolean;
- /**
- * A trap for setting a property value.
- * @param target The original object which is being proxied.
- * @param p The name or \`Symbol\` of the property to set.
- * @param receiver The object to which the assignment was originally directed.
- * @returns A \`Boolean\` indicating whether or not the property was set.
- */
- set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;
- /**
- * A trap for \`Object.setPrototypeOf()\`.
- * @param target The original object which is being proxied.
- * @param newPrototype The object's new prototype or \`null\`.
- */
- setPrototypeOf?(target: T, v: object | null): boolean;
- }
- interface ProxyConstructor {
- /**
- * Creates a revocable Proxy object.
- * @param target A target object to wrap with Proxy.
- * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
- */
- revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
- /**
- * Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the
- * original object, but which may redefine fundamental Object operations like getting, setting, and defining
- * properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs.
- * @param target A target object to wrap with Proxy.
- * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
- */
- new <T extends object>(target: T, handler: ProxyHandler<T>): T;
- }
- declare var Proxy: ProxyConstructor;
- `,ga["lib.es2015.reflect.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- declare namespace Reflect {
- /**
- * Calls the function with the specified object as the this value
- * and the elements of specified array as the arguments.
- * @param target The function to call.
- * @param thisArgument The object to be used as the this object.
- * @param argumentsList An array of argument values to be passed to the function.
- */
- function apply<T, A extends readonly any[], R>(
- target: (this: T, ...args: A) => R,
- thisArgument: T,
- argumentsList: Readonly<A>,
- ): R;
- function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
- /**
- * Constructs the target with the elements of specified array as the arguments
- * and the specified constructor as the \`new.target\` value.
- * @param target The constructor to invoke.
- * @param argumentsList An array of argument values to be passed to the constructor.
- * @param newTarget The constructor to be used as the \`new.target\` object.
- */
- function construct<A extends readonly any[], R>(
- target: new (...args: A) => R,
- argumentsList: Readonly<A>,
- newTarget?: new (...args: any) => any,
- ): R;
- function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;
- /**
- * Adds a property to an object, or modifies attributes of an existing property.
- * @param target Object on which to add or modify the property. This can be a native JavaScript object
- * (that is, a user-defined object or a built in object) or a DOM object.
- * @param propertyKey The property name.
- * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
- */
- function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;
- /**
- * Removes a property from an object, equivalent to \`delete target[propertyKey]\`,
- * except it won't throw if \`target[propertyKey]\` is non-configurable.
- * @param target Object from which to remove the own property.
- * @param propertyKey The property name.
- */
- function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
- /**
- * Gets the property of target, equivalent to \`target[propertyKey]\` when \`receiver === target\`.
- * @param target Object that contains the property on itself or in its prototype chain.
- * @param propertyKey The property name.
- * @param receiver The reference to use as the \`this\` value in the getter function,
- * if \`target[propertyKey]\` is an accessor property.
- */
- function get<T extends object, P extends PropertyKey>(
- target: T,
- propertyKey: P,
- receiver?: unknown,
- ): P extends keyof T ? T[P] : any;
- /**
- * Gets the own property descriptor of the specified object.
- * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
- * @param target Object that contains the property.
- * @param propertyKey The property name.
- */
- function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(
- target: T,
- propertyKey: P,
- ): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;
- /**
- * Returns the prototype of an object.
- * @param target The object that references the prototype.
- */
- function getPrototypeOf(target: object): object | null;
- /**
- * Equivalent to \`propertyKey in target\`.
- * @param target Object that contains the property on itself or in its prototype chain.
- * @param propertyKey Name of the property.
- */
- function has(target: object, propertyKey: PropertyKey): boolean;
- /**
- * Returns a value that indicates whether new properties can be added to an object.
- * @param target Object to test.
- */
- function isExtensible(target: object): boolean;
- /**
- * Returns the string and symbol keys of the own properties of an object. The own properties of an object
- * are those that are defined directly on that object, and are not inherited from the object's prototype.
- * @param target Object that contains the own properties.
- */
- function ownKeys(target: object): (string | symbol)[];
- /**
- * Prevents the addition of new properties to an object.
- * @param target Object to make non-extensible.
- * @return Whether the object has been made non-extensible.
- */
- function preventExtensions(target: object): boolean;
- /**
- * Sets the property of target, equivalent to \`target[propertyKey] = value\` when \`receiver === target\`.
- * @param target Object that contains the property on itself or in its prototype chain.
- * @param propertyKey Name of the property.
- * @param receiver The reference to use as the \`this\` value in the setter function,
- * if \`target[propertyKey]\` is an accessor property.
- */
- function set<T extends object, P extends PropertyKey>(
- target: T,
- propertyKey: P,
- value: P extends keyof T ? T[P] : any,
- receiver?: any,
- ): boolean;
- function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
- /**
- * Sets the prototype of a specified object o to object proto or null.
- * @param target The object to change its prototype.
- * @param proto The value of the new prototype or null.
- * @return Whether setting the prototype was successful.
- */
- function setPrototypeOf(target: object, proto: object | null): boolean;
- }
- `,ga["lib.es2015.symbol.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface SymbolConstructor {
- /**
- * A reference to the prototype.
- */
- readonly prototype: Symbol;
- /**
- * Returns a new unique Symbol value.
- * @param description Description of the new Symbol object.
- */
- (description?: string | number): symbol;
- /**
- * Returns a Symbol object from the global symbol registry matching the given key if found.
- * Otherwise, returns a new symbol with this key.
- * @param key key to search for.
- */
- for(key: string): symbol;
- /**
- * Returns a key from the global symbol registry matching the given Symbol if found.
- * Otherwise, returns a undefined.
- * @param sym Symbol to find the key for.
- */
- keyFor(sym: symbol): string | undefined;
- }
- declare var Symbol: SymbolConstructor;`,ga["lib.es2015.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2015.symbol" />
- interface SymbolConstructor {
- /**
- * A method that determines if a constructor object recognizes an object as one of the
- * constructor’s instances. Called by the semantics of the instanceof operator.
- */
- readonly hasInstance: unique symbol;
- /**
- * A Boolean value that if true indicates that an object should flatten to its array elements
- * by Array.prototype.concat.
- */
- readonly isConcatSpreadable: unique symbol;
- /**
- * A regular expression method that matches the regular expression against a string. Called
- * by the String.prototype.match method.
- */
- readonly match: unique symbol;
- /**
- * A regular expression method that replaces matched substrings of a string. Called by the
- * String.prototype.replace method.
- */
- readonly replace: unique symbol;
- /**
- * A regular expression method that returns the index within a string that matches the
- * regular expression. Called by the String.prototype.search method.
- */
- readonly search: unique symbol;
- /**
- * A function valued property that is the constructor function that is used to create
- * derived objects.
- */
- readonly species: unique symbol;
- /**
- * A regular expression method that splits a string at the indices that match the regular
- * expression. Called by the String.prototype.split method.
- */
- readonly split: unique symbol;
- /**
- * A method that converts an object to a corresponding primitive value.
- * Called by the ToPrimitive abstract operation.
- */
- readonly toPrimitive: unique symbol;
- /**
- * A String value that is used in the creation of the default string description of an object.
- * Called by the built-in method Object.prototype.toString.
- */
- readonly toStringTag: unique symbol;
- /**
- * An Object whose truthy properties are properties that are excluded from the 'with'
- * environment bindings of the associated objects.
- */
- readonly unscopables: unique symbol;
- }
- interface Symbol {
- /**
- * Converts a Symbol object to a symbol.
- */
- [Symbol.toPrimitive](hint: string): symbol;
- readonly [Symbol.toStringTag]: string;
- }
- interface Array<T> {
- /**
- * Is an object whose properties have the value 'true'
- * when they will be absent when used in a 'with' statement.
- */
- readonly [Symbol.unscopables]: {
- [K in keyof any[]]?: boolean;
- };
- }
- interface ReadonlyArray<T> {
- /**
- * Is an object whose properties have the value 'true'
- * when they will be absent when used in a 'with' statement.
- */
- readonly [Symbol.unscopables]: {
- [K in keyof readonly any[]]?: boolean;
- };
- }
- interface Date {
- /**
- * Converts a Date object to a string.
- */
- [Symbol.toPrimitive](hint: "default"): string;
- /**
- * Converts a Date object to a string.
- */
- [Symbol.toPrimitive](hint: "string"): string;
- /**
- * Converts a Date object to a number.
- */
- [Symbol.toPrimitive](hint: "number"): number;
- /**
- * Converts a Date object to a string or number.
- *
- * @param hint The strings "number", "string", or "default" to specify what primitive to return.
- *
- * @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
- * @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
- */
- [Symbol.toPrimitive](hint: string): string | number;
- }
- interface Map<K, V> {
- readonly [Symbol.toStringTag]: string;
- }
- interface WeakMap<K extends object, V> {
- readonly [Symbol.toStringTag]: string;
- }
- interface Set<T> {
- readonly [Symbol.toStringTag]: string;
- }
- interface WeakSet<T extends object> {
- readonly [Symbol.toStringTag]: string;
- }
- interface JSON {
- readonly [Symbol.toStringTag]: string;
- }
- interface Function {
- /**
- * Determines whether the given value inherits from this function if this function was used
- * as a constructor function.
- *
- * A constructor function can control which objects are recognized as its instances by
- * 'instanceof' by overriding this method.
- */
- [Symbol.hasInstance](value: any): boolean;
- }
- interface GeneratorFunction {
- readonly [Symbol.toStringTag]: string;
- }
- interface Math {
- readonly [Symbol.toStringTag]: string;
- }
- interface Promise<T> {
- readonly [Symbol.toStringTag]: string;
- }
- interface PromiseConstructor {
- readonly [Symbol.species]: PromiseConstructor;
- }
- interface RegExp {
- /**
- * Matches a string with this regular expression, and returns an array containing the results of
- * that search.
- * @param string A string to search within.
- */
- [Symbol.match](string: string): RegExpMatchArray | null;
- /**
- * Replaces text in a string, using this regular expression.
- * @param string A String object or string literal whose contents matching against
- * this regular expression will be replaced
- * @param replaceValue A String object or string literal containing the text to replace for every
- * successful match of this regular expression.
- */
- [Symbol.replace](string: string, replaceValue: string): string;
- /**
- * Replaces text in a string, using this regular expression.
- * @param string A String object or string literal whose contents matching against
- * this regular expression will be replaced
- * @param replacer A function that returns the replacement text.
- */
- [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
- /**
- * Finds the position beginning first substring match in a regular expression search
- * using this regular expression.
- *
- * @param string The string to search within.
- */
- [Symbol.search](string: string): number;
- /**
- * Returns an array of substrings that were delimited by strings in the original input that
- * match against this regular expression.
- *
- * If the regular expression contains capturing parentheses, then each time this
- * regular expression matches, the results (including any undefined results) of the
- * capturing parentheses are spliced.
- *
- * @param string string value to split
- * @param limit if not undefined, the output array is truncated so that it contains no more
- * than 'limit' elements.
- */
- [Symbol.split](string: string, limit?: number): string[];
- }
- interface RegExpConstructor {
- readonly [Symbol.species]: RegExpConstructor;
- }
- interface String {
- /**
- * Matches a string or an object that supports being matched against, and returns an array
- * containing the results of that search, or null if no matches are found.
- * @param matcher An object that supports being matched against.
- */
- match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
- /**
- * Passes a string and {@linkcode replaceValue} to the \`[Symbol.replace]\` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.
- * @param searchValue An object that supports searching for and replacing matches within a string.
- * @param replaceValue The replacement text.
- */
- replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
- /**
- * Replaces text in a string, using an object that supports replacement within a string.
- * @param searchValue A object can search for and replace matches within a string.
- * @param replacer A function that returns the replacement text.
- */
- replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
- /**
- * Finds the first substring match in a regular expression search.
- * @param searcher An object which supports searching within a string.
- */
- search(searcher: { [Symbol.search](string: string): number; }): number;
- /**
- * Split a string into substrings using the specified separator and return them as an array.
- * @param splitter An object that can split a string.
- * @param limit A value used to limit the number of elements returned in the array.
- */
- split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
- }
- interface ArrayBuffer {
- readonly [Symbol.toStringTag]: string;
- }
- interface DataView {
- readonly [Symbol.toStringTag]: string;
- }
- interface Int8Array {
- readonly [Symbol.toStringTag]: "Int8Array";
- }
- interface Uint8Array {
- readonly [Symbol.toStringTag]: "Uint8Array";
- }
- interface Uint8ClampedArray {
- readonly [Symbol.toStringTag]: "Uint8ClampedArray";
- }
- interface Int16Array {
- readonly [Symbol.toStringTag]: "Int16Array";
- }
- interface Uint16Array {
- readonly [Symbol.toStringTag]: "Uint16Array";
- }
- interface Int32Array {
- readonly [Symbol.toStringTag]: "Int32Array";
- }
- interface Uint32Array {
- readonly [Symbol.toStringTag]: "Uint32Array";
- }
- interface Float32Array {
- readonly [Symbol.toStringTag]: "Float32Array";
- }
- interface Float64Array {
- readonly [Symbol.toStringTag]: "Float64Array";
- }
- interface ArrayConstructor {
- readonly [Symbol.species]: ArrayConstructor;
- }
- interface MapConstructor {
- readonly [Symbol.species]: MapConstructor;
- }
- interface SetConstructor {
- readonly [Symbol.species]: SetConstructor;
- }
- interface ArrayBufferConstructor {
- readonly [Symbol.species]: ArrayBufferConstructor;
- }
- `,ga["lib.es2016.array.include.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface Array<T> {
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: T, fromIndex?: number): boolean;
- }
- interface ReadonlyArray<T> {
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: T, fromIndex?: number): boolean;
- }
- interface Int8Array {
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: number, fromIndex?: number): boolean;
- }
- interface Uint8Array {
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: number, fromIndex?: number): boolean;
- }
- interface Uint8ClampedArray {
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: number, fromIndex?: number): boolean;
- }
- interface Int16Array {
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: number, fromIndex?: number): boolean;
- }
- interface Uint16Array {
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: number, fromIndex?: number): boolean;
- }
- interface Int32Array {
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: number, fromIndex?: number): boolean;
- }
- interface Uint32Array {
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: number, fromIndex?: number): boolean;
- }
- interface Float32Array {
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: number, fromIndex?: number): boolean;
- }
- interface Float64Array {
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: number, fromIndex?: number): boolean;
- }`,ga["lib.es2016.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2015" />
- /// <reference lib="es2016.array.include" />`,ga["lib.es2016.full.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2016" />
- /// <reference lib="dom" />
- /// <reference lib="webworker.importscripts" />
- /// <reference lib="scripthost" />
- /// <reference lib="dom.iterable" />`,ga["lib.es2017.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2016" />
- /// <reference lib="es2017.object" />
- /// <reference lib="es2017.sharedmemory" />
- /// <reference lib="es2017.string" />
- /// <reference lib="es2017.intl" />
- /// <reference lib="es2017.typedarrays" />
- `,ga["lib.es2017.full.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2017" />
- /// <reference lib="dom" />
- /// <reference lib="webworker.importscripts" />
- /// <reference lib="scripthost" />
- /// <reference lib="dom.iterable" />`,ga["lib.es2017.intl.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- declare namespace Intl {
- interface DateTimeFormatPartTypesRegistry {
- day: any
- dayPeriod: any
- era: any
- hour: any
- literal: any
- minute: any
- month: any
- second: any
- timeZoneName: any
- weekday: any
- year: any
- }
- type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;
- interface DateTimeFormatPart {
- type: DateTimeFormatPartTypes;
- value: string;
- }
- interface DateTimeFormat {
- formatToParts(date?: Date | number): DateTimeFormatPart[];
- }
- }
- `,ga["lib.es2017.object.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface ObjectConstructor {
- /**
- * Returns an array of values of the enumerable properties of an object
- * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- */
- values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
- /**
- * Returns an array of values of the enumerable properties of an object
- * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- */
- values(o: {}): any[];
- /**
- * Returns an array of key/values of the enumerable properties of an object
- * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- */
- entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];
- /**
- * Returns an array of key/values of the enumerable properties of an object
- * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- */
- entries(o: {}): [string, any][];
- /**
- * Returns an object containing all own property descriptors of an object
- * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- */
- getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };
- }
- `,ga["lib.es2017.sharedmemory.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2015.symbol" />
- /// <reference lib="es2015.symbol.wellknown" />
- interface SharedArrayBuffer {
- /**
- * Read-only. The length of the ArrayBuffer (in bytes).
- */
- readonly byteLength: number;
- /**
- * Returns a section of an SharedArrayBuffer.
- */
- slice(begin: number, end?: number): SharedArrayBuffer;
- readonly [Symbol.species]: SharedArrayBuffer;
- readonly [Symbol.toStringTag]: "SharedArrayBuffer";
- }
- interface SharedArrayBufferConstructor {
- readonly prototype: SharedArrayBuffer;
- new (byteLength: number): SharedArrayBuffer;
- }
- declare var SharedArrayBuffer: SharedArrayBufferConstructor;
- interface ArrayBufferTypes {
- SharedArrayBuffer: SharedArrayBuffer;
- }
- interface Atomics {
- /**
- * Adds a value to the value at the given position in the array, returning the original value.
- * Until this atomic operation completes, any other read or write operation against the array
- * will block.
- */
- add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
- /**
- * Stores the bitwise AND of a value with the value at the given position in the array,
- * returning the original value. Until this atomic operation completes, any other read or
- * write operation against the array will block.
- */
- and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
- /**
- * Replaces the value at the given position in the array if the original value equals the given
- * expected value, returning the original value. Until this atomic operation completes, any
- * other read or write operation against the array will block.
- */
- compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;
- /**
- * Replaces the value at the given position in the array, returning the original value. Until
- * this atomic operation completes, any other read or write operation against the array will
- * block.
- */
- exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
- /**
- * Returns a value indicating whether high-performance algorithms can use atomic operations
- * (\`true\`) or must use locks (\`false\`) for the given number of bytes-per-element of a typed
- * array.
- */
- isLockFree(size: number): boolean;
- /**
- * Returns the value at the given position in the array. Until this atomic operation completes,
- * any other read or write operation against the array will block.
- */
- load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;
- /**
- * Stores the bitwise OR of a value with the value at the given position in the array,
- * returning the original value. Until this atomic operation completes, any other read or write
- * operation against the array will block.
- */
- or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
- /**
- * Stores a value at the given position in the array, returning the new value. Until this
- * atomic operation completes, any other read or write operation against the array will block.
- */
- store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
- /**
- * Subtracts a value from the value at the given position in the array, returning the original
- * value. Until this atomic operation completes, any other read or write operation against the
- * array will block.
- */
- sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
- /**
- * If the value at the given position in the array is equal to the provided value, the current
- * agent is put to sleep causing execution to suspend until the timeout expires (returning
- * \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
- * \`"not-equal"\`.
- */
- wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
- /**
- * Wakes up sleeping agents that are waiting on the given index of the array, returning the
- * number of agents that were awoken.
- * @param typedArray A shared Int32Array.
- * @param index The position in the typedArray to wake up on.
- * @param count The number of sleeping agents to notify. Defaults to +Infinity.
- */
- notify(typedArray: Int32Array, index: number, count?: number): number;
- /**
- * Stores the bitwise XOR of a value with the value at the given position in the array,
- * returning the original value. Until this atomic operation completes, any other read or write
- * operation against the array will block.
- */
- xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
- readonly [Symbol.toStringTag]: "Atomics";
- }
- declare var Atomics: Atomics;
- `,ga["lib.es2017.string.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface String {
- /**
- * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
- * The padding is applied from the start (left) of the current string.
- *
- * @param maxLength The length of the resulting string once the current string has been padded.
- * If this parameter is smaller than the current string's length, the current string will be returned as it is.
- *
- * @param fillString The string to pad the current string with.
- * If this string is too long, it will be truncated and the left-most part will be applied.
- * The default value for this parameter is " " (U+0020).
- */
- padStart(maxLength: number, fillString?: string): string;
- /**
- * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
- * The padding is applied from the end (right) of the current string.
- *
- * @param maxLength The length of the resulting string once the current string has been padded.
- * If this parameter is smaller than the current string's length, the current string will be returned as it is.
- *
- * @param fillString The string to pad the current string with.
- * If this string is too long, it will be truncated and the left-most part will be applied.
- * The default value for this parameter is " " (U+0020).
- */
- padEnd(maxLength: number, fillString?: string): string;
- }
- `,ga["lib.es2017.typedarrays.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface Int8ArrayConstructor {
- new (): Int8Array;
- }
- interface Uint8ArrayConstructor {
- new (): Uint8Array;
- }
- interface Uint8ClampedArrayConstructor {
- new (): Uint8ClampedArray;
- }
- interface Int16ArrayConstructor {
- new (): Int16Array;
- }
- interface Uint16ArrayConstructor {
- new (): Uint16Array;
- }
- interface Int32ArrayConstructor {
- new (): Int32Array;
- }
- interface Uint32ArrayConstructor {
- new (): Uint32Array;
- }
- interface Float32ArrayConstructor {
- new (): Float32Array;
- }
- interface Float64ArrayConstructor {
- new (): Float64Array;
- }
- `,ga["lib.es2018.asyncgenerator.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2018.asynciterable" />
- interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
- // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
- next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
- return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
- throw(e: any): Promise<IteratorResult<T, TReturn>>;
- [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
- }
- interface AsyncGeneratorFunction {
- /**
- * Creates a new AsyncGenerator object.
- * @param args A list of arguments the function accepts.
- */
- new (...args: any[]): AsyncGenerator;
- /**
- * Creates a new AsyncGenerator object.
- * @param args A list of arguments the function accepts.
- */
- (...args: any[]): AsyncGenerator;
- /**
- * The length of the arguments.
- */
- readonly length: number;
- /**
- * Returns the name of the function.
- */
- readonly name: string;
- /**
- * A reference to the prototype.
- */
- readonly prototype: AsyncGenerator;
- }
- interface AsyncGeneratorFunctionConstructor {
- /**
- * Creates a new AsyncGenerator function.
- * @param args A list of arguments the function accepts.
- */
- new (...args: string[]): AsyncGeneratorFunction;
- /**
- * Creates a new AsyncGenerator function.
- * @param args A list of arguments the function accepts.
- */
- (...args: string[]): AsyncGeneratorFunction;
- /**
- * The length of the arguments.
- */
- readonly length: number;
- /**
- * Returns the name of the function.
- */
- readonly name: string;
- /**
- * A reference to the prototype.
- */
- readonly prototype: AsyncGeneratorFunction;
- }
- `,ga["lib.es2018.asynciterable.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2015.symbol" />
- /// <reference lib="es2015.iterable" />
- interface SymbolConstructor {
- /**
- * A method that returns the default async iterator for an object. Called by the semantics of
- * the for-await-of statement.
- */
- readonly asyncIterator: unique symbol;
- }
- interface AsyncIterator<T, TReturn = any, TNext = undefined> {
- // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
- next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
- return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
- throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
- }
- interface AsyncIterable<T> {
- [Symbol.asyncIterator](): AsyncIterator<T>;
- }
- interface AsyncIterableIterator<T> extends AsyncIterator<T> {
- [Symbol.asyncIterator](): AsyncIterableIterator<T>;
- }`,ga["lib.es2018.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2017" />
- /// <reference lib="es2018.asynciterable" />
- /// <reference lib="es2018.asyncgenerator" />
- /// <reference lib="es2018.promise" />
- /// <reference lib="es2018.regexp" />
- /// <reference lib="es2018.intl" />
- `,ga["lib.es2018.full.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2018" />
- /// <reference lib="dom" />
- /// <reference lib="webworker.importscripts" />
- /// <reference lib="scripthost" />
- /// <reference lib="dom.iterable" />`,ga["lib.es2018.intl.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- declare namespace Intl {
- // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
- type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
- type PluralRuleType = "cardinal" | "ordinal";
- interface PluralRulesOptions {
- localeMatcher?: "lookup" | "best fit" | undefined;
- type?: PluralRuleType | undefined;
- minimumIntegerDigits?: number | undefined;
- minimumFractionDigits?: number | undefined;
- maximumFractionDigits?: number | undefined;
- minimumSignificantDigits?: number | undefined;
- maximumSignificantDigits?: number | undefined;
- }
- interface ResolvedPluralRulesOptions {
- locale: string;
- pluralCategories: LDMLPluralRule[];
- type: PluralRuleType;
- minimumIntegerDigits: number;
- minimumFractionDigits: number;
- maximumFractionDigits: number;
- minimumSignificantDigits?: number;
- maximumSignificantDigits?: number;
- }
- interface PluralRules {
- resolvedOptions(): ResolvedPluralRulesOptions;
- select(n: number): LDMLPluralRule;
- }
- const PluralRules: {
- new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
- (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
- supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];
- };
- // We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
- type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
- type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
- type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
- interface NumberFormatPart {
- type: NumberFormatPartTypes;
- value: string;
- }
- interface NumberFormat {
- formatToParts(number?: number | bigint): NumberFormatPart[];
- }
- }
- `,ga["lib.es2018.promise.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /**
- * Represents the completion of an asynchronous operation
- */
- interface Promise<T> {
- /**
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
- * resolved value cannot be modified from the callback.
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
- * @returns A Promise for the completion of the callback.
- */
- finally(onfinally?: (() => void) | undefined | null): Promise<T>
- }
- `,ga["lib.es2018.regexp.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface RegExpMatchArray {
- groups?: {
- [key: string]: string
- }
- }
- interface RegExpExecArray {
- groups?: {
- [key: string]: string
- }
- }
- interface RegExp {
- /**
- * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
- * Default is false. Read-only.
- */
- readonly dotAll: boolean;
- }`,ga["lib.es2019.array.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- type FlatArray<Arr, Depth extends number> = {
- "done": Arr,
- "recur": Arr extends ReadonlyArray<infer InnerArr>
- ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>
- : Arr
- }[Depth extends -1 ? "done" : "recur"];
- interface ReadonlyArray<T> {
- /**
- * Calls a defined callback function on each element of an array. Then, flattens the result into
- * a new array.
- * This is identical to a map followed by flat with depth 1.
- *
- * @param callback A function that accepts up to three arguments. The flatMap method calls the
- * callback function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callback function. If
- * thisArg is omitted, undefined is used as the this value.
- */
- flatMap<U, This = undefined> (
- callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
- thisArg?: This
- ): U[]
- /**
- * Returns a new array with all sub-array elements concatenated into it recursively up to the
- * specified depth.
- *
- * @param depth The maximum recursion depth
- */
- flat<A, D extends number = 1>(
- this: A,
- depth?: D
- ): FlatArray<A, D>[]
- }
- interface Array<T> {
- /**
- * Calls a defined callback function on each element of an array. Then, flattens the result into
- * a new array.
- * This is identical to a map followed by flat with depth 1.
- *
- * @param callback A function that accepts up to three arguments. The flatMap method calls the
- * callback function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callback function. If
- * thisArg is omitted, undefined is used as the this value.
- */
- flatMap<U, This = undefined> (
- callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
- thisArg?: This
- ): U[]
- /**
- * Returns a new array with all sub-array elements concatenated into it recursively up to the
- * specified depth.
- *
- * @param depth The maximum recursion depth
- */
- flat<A, D extends number = 1>(
- this: A,
- depth?: D
- ): FlatArray<A, D>[]
- }
- `,ga["lib.es2019.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2018" />
- /// <reference lib="es2019.array" />
- /// <reference lib="es2019.object" />
- /// <reference lib="es2019.string" />
- /// <reference lib="es2019.symbol" />
- /// <reference lib="es2019.intl" />
- `,ga["lib.es2019.full.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2019" />
- /// <reference lib="dom" />
- /// <reference lib="webworker.importscripts" />
- /// <reference lib="scripthost" />
- /// <reference lib="dom.iterable" />
- `,ga["lib.es2019.intl.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- declare namespace Intl {
- interface DateTimeFormatPartTypesRegistry {
- unknown: any
- }
- }
- `,ga["lib.es2019.object.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2015.iterable" />
- interface ObjectConstructor {
- /**
- * Returns an object created by key-value entries for properties and methods
- * @param entries An iterable object that contains key-value entries for properties and methods.
- */
- fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T };
- /**
- * Returns an object created by key-value entries for properties and methods
- * @param entries An iterable object that contains key-value entries for properties and methods.
- */
- fromEntries(entries: Iterable<readonly any[]>): any;
- }
- `,ga["lib.es2019.string.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface String {
- /** Removes the trailing white space and line terminator characters from a string. */
- trimEnd(): string;
- /** Removes the leading white space and line terminator characters from a string. */
- trimStart(): string;
- /**
- * Removes the leading white space and line terminator characters from a string.
- * @deprecated A legacy feature for browser compatibility. Use \`trimStart\` instead
- */
- trimLeft(): string;
- /**
- * Removes the trailing white space and line terminator characters from a string.
- * @deprecated A legacy feature for browser compatibility. Use \`trimEnd\` instead
- */
- trimRight(): string;
- }
- `,ga["lib.es2019.symbol.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface Symbol {
- /**
- * Expose the [[Description]] internal slot of a symbol directly.
- */
- readonly description: string | undefined;
- }
- `,ga["lib.es2020.bigint.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2020.intl" />
- interface BigIntToLocaleStringOptions {
- /**
- * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
- */
- localeMatcher?: string;
- /**
- * The formatting style to use , the default is "decimal".
- */
- style?: string;
- numberingSystem?: string;
- /**
- * The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.
- */
- unit?: string;
- /**
- * The unit formatting style to use in unit formatting, the defaults is "short".
- */
- unitDisplay?: string;
- /**
- * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB — see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".
- */
- currency?: string;
- /**
- * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".
- *
- * "symbol" to use a localized currency symbol such as €,
- *
- * "code" to use the ISO currency code,
- *
- * "name" to use a localized currency name such as "dollar"
- */
- currencyDisplay?: string;
- /**
- * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.
- */
- useGrouping?: boolean;
- /**
- * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
- */
- minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
- /**
- * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).
- */
- minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
- /**
- * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.
- */
- maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
- /**
- * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
- */
- minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
- /**
- * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
- */
- maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
- /**
- * The formatting that should be displayed for the number, the defaults is "standard"
- *
- * "standard" plain number formatting
- *
- * "scientific" return the order-of-magnitude for formatted number.
- *
- * "engineering" return the exponent of ten when divisible by three
- *
- * "compact" string representing exponent, defaults is using the "short" form
- */
- notation?: string;
- /**
- * used only when notation is "compact"
- */
- compactDisplay?: string;
- }
- interface BigInt {
- /**
- * Returns a string representation of an object.
- * @param radix Specifies a radix for converting numeric values to strings.
- */
- toString(radix?: number): string;
- /** Returns a string representation appropriate to the host environment's current locale. */
- toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): bigint;
- readonly [Symbol.toStringTag]: "BigInt";
- }
- interface BigIntConstructor {
- (value: bigint | boolean | number | string): bigint;
- readonly prototype: BigInt;
- /**
- * Interprets the low bits of a BigInt as a 2's-complement signed integer.
- * All higher bits are discarded.
- * @param bits The number of low bits to use
- * @param int The BigInt whose bits to extract
- */
- asIntN(bits: number, int: bigint): bigint;
- /**
- * Interprets the low bits of a BigInt as an unsigned integer.
- * All higher bits are discarded.
- * @param bits The number of low bits to use
- * @param int The BigInt whose bits to extract
- */
- asUintN(bits: number, int: bigint): bigint;
- }
- declare var BigInt: BigIntConstructor;
- /**
- * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated, an exception is raised.
- */
- interface BigInt64Array {
- /** The size in bytes of each element in the array. */
- readonly BYTES_PER_ELEMENT: number;
- /** The ArrayBuffer instance referenced by the array. */
- readonly buffer: ArrayBufferLike;
- /** The length in bytes of the array. */
- readonly byteLength: number;
- /** The offset in bytes of the array. */
- readonly byteOffset: number;
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
- /** Yields index, value pairs for every entry in the array. */
- entries(): IterableIterator<[number, bigint]>;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns false,
- * or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
- /**
- * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: bigint, start?: number, end?: number): this;
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls
- * the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: bigint, fromIndex?: number): boolean;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: bigint, fromIndex?: number): number;
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /** Yields each index in the array. */
- keys(): IterableIterator<number>;
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: bigint, fromIndex?: number): number;
- /** The length of the array. */
- readonly length: number;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
- /** Reverses the elements in the array. */
- reverse(): this;
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<bigint>, offset?: number): void;
- /**
- * Returns a section of an array.
- * @param start The beginning of the specified portion of the array.
- * @param end The end of the specified portion of the array.
- */
- slice(start?: number, end?: number): BigInt64Array;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls the
- * predicate function for each element in the array until the predicate returns true, or until
- * the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
- /**
- * Sorts the array.
- * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
- */
- sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
- /**
- * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin?: number, end?: number): BigInt64Array;
- /** Converts the array to a string by using the current locale. */
- toLocaleString(): string;
- /** Returns a string representation of the array. */
- toString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): BigInt64Array;
- /** Yields each value in the array. */
- values(): IterableIterator<bigint>;
- [Symbol.iterator](): IterableIterator<bigint>;
- readonly [Symbol.toStringTag]: "BigInt64Array";
- [index: number]: bigint;
- }
- interface BigInt64ArrayConstructor {
- readonly prototype: BigInt64Array;
- new(length?: number): BigInt64Array;
- new(array: Iterable<bigint>): BigInt64Array;
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
- /** The size in bytes of each element in the array. */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: bigint[]): BigInt64Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from(arrayLike: ArrayLike<bigint>): BigInt64Array;
- from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
- }
- declare var BigInt64Array: BigInt64ArrayConstructor;
- /**
- * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated, an exception is raised.
- */
- interface BigUint64Array {
- /** The size in bytes of each element in the array. */
- readonly BYTES_PER_ELEMENT: number;
- /** The ArrayBuffer instance referenced by the array. */
- readonly buffer: ArrayBufferLike;
- /** The length in bytes of the array. */
- readonly byteLength: number;
- /** The offset in bytes of the array. */
- readonly byteOffset: number;
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
- /** Yields index, value pairs for every entry in the array. */
- entries(): IterableIterator<[number, bigint]>;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns false,
- * or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
- /**
- * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: bigint, start?: number, end?: number): this;
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls
- * the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
- /**
- * Determines whether an array includes a certain element, returning true or false as appropriate.
- * @param searchElement The element to search for.
- * @param fromIndex The position in this array at which to begin searching for searchElement.
- */
- includes(searchElement: bigint, fromIndex?: number): boolean;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: bigint, fromIndex?: number): number;
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /** Yields each index in the array. */
- keys(): IterableIterator<number>;
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: bigint, fromIndex?: number): number;
- /** The length of the array. */
- readonly length: number;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
- /** Reverses the elements in the array. */
- reverse(): this;
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<bigint>, offset?: number): void;
- /**
- * Returns a section of an array.
- * @param start The beginning of the specified portion of the array.
- * @param end The end of the specified portion of the array.
- */
- slice(start?: number, end?: number): BigUint64Array;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls the
- * predicate function for each element in the array until the predicate returns true, or until
- * the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
- /**
- * Sorts the array.
- * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
- */
- sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
- /**
- * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin?: number, end?: number): BigUint64Array;
- /** Converts the array to a string by using the current locale. */
- toLocaleString(): string;
- /** Returns a string representation of the array. */
- toString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): BigUint64Array;
- /** Yields each value in the array. */
- values(): IterableIterator<bigint>;
- [Symbol.iterator](): IterableIterator<bigint>;
- readonly [Symbol.toStringTag]: "BigUint64Array";
- [index: number]: bigint;
- }
- interface BigUint64ArrayConstructor {
- readonly prototype: BigUint64Array;
- new(length?: number): BigUint64Array;
- new(array: Iterable<bigint>): BigUint64Array;
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
- /** The size in bytes of each element in the array. */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: bigint[]): BigUint64Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from(arrayLike: ArrayLike<bigint>): BigUint64Array;
- from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
- }
- declare var BigUint64Array: BigUint64ArrayConstructor;
- interface DataView {
- /**
- * Gets the BigInt64 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- * @param littleEndian If false or undefined, a big-endian value should be read.
- */
- getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
- /**
- * Gets the BigUint64 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- * @param littleEndian If false or undefined, a big-endian value should be read.
- */
- getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
- /**
- * Stores a BigInt64 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written.
- */
- setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
- /**
- * Stores a BigUint64 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written.
- */
- setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
- }
- declare namespace Intl{
- interface NumberFormat {
- format(value: number | bigint): string;
- resolvedOptions(): ResolvedNumberFormatOptions;
- }
- }
- `,ga["lib.es2020.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2019" />
- /// <reference lib="es2020.bigint" />
- /// <reference lib="es2020.date" />
- /// <reference lib="es2020.number" />
- /// <reference lib="es2020.promise" />
- /// <reference lib="es2020.sharedmemory" />
- /// <reference lib="es2020.string" />
- /// <reference lib="es2020.symbol.wellknown" />
- /// <reference lib="es2020.intl" />
- `,ga["lib.es2020.date.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2020.intl" />
- interface Date {
- /**
- * Converts a date and time to a string by using the current or specified locale.
- * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
- /**
- * Converts a date to a string by using the current or specified locale.
- * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
- /**
- * Converts a time to a string by using the current or specified locale.
- * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
- }`,ga["lib.es2020.full.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2020" />
- /// <reference lib="dom" />
- /// <reference lib="webworker.importscripts" />
- /// <reference lib="scripthost" />
- /// <reference lib="dom.iterable" />
- `,ga["lib.es2020.intl.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2018.intl" />
- declare namespace Intl {
- /**
- * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
- */
- type UnicodeBCP47LocaleIdentifier = string;
- /**
- * Unit to use in the relative time internationalized message.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
- */
- type RelativeTimeFormatUnit =
- | "year"
- | "years"
- | "quarter"
- | "quarters"
- | "month"
- | "months"
- | "week"
- | "weeks"
- | "day"
- | "days"
- | "hour"
- | "hours"
- | "minute"
- | "minutes"
- | "second"
- | "seconds";
- /**
- * Value of the \`unit\` property in objects returned by
- * \`Intl.RelativeTimeFormat.prototype.formatToParts()\`. \`formatToParts\` and
- * \`format\` methods accept either singular or plural unit names as input,
- * but \`formatToParts\` only outputs singular (e.g. "day") not plural (e.g.
- * "days").
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
- */
- type RelativeTimeFormatUnitSingular =
- | "year"
- | "quarter"
- | "month"
- | "week"
- | "day"
- | "hour"
- | "minute"
- | "second";
- /**
- * The locale matching algorithm to use.
- *
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
- */
- type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";
- /**
- * The format of output message.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
- */
- type RelativeTimeFormatNumeric = "always" | "auto";
- /**
- * The length of the internationalized message.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
- */
- type RelativeTimeFormatStyle = "long" | "short" | "narrow";
- /**
- * [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
- */
- type BCP47LanguageTag = string;
- /**
- * The locale(s) to use
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
- */
- type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;
- /**
- * An object with some or all of properties of \`options\` parameter
- * of \`Intl.RelativeTimeFormat\` constructor.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
- */
- interface RelativeTimeFormatOptions {
- /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
- localeMatcher?: RelativeTimeFormatLocaleMatcher;
- /** The format of output message. */
- numeric?: RelativeTimeFormatNumeric;
- /** The length of the internationalized message. */
- style?: RelativeTimeFormatStyle;
- }
- /**
- * An object with properties reflecting the locale
- * and formatting options computed during initialization
- * of the \`Intl.RelativeTimeFormat\` object
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
- */
- interface ResolvedRelativeTimeFormatOptions {
- locale: UnicodeBCP47LocaleIdentifier;
- style: RelativeTimeFormatStyle;
- numeric: RelativeTimeFormatNumeric;
- numberingSystem: string;
- }
- /**
- * An object representing the relative time format in parts
- * that can be used for custom locale-aware formatting.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
- */
- type RelativeTimeFormatPart =
- | {
- type: "literal";
- value: string;
- }
- | {
- type: Exclude<NumberFormatPartTypes, "literal">;
- value: string;
- unit: RelativeTimeFormatUnitSingular;
- };
- interface RelativeTimeFormat {
- /**
- * Formats a value and a unit according to the locale
- * and formatting options of the given
- * [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
- * object.
- *
- * While this method automatically provides the correct plural forms,
- * the grammatical form is otherwise as neutral as possible.
- *
- * It is the caller's responsibility to handle cut-off logic
- * such as deciding between displaying "in 7 days" or "in 1 week".
- * This API does not support relative dates involving compound units.
- * e.g "in 5 days and 4 hours".
- *
- * @param value - Numeric value to use in the internationalized relative time message
- *
- * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
- *
- * @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
- *
- * @returns {string} Internationalized relative time message as string
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
- */
- format(value: number, unit: RelativeTimeFormatUnit): string;
- /**
- * Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
- *
- * @param value - Numeric value to use in the internationalized relative time message
- *
- * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
- *
- * @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
- */
- formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
- /**
- * Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
- */
- resolvedOptions(): ResolvedRelativeTimeFormatOptions;
- }
- /**
- * The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
- * object is a constructor for objects that enable language-sensitive relative time formatting.
- *
- * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
- */
- const RelativeTimeFormat: {
- /**
- * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
- *
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
- * For the general form and interpretation of the locales argument,
- * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
- *
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
- * with some or all of options of \`RelativeTimeFormatOptions\`.
- *
- * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
- */
- new(
- locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
- options?: RelativeTimeFormatOptions,
- ): RelativeTimeFormat;
- /**
- * Returns an array containing those of the provided locales
- * that are supported in date and time formatting
- * without having to fall back to the runtime's default locale.
- *
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
- * For the general form and interpretation of the locales argument,
- * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
- *
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
- * with some or all of options of the formatting.
- *
- * @returns An array containing those of the provided locales
- * that are supported in date and time formatting
- * without having to fall back to the runtime's default locale.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
- */
- supportedLocalesOf(
- locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
- options?: RelativeTimeFormatOptions,
- ): UnicodeBCP47LocaleIdentifier[];
- };
- interface NumberFormatOptions {
- compactDisplay?: "short" | "long" | undefined;
- notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
- signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
- unit?: string | undefined;
- unitDisplay?: "short" | "long" | "narrow" | undefined;
- currencyDisplay?: string | undefined;
- currencySign?: string | undefined;
- }
- interface ResolvedNumberFormatOptions {
- compactDisplay?: "short" | "long";
- notation?: "standard" | "scientific" | "engineering" | "compact";
- signDisplay?: "auto" | "never" | "always" | "exceptZero";
- unit?: string;
- unitDisplay?: "short" | "long" | "narrow";
- currencyDisplay?: string;
- currencySign?: string;
- }
- interface DateTimeFormatOptions {
- calendar?: string | undefined;
- dayPeriod?: "narrow" | "short" | "long" | undefined;
- numberingSystem?: string | undefined;
- dateStyle?: "full" | "long" | "medium" | "short" | undefined;
- timeStyle?: "full" | "long" | "medium" | "short" | undefined;
- hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
- }
- type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";
- type LocaleCollationCaseFirst = "upper" | "lower" | "false";
- interface LocaleOptions {
- /** A string containing the language, and the script and region if available. */
- baseName?: string;
- /** The part of the Locale that indicates the locale's calendar era. */
- calendar?: string;
- /** Flag that defines whether case is taken into account for the locale's collation rules. */
- caseFirst?: LocaleCollationCaseFirst;
- /** The collation type used for sorting */
- collation?: string;
- /** The time keeping format convention used by the locale. */
- hourCycle?: LocaleHourCycleKey;
- /** The primary language subtag associated with the locale. */
- language?: string;
- /** The numeral system used by the locale. */
- numberingSystem?: string;
- /** Flag that defines whether the locale has special collation handling for numeric characters. */
- numeric?: boolean;
- /** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */
- region?: string;
- /** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */
- script?: string;
- }
- interface Locale extends LocaleOptions {
- /** A string containing the language, and the script and region if available. */
- baseName: string;
- /** The primary language subtag associated with the locale. */
- language: string;
- /** Gets the most likely values for the language, script, and region of the locale based on existing values. */
- maximize(): Locale;
- /** Attempts to remove information about the locale that would be added by calling \`Locale.maximize()\`. */
- minimize(): Locale;
- /** Returns the locale's full locale identifier string. */
- toString(): BCP47LanguageTag;
- }
- /**
- * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
- * objects
- *
- * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
- * For the general form and interpretation of the locales argument,
- * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
- *
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
- *
- * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
- */
- const Locale: {
- new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale;
- };
- type DisplayNamesFallback =
- | "code"
- | "none";
- type DisplayNamesType =
- | "language"
- | "region"
- | "script"
- | "calendar"
- | "dateTimeField"
- | "currency";
- type DisplayNamesLanguageDisplay =
- | "dialect"
- | "standard";
- interface DisplayNamesOptions {
- localeMatcher?: RelativeTimeFormatLocaleMatcher;
- style?: RelativeTimeFormatStyle;
- type: DisplayNamesType;
- languageDisplay?: DisplayNamesLanguageDisplay;
- fallback?: DisplayNamesFallback;
- }
- interface ResolvedDisplayNamesOptions {
- locale: UnicodeBCP47LocaleIdentifier;
- style: RelativeTimeFormatStyle;
- type: DisplayNamesType;
- fallback: DisplayNamesFallback;
- languageDisplay?: DisplayNamesLanguageDisplay;
- }
- interface DisplayNames {
- /**
- * Receives a code and returns a string based on the locale and options provided when instantiating
- * [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
- *
- * @param code The \`code\` to provide depends on the \`type\` passed to display name during creation:
- * - If the type is \`"region"\`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
- * or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
- * - If the type is \`"script"\`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
- * - If the type is \`"language"\`, code should be a \`languageCode\` ["-" \`scriptCode\`] ["-" \`regionCode\` ] *("-" \`variant\` )
- * subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).
- * \`languageCode\` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
- * - If the type is \`"currency"\`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
- */
- of(code: string): string | undefined;
- /**
- * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
- * [\`Intl/DisplayNames\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
- */
- resolvedOptions(): ResolvedDisplayNamesOptions;
- }
- /**
- * The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
- * object enables the consistent translation of language, region and script display names.
- *
- * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
- */
- const DisplayNames: {
- prototype: DisplayNames;
- /**
- * @param locales A string with a BCP 47 language tag, or an array of such strings.
- * For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
- * page.
- *
- * @param options An object for setting up a display name.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
- */
- new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
- /**
- * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
- *
- * @param locales A string with a BCP 47 language tag, or an array of such strings.
- * For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
- * page.
- *
- * @param options An object with a locale matcher.
- *
- * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
- */
- supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }): BCP47LanguageTag[];
- };
- }
- `,ga["lib.es2020.number.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2020.intl" />
- interface Number {
- /**
- * Converts a number to a string by using the current or specified locale.
- * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
- }
- `,ga["lib.es2020.promise.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface PromiseFulfilledResult<T> {
- status: "fulfilled";
- value: T;
- }
- interface PromiseRejectedResult {
- status: "rejected";
- reason: any;
- }
- type PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;
- interface PromiseConstructor {
- /**
- * Creates a Promise that is resolved with an array of results when all
- * of the provided Promises resolve or reject.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>;
- /**
- * Creates a Promise that is resolved with an array of results when all
- * of the provided Promises resolve or reject.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;
- }
- `,ga["lib.es2020.sharedmemory.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface Atomics {
- /**
- * Adds a value to the value at the given position in the array, returning the original value.
- * Until this atomic operation completes, any other read or write operation against the array
- * will block.
- */
- add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
- /**
- * Stores the bitwise AND of a value with the value at the given position in the array,
- * returning the original value. Until this atomic operation completes, any other read or
- * write operation against the array will block.
- */
- and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
- /**
- * Replaces the value at the given position in the array if the original value equals the given
- * expected value, returning the original value. Until this atomic operation completes, any
- * other read or write operation against the array will block.
- */
- compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
- /**
- * Replaces the value at the given position in the array, returning the original value. Until
- * this atomic operation completes, any other read or write operation against the array will
- * block.
- */
- exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
- /**
- * Returns the value at the given position in the array. Until this atomic operation completes,
- * any other read or write operation against the array will block.
- */
- load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;
- /**
- * Stores the bitwise OR of a value with the value at the given position in the array,
- * returning the original value. Until this atomic operation completes, any other read or write
- * operation against the array will block.
- */
- or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
- /**
- * Stores a value at the given position in the array, returning the new value. Until this
- * atomic operation completes, any other read or write operation against the array will block.
- */
- store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
- /**
- * Subtracts a value from the value at the given position in the array, returning the original
- * value. Until this atomic operation completes, any other read or write operation against the
- * array will block.
- */
- sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
- /**
- * If the value at the given position in the array is equal to the provided value, the current
- * agent is put to sleep causing execution to suspend until the timeout expires (returning
- * \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
- * \`"not-equal"\`.
- */
- wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
- /**
- * Wakes up sleeping agents that are waiting on the given index of the array, returning the
- * number of agents that were awoken.
- * @param typedArray A shared BigInt64Array.
- * @param index The position in the typedArray to wake up on.
- * @param count The number of sleeping agents to notify. Defaults to +Infinity.
- */
- notify(typedArray: BigInt64Array, index: number, count?: number): number;
- /**
- * Stores the bitwise XOR of a value with the value at the given position in the array,
- * returning the original value. Until this atomic operation completes, any other read or write
- * operation against the array will block.
- */
- xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
- }
- `,ga["lib.es2020.string.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2015.iterable" />
- interface String {
- /**
- * Matches a string with a regular expression, and returns an iterable of matches
- * containing the results of that search.
- * @param regexp A variable name or string literal containing the regular expression pattern and flags.
- */
- matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;
- }
- `,ga["lib.es2020.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2015.iterable" />
- /// <reference lib="es2015.symbol" />
- interface SymbolConstructor {
- /**
- * A regular expression method that matches the regular expression against a string. Called
- * by the String.prototype.matchAll method.
- */
- readonly matchAll: unique symbol;
- }
- interface RegExp {
- /**
- * Matches a string with this regular expression, and returns an iterable of matches
- * containing the results of that search.
- * @param string A string to search within.
- */
- [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;
- }
- `,ga["lib.es2021.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2020" />
- /// <reference lib="es2021.promise" />
- /// <reference lib="es2021.string" />
- /// <reference lib="es2021.weakref" />
- /// <reference lib="es2021.intl" />
- `,ga["lib.es2021.full.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2021" />
- /// <reference lib="dom" />
- /// <reference lib="webworker.importscripts" />
- /// <reference lib="scripthost" />
- /// <reference lib="dom.iterable" />
- `,ga["lib.es2021.intl.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- declare namespace Intl {
- interface DateTimeFormatPartTypesRegistry {
- fractionalSecond: any
- }
- interface DateTimeFormatOptions {
- formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
- dateStyle?: "full" | "long" | "medium" | "short" | undefined;
- timeStyle?: "full" | "long" | "medium" | "short" | undefined;
- dayPeriod?: "narrow" | "short" | "long" | undefined;
- fractionalSecondDigits?: 1 | 2 | 3 | undefined;
- }
- interface DateTimeRangeFormatPart extends DateTimeFormatPart {
- source: "startRange" | "endRange" | "shared"
- }
- interface DateTimeFormat {
- formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;
- formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];
- }
- interface ResolvedDateTimeFormatOptions {
- formatMatcher?: "basic" | "best fit" | "best fit";
- dateStyle?: "full" | "long" | "medium" | "short";
- timeStyle?: "full" | "long" | "medium" | "short";
- hourCycle?: "h11" | "h12" | "h23" | "h24";
- dayPeriod?: "narrow" | "short" | "long";
- fractionalSecondDigits?: 1 | 2 | 3;
- }
- /**
- * The locale matching algorithm to use.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
- */
- type ListFormatLocaleMatcher = "lookup" | "best fit";
- /**
- * The format of output message.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
- */
- type ListFormatType = "conjunction" | "disjunction" | "unit";
- /**
- * The length of the formatted message.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
- */
- type ListFormatStyle = "long" | "short" | "narrow";
- /**
- * An object with some or all properties of the \`Intl.ListFormat\` constructor \`options\` parameter.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
- */
- interface ListFormatOptions {
- /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
- localeMatcher?: ListFormatLocaleMatcher | undefined;
- /** The format of output message. */
- type?: ListFormatType | undefined;
- /** The length of the internationalized message. */
- style?: ListFormatStyle | undefined;
- }
- interface ResolvedListFormatOptions {
- locale: string;
- style: ListFormatStyle;
- type: ListFormatType;
- }
- interface ListFormat {
- /**
- * Returns a string with a language-specific representation of the list.
- *
- * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).
- *
- * @throws \`TypeError\` if \`list\` includes something other than the possible values.
- *
- * @returns {string} A language-specific formatted string representing the elements of the list.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).
- */
- format(list: Iterable<string>): string;
- /**
- * Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
- *
- * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.
- *
- * @throws \`TypeError\` if \`list\` includes something other than the possible values.
- *
- * @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
- */
- formatToParts(list: Iterable<string>): { type: "element" | "literal", value: string; }[];
- /**
- * Returns a new object with properties reflecting the locale and style
- * formatting options computed during the construction of the current
- * \`Intl.ListFormat\` object.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
- */
- resolvedOptions(): ResolvedListFormatOptions;
- }
- const ListFormat: {
- prototype: ListFormat;
- /**
- * Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
- * enable language-sensitive list formatting.
- *
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
- * For the general form and interpretation of the \`locales\` argument,
- * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
- *
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
- * with some or all options of \`ListFormatOptions\`.
- *
- * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
- */
- new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat;
- /**
- * Returns an array containing those of the provided locales that are
- * supported in list formatting without having to fall back to the runtime's default locale.
- *
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
- * For the general form and interpretation of the \`locales\` argument,
- * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
- *
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
- * with some or all possible options.
- *
- * @returns An array of strings representing a subset of the given locale tags that are supported in list
- * formatting without having to fall back to the runtime's default locale.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
- */
- supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<ListFormatOptions, "localeMatcher">): BCP47LanguageTag[];
- };
- }
- `,ga["lib.es2021.promise.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface AggregateError extends Error {
- errors: any[]
- }
- interface AggregateErrorConstructor {
- new(errors: Iterable<any>, message?: string): AggregateError;
- (errors: Iterable<any>, message?: string): AggregateError;
- readonly prototype: AggregateError;
- }
- declare var AggregateError: AggregateErrorConstructor;
- /**
- * Represents the completion of an asynchronous operation
- */
- interface PromiseConstructor {
- /**
- * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
- * @param values An array or iterable of Promises.
- * @returns A new Promise.
- */
- any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
- /**
- * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
- * @param values An array or iterable of Promises.
- * @returns A new Promise.
- */
- any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>
- }
- `,ga["lib.es2021.string.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface String {
- /**
- * Replace all instances of a substring in a string, using a regular expression or search string.
- * @param searchValue A string to search for.
- * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
- */
- replaceAll(searchValue: string | RegExp, replaceValue: string): string;
- /**
- * Replace all instances of a substring in a string, using a regular expression or search string.
- * @param searchValue A string to search for.
- * @param replacer A function that returns the replacement text.
- */
- replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
- }
- `,ga["lib.es2021.weakref.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface WeakRef<T extends object> {
- readonly [Symbol.toStringTag]: "WeakRef";
- /**
- * Returns the WeakRef instance's target object, or undefined if the target object has been
- * reclaimed.
- */
- deref(): T | undefined;
- }
- interface WeakRefConstructor {
- readonly prototype: WeakRef<any>;
- /**
- * Creates a WeakRef instance for the given target object.
- * @param target The target object for the WeakRef instance.
- */
- new<T extends object>(target: T): WeakRef<T>;
- }
- declare var WeakRef: WeakRefConstructor;
- interface FinalizationRegistry<T> {
- readonly [Symbol.toStringTag]: "FinalizationRegistry";
- /**
- * Registers an object with the registry.
- * @param target The target object to register.
- * @param heldValue The value to pass to the finalizer for this object. This cannot be the
- * target object.
- * @param unregisterToken The token to pass to the unregister method to unregister the target
- * object. If provided (and not undefined), this must be an object. If not provided, the target
- * cannot be unregistered.
- */
- register(target: object, heldValue: T, unregisterToken?: object): void;
- /**
- * Unregisters an object from the registry.
- * @param unregisterToken The token that was used as the unregisterToken argument when calling
- * register to register the target object.
- */
- unregister(unregisterToken: object): void;
- }
- interface FinalizationRegistryConstructor {
- readonly prototype: FinalizationRegistry<any>;
- /**
- * Creates a finalization registry with an associated cleanup callback
- * @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
- */
- new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
- }
- declare var FinalizationRegistry: FinalizationRegistryConstructor;
- `,ga["lib.es2022.array.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface Array<T> {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): T | undefined;
- }
- interface ReadonlyArray<T> {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): T | undefined;
- }
- interface Int8Array {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): number | undefined;
- }
- interface Uint8Array {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): number | undefined;
- }
- interface Uint8ClampedArray {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): number | undefined;
- }
- interface Int16Array {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): number | undefined;
- }
- interface Uint16Array {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): number | undefined;
- }
- interface Int32Array {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): number | undefined;
- }
- interface Uint32Array {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): number | undefined;
- }
- interface Float32Array {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): number | undefined;
- }
- interface Float64Array {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): number | undefined;
- }
- interface BigInt64Array {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): bigint | undefined;
- }
- interface BigUint64Array {
- /**
- * Returns the item located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): bigint | undefined;
- }
- `,ga["lib.es2022.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2021" />
- /// <reference lib="es2022.array" />
- /// <reference lib="es2022.error" />
- /// <reference lib="es2022.intl" />
- /// <reference lib="es2022.object" />
- /// <reference lib="es2022.sharedmemory" />
- /// <reference lib="es2022.string" />
- /// <reference lib="es2022.regexp" />
- `,ga["lib.es2022.error.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface ErrorOptions {
- cause?: unknown;
- }
- interface Error {
- cause?: unknown;
- }
- interface ErrorConstructor {
- new (message?: string, options?: ErrorOptions): Error;
- (message?: string, options?: ErrorOptions): Error;
- }
- interface EvalErrorConstructor {
- new (message?: string, options?: ErrorOptions): EvalError;
- (message?: string, options?: ErrorOptions): EvalError;
- }
- interface RangeErrorConstructor {
- new (message?: string, options?: ErrorOptions): RangeError;
- (message?: string, options?: ErrorOptions): RangeError;
- }
- interface ReferenceErrorConstructor {
- new (message?: string, options?: ErrorOptions): ReferenceError;
- (message?: string, options?: ErrorOptions): ReferenceError;
- }
- interface SyntaxErrorConstructor {
- new (message?: string, options?: ErrorOptions): SyntaxError;
- (message?: string, options?: ErrorOptions): SyntaxError;
- }
- interface TypeErrorConstructor {
- new (message?: string, options?: ErrorOptions): TypeError;
- (message?: string, options?: ErrorOptions): TypeError;
- }
- interface URIErrorConstructor {
- new (message?: string, options?: ErrorOptions): URIError;
- (message?: string, options?: ErrorOptions): URIError;
- }
- interface AggregateErrorConstructor {
- new (
- errors: Iterable<any>,
- message?: string,
- options?: ErrorOptions
- ): AggregateError;
- (
- errors: Iterable<any>,
- message?: string,
- options?: ErrorOptions
- ): AggregateError;
- }
- `,ga["lib.es2022.full.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2022" />
- /// <reference lib="dom" />
- /// <reference lib="webworker.importscripts" />
- /// <reference lib="scripthost" />
- /// <reference lib="dom.iterable" />
- `,ga["lib.es2022.intl.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- declare namespace Intl {
- /**
- * An object with some or all properties of the \`Intl.Segmenter\` constructor \`options\` parameter.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
- */
- interface SegmenterOptions {
- /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
- localeMatcher?: "best fit" | "lookup" | undefined;
- /** The type of input to be split */
- granularity?: "grapheme" | "word" | "sentence" | undefined;
- }
- interface Segmenter {
- /**
- * Returns \`Segments\` object containing the segments of the input string, using the segmenter's locale and granularity.
- *
- * @param input - The text to be segmented as a \`string\`.
- *
- * @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
- */
- segment(input: string): Segments;
- resolvedOptions(): ResolvedSegmenterOptions;
- }
- interface ResolvedSegmenterOptions {
- locale: string;
- granularity: "grapheme" | "word" | "sentence";
- }
- interface Segments {
- /**
- * Returns an object describing the segment in the original string that includes the code unit at a specified index.
- *
- * @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to \`0\`.
- */
- containing(codeUnitIndex?: number): SegmentData;
- /** Returns an iterator to iterate over the segments. */
- [Symbol.iterator](): IterableIterator<SegmentData>;
- }
- interface SegmentData {
- /** A string containing the segment extracted from the original input string. */
- segment: string;
- /** The code unit index in the original input string at which the segment begins. */
- index: number;
- /** The complete input string that was segmented. */
- input: string;
- /**
- * A boolean value only if granularity is "word"; otherwise, undefined.
- * If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.
- */
- isWordLike?: boolean;
- }
- const Segmenter: {
- prototype: Segmenter;
- /**
- * Creates a new \`Intl.Segmenter\` object.
- *
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
- * For the general form and interpretation of the \`locales\` argument,
- * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
- *
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
- * with some or all options of \`SegmenterOptions\`.
- *
- * @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
- */
- new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter;
- /**
- * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
- *
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
- * For the general form and interpretation of the \`locales\` argument,
- * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
- *
- * @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
- * with some or all possible options.
- *
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
- */
- supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<SegmenterOptions, "localeMatcher">): BCP47LanguageTag[];
- };
- }
- `,ga["lib.es2022.object.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface ObjectConstructor {
- /**
- * Determines whether an object has a property with the specified name.
- * @param o An object.
- * @param v A property name.
- */
- hasOwn(o: object, v: PropertyKey): boolean;
- }
- `,ga["lib.es2022.regexp.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface RegExpMatchArray {
- indices?: RegExpIndicesArray;
- }
- interface RegExpExecArray {
- indices?: RegExpIndicesArray;
- }
- interface RegExpIndicesArray extends Array<[number, number]> {
- groups?: {
- [key: string]: [number, number];
- };
- }
- interface RegExp {
- /**
- * Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression.
- * Default is false. Read-only.
- */
- readonly hasIndices: boolean;
- }
- `,ga["lib.es2022.sharedmemory.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface Atomics {
- /**
- * A non-blocking, asynchronous version of wait which is usable on the main thread.
- * Waits asynchronously on a shared memory location and returns a Promise
- * @param typedArray A shared Int32Array or BigInt64Array.
- * @param index The position in the typedArray to wait on.
- * @param value The expected value to test.
- * @param [timeout] The expected value to test.
- */
- waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> };
- /**
- * A non-blocking, asynchronous version of wait which is usable on the main thread.
- * Waits asynchronously on a shared memory location and returns a Promise
- * @param typedArray A shared Int32Array or BigInt64Array.
- * @param index The position in the typedArray to wait on.
- * @param value The expected value to test.
- * @param [timeout] The expected value to test.
- */
- waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> };
- }
- `,ga["lib.es2022.string.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface String {
- /**
- * Returns a new String consisting of the single UTF-16 code unit located at the specified index.
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
- */
- at(index: number): string | undefined;
- }
- `,ga["lib.es2023.array.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- interface Array<T> {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;
- }
- interface ReadonlyArray<T> {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): number;
- }
- interface Int8Array {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends number>(predicate: (value: number, index: number, array: Int8Array) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number;
- }
- interface Uint8Array {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends number>(predicate: (value: number, index: number, array: Uint8Array) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number;
- }
- interface Uint8ClampedArray {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends number>(predicate: (value: number, index: number, array: Uint8ClampedArray) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number;
- }
- interface Int16Array {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends number>(predicate: (value: number, index: number, array: Int16Array) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number;
- }
- interface Uint16Array {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends number>(predicate: (value: number, index: number, array: Uint16Array) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number;
- }
- interface Int32Array {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends number>(predicate: (value: number, index: number, array: Int32Array) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number;
- }
- interface Uint32Array {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends number>(predicate: (value: number, index: number, array: Uint32Array) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number;
- }
- interface Float32Array {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends number>(predicate: (value: number, index: number, array: Float32Array) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number;
- }
- interface Float64Array {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends number>(predicate: (value: number, index: number, array: Float64Array) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number;
- }
- interface BigInt64Array {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigInt64Array) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): bigint | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): number;
- }
- interface BigUint64Array {
- /**
- * Returns the value of the last element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate findLast calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found, findLast
- * immediately returns that element value. Otherwise, findLast returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigUint64Array) => value is S, thisArg?: any): S | undefined;
- findLast(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): bigint | undefined;
- /**
- * Returns the index of the last element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate findLastIndex calls predicate once for each element of the array, in descending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findLastIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): number;
- }
- `,ga["lib.es2023.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2022" />
- /// <reference lib="es2023.array" />
- `,ga["lib.es2023.full.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2023" />
- /// <reference lib="dom" />
- /// <reference lib="webworker.importscripts" />
- /// <reference lib="scripthost" />
- /// <reference lib="dom.iterable" />
- `,ga["lib.es5.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="decorators" />
- /// <reference lib="decorators.legacy" />
- /////////////////////////////
- /// ECMAScript APIs
- /////////////////////////////
- declare var NaN: number;
- declare var Infinity: number;
- /**
- * Evaluates JavaScript code and executes it.
- * @param x A String value that contains valid JavaScript code.
- */
- declare function eval(x: string): any;
- /**
- * Converts a string to an integer.
- * @param string A string to convert into a number.
- * @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
- * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
- * All other strings are considered decimal.
- */
- declare function parseInt(string: string, radix?: number): number;
- /**
- * Converts a string to a floating-point number.
- * @param string A string that contains a floating-point number.
- */
- declare function parseFloat(string: string): number;
- /**
- * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
- * @param number A numeric value.
- */
- declare function isNaN(number: number): boolean;
- /**
- * Determines whether a supplied number is finite.
- * @param number Any numeric value.
- */
- declare function isFinite(number: number): boolean;
- /**
- * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
- * @param encodedURI A value representing an encoded URI.
- */
- declare function decodeURI(encodedURI: string): string;
- /**
- * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
- * @param encodedURIComponent A value representing an encoded URI component.
- */
- declare function decodeURIComponent(encodedURIComponent: string): string;
- /**
- * Encodes a text string as a valid Uniform Resource Identifier (URI)
- * @param uri A value representing an unencoded URI.
- */
- declare function encodeURI(uri: string): string;
- /**
- * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
- * @param uriComponent A value representing an unencoded URI component.
- */
- declare function encodeURIComponent(uriComponent: string | number | boolean): string;
- /**
- * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
- * @deprecated A legacy feature for browser compatibility
- * @param string A string value
- */
- declare function escape(string: string): string;
- /**
- * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
- * @deprecated A legacy feature for browser compatibility
- * @param string A string value
- */
- declare function unescape(string: string): string;
- interface Symbol {
- /** Returns a string representation of an object. */
- toString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): symbol;
- }
- declare type PropertyKey = string | number | symbol;
- interface PropertyDescriptor {
- configurable?: boolean;
- enumerable?: boolean;
- value?: any;
- writable?: boolean;
- get?(): any;
- set?(v: any): void;
- }
- interface PropertyDescriptorMap {
- [key: PropertyKey]: PropertyDescriptor;
- }
- interface Object {
- /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
- constructor: Function;
- /** Returns a string representation of an object. */
- toString(): string;
- /** Returns a date converted to a string using the current locale. */
- toLocaleString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): Object;
- /**
- * Determines whether an object has a property with the specified name.
- * @param v A property name.
- */
- hasOwnProperty(v: PropertyKey): boolean;
- /**
- * Determines whether an object exists in another object's prototype chain.
- * @param v Another object whose prototype chain is to be checked.
- */
- isPrototypeOf(v: Object): boolean;
- /**
- * Determines whether a specified property is enumerable.
- * @param v A property name.
- */
- propertyIsEnumerable(v: PropertyKey): boolean;
- }
- interface ObjectConstructor {
- new(value?: any): Object;
- (): any;
- (value: any): any;
- /** A reference to the prototype for a class of objects. */
- readonly prototype: Object;
- /**
- * Returns the prototype of an object.
- * @param o The object that references the prototype.
- */
- getPrototypeOf(o: any): any;
- /**
- * Gets the own property descriptor of the specified object.
- * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
- * @param o Object that contains the property.
- * @param p Name of the property.
- */
- getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
- /**
- * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
- * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
- * @param o Object that contains the own properties.
- */
- getOwnPropertyNames(o: any): string[];
- /**
- * Creates an object that has the specified prototype or that has null prototype.
- * @param o Object to use as a prototype. May be null.
- */
- create(o: object | null): any;
- /**
- * Creates an object that has the specified prototype, and that optionally contains specified properties.
- * @param o Object to use as a prototype. May be null
- * @param properties JavaScript object that contains one or more property descriptors.
- */
- create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
- /**
- * Adds a property to an object, or modifies attributes of an existing property.
- * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
- * @param p The property name.
- * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
- */
- defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;
- /**
- * Adds one or more properties to an object, and/or modifies attributes of existing properties.
- * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
- * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
- */
- defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;
- /**
- * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
- * @param o Object on which to lock the attributes.
- */
- seal<T>(o: T): T;
- /**
- * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
- * @param f Object on which to lock the attributes.
- */
- freeze<T extends Function>(f: T): T;
- /**
- * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
- * @param o Object on which to lock the attributes.
- */
- freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
- /**
- * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
- * @param o Object on which to lock the attributes.
- */
- freeze<T>(o: T): Readonly<T>;
- /**
- * Prevents the addition of new properties to an object.
- * @param o Object to make non-extensible.
- */
- preventExtensions<T>(o: T): T;
- /**
- * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
- * @param o Object to test.
- */
- isSealed(o: any): boolean;
- /**
- * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
- * @param o Object to test.
- */
- isFrozen(o: any): boolean;
- /**
- * Returns a value that indicates whether new properties can be added to an object.
- * @param o Object to test.
- */
- isExtensible(o: any): boolean;
- /**
- * Returns the names of the enumerable string properties and methods of an object.
- * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- */
- keys(o: object): string[];
- }
- /**
- * Provides functionality common to all JavaScript objects.
- */
- declare var Object: ObjectConstructor;
- /**
- * Creates a new function.
- */
- interface Function {
- /**
- * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
- * @param thisArg The object to be used as the this object.
- * @param argArray A set of arguments to be passed to the function.
- */
- apply(this: Function, thisArg: any, argArray?: any): any;
- /**
- * Calls a method of an object, substituting another object for the current object.
- * @param thisArg The object to be used as the current object.
- * @param argArray A list of arguments to be passed to the method.
- */
- call(this: Function, thisArg: any, ...argArray: any[]): any;
- /**
- * For a given function, creates a bound function that has the same body as the original function.
- * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
- * @param thisArg An object to which the this keyword can refer inside the new function.
- * @param argArray A list of arguments to be passed to the new function.
- */
- bind(this: Function, thisArg: any, ...argArray: any[]): any;
- /** Returns a string representation of a function. */
- toString(): string;
- prototype: any;
- readonly length: number;
- // Non-standard extensions
- arguments: any;
- caller: Function;
- }
- interface FunctionConstructor {
- /**
- * Creates a new function.
- * @param args A list of arguments the function accepts.
- */
- new(...args: string[]): Function;
- (...args: string[]): Function;
- readonly prototype: Function;
- }
- declare var Function: FunctionConstructor;
- /**
- * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
- */
- type ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown;
- /**
- * Removes the 'this' parameter from a function type.
- */
- type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
- interface CallableFunction extends Function {
- /**
- * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
- * @param thisArg The object to be used as the this object.
- * @param args An array of argument values to be passed to the function.
- */
- apply<T, R>(this: (this: T) => R, thisArg: T): R;
- apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
- /**
- * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
- * @param thisArg The object to be used as the this object.
- * @param args Argument values to be passed to the function.
- */
- call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
- /**
- * For a given function, creates a bound function that has the same body as the original function.
- * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
- * @param thisArg The object to be used as the this object.
- * @param args Arguments to bind to the parameters of the function.
- */
- bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
- bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;
- bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;
- bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;
- bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;
- bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;
- }
- interface NewableFunction extends Function {
- /**
- * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
- * @param thisArg The object to be used as the this object.
- * @param args An array of argument values to be passed to the function.
- */
- apply<T>(this: new () => T, thisArg: T): void;
- apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
- /**
- * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
- * @param thisArg The object to be used as the this object.
- * @param args Argument values to be passed to the function.
- */
- call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
- /**
- * For a given function, creates a bound function that has the same body as the original function.
- * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
- * @param thisArg The object to be used as the this object.
- * @param args Arguments to bind to the parameters of the function.
- */
- bind<T>(this: T, thisArg: any): T;
- bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;
- bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;
- bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;
- bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;
- bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;
- }
- interface IArguments {
- [index: number]: any;
- length: number;
- callee: Function;
- }
- interface String {
- /** Returns a string representation of a string. */
- toString(): string;
- /**
- * Returns the character at the specified index.
- * @param pos The zero-based index of the desired character.
- */
- charAt(pos: number): string;
- /**
- * Returns the Unicode value of the character at the specified location.
- * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
- */
- charCodeAt(index: number): number;
- /**
- * Returns a string that contains the concatenation of two or more strings.
- * @param strings The strings to append to the end of the string.
- */
- concat(...strings: string[]): string;
- /**
- * Returns the position of the first occurrence of a substring.
- * @param searchString The substring to search for in the string
- * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
- */
- indexOf(searchString: string, position?: number): number;
- /**
- * Returns the last occurrence of a substring in the string.
- * @param searchString The substring to search for.
- * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
- */
- lastIndexOf(searchString: string, position?: number): number;
- /**
- * Determines whether two strings are equivalent in the current locale.
- * @param that String to compare to target string
- */
- localeCompare(that: string): number;
- /**
- * Matches a string with a regular expression, and returns an array containing the results of that search.
- * @param regexp A variable name or string literal containing the regular expression pattern and flags.
- */
- match(regexp: string | RegExp): RegExpMatchArray | null;
- /**
- * Replaces text in a string, using a regular expression or search string.
- * @param searchValue A string or regular expression to search for.
- * @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a \`RegExp\`, all matches are replaced if the \`g\` flag is set (or only those matches at the beginning, if the \`y\` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced.
- */
- replace(searchValue: string | RegExp, replaceValue: string): string;
- /**
- * Replaces text in a string, using a regular expression or search string.
- * @param searchValue A string to search for.
- * @param replacer A function that returns the replacement text.
- */
- replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
- /**
- * Finds the first substring match in a regular expression search.
- * @param regexp The regular expression pattern and applicable flags.
- */
- search(regexp: string | RegExp): number;
- /**
- * Returns a section of a string.
- * @param start The index to the beginning of the specified portion of stringObj.
- * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
- * If this value is not specified, the substring continues to the end of stringObj.
- */
- slice(start?: number, end?: number): string;
- /**
- * Split a string into substrings using the specified separator and return them as an array.
- * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
- * @param limit A value used to limit the number of elements returned in the array.
- */
- split(separator: string | RegExp, limit?: number): string[];
- /**
- * Returns the substring at the specified location within a String object.
- * @param start The zero-based index number indicating the beginning of the substring.
- * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
- * If end is omitted, the characters from start through the end of the original string are returned.
- */
- substring(start: number, end?: number): string;
- /** Converts all the alphabetic characters in a string to lowercase. */
- toLowerCase(): string;
- /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
- toLocaleLowerCase(locales?: string | string[]): string;
- /** Converts all the alphabetic characters in a string to uppercase. */
- toUpperCase(): string;
- /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
- toLocaleUpperCase(locales?: string | string[]): string;
- /** Removes the leading and trailing white space and line terminator characters from a string. */
- trim(): string;
- /** Returns the length of a String object. */
- readonly length: number;
- // IE extensions
- /**
- * Gets a substring beginning at the specified location and having the specified length.
- * @deprecated A legacy feature for browser compatibility
- * @param from The starting position of the desired substring. The index of the first character in the string is zero.
- * @param length The number of characters to include in the returned substring.
- */
- substr(from: number, length?: number): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): string;
- readonly [index: number]: string;
- }
- interface StringConstructor {
- new(value?: any): String;
- (value?: any): string;
- readonly prototype: String;
- fromCharCode(...codes: number[]): string;
- }
- /**
- * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
- */
- declare var String: StringConstructor;
- interface Boolean {
- /** Returns the primitive value of the specified object. */
- valueOf(): boolean;
- }
- interface BooleanConstructor {
- new(value?: any): Boolean;
- <T>(value?: T): boolean;
- readonly prototype: Boolean;
- }
- declare var Boolean: BooleanConstructor;
- interface Number {
- /**
- * Returns a string representation of an object.
- * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
- */
- toString(radix?: number): string;
- /**
- * Returns a string representing a number in fixed-point notation.
- * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
- */
- toFixed(fractionDigits?: number): string;
- /**
- * Returns a string containing a number represented in exponential notation.
- * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
- */
- toExponential(fractionDigits?: number): string;
- /**
- * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
- * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
- */
- toPrecision(precision?: number): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): number;
- }
- interface NumberConstructor {
- new(value?: any): Number;
- (value?: any): number;
- readonly prototype: Number;
- /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
- readonly MAX_VALUE: number;
- /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
- readonly MIN_VALUE: number;
- /**
- * A value that is not a number.
- * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
- */
- readonly NaN: number;
- /**
- * A value that is less than the largest negative number that can be represented in JavaScript.
- * JavaScript displays NEGATIVE_INFINITY values as -infinity.
- */
- readonly NEGATIVE_INFINITY: number;
- /**
- * A value greater than the largest number that can be represented in JavaScript.
- * JavaScript displays POSITIVE_INFINITY values as infinity.
- */
- readonly POSITIVE_INFINITY: number;
- }
- /** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
- declare var Number: NumberConstructor;
- interface TemplateStringsArray extends ReadonlyArray<string> {
- readonly raw: readonly string[];
- }
- /**
- * The type of \`import.meta\`.
- *
- * If you need to declare that a given property exists on \`import.meta\`,
- * this type may be augmented via interface merging.
- */
- interface ImportMeta {
- }
- /**
- * The type for the optional second argument to \`import()\`.
- *
- * If your host environment supports additional options, this type may be
- * augmented via interface merging.
- */
- interface ImportCallOptions {
- assert?: ImportAssertions;
- }
- /**
- * The type for the \`assert\` property of the optional second argument to \`import()\`.
- */
- interface ImportAssertions {
- [key: string]: string;
- }
- interface Math {
- /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
- readonly E: number;
- /** The natural logarithm of 10. */
- readonly LN10: number;
- /** The natural logarithm of 2. */
- readonly LN2: number;
- /** The base-2 logarithm of e. */
- readonly LOG2E: number;
- /** The base-10 logarithm of e. */
- readonly LOG10E: number;
- /** Pi. This is the ratio of the circumference of a circle to its diameter. */
- readonly PI: number;
- /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
- readonly SQRT1_2: number;
- /** The square root of 2. */
- readonly SQRT2: number;
- /**
- * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
- * For example, the absolute value of -5 is the same as the absolute value of 5.
- * @param x A numeric expression for which the absolute value is needed.
- */
- abs(x: number): number;
- /**
- * Returns the arc cosine (or inverse cosine) of a number.
- * @param x A numeric expression.
- */
- acos(x: number): number;
- /**
- * Returns the arcsine of a number.
- * @param x A numeric expression.
- */
- asin(x: number): number;
- /**
- * Returns the arctangent of a number.
- * @param x A numeric expression for which the arctangent is needed.
- */
- atan(x: number): number;
- /**
- * Returns the angle (in radians) from the X axis to a point.
- * @param y A numeric expression representing the cartesian y-coordinate.
- * @param x A numeric expression representing the cartesian x-coordinate.
- */
- atan2(y: number, x: number): number;
- /**
- * Returns the smallest integer greater than or equal to its numeric argument.
- * @param x A numeric expression.
- */
- ceil(x: number): number;
- /**
- * Returns the cosine of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- cos(x: number): number;
- /**
- * Returns e (the base of natural logarithms) raised to a power.
- * @param x A numeric expression representing the power of e.
- */
- exp(x: number): number;
- /**
- * Returns the greatest integer less than or equal to its numeric argument.
- * @param x A numeric expression.
- */
- floor(x: number): number;
- /**
- * Returns the natural logarithm (base e) of a number.
- * @param x A numeric expression.
- */
- log(x: number): number;
- /**
- * Returns the larger of a set of supplied numeric expressions.
- * @param values Numeric expressions to be evaluated.
- */
- max(...values: number[]): number;
- /**
- * Returns the smaller of a set of supplied numeric expressions.
- * @param values Numeric expressions to be evaluated.
- */
- min(...values: number[]): number;
- /**
- * Returns the value of a base expression taken to a specified power.
- * @param x The base value of the expression.
- * @param y The exponent value of the expression.
- */
- pow(x: number, y: number): number;
- /** Returns a pseudorandom number between 0 and 1. */
- random(): number;
- /**
- * Returns a supplied numeric expression rounded to the nearest integer.
- * @param x The value to be rounded to the nearest integer.
- */
- round(x: number): number;
- /**
- * Returns the sine of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- sin(x: number): number;
- /**
- * Returns the square root of a number.
- * @param x A numeric expression.
- */
- sqrt(x: number): number;
- /**
- * Returns the tangent of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- tan(x: number): number;
- }
- /** An intrinsic object that provides basic mathematics functionality and constants. */
- declare var Math: Math;
- /** Enables basic storage and retrieval of dates and times. */
- interface Date {
- /** Returns a string representation of a date. The format of the string depends on the locale. */
- toString(): string;
- /** Returns a date as a string value. */
- toDateString(): string;
- /** Returns a time as a string value. */
- toTimeString(): string;
- /** Returns a value as a string value appropriate to the host environment's current locale. */
- toLocaleString(): string;
- /** Returns a date as a string value appropriate to the host environment's current locale. */
- toLocaleDateString(): string;
- /** Returns a time as a string value appropriate to the host environment's current locale. */
- toLocaleTimeString(): string;
- /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
- valueOf(): number;
- /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
- getTime(): number;
- /** Gets the year, using local time. */
- getFullYear(): number;
- /** Gets the year using Universal Coordinated Time (UTC). */
- getUTCFullYear(): number;
- /** Gets the month, using local time. */
- getMonth(): number;
- /** Gets the month of a Date object using Universal Coordinated Time (UTC). */
- getUTCMonth(): number;
- /** Gets the day-of-the-month, using local time. */
- getDate(): number;
- /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
- getUTCDate(): number;
- /** Gets the day of the week, using local time. */
- getDay(): number;
- /** Gets the day of the week using Universal Coordinated Time (UTC). */
- getUTCDay(): number;
- /** Gets the hours in a date, using local time. */
- getHours(): number;
- /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
- getUTCHours(): number;
- /** Gets the minutes of a Date object, using local time. */
- getMinutes(): number;
- /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
- getUTCMinutes(): number;
- /** Gets the seconds of a Date object, using local time. */
- getSeconds(): number;
- /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
- getUTCSeconds(): number;
- /** Gets the milliseconds of a Date, using local time. */
- getMilliseconds(): number;
- /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
- getUTCMilliseconds(): number;
- /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
- getTimezoneOffset(): number;
- /**
- * Sets the date and time value in the Date object.
- * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
- */
- setTime(time: number): number;
- /**
- * Sets the milliseconds value in the Date object using local time.
- * @param ms A numeric value equal to the millisecond value.
- */
- setMilliseconds(ms: number): number;
- /**
- * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
- * @param ms A numeric value equal to the millisecond value.
- */
- setUTCMilliseconds(ms: number): number;
- /**
- * Sets the seconds value in the Date object using local time.
- * @param sec A numeric value equal to the seconds value.
- * @param ms A numeric value equal to the milliseconds value.
- */
- setSeconds(sec: number, ms?: number): number;
- /**
- * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
- * @param sec A numeric value equal to the seconds value.
- * @param ms A numeric value equal to the milliseconds value.
- */
- setUTCSeconds(sec: number, ms?: number): number;
- /**
- * Sets the minutes value in the Date object using local time.
- * @param min A numeric value equal to the minutes value.
- * @param sec A numeric value equal to the seconds value.
- * @param ms A numeric value equal to the milliseconds value.
- */
- setMinutes(min: number, sec?: number, ms?: number): number;
- /**
- * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
- * @param min A numeric value equal to the minutes value.
- * @param sec A numeric value equal to the seconds value.
- * @param ms A numeric value equal to the milliseconds value.
- */
- setUTCMinutes(min: number, sec?: number, ms?: number): number;
- /**
- * Sets the hour value in the Date object using local time.
- * @param hours A numeric value equal to the hours value.
- * @param min A numeric value equal to the minutes value.
- * @param sec A numeric value equal to the seconds value.
- * @param ms A numeric value equal to the milliseconds value.
- */
- setHours(hours: number, min?: number, sec?: number, ms?: number): number;
- /**
- * Sets the hours value in the Date object using Universal Coordinated Time (UTC).
- * @param hours A numeric value equal to the hours value.
- * @param min A numeric value equal to the minutes value.
- * @param sec A numeric value equal to the seconds value.
- * @param ms A numeric value equal to the milliseconds value.
- */
- setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
- /**
- * Sets the numeric day-of-the-month value of the Date object using local time.
- * @param date A numeric value equal to the day of the month.
- */
- setDate(date: number): number;
- /**
- * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
- * @param date A numeric value equal to the day of the month.
- */
- setUTCDate(date: number): number;
- /**
- * Sets the month value in the Date object using local time.
- * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
- * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
- */
- setMonth(month: number, date?: number): number;
- /**
- * Sets the month value in the Date object using Universal Coordinated Time (UTC).
- * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
- * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
- */
- setUTCMonth(month: number, date?: number): number;
- /**
- * Sets the year of the Date object using local time.
- * @param year A numeric value for the year.
- * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
- * @param date A numeric value equal for the day of the month.
- */
- setFullYear(year: number, month?: number, date?: number): number;
- /**
- * Sets the year value in the Date object using Universal Coordinated Time (UTC).
- * @param year A numeric value equal to the year.
- * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
- * @param date A numeric value equal to the day of the month.
- */
- setUTCFullYear(year: number, month?: number, date?: number): number;
- /** Returns a date converted to a string using Universal Coordinated Time (UTC). */
- toUTCString(): string;
- /** Returns a date as a string value in ISO format. */
- toISOString(): string;
- /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
- toJSON(key?: any): string;
- }
- interface DateConstructor {
- new(): Date;
- new(value: number | string): Date;
- /**
- * Creates a new Date.
- * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
- * @param monthIndex The month as a number between 0 and 11 (January to December).
- * @param date The date as a number between 1 and 31.
- * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
- * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
- * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
- * @param ms A number from 0 to 999 that specifies the milliseconds.
- */
- new(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
- (): string;
- readonly prototype: Date;
- /**
- * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
- * @param s A date string
- */
- parse(s: string): number;
- /**
- * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
- * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
- * @param monthIndex The month as a number between 0 and 11 (January to December).
- * @param date The date as a number between 1 and 31.
- * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
- * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
- * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
- * @param ms A number from 0 to 999 that specifies the milliseconds.
- */
- UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
- /** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */
- now(): number;
- }
- declare var Date: DateConstructor;
- interface RegExpMatchArray extends Array<string> {
- /**
- * The index of the search at which the result was found.
- */
- index?: number;
- /**
- * A copy of the search string.
- */
- input?: string;
- /**
- * The first match. This will always be present because \`null\` will be returned if there are no matches.
- */
- 0: string;
- }
- interface RegExpExecArray extends Array<string> {
- /**
- * The index of the search at which the result was found.
- */
- index: number;
- /**
- * A copy of the search string.
- */
- input: string;
- /**
- * The first match. This will always be present because \`null\` will be returned if there are no matches.
- */
- 0: string;
- }
- interface RegExp {
- /**
- * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
- * @param string The String object or string literal on which to perform the search.
- */
- exec(string: string): RegExpExecArray | null;
- /**
- * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
- * @param string String on which to perform the search.
- */
- test(string: string): boolean;
- /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
- readonly source: string;
- /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
- readonly global: boolean;
- /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
- readonly ignoreCase: boolean;
- /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
- readonly multiline: boolean;
- lastIndex: number;
- // Non-standard extensions
- /** @deprecated A legacy feature for browser compatibility */
- compile(pattern: string, flags?: string): this;
- }
- interface RegExpConstructor {
- new(pattern: RegExp | string): RegExp;
- new(pattern: string, flags?: string): RegExp;
- (pattern: RegExp | string): RegExp;
- (pattern: string, flags?: string): RegExp;
- readonly prototype: RegExp;
- // Non-standard extensions
- /** @deprecated A legacy feature for browser compatibility */
- $1: string;
- /** @deprecated A legacy feature for browser compatibility */
- $2: string;
- /** @deprecated A legacy feature for browser compatibility */
- $3: string;
- /** @deprecated A legacy feature for browser compatibility */
- $4: string;
- /** @deprecated A legacy feature for browser compatibility */
- $5: string;
- /** @deprecated A legacy feature for browser compatibility */
- $6: string;
- /** @deprecated A legacy feature for browser compatibility */
- $7: string;
- /** @deprecated A legacy feature for browser compatibility */
- $8: string;
- /** @deprecated A legacy feature for browser compatibility */
- $9: string;
- /** @deprecated A legacy feature for browser compatibility */
- input: string;
- /** @deprecated A legacy feature for browser compatibility */
- $_: string;
- /** @deprecated A legacy feature for browser compatibility */
- lastMatch: string;
- /** @deprecated A legacy feature for browser compatibility */
- "$&": string;
- /** @deprecated A legacy feature for browser compatibility */
- lastParen: string;
- /** @deprecated A legacy feature for browser compatibility */
- "$+": string;
- /** @deprecated A legacy feature for browser compatibility */
- leftContext: string;
- /** @deprecated A legacy feature for browser compatibility */
- "$\`": string;
- /** @deprecated A legacy feature for browser compatibility */
- rightContext: string;
- /** @deprecated A legacy feature for browser compatibility */
- "$'": string;
- }
- declare var RegExp: RegExpConstructor;
- interface Error {
- name: string;
- message: string;
- stack?: string;
- }
- interface ErrorConstructor {
- new(message?: string): Error;
- (message?: string): Error;
- readonly prototype: Error;
- }
- declare var Error: ErrorConstructor;
- interface EvalError extends Error {
- }
- interface EvalErrorConstructor extends ErrorConstructor {
- new(message?: string): EvalError;
- (message?: string): EvalError;
- readonly prototype: EvalError;
- }
- declare var EvalError: EvalErrorConstructor;
- interface RangeError extends Error {
- }
- interface RangeErrorConstructor extends ErrorConstructor {
- new(message?: string): RangeError;
- (message?: string): RangeError;
- readonly prototype: RangeError;
- }
- declare var RangeError: RangeErrorConstructor;
- interface ReferenceError extends Error {
- }
- interface ReferenceErrorConstructor extends ErrorConstructor {
- new(message?: string): ReferenceError;
- (message?: string): ReferenceError;
- readonly prototype: ReferenceError;
- }
- declare var ReferenceError: ReferenceErrorConstructor;
- interface SyntaxError extends Error {
- }
- interface SyntaxErrorConstructor extends ErrorConstructor {
- new(message?: string): SyntaxError;
- (message?: string): SyntaxError;
- readonly prototype: SyntaxError;
- }
- declare var SyntaxError: SyntaxErrorConstructor;
- interface TypeError extends Error {
- }
- interface TypeErrorConstructor extends ErrorConstructor {
- new(message?: string): TypeError;
- (message?: string): TypeError;
- readonly prototype: TypeError;
- }
- declare var TypeError: TypeErrorConstructor;
- interface URIError extends Error {
- }
- interface URIErrorConstructor extends ErrorConstructor {
- new(message?: string): URIError;
- (message?: string): URIError;
- readonly prototype: URIError;
- }
- declare var URIError: URIErrorConstructor;
- interface JSON {
- /**
- * Converts a JavaScript Object Notation (JSON) string into an object.
- * @param text A valid JSON string.
- * @param reviver A function that transforms the results. This function is called for each member of the object.
- * If a member contains nested objects, the nested objects are transformed before the parent object is.
- */
- parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
- /**
- * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
- * @param value A JavaScript value, usually an object or array, to be converted.
- * @param replacer A function that transforms the results.
- * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
- */
- stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
- /**
- * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
- * @param value A JavaScript value, usually an object or array, to be converted.
- * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
- * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
- */
- stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
- }
- /**
- * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
- */
- declare var JSON: JSON;
- /////////////////////////////
- /// ECMAScript Array API (specially handled by compiler)
- /////////////////////////////
- interface ReadonlyArray<T> {
- /**
- * Gets the length of the array. This is a number one higher than the highest element defined in an array.
- */
- readonly length: number;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- /**
- * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
- */
- toLocaleString(): string;
- /**
- * Combines two or more arrays.
- * @param items Additional items to add to the end of array1.
- */
- concat(...items: ConcatArray<T>[]): T[];
- /**
- * Combines two or more arrays.
- * @param items Additional items to add to the end of array1.
- */
- concat(...items: (T | ConcatArray<T>)[]): T[];
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Returns a section of an array.
- * @param start The beginning of the specified portion of the array.
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
- */
- slice(start?: number, end?: number): T[];
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
- */
- indexOf(searchElement: T, fromIndex?: number): number;
- /**
- * Returns the index of the last occurrence of a specified value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
- */
- lastIndexOf(searchElement: T, fromIndex?: number): number;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value true, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
- */
- map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
- */
- filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
- /**
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
- readonly [n: number]: T;
- }
- interface ConcatArray<T> {
- readonly length: number;
- readonly [n: number]: T;
- join(separator?: string): string;
- slice(start?: number, end?: number): T[];
- }
- interface Array<T> {
- /**
- * Gets or sets the length of the array. This is a number one higher than the highest index in the array.
- */
- length: number;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- /**
- * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
- */
- toLocaleString(): string;
- /**
- * Removes the last element from an array and returns it.
- * If the array is empty, undefined is returned and the array is not modified.
- */
- pop(): T | undefined;
- /**
- * Appends new elements to the end of an array, and returns the new length of the array.
- * @param items New elements to add to the array.
- */
- push(...items: T[]): number;
- /**
- * Combines two or more arrays.
- * This method returns a new array without modifying any existing arrays.
- * @param items Additional arrays and/or items to add to the end of the array.
- */
- concat(...items: ConcatArray<T>[]): T[];
- /**
- * Combines two or more arrays.
- * This method returns a new array without modifying any existing arrays.
- * @param items Additional arrays and/or items to add to the end of the array.
- */
- concat(...items: (T | ConcatArray<T>)[]): T[];
- /**
- * Adds all the elements of an array into a string, separated by the specified separator string.
- * @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Reverses the elements in an array in place.
- * This method mutates the array and returns a reference to the same array.
- */
- reverse(): T[];
- /**
- * Removes the first element from an array and returns it.
- * If the array is empty, undefined is returned and the array is not modified.
- */
- shift(): T | undefined;
- /**
- * Returns a copy of a section of an array.
- * For both start and end, a negative index can be used to indicate an offset from the end of the array.
- * For example, -2 refers to the second to last element of the array.
- * @param start The beginning index of the specified portion of the array.
- * If start is undefined, then the slice begins at index 0.
- * @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
- * If end is undefined, then the slice extends to the end of the array.
- */
- slice(start?: number, end?: number): T[];
- /**
- * Sorts an array in place.
- * This method mutates the array and returns a reference to the same array.
- * @param compareFn Function used to determine the order of the elements. It is expected to return
- * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
- * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
- * \`\`\`ts
- * [11,2,22,1].sort((a, b) => a - b)
- * \`\`\`
- */
- sort(compareFn?: (a: T, b: T) => number): this;
- /**
- * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
- * @param start The zero-based location in the array from which to start removing elements.
- * @param deleteCount The number of elements to remove.
- * @returns An array containing the elements that were deleted.
- */
- splice(start: number, deleteCount?: number): T[];
- /**
- * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
- * @param start The zero-based location in the array from which to start removing elements.
- * @param deleteCount The number of elements to remove.
- * @param items Elements to insert into the array in place of the deleted elements.
- * @returns An array containing the elements that were deleted.
- */
- splice(start: number, deleteCount: number, ...items: T[]): T[];
- /**
- * Inserts new elements at the start of an array, and returns the new length of the array.
- * @param items Elements to insert at the start of the array.
- */
- unshift(...items: T[]): number;
- /**
- * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
- */
- indexOf(searchElement: T, fromIndex?: number): number;
- /**
- * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
- */
- lastIndexOf(searchElement: T, fromIndex?: number): number;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value true, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
- */
- map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
- */
- filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
- /**
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
- reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
- [n: number]: T;
- }
- interface ArrayConstructor {
- new(arrayLength?: number): any[];
- new <T>(arrayLength: number): T[];
- new <T>(...items: T[]): T[];
- (arrayLength?: number): any[];
- <T>(arrayLength: number): T[];
- <T>(...items: T[]): T[];
- isArray(arg: any): arg is any[];
- readonly prototype: any[];
- }
- declare var Array: ArrayConstructor;
- interface TypedPropertyDescriptor<T> {
- enumerable?: boolean;
- configurable?: boolean;
- writable?: boolean;
- value?: T;
- get?: () => T;
- set?: (value: T) => void;
- }
- declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
- interface PromiseLike<T> {
- /**
- * Attaches callbacks for the resolution and/or rejection of the Promise.
- * @param onfulfilled The callback to execute when the Promise is resolved.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of which ever callback is executed.
- */
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
- }
- /**
- * Represents the completion of an asynchronous operation
- */
- interface Promise<T> {
- /**
- * Attaches callbacks for the resolution and/or rejection of the Promise.
- * @param onfulfilled The callback to execute when the Promise is resolved.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of which ever callback is executed.
- */
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
- /**
- * Attaches a callback for only the rejection of the Promise.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of the callback.
- */
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
- }
- /**
- * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to \`never\`. This emulates the behavior of \`await\`.
- */
- type Awaited<T> =
- T extends null | undefined ? T : // special case for \`null | undefined\` when not in \`--strictNullChecks\` mode
- T extends object & { then(onfulfilled: infer F, ...args: infer _): any } ? // \`await\` only unwraps object types with a callable \`then\`. Non-object types are not unwrapped
- F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to \`then\` is callable, extracts the first argument
- Awaited<V> : // recursively unwrap the value
- never : // the argument to \`then\` was not callable
- T; // non-object or non-thenable
- interface ArrayLike<T> {
- readonly length: number;
- readonly [n: number]: T;
- }
- /**
- * Make all properties in T optional
- */
- type Partial<T> = {
- [P in keyof T]?: T[P];
- };
- /**
- * Make all properties in T required
- */
- type Required<T> = {
- [P in keyof T]-?: T[P];
- };
- /**
- * Make all properties in T readonly
- */
- type Readonly<T> = {
- readonly [P in keyof T]: T[P];
- };
- /**
- * From T, pick a set of properties whose keys are in the union K
- */
- type Pick<T, K extends keyof T> = {
- [P in K]: T[P];
- };
- /**
- * Construct a type with a set of properties K of type T
- */
- type Record<K extends keyof any, T> = {
- [P in K]: T;
- };
- /**
- * Exclude from T those types that are assignable to U
- */
- type Exclude<T, U> = T extends U ? never : T;
- /**
- * Extract from T those types that are assignable to U
- */
- type Extract<T, U> = T extends U ? T : never;
- /**
- * Construct a type with the properties of T except for those in type K.
- */
- type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
- /**
- * Exclude null and undefined from T
- */
- type NonNullable<T> = T & {};
- /**
- * Obtain the parameters of a function type in a tuple
- */
- type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
- /**
- * Obtain the parameters of a constructor function type in a tuple
- */
- type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
- /**
- * Obtain the return type of a function type
- */
- type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
- /**
- * Obtain the return type of a constructor function type
- */
- type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
- /**
- * Convert string literal type to uppercase
- */
- type Uppercase<S extends string> = intrinsic;
- /**
- * Convert string literal type to lowercase
- */
- type Lowercase<S extends string> = intrinsic;
- /**
- * Convert first character of string literal type to uppercase
- */
- type Capitalize<S extends string> = intrinsic;
- /**
- * Convert first character of string literal type to lowercase
- */
- type Uncapitalize<S extends string> = intrinsic;
- /**
- * Marker for contextual 'this' type
- */
- interface ThisType<T> { }
- /**
- * Represents a raw buffer of binary data, which is used to store data for the
- * different typed arrays. ArrayBuffers cannot be read from or written to directly,
- * but can be passed to a typed array or DataView Object to interpret the raw
- * buffer as needed.
- */
- interface ArrayBuffer {
- /**
- * Read-only. The length of the ArrayBuffer (in bytes).
- */
- readonly byteLength: number;
- /**
- * Returns a section of an ArrayBuffer.
- */
- slice(begin: number, end?: number): ArrayBuffer;
- }
- /**
- * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
- */
- interface ArrayBufferTypes {
- ArrayBuffer: ArrayBuffer;
- }
- type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
- interface ArrayBufferConstructor {
- readonly prototype: ArrayBuffer;
- new(byteLength: number): ArrayBuffer;
- isView(arg: any): arg is ArrayBufferView;
- }
- declare var ArrayBuffer: ArrayBufferConstructor;
- interface ArrayBufferView {
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- buffer: ArrayBufferLike;
- /**
- * The length in bytes of the array.
- */
- byteLength: number;
- /**
- * The offset in bytes of the array.
- */
- byteOffset: number;
- }
- interface DataView {
- readonly buffer: ArrayBuffer;
- readonly byteLength: number;
- readonly byteOffset: number;
- /**
- * Gets the Float32 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- * @param littleEndian If false or undefined, a big-endian value should be read.
- */
- getFloat32(byteOffset: number, littleEndian?: boolean): number;
- /**
- * Gets the Float64 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- * @param littleEndian If false or undefined, a big-endian value should be read.
- */
- getFloat64(byteOffset: number, littleEndian?: boolean): number;
- /**
- * Gets the Int8 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- */
- getInt8(byteOffset: number): number;
- /**
- * Gets the Int16 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- * @param littleEndian If false or undefined, a big-endian value should be read.
- */
- getInt16(byteOffset: number, littleEndian?: boolean): number;
- /**
- * Gets the Int32 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- * @param littleEndian If false or undefined, a big-endian value should be read.
- */
- getInt32(byteOffset: number, littleEndian?: boolean): number;
- /**
- * Gets the Uint8 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- */
- getUint8(byteOffset: number): number;
- /**
- * Gets the Uint16 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- * @param littleEndian If false or undefined, a big-endian value should be read.
- */
- getUint16(byteOffset: number, littleEndian?: boolean): number;
- /**
- * Gets the Uint32 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- * @param littleEndian If false or undefined, a big-endian value should be read.
- */
- getUint32(byteOffset: number, littleEndian?: boolean): number;
- /**
- * Stores an Float32 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written.
- */
- setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
- /**
- * Stores an Float64 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written.
- */
- setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
- /**
- * Stores an Int8 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- */
- setInt8(byteOffset: number, value: number): void;
- /**
- * Stores an Int16 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written.
- */
- setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
- /**
- * Stores an Int32 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written.
- */
- setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
- /**
- * Stores an Uint8 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- */
- setUint8(byteOffset: number, value: number): void;
- /**
- * Stores an Uint16 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written.
- */
- setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
- /**
- * Stores an Uint32 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written.
- */
- setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
- }
- interface DataViewConstructor {
- readonly prototype: DataView;
- new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
- }
- declare var DataView: DataViewConstructor;
- /**
- * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
- * number of bytes could not be allocated an exception is raised.
- */
- interface Int8Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBufferLike;
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
- /**
- * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls
- * the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
- /**
- * The length of the array.
- */
- readonly length: number;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Int8Array;
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
- /**
- * Returns a section of an array.
- * @param start The beginning of the specified portion of the array.
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
- */
- slice(start?: number, end?: number): Int8Array;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value true, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
- /**
- * Sorts an array.
- * @param compareFn Function used to determine the order of the elements. It is expected to return
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
- * value otherwise. If omitted, the elements are sorted in ascending order.
- * \`\`\`ts
- * [11,2,22,1].sort((a, b) => a - b)
- * \`\`\`
- */
- sort(compareFn?: (a: number, b: number) => number): this;
- /**
- * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin?: number, end?: number): Int8Array;
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): Int8Array;
- [index: number]: number;
- }
- interface Int8ArrayConstructor {
- readonly prototype: Int8Array;
- new(length: number): Int8Array;
- new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Int8Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- */
- from(arrayLike: ArrayLike<number>): Int8Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
- }
- declare var Int8Array: Int8ArrayConstructor;
- /**
- * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
- interface Uint8Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBufferLike;
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
- /**
- * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls
- * the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
- /**
- * The length of the array.
- */
- readonly length: number;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Uint8Array;
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
- /**
- * Returns a section of an array.
- * @param start The beginning of the specified portion of the array.
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
- */
- slice(start?: number, end?: number): Uint8Array;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value true, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
- /**
- * Sorts an array.
- * @param compareFn Function used to determine the order of the elements. It is expected to return
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
- * value otherwise. If omitted, the elements are sorted in ascending order.
- * \`\`\`ts
- * [11,2,22,1].sort((a, b) => a - b)
- * \`\`\`
- */
- sort(compareFn?: (a: number, b: number) => number): this;
- /**
- * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin?: number, end?: number): Uint8Array;
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): Uint8Array;
- [index: number]: number;
- }
- interface Uint8ArrayConstructor {
- readonly prototype: Uint8Array;
- new(length: number): Uint8Array;
- new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Uint8Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- */
- from(arrayLike: ArrayLike<number>): Uint8Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
- }
- declare var Uint8Array: Uint8ArrayConstructor;
- /**
- * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
- * If the requested number of bytes could not be allocated an exception is raised.
- */
- interface Uint8ClampedArray {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBufferLike;
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
- /**
- * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls
- * the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
- /**
- * The length of the array.
- */
- readonly length: number;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Uint8ClampedArray;
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
- /**
- * Returns a section of an array.
- * @param start The beginning of the specified portion of the array.
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
- */
- slice(start?: number, end?: number): Uint8ClampedArray;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value true, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
- /**
- * Sorts an array.
- * @param compareFn Function used to determine the order of the elements. It is expected to return
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
- * value otherwise. If omitted, the elements are sorted in ascending order.
- * \`\`\`ts
- * [11,2,22,1].sort((a, b) => a - b)
- * \`\`\`
- */
- sort(compareFn?: (a: number, b: number) => number): this;
- /**
- * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin?: number, end?: number): Uint8ClampedArray;
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): Uint8ClampedArray;
- [index: number]: number;
- }
- interface Uint8ClampedArrayConstructor {
- readonly prototype: Uint8ClampedArray;
- new(length: number): Uint8ClampedArray;
- new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Uint8ClampedArray;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- */
- from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
- }
- declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
- /**
- * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
- interface Int16Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBufferLike;
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
- /**
- * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls
- * the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
- /**
- * The length of the array.
- */
- readonly length: number;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Int16Array;
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
- /**
- * Returns a section of an array.
- * @param start The beginning of the specified portion of the array.
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
- */
- slice(start?: number, end?: number): Int16Array;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value true, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
- /**
- * Sorts an array.
- * @param compareFn Function used to determine the order of the elements. It is expected to return
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
- * value otherwise. If omitted, the elements are sorted in ascending order.
- * \`\`\`ts
- * [11,2,22,1].sort((a, b) => a - b)
- * \`\`\`
- */
- sort(compareFn?: (a: number, b: number) => number): this;
- /**
- * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin?: number, end?: number): Int16Array;
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): Int16Array;
- [index: number]: number;
- }
- interface Int16ArrayConstructor {
- readonly prototype: Int16Array;
- new(length: number): Int16Array;
- new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Int16Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- */
- from(arrayLike: ArrayLike<number>): Int16Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
- }
- declare var Int16Array: Int16ArrayConstructor;
- /**
- * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
- interface Uint16Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBufferLike;
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
- /**
- * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls
- * the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
- /**
- * The length of the array.
- */
- readonly length: number;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Uint16Array;
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
- /**
- * Returns a section of an array.
- * @param start The beginning of the specified portion of the array.
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
- */
- slice(start?: number, end?: number): Uint16Array;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value true, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
- /**
- * Sorts an array.
- * @param compareFn Function used to determine the order of the elements. It is expected to return
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
- * value otherwise. If omitted, the elements are sorted in ascending order.
- * \`\`\`ts
- * [11,2,22,1].sort((a, b) => a - b)
- * \`\`\`
- */
- sort(compareFn?: (a: number, b: number) => number): this;
- /**
- * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin?: number, end?: number): Uint16Array;
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): Uint16Array;
- [index: number]: number;
- }
- interface Uint16ArrayConstructor {
- readonly prototype: Uint16Array;
- new(length: number): Uint16Array;
- new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Uint16Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- */
- from(arrayLike: ArrayLike<number>): Uint16Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
- }
- declare var Uint16Array: Uint16ArrayConstructor;
- /**
- * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
- interface Int32Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBufferLike;
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
- /**
- * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls
- * the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
- /**
- * The length of the array.
- */
- readonly length: number;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Int32Array;
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
- /**
- * Returns a section of an array.
- * @param start The beginning of the specified portion of the array.
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
- */
- slice(start?: number, end?: number): Int32Array;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value true, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
- /**
- * Sorts an array.
- * @param compareFn Function used to determine the order of the elements. It is expected to return
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
- * value otherwise. If omitted, the elements are sorted in ascending order.
- * \`\`\`ts
- * [11,2,22,1].sort((a, b) => a - b)
- * \`\`\`
- */
- sort(compareFn?: (a: number, b: number) => number): this;
- /**
- * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin?: number, end?: number): Int32Array;
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): Int32Array;
- [index: number]: number;
- }
- interface Int32ArrayConstructor {
- readonly prototype: Int32Array;
- new(length: number): Int32Array;
- new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Int32Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- */
- from(arrayLike: ArrayLike<number>): Int32Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
- }
- declare var Int32Array: Int32ArrayConstructor;
- /**
- * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
- interface Uint32Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBufferLike;
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
- /**
- * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls
- * the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
- /**
- * The length of the array.
- */
- readonly length: number;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Uint32Array;
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
- /**
- * Returns a section of an array.
- * @param start The beginning of the specified portion of the array.
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
- */
- slice(start?: number, end?: number): Uint32Array;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value true, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
- /**
- * Sorts an array.
- * @param compareFn Function used to determine the order of the elements. It is expected to return
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
- * value otherwise. If omitted, the elements are sorted in ascending order.
- * \`\`\`ts
- * [11,2,22,1].sort((a, b) => a - b)
- * \`\`\`
- */
- sort(compareFn?: (a: number, b: number) => number): this;
- /**
- * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin?: number, end?: number): Uint32Array;
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): Uint32Array;
- [index: number]: number;
- }
- interface Uint32ArrayConstructor {
- readonly prototype: Uint32Array;
- new(length: number): Uint32Array;
- new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Uint32Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- */
- from(arrayLike: ArrayLike<number>): Uint32Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
- }
- declare var Uint32Array: Uint32ArrayConstructor;
- /**
- * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
- * of bytes could not be allocated an exception is raised.
- */
- interface Float32Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBufferLike;
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
- /**
- * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls
- * the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
- /**
- * The length of the array.
- */
- readonly length: number;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Float32Array;
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
- /**
- * Returns a section of an array.
- * @param start The beginning of the specified portion of the array.
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
- */
- slice(start?: number, end?: number): Float32Array;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value true, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
- /**
- * Sorts an array.
- * @param compareFn Function used to determine the order of the elements. It is expected to return
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
- * value otherwise. If omitted, the elements are sorted in ascending order.
- * \`\`\`ts
- * [11,2,22,1].sort((a, b) => a - b)
- * \`\`\`
- */
- sort(compareFn?: (a: number, b: number) => number): this;
- /**
- * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin?: number, end?: number): Float32Array;
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): Float32Array;
- [index: number]: number;
- }
- interface Float32ArrayConstructor {
- readonly prototype: Float32Array;
- new(length: number): Float32Array;
- new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Float32Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- */
- from(arrayLike: ArrayLike<number>): Float32Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
- }
- declare var Float32Array: Float32ArrayConstructor;
- /**
- * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
- * number of bytes could not be allocated an exception is raised.
- */
- interface Float64Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBufferLike;
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
- /**
- * Returns the this object after copying a section of the array identified by start and end
- * to the same array starting at position target
- * @param target If target is negative, it is treated as length+target where length is the
- * length of the array.
- * @param start If start is negative, it is treated as length+start. If end is negative, it
- * is treated as length+end.
- * @param end If not specified, length of the this object is used as its default value.
- */
- copyWithin(target: number, start: number, end?: number): this;
- /**
- * Determines whether all the members of an array satisfy the specified test.
- * @param predicate A function that accepts up to three arguments. The every method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value false, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
- /**
- * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
- * @param value value to fill array section with
- * @param start index to start filling the array at. If start is negative, it is treated as
- * length+start where length is the length of the array.
- * @param end index to stop filling the array at. If end is negative, it is treated as
- * length+end.
- */
- fill(value: number, start?: number, end?: number): this;
- /**
- * Returns the elements of an array that meet the condition specified in a callback function.
- * @param predicate A function that accepts up to three arguments. The filter method calls
- * the predicate function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
- /**
- * Returns the value of the first element in the array where predicate is true, and undefined
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found, find
- * immediately returns that element value. Otherwise, find returns undefined.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
- /**
- * Returns the index of the first element in the array where predicate is true, and -1
- * otherwise.
- * @param predicate find calls predicate once for each element of the array, in ascending
- * order, until it finds one where predicate returns true. If such an element is found,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @param thisArg If provided, it will be used as the this value for each invocation of
- * predicate. If it is not provided, undefined is used instead.
- */
- findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
- /**
- * Performs the specified action for each element in an array.
- * @param callbackfn A function that accepts up to three arguments. forEach calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
- /**
- * Returns the index of the first occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- indexOf(searchElement: number, fromIndex?: number): number;
- /**
- * Adds all the elements of an array separated by the specified separator string.
- * @param separator A string used to separate one element of an array from the next in the
- * resulting String. If omitted, the array elements are separated with a comma.
- */
- join(separator?: string): string;
- /**
- * Returns the index of the last occurrence of a value in an array.
- * @param searchElement The value to locate in the array.
- * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
- * search starts at index 0.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
- /**
- * The length of the array.
- */
- readonly length: number;
- /**
- * Calls a defined callback function on each element of an array, and returns an array that
- * contains the results.
- * @param callbackfn A function that accepts up to three arguments. The map method calls the
- * callbackfn function one time for each element in the array.
- * @param thisArg An object to which the this keyword can refer in the callbackfn function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
- reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array. The return value of
- * the callback function is the accumulated result, and is provided as an argument in the next
- * call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
- * callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an
- * argument instead of an array value.
- */
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
- reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
- /**
- * Calls the specified callback function for all the elements in an array, in descending order.
- * The return value of the callback function is the accumulated result, and is provided as an
- * argument in the next call to the callback function.
- * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
- * the callbackfn function one time for each element in the array.
- * @param initialValue If initialValue is specified, it is used as the initial value to start
- * the accumulation. The first call to the callbackfn function provides this value as an argument
- * instead of an array value.
- */
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Float64Array;
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
- /**
- * Returns a section of an array.
- * @param start The beginning of the specified portion of the array.
- * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
- */
- slice(start?: number, end?: number): Float64Array;
- /**
- * Determines whether the specified callback function returns true for any element of an array.
- * @param predicate A function that accepts up to three arguments. The some method calls
- * the predicate function for each element in the array until the predicate returns a value
- * which is coercible to the Boolean value true, or until the end of the array.
- * @param thisArg An object to which the this keyword can refer in the predicate function.
- * If thisArg is omitted, undefined is used as the this value.
- */
- some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
- /**
- * Sorts an array.
- * @param compareFn Function used to determine the order of the elements. It is expected to return
- * a negative value if first argument is less than second argument, zero if they're equal and a positive
- * value otherwise. If omitted, the elements are sorted in ascending order.
- * \`\`\`ts
- * [11,2,22,1].sort((a, b) => a - b)
- * \`\`\`
- */
- sort(compareFn?: (a: number, b: number) => number): this;
- /**
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin?: number, end?: number): Float64Array;
- toString(): string;
- /** Returns the primitive value of the specified object. */
- valueOf(): Float64Array;
- [index: number]: number;
- }
- interface Float64ArrayConstructor {
- readonly prototype: Float64Array;
- new(length: number): Float64Array;
- new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;
- new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Float64Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- */
- from(arrayLike: ArrayLike<number>): Float64Array;
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or iterable object to convert to an array.
- * @param mapfn A mapping function to call on every element of the array.
- * @param thisArg Value of 'this' used to invoke the mapfn.
- */
- from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
- }
- declare var Float64Array: Float64ArrayConstructor;
- /////////////////////////////
- /// ECMAScript Internationalization API
- /////////////////////////////
- declare namespace Intl {
- interface CollatorOptions {
- usage?: string | undefined;
- localeMatcher?: string | undefined;
- numeric?: boolean | undefined;
- caseFirst?: string | undefined;
- sensitivity?: string | undefined;
- ignorePunctuation?: boolean | undefined;
- }
- interface ResolvedCollatorOptions {
- locale: string;
- usage: string;
- sensitivity: string;
- ignorePunctuation: boolean;
- collation: string;
- caseFirst: string;
- numeric: boolean;
- }
- interface Collator {
- compare(x: string, y: string): number;
- resolvedOptions(): ResolvedCollatorOptions;
- }
- var Collator: {
- new(locales?: string | string[], options?: CollatorOptions): Collator;
- (locales?: string | string[], options?: CollatorOptions): Collator;
- supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
- };
- interface NumberFormatOptions {
- localeMatcher?: string | undefined;
- style?: string | undefined;
- currency?: string | undefined;
- currencySign?: string | undefined;
- useGrouping?: boolean | undefined;
- minimumIntegerDigits?: number | undefined;
- minimumFractionDigits?: number | undefined;
- maximumFractionDigits?: number | undefined;
- minimumSignificantDigits?: number | undefined;
- maximumSignificantDigits?: number | undefined;
- }
- interface ResolvedNumberFormatOptions {
- locale: string;
- numberingSystem: string;
- style: string;
- currency?: string;
- minimumIntegerDigits: number;
- minimumFractionDigits: number;
- maximumFractionDigits: number;
- minimumSignificantDigits?: number;
- maximumSignificantDigits?: number;
- useGrouping: boolean;
- }
- interface NumberFormat {
- format(value: number): string;
- resolvedOptions(): ResolvedNumberFormatOptions;
- }
- var NumberFormat: {
- new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
- (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
- supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
- readonly prototype: NumberFormat;
- };
- interface DateTimeFormatOptions {
- localeMatcher?: "best fit" | "lookup" | undefined;
- weekday?: "long" | "short" | "narrow" | undefined;
- era?: "long" | "short" | "narrow" | undefined;
- year?: "numeric" | "2-digit" | undefined;
- month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
- day?: "numeric" | "2-digit" | undefined;
- hour?: "numeric" | "2-digit" | undefined;
- minute?: "numeric" | "2-digit" | undefined;
- second?: "numeric" | "2-digit" | undefined;
- timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
- formatMatcher?: "best fit" | "basic" | undefined;
- hour12?: boolean | undefined;
- timeZone?: string | undefined;
- }
- interface ResolvedDateTimeFormatOptions {
- locale: string;
- calendar: string;
- numberingSystem: string;
- timeZone: string;
- hour12?: boolean;
- weekday?: string;
- era?: string;
- year?: string;
- month?: string;
- day?: string;
- hour?: string;
- minute?: string;
- second?: string;
- timeZoneName?: string;
- }
- interface DateTimeFormat {
- format(date?: Date | number): string;
- resolvedOptions(): ResolvedDateTimeFormatOptions;
- }
- var DateTimeFormat: {
- new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
- (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
- supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
- readonly prototype: DateTimeFormat;
- };
- }
- interface String {
- /**
- * Determines whether two strings are equivalent in the current or specified locale.
- * @param that String to compare to target string
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
- * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
- */
- localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
- }
- interface Number {
- /**
- * Converts a number to a string by using the current or specified locale.
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
- }
- interface Date {
- /**
- * Converts a date and time to a string by using the current or specified locale.
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
- /**
- * Converts a date to a string by using the current or specified locale.
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
- /**
- * Converts a time to a string by using the current or specified locale.
- * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
- }
- `,ga["lib.es6.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2015" />
- /// <reference lib="dom" />
- /// <reference lib="dom.iterable" />
- /// <reference lib="webworker.importscripts" />
- /// <reference lib="scripthost" />
- `,ga["lib.esnext.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="es2023" />
- /// <reference lib="esnext.intl" />
- `,ga["lib.esnext.full.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /// <reference lib="esnext" />
- /// <reference lib="dom" />
- /// <reference lib="webworker.importscripts" />
- /// <reference lib="scripthost" />
- /// <reference lib="dom.iterable" />`,ga["lib.esnext.intl.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- declare namespace Intl {
- interface NumberRangeFormatPart extends NumberFormatPart {
- source: "startRange" | "endRange" | "shared"
- }
- interface NumberFormat {
- formatRange(start: number | bigint, end: number | bigint): string;
- formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
- }
- }
- `,ga["lib.scripthost.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /////////////////////////////
- /// Windows Script Host APIS
- /////////////////////////////
- interface ActiveXObject {
- new (s: string): any;
- }
- declare var ActiveXObject: ActiveXObject;
- interface ITextWriter {
- Write(s: string): void;
- WriteLine(s: string): void;
- Close(): void;
- }
- interface TextStreamBase {
- /**
- * The column number of the current character position in an input stream.
- */
- Column: number;
- /**
- * The current line number in an input stream.
- */
- Line: number;
- /**
- * Closes a text stream.
- * It is not necessary to close standard streams; they close automatically when the process ends. If
- * you close a standard stream, be aware that any other pointers to that standard stream become invalid.
- */
- Close(): void;
- }
- interface TextStreamWriter extends TextStreamBase {
- /**
- * Sends a string to an output stream.
- */
- Write(s: string): void;
- /**
- * Sends a specified number of blank lines (newline characters) to an output stream.
- */
- WriteBlankLines(intLines: number): void;
- /**
- * Sends a string followed by a newline character to an output stream.
- */
- WriteLine(s: string): void;
- }
- interface TextStreamReader extends TextStreamBase {
- /**
- * Returns a specified number of characters from an input stream, starting at the current pointer position.
- * Does not return until the ENTER key is pressed.
- * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
- */
- Read(characters: number): string;
- /**
- * Returns all characters from an input stream.
- * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
- */
- ReadAll(): string;
- /**
- * Returns an entire line from an input stream.
- * Although this method extracts the newline character, it does not add it to the returned string.
- * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
- */
- ReadLine(): string;
- /**
- * Skips a specified number of characters when reading from an input text stream.
- * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
- * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
- */
- Skip(characters: number): void;
- /**
- * Skips the next line when reading from an input text stream.
- * Can only be used on a stream in reading mode, not writing or appending mode.
- */
- SkipLine(): void;
- /**
- * Indicates whether the stream pointer position is at the end of a line.
- */
- AtEndOfLine: boolean;
- /**
- * Indicates whether the stream pointer position is at the end of a stream.
- */
- AtEndOfStream: boolean;
- }
- declare var WScript: {
- /**
- * Outputs text to either a message box (under WScript.exe) or the command console window followed by
- * a newline (under CScript.exe).
- */
- Echo(s: any): void;
- /**
- * Exposes the write-only error output stream for the current script.
- * Can be accessed only while using CScript.exe.
- */
- StdErr: TextStreamWriter;
- /**
- * Exposes the write-only output stream for the current script.
- * Can be accessed only while using CScript.exe.
- */
- StdOut: TextStreamWriter;
- Arguments: { length: number; Item(n: number): string; };
- /**
- * The full path of the currently running script.
- */
- ScriptFullName: string;
- /**
- * Forces the script to stop immediately, with an optional exit code.
- */
- Quit(exitCode?: number): number;
- /**
- * The Windows Script Host build version number.
- */
- BuildVersion: number;
- /**
- * Fully qualified path of the host executable.
- */
- FullName: string;
- /**
- * Gets/sets the script mode - interactive(true) or batch(false).
- */
- Interactive: boolean;
- /**
- * The name of the host executable (WScript.exe or CScript.exe).
- */
- Name: string;
- /**
- * Path of the directory containing the host executable.
- */
- Path: string;
- /**
- * The filename of the currently running script.
- */
- ScriptName: string;
- /**
- * Exposes the read-only input stream for the current script.
- * Can be accessed only while using CScript.exe.
- */
- StdIn: TextStreamReader;
- /**
- * Windows Script Host version
- */
- Version: string;
- /**
- * Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
- */
- ConnectObject(objEventSource: any, strPrefix: string): void;
- /**
- * Creates a COM object.
- * @param strProgiID
- * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
- */
- CreateObject(strProgID: string, strPrefix?: string): any;
- /**
- * Disconnects a COM object from its event sources.
- */
- DisconnectObject(obj: any): void;
- /**
- * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
- * @param strPathname Fully qualified path to the file containing the object persisted to disk.
- * For objects in memory, pass a zero-length string.
- * @param strProgID
- * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
- */
- GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;
- /**
- * Suspends script execution for a specified length of time, then continues execution.
- * @param intTime Interval (in milliseconds) to suspend script execution.
- */
- Sleep(intTime: number): void;
- };
- /**
- * WSH is an alias for WScript under Windows Script Host
- */
- declare var WSH: typeof WScript;
- /**
- * Represents an Automation SAFEARRAY
- */
- declare class SafeArray<T = any> {
- private constructor();
- private SafeArray_typekey: SafeArray<T>;
- }
- /**
- * Allows enumerating over a COM collection, which may not have indexed item access.
- */
- interface Enumerator<T = any> {
- /**
- * Returns true if the current item is the last one in the collection, or the collection is empty,
- * or the current item is undefined.
- */
- atEnd(): boolean;
- /**
- * Returns the current item in the collection
- */
- item(): T;
- /**
- * Resets the current item in the collection to the first item. If there are no items in the collection,
- * the current item is set to undefined.
- */
- moveFirst(): void;
- /**
- * Moves the current item to the next item in the collection. If the enumerator is at the end of
- * the collection or the collection is empty, the current item is set to undefined.
- */
- moveNext(): void;
- }
- interface EnumeratorConstructor {
- new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
- new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;
- new <T = any>(collection: any): Enumerator<T>;
- }
- declare var Enumerator: EnumeratorConstructor;
- /**
- * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
- */
- interface VBArray<T = any> {
- /**
- * Returns the number of dimensions (1-based).
- */
- dimensions(): number;
- /**
- * Takes an index for each dimension in the array, and returns the item at the corresponding location.
- */
- getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;
- /**
- * Returns the smallest available index for a given dimension.
- * @param dimension 1-based dimension (defaults to 1)
- */
- lbound(dimension?: number): number;
- /**
- * Returns the largest available index for a given dimension.
- * @param dimension 1-based dimension (defaults to 1)
- */
- ubound(dimension?: number): number;
- /**
- * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
- * each successive dimension is appended to the end of the array.
- * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
- */
- toArray(): T[];
- }
- interface VBArrayConstructor {
- new <T = any>(safeArray: SafeArray<T>): VBArray<T>;
- }
- declare var VBArray: VBArrayConstructor;
- /**
- * Automation date (VT_DATE)
- */
- declare class VarDate {
- private constructor();
- private VarDate_typekey: VarDate;
- }
- interface DateConstructor {
- new (vd: VarDate): Date;
- }
- interface Date {
- getVarDate: () => VarDate;
- }
- `,ga["lib.webworker.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /////////////////////////////
- /// Worker APIs
- /////////////////////////////
- interface AddEventListenerOptions extends EventListenerOptions {
- once?: boolean;
- passive?: boolean;
- signal?: AbortSignal;
- }
- interface AesCbcParams extends Algorithm {
- iv: BufferSource;
- }
- interface AesCtrParams extends Algorithm {
- counter: BufferSource;
- length: number;
- }
- interface AesDerivedKeyParams extends Algorithm {
- length: number;
- }
- interface AesGcmParams extends Algorithm {
- additionalData?: BufferSource;
- iv: BufferSource;
- tagLength?: number;
- }
- interface AesKeyAlgorithm extends KeyAlgorithm {
- length: number;
- }
- interface AesKeyGenParams extends Algorithm {
- length: number;
- }
- interface Algorithm {
- name: string;
- }
- interface AudioConfiguration {
- bitrate?: number;
- channels?: string;
- contentType: string;
- samplerate?: number;
- spatialRendering?: boolean;
- }
- interface BlobPropertyBag {
- endings?: EndingType;
- type?: string;
- }
- interface CacheQueryOptions {
- ignoreMethod?: boolean;
- ignoreSearch?: boolean;
- ignoreVary?: boolean;
- }
- interface ClientQueryOptions {
- includeUncontrolled?: boolean;
- type?: ClientTypes;
- }
- interface CloseEventInit extends EventInit {
- code?: number;
- reason?: string;
- wasClean?: boolean;
- }
- interface CryptoKeyPair {
- privateKey: CryptoKey;
- publicKey: CryptoKey;
- }
- interface CustomEventInit<T = any> extends EventInit {
- detail?: T;
- }
- interface DOMMatrix2DInit {
- a?: number;
- b?: number;
- c?: number;
- d?: number;
- e?: number;
- f?: number;
- m11?: number;
- m12?: number;
- m21?: number;
- m22?: number;
- m41?: number;
- m42?: number;
- }
- interface DOMMatrixInit extends DOMMatrix2DInit {
- is2D?: boolean;
- m13?: number;
- m14?: number;
- m23?: number;
- m24?: number;
- m31?: number;
- m32?: number;
- m33?: number;
- m34?: number;
- m43?: number;
- m44?: number;
- }
- interface DOMPointInit {
- w?: number;
- x?: number;
- y?: number;
- z?: number;
- }
- interface DOMQuadInit {
- p1?: DOMPointInit;
- p2?: DOMPointInit;
- p3?: DOMPointInit;
- p4?: DOMPointInit;
- }
- interface DOMRectInit {
- height?: number;
- width?: number;
- x?: number;
- y?: number;
- }
- interface EcKeyGenParams extends Algorithm {
- namedCurve: NamedCurve;
- }
- interface EcKeyImportParams extends Algorithm {
- namedCurve: NamedCurve;
- }
- interface EcdhKeyDeriveParams extends Algorithm {
- public: CryptoKey;
- }
- interface EcdsaParams extends Algorithm {
- hash: HashAlgorithmIdentifier;
- }
- interface ErrorEventInit extends EventInit {
- colno?: number;
- error?: any;
- filename?: string;
- lineno?: number;
- message?: string;
- }
- interface EventInit {
- bubbles?: boolean;
- cancelable?: boolean;
- composed?: boolean;
- }
- interface EventListenerOptions {
- capture?: boolean;
- }
- interface EventSourceInit {
- withCredentials?: boolean;
- }
- interface ExtendableEventInit extends EventInit {
- }
- interface ExtendableMessageEventInit extends ExtendableEventInit {
- data?: any;
- lastEventId?: string;
- origin?: string;
- ports?: MessagePort[];
- source?: Client | ServiceWorker | MessagePort | null;
- }
- interface FetchEventInit extends ExtendableEventInit {
- clientId?: string;
- handled?: Promise<undefined>;
- preloadResponse?: Promise<any>;
- replacesClientId?: string;
- request: Request;
- resultingClientId?: string;
- }
- interface FilePropertyBag extends BlobPropertyBag {
- lastModified?: number;
- }
- interface FileSystemGetDirectoryOptions {
- create?: boolean;
- }
- interface FileSystemGetFileOptions {
- create?: boolean;
- }
- interface FileSystemReadWriteOptions {
- at?: number;
- }
- interface FileSystemRemoveOptions {
- recursive?: boolean;
- }
- interface FontFaceDescriptors {
- ascentOverride?: string;
- descentOverride?: string;
- display?: FontDisplay;
- featureSettings?: string;
- lineGapOverride?: string;
- stretch?: string;
- style?: string;
- unicodeRange?: string;
- variant?: string;
- weight?: string;
- }
- interface FontFaceSetLoadEventInit extends EventInit {
- fontfaces?: FontFace[];
- }
- interface GetNotificationOptions {
- tag?: string;
- }
- interface HkdfParams extends Algorithm {
- hash: HashAlgorithmIdentifier;
- info: BufferSource;
- salt: BufferSource;
- }
- interface HmacImportParams extends Algorithm {
- hash: HashAlgorithmIdentifier;
- length?: number;
- }
- interface HmacKeyGenParams extends Algorithm {
- hash: HashAlgorithmIdentifier;
- length?: number;
- }
- interface IDBDatabaseInfo {
- name?: string;
- version?: number;
- }
- interface IDBIndexParameters {
- multiEntry?: boolean;
- unique?: boolean;
- }
- interface IDBObjectStoreParameters {
- autoIncrement?: boolean;
- keyPath?: string | string[] | null;
- }
- interface IDBTransactionOptions {
- durability?: IDBTransactionDurability;
- }
- interface IDBVersionChangeEventInit extends EventInit {
- newVersion?: number | null;
- oldVersion?: number;
- }
- interface ImageBitmapOptions {
- colorSpaceConversion?: ColorSpaceConversion;
- imageOrientation?: ImageOrientation;
- premultiplyAlpha?: PremultiplyAlpha;
- resizeHeight?: number;
- resizeQuality?: ResizeQuality;
- resizeWidth?: number;
- }
- interface ImageBitmapRenderingContextSettings {
- alpha?: boolean;
- }
- interface ImageDataSettings {
- colorSpace?: PredefinedColorSpace;
- }
- interface ImageEncodeOptions {
- quality?: number;
- type?: string;
- }
- interface ImportMeta {
- url: string;
- }
- interface JsonWebKey {
- alg?: string;
- crv?: string;
- d?: string;
- dp?: string;
- dq?: string;
- e?: string;
- ext?: boolean;
- k?: string;
- key_ops?: string[];
- kty?: string;
- n?: string;
- oth?: RsaOtherPrimesInfo[];
- p?: string;
- q?: string;
- qi?: string;
- use?: string;
- x?: string;
- y?: string;
- }
- interface KeyAlgorithm {
- name: string;
- }
- interface LockInfo {
- clientId?: string;
- mode?: LockMode;
- name?: string;
- }
- interface LockManagerSnapshot {
- held?: LockInfo[];
- pending?: LockInfo[];
- }
- interface LockOptions {
- ifAvailable?: boolean;
- mode?: LockMode;
- signal?: AbortSignal;
- steal?: boolean;
- }
- interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
- configuration?: MediaDecodingConfiguration;
- }
- interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
- configuration?: MediaEncodingConfiguration;
- }
- interface MediaCapabilitiesInfo {
- powerEfficient: boolean;
- smooth: boolean;
- supported: boolean;
- }
- interface MediaConfiguration {
- audio?: AudioConfiguration;
- video?: VideoConfiguration;
- }
- interface MediaDecodingConfiguration extends MediaConfiguration {
- type: MediaDecodingType;
- }
- interface MediaEncodingConfiguration extends MediaConfiguration {
- type: MediaEncodingType;
- }
- interface MessageEventInit<T = any> extends EventInit {
- data?: T;
- lastEventId?: string;
- origin?: string;
- ports?: MessagePort[];
- source?: MessageEventSource | null;
- }
- interface MultiCacheQueryOptions extends CacheQueryOptions {
- cacheName?: string;
- }
- interface NavigationPreloadState {
- enabled?: boolean;
- headerValue?: string;
- }
- interface NotificationAction {
- action: string;
- icon?: string;
- title: string;
- }
- interface NotificationEventInit extends ExtendableEventInit {
- action?: string;
- notification: Notification;
- }
- interface NotificationOptions {
- actions?: NotificationAction[];
- badge?: string;
- body?: string;
- data?: any;
- dir?: NotificationDirection;
- icon?: string;
- image?: string;
- lang?: string;
- renotify?: boolean;
- requireInteraction?: boolean;
- silent?: boolean;
- tag?: string;
- timestamp?: EpochTimeStamp;
- vibrate?: VibratePattern;
- }
- interface Pbkdf2Params extends Algorithm {
- hash: HashAlgorithmIdentifier;
- iterations: number;
- salt: BufferSource;
- }
- interface PerformanceMarkOptions {
- detail?: any;
- startTime?: DOMHighResTimeStamp;
- }
- interface PerformanceMeasureOptions {
- detail?: any;
- duration?: DOMHighResTimeStamp;
- end?: string | DOMHighResTimeStamp;
- start?: string | DOMHighResTimeStamp;
- }
- interface PerformanceObserverInit {
- buffered?: boolean;
- entryTypes?: string[];
- type?: string;
- }
- interface PermissionDescriptor {
- name: PermissionName;
- }
- interface ProgressEventInit extends EventInit {
- lengthComputable?: boolean;
- loaded?: number;
- total?: number;
- }
- interface PromiseRejectionEventInit extends EventInit {
- promise: Promise<any>;
- reason?: any;
- }
- interface PushEventInit extends ExtendableEventInit {
- data?: PushMessageDataInit;
- }
- interface PushSubscriptionJSON {
- endpoint?: string;
- expirationTime?: EpochTimeStamp | null;
- keys?: Record<string, string>;
- }
- interface PushSubscriptionOptionsInit {
- applicationServerKey?: BufferSource | string | null;
- userVisibleOnly?: boolean;
- }
- interface QueuingStrategy<T = any> {
- highWaterMark?: number;
- size?: QueuingStrategySize<T>;
- }
- interface QueuingStrategyInit {
- /**
- * Creates a new ByteLengthQueuingStrategy with the provided high water mark.
- *
- * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
- */
- highWaterMark: number;
- }
- interface RTCEncodedAudioFrameMetadata {
- contributingSources?: number[];
- synchronizationSource?: number;
- }
- interface RTCEncodedVideoFrameMetadata {
- contributingSources?: number[];
- dependencies?: number[];
- frameId?: number;
- height?: number;
- spatialIndex?: number;
- synchronizationSource?: number;
- temporalIndex?: number;
- width?: number;
- }
- interface ReadableStreamGetReaderOptions {
- /**
- * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
- *
- * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
- */
- mode?: ReadableStreamReaderMode;
- }
- interface ReadableStreamReadDoneResult<T> {
- done: true;
- value?: T;
- }
- interface ReadableStreamReadValueResult<T> {
- done: false;
- value: T;
- }
- interface ReadableWritablePair<R = any, W = any> {
- readable: ReadableStream<R>;
- /**
- * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
- *
- * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
- */
- writable: WritableStream<W>;
- }
- interface RegistrationOptions {
- scope?: string;
- type?: WorkerType;
- updateViaCache?: ServiceWorkerUpdateViaCache;
- }
- interface RequestInit {
- /** A BodyInit object or null to set request's body. */
- body?: BodyInit | null;
- /** A string indicating how the request will interact with the browser's cache to set request's cache. */
- cache?: RequestCache;
- /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
- credentials?: RequestCredentials;
- /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
- headers?: HeadersInit;
- /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
- integrity?: string;
- /** A boolean to set request's keepalive. */
- keepalive?: boolean;
- /** A string to set request's method. */
- method?: string;
- /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
- mode?: RequestMode;
- /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
- redirect?: RequestRedirect;
- /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
- referrer?: string;
- /** A referrer policy to set request's referrerPolicy. */
- referrerPolicy?: ReferrerPolicy;
- /** An AbortSignal to set request's signal. */
- signal?: AbortSignal | null;
- /** Can only be null. Used to disassociate request from any Window. */
- window?: null;
- }
- interface ResponseInit {
- headers?: HeadersInit;
- status?: number;
- statusText?: string;
- }
- interface RsaHashedImportParams extends Algorithm {
- hash: HashAlgorithmIdentifier;
- }
- interface RsaHashedKeyGenParams extends RsaKeyGenParams {
- hash: HashAlgorithmIdentifier;
- }
- interface RsaKeyGenParams extends Algorithm {
- modulusLength: number;
- publicExponent: BigInteger;
- }
- interface RsaOaepParams extends Algorithm {
- label?: BufferSource;
- }
- interface RsaOtherPrimesInfo {
- d?: string;
- r?: string;
- t?: string;
- }
- interface RsaPssParams extends Algorithm {
- saltLength: number;
- }
- interface SecurityPolicyViolationEventInit extends EventInit {
- blockedURI?: string;
- columnNumber?: number;
- disposition: SecurityPolicyViolationEventDisposition;
- documentURI: string;
- effectiveDirective: string;
- lineNumber?: number;
- originalPolicy: string;
- referrer?: string;
- sample?: string;
- sourceFile?: string;
- statusCode: number;
- violatedDirective: string;
- }
- interface StorageEstimate {
- quota?: number;
- usage?: number;
- }
- interface StreamPipeOptions {
- preventAbort?: boolean;
- preventCancel?: boolean;
- /**
- * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
- *
- * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
- *
- * Errors and closures of the source and destination streams propagate as follows:
- *
- * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
- *
- * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
- *
- * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
- *
- * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
- *
- * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
- */
- preventClose?: boolean;
- signal?: AbortSignal;
- }
- interface StructuredSerializeOptions {
- transfer?: Transferable[];
- }
- interface TextDecodeOptions {
- stream?: boolean;
- }
- interface TextDecoderOptions {
- fatal?: boolean;
- ignoreBOM?: boolean;
- }
- interface TextEncoderEncodeIntoResult {
- read?: number;
- written?: number;
- }
- interface Transformer<I = any, O = any> {
- flush?: TransformerFlushCallback<O>;
- readableType?: undefined;
- start?: TransformerStartCallback<O>;
- transform?: TransformerTransformCallback<I, O>;
- writableType?: undefined;
- }
- interface UnderlyingByteSource {
- autoAllocateChunkSize?: number;
- cancel?: UnderlyingSourceCancelCallback;
- pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
- start?: (controller: ReadableByteStreamController) => any;
- type: "bytes";
- }
- interface UnderlyingDefaultSource<R = any> {
- cancel?: UnderlyingSourceCancelCallback;
- pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
- start?: (controller: ReadableStreamDefaultController<R>) => any;
- type?: undefined;
- }
- interface UnderlyingSink<W = any> {
- abort?: UnderlyingSinkAbortCallback;
- close?: UnderlyingSinkCloseCallback;
- start?: UnderlyingSinkStartCallback;
- type?: undefined;
- write?: UnderlyingSinkWriteCallback<W>;
- }
- interface UnderlyingSource<R = any> {
- autoAllocateChunkSize?: number;
- cancel?: UnderlyingSourceCancelCallback;
- pull?: UnderlyingSourcePullCallback<R>;
- start?: UnderlyingSourceStartCallback<R>;
- type?: ReadableStreamType;
- }
- interface VideoColorSpaceInit {
- fullRange?: boolean | null;
- matrix?: VideoMatrixCoefficients | null;
- primaries?: VideoColorPrimaries | null;
- transfer?: VideoTransferCharacteristics | null;
- }
- interface VideoConfiguration {
- bitrate: number;
- colorGamut?: ColorGamut;
- contentType: string;
- framerate: number;
- hdrMetadataType?: HdrMetadataType;
- height: number;
- scalabilityMode?: string;
- transferFunction?: TransferFunction;
- width: number;
- }
- interface WebGLContextAttributes {
- alpha?: boolean;
- antialias?: boolean;
- depth?: boolean;
- desynchronized?: boolean;
- failIfMajorPerformanceCaveat?: boolean;
- powerPreference?: WebGLPowerPreference;
- premultipliedAlpha?: boolean;
- preserveDrawingBuffer?: boolean;
- stencil?: boolean;
- }
- interface WebGLContextEventInit extends EventInit {
- statusMessage?: string;
- }
- interface WorkerOptions {
- credentials?: RequestCredentials;
- name?: string;
- type?: WorkerType;
- }
- /** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */
- interface ANGLE_instanced_arrays {
- drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
- drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
- vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
- }
- /** A controller object that allows you to abort one or more DOM requests as and when desired. */
- interface AbortController {
- /** Returns the AbortSignal object associated with this object. */
- readonly signal: AbortSignal;
- /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
- abort(reason?: any): void;
- }
- declare var AbortController: {
- prototype: AbortController;
- new(): AbortController;
- };
- interface AbortSignalEventMap {
- "abort": Event;
- }
- /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
- interface AbortSignal extends EventTarget {
- /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
- readonly aborted: boolean;
- onabort: ((this: AbortSignal, ev: Event) => any) | null;
- readonly reason: any;
- throwIfAborted(): void;
- addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var AbortSignal: {
- prototype: AbortSignal;
- new(): AbortSignal;
- abort(reason?: any): AbortSignal;
- timeout(milliseconds: number): AbortSignal;
- };
- interface AbstractWorkerEventMap {
- "error": ErrorEvent;
- }
- interface AbstractWorker {
- onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
- addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- interface AnimationFrameProvider {
- cancelAnimationFrame(handle: number): void;
- requestAnimationFrame(callback: FrameRequestCallback): number;
- }
- /** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
- interface Blob {
- readonly size: number;
- readonly type: string;
- arrayBuffer(): Promise<ArrayBuffer>;
- slice(start?: number, end?: number, contentType?: string): Blob;
- stream(): ReadableStream<Uint8Array>;
- text(): Promise<string>;
- }
- declare var Blob: {
- prototype: Blob;
- new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
- };
- interface Body {
- readonly body: ReadableStream<Uint8Array> | null;
- readonly bodyUsed: boolean;
- arrayBuffer(): Promise<ArrayBuffer>;
- blob(): Promise<Blob>;
- formData(): Promise<FormData>;
- json(): Promise<any>;
- text(): Promise<string>;
- }
- interface BroadcastChannelEventMap {
- "message": MessageEvent;
- "messageerror": MessageEvent;
- }
- interface BroadcastChannel extends EventTarget {
- /** Returns the channel name (as passed to the constructor). */
- readonly name: string;
- onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
- onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
- /** Closes the BroadcastChannel object, opening it up to garbage collection. */
- close(): void;
- /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */
- postMessage(message: any): void;
- addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var BroadcastChannel: {
- prototype: BroadcastChannel;
- new(name: string): BroadcastChannel;
- };
- /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
- interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
- readonly highWaterMark: number;
- readonly size: QueuingStrategySize<ArrayBufferView>;
- }
- declare var ByteLengthQueuingStrategy: {
- prototype: ByteLengthQueuingStrategy;
- new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
- };
- /**
- * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
- * Available only in secure contexts.
- */
- interface Cache {
- add(request: RequestInfo | URL): Promise<void>;
- addAll(requests: RequestInfo[]): Promise<void>;
- delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
- keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
- match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
- matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
- put(request: RequestInfo | URL, response: Response): Promise<void>;
- }
- declare var Cache: {
- prototype: Cache;
- new(): Cache;
- };
- /**
- * The storage for Cache objects.
- * Available only in secure contexts.
- */
- interface CacheStorage {
- delete(cacheName: string): Promise<boolean>;
- has(cacheName: string): Promise<boolean>;
- keys(): Promise<string[]>;
- match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
- open(cacheName: string): Promise<Cache>;
- }
- declare var CacheStorage: {
- prototype: CacheStorage;
- new(): CacheStorage;
- };
- interface CanvasCompositing {
- globalAlpha: number;
- globalCompositeOperation: GlobalCompositeOperation;
- }
- interface CanvasDrawImage {
- drawImage(image: CanvasImageSource, dx: number, dy: number): void;
- drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
- drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
- }
- interface CanvasDrawPath {
- beginPath(): void;
- clip(fillRule?: CanvasFillRule): void;
- clip(path: Path2D, fillRule?: CanvasFillRule): void;
- fill(fillRule?: CanvasFillRule): void;
- fill(path: Path2D, fillRule?: CanvasFillRule): void;
- isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
- isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
- isPointInStroke(x: number, y: number): boolean;
- isPointInStroke(path: Path2D, x: number, y: number): boolean;
- stroke(): void;
- stroke(path: Path2D): void;
- }
- interface CanvasFillStrokeStyles {
- fillStyle: string | CanvasGradient | CanvasPattern;
- strokeStyle: string | CanvasGradient | CanvasPattern;
- createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
- createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
- createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
- createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
- }
- interface CanvasFilters {
- filter: string;
- }
- /** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
- interface CanvasGradient {
- /**
- * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
- *
- * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
- */
- addColorStop(offset: number, color: string): void;
- }
- declare var CanvasGradient: {
- prototype: CanvasGradient;
- new(): CanvasGradient;
- };
- interface CanvasImageData {
- createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
- createImageData(imagedata: ImageData): ImageData;
- getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
- putImageData(imagedata: ImageData, dx: number, dy: number): void;
- putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
- }
- interface CanvasImageSmoothing {
- imageSmoothingEnabled: boolean;
- imageSmoothingQuality: ImageSmoothingQuality;
- }
- interface CanvasPath {
- arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
- arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
- bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
- closePath(): void;
- ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
- lineTo(x: number, y: number): void;
- moveTo(x: number, y: number): void;
- quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
- rect(x: number, y: number, w: number, h: number): void;
- roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
- }
- interface CanvasPathDrawingStyles {
- lineCap: CanvasLineCap;
- lineDashOffset: number;
- lineJoin: CanvasLineJoin;
- lineWidth: number;
- miterLimit: number;
- getLineDash(): number[];
- setLineDash(segments: number[]): void;
- }
- /** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
- interface CanvasPattern {
- /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
- setTransform(transform?: DOMMatrix2DInit): void;
- }
- declare var CanvasPattern: {
- prototype: CanvasPattern;
- new(): CanvasPattern;
- };
- interface CanvasRect {
- clearRect(x: number, y: number, w: number, h: number): void;
- fillRect(x: number, y: number, w: number, h: number): void;
- strokeRect(x: number, y: number, w: number, h: number): void;
- }
- interface CanvasShadowStyles {
- shadowBlur: number;
- shadowColor: string;
- shadowOffsetX: number;
- shadowOffsetY: number;
- }
- interface CanvasState {
- restore(): void;
- save(): void;
- }
- interface CanvasText {
- fillText(text: string, x: number, y: number, maxWidth?: number): void;
- measureText(text: string): TextMetrics;
- strokeText(text: string, x: number, y: number, maxWidth?: number): void;
- }
- interface CanvasTextDrawingStyles {
- direction: CanvasDirection;
- font: string;
- fontKerning: CanvasFontKerning;
- textAlign: CanvasTextAlign;
- textBaseline: CanvasTextBaseline;
- }
- interface CanvasTransform {
- getTransform(): DOMMatrix;
- resetTransform(): void;
- rotate(angle: number): void;
- scale(x: number, y: number): void;
- setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
- setTransform(transform?: DOMMatrix2DInit): void;
- transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
- translate(x: number, y: number): void;
- }
- /** The Client interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific WindowClient. You can get Client/WindowClient objects from methods such as Clients.matchAll() and Clients.get(). */
- interface Client {
- readonly frameType: FrameType;
- readonly id: string;
- readonly type: ClientTypes;
- readonly url: string;
- postMessage(message: any, transfer: Transferable[]): void;
- postMessage(message: any, options?: StructuredSerializeOptions): void;
- }
- declare var Client: {
- prototype: Client;
- new(): Client;
- };
- /** Provides access to Client objects. Access it via self.clients within a service worker. */
- interface Clients {
- claim(): Promise<void>;
- get(id: string): Promise<Client | undefined>;
- matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
- openWindow(url: string | URL): Promise<WindowClient | null>;
- }
- declare var Clients: {
- prototype: Clients;
- new(): Clients;
- };
- /** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
- interface CloseEvent extends Event {
- /** Returns the WebSocket connection close code provided by the server. */
- readonly code: number;
- /** Returns the WebSocket connection close reason provided by the server. */
- readonly reason: string;
- /** Returns true if the connection closed cleanly; false otherwise. */
- readonly wasClean: boolean;
- }
- declare var CloseEvent: {
- prototype: CloseEvent;
- new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
- };
- /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
- interface CountQueuingStrategy extends QueuingStrategy {
- readonly highWaterMark: number;
- readonly size: QueuingStrategySize;
- }
- declare var CountQueuingStrategy: {
- prototype: CountQueuingStrategy;
- new(init: QueuingStrategyInit): CountQueuingStrategy;
- };
- /** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
- interface Crypto {
- /** Available only in secure contexts. */
- readonly subtle: SubtleCrypto;
- getRandomValues<T extends ArrayBufferView | null>(array: T): T;
- /** Available only in secure contexts. */
- randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
- }
- declare var Crypto: {
- prototype: Crypto;
- new(): Crypto;
- };
- /**
- * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
- * Available only in secure contexts.
- */
- interface CryptoKey {
- readonly algorithm: KeyAlgorithm;
- readonly extractable: boolean;
- readonly type: KeyType;
- readonly usages: KeyUsage[];
- }
- declare var CryptoKey: {
- prototype: CryptoKey;
- new(): CryptoKey;
- };
- interface CustomEvent<T = any> extends Event {
- /** Returns any custom data event was created with. Typically used for synthetic events. */
- readonly detail: T;
- /** @deprecated */
- initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
- }
- declare var CustomEvent: {
- prototype: CustomEvent;
- new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
- };
- /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
- interface DOMException extends Error {
- /** @deprecated */
- readonly code: number;
- readonly message: string;
- readonly name: string;
- readonly INDEX_SIZE_ERR: 1;
- readonly DOMSTRING_SIZE_ERR: 2;
- readonly HIERARCHY_REQUEST_ERR: 3;
- readonly WRONG_DOCUMENT_ERR: 4;
- readonly INVALID_CHARACTER_ERR: 5;
- readonly NO_DATA_ALLOWED_ERR: 6;
- readonly NO_MODIFICATION_ALLOWED_ERR: 7;
- readonly NOT_FOUND_ERR: 8;
- readonly NOT_SUPPORTED_ERR: 9;
- readonly INUSE_ATTRIBUTE_ERR: 10;
- readonly INVALID_STATE_ERR: 11;
- readonly SYNTAX_ERR: 12;
- readonly INVALID_MODIFICATION_ERR: 13;
- readonly NAMESPACE_ERR: 14;
- readonly INVALID_ACCESS_ERR: 15;
- readonly VALIDATION_ERR: 16;
- readonly TYPE_MISMATCH_ERR: 17;
- readonly SECURITY_ERR: 18;
- readonly NETWORK_ERR: 19;
- readonly ABORT_ERR: 20;
- readonly URL_MISMATCH_ERR: 21;
- readonly QUOTA_EXCEEDED_ERR: 22;
- readonly TIMEOUT_ERR: 23;
- readonly INVALID_NODE_TYPE_ERR: 24;
- readonly DATA_CLONE_ERR: 25;
- }
- declare var DOMException: {
- prototype: DOMException;
- new(message?: string, name?: string): DOMException;
- readonly INDEX_SIZE_ERR: 1;
- readonly DOMSTRING_SIZE_ERR: 2;
- readonly HIERARCHY_REQUEST_ERR: 3;
- readonly WRONG_DOCUMENT_ERR: 4;
- readonly INVALID_CHARACTER_ERR: 5;
- readonly NO_DATA_ALLOWED_ERR: 6;
- readonly NO_MODIFICATION_ALLOWED_ERR: 7;
- readonly NOT_FOUND_ERR: 8;
- readonly NOT_SUPPORTED_ERR: 9;
- readonly INUSE_ATTRIBUTE_ERR: 10;
- readonly INVALID_STATE_ERR: 11;
- readonly SYNTAX_ERR: 12;
- readonly INVALID_MODIFICATION_ERR: 13;
- readonly NAMESPACE_ERR: 14;
- readonly INVALID_ACCESS_ERR: 15;
- readonly VALIDATION_ERR: 16;
- readonly TYPE_MISMATCH_ERR: 17;
- readonly SECURITY_ERR: 18;
- readonly NETWORK_ERR: 19;
- readonly ABORT_ERR: 20;
- readonly URL_MISMATCH_ERR: 21;
- readonly QUOTA_EXCEEDED_ERR: 22;
- readonly TIMEOUT_ERR: 23;
- readonly INVALID_NODE_TYPE_ERR: 24;
- readonly DATA_CLONE_ERR: 25;
- };
- interface DOMMatrix extends DOMMatrixReadOnly {
- a: number;
- b: number;
- c: number;
- d: number;
- e: number;
- f: number;
- m11: number;
- m12: number;
- m13: number;
- m14: number;
- m21: number;
- m22: number;
- m23: number;
- m24: number;
- m31: number;
- m32: number;
- m33: number;
- m34: number;
- m41: number;
- m42: number;
- m43: number;
- m44: number;
- invertSelf(): DOMMatrix;
- multiplySelf(other?: DOMMatrixInit): DOMMatrix;
- preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
- rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
- rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
- rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
- scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- skewXSelf(sx?: number): DOMMatrix;
- skewYSelf(sy?: number): DOMMatrix;
- translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
- }
- declare var DOMMatrix: {
- prototype: DOMMatrix;
- new(init?: string | number[]): DOMMatrix;
- fromFloat32Array(array32: Float32Array): DOMMatrix;
- fromFloat64Array(array64: Float64Array): DOMMatrix;
- fromMatrix(other?: DOMMatrixInit): DOMMatrix;
- };
- interface DOMMatrixReadOnly {
- readonly a: number;
- readonly b: number;
- readonly c: number;
- readonly d: number;
- readonly e: number;
- readonly f: number;
- readonly is2D: boolean;
- readonly isIdentity: boolean;
- readonly m11: number;
- readonly m12: number;
- readonly m13: number;
- readonly m14: number;
- readonly m21: number;
- readonly m22: number;
- readonly m23: number;
- readonly m24: number;
- readonly m31: number;
- readonly m32: number;
- readonly m33: number;
- readonly m34: number;
- readonly m41: number;
- readonly m42: number;
- readonly m43: number;
- readonly m44: number;
- flipX(): DOMMatrix;
- flipY(): DOMMatrix;
- inverse(): DOMMatrix;
- multiply(other?: DOMMatrixInit): DOMMatrix;
- rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
- rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
- rotateFromVector(x?: number, y?: number): DOMMatrix;
- scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
- /** @deprecated */
- scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
- skewX(sx?: number): DOMMatrix;
- skewY(sy?: number): DOMMatrix;
- toFloat32Array(): Float32Array;
- toFloat64Array(): Float64Array;
- toJSON(): any;
- transformPoint(point?: DOMPointInit): DOMPoint;
- translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
- }
- declare var DOMMatrixReadOnly: {
- prototype: DOMMatrixReadOnly;
- new(init?: string | number[]): DOMMatrixReadOnly;
- fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
- fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
- fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
- };
- interface DOMPoint extends DOMPointReadOnly {
- w: number;
- x: number;
- y: number;
- z: number;
- }
- declare var DOMPoint: {
- prototype: DOMPoint;
- new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
- fromPoint(other?: DOMPointInit): DOMPoint;
- };
- interface DOMPointReadOnly {
- readonly w: number;
- readonly x: number;
- readonly y: number;
- readonly z: number;
- matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
- toJSON(): any;
- }
- declare var DOMPointReadOnly: {
- prototype: DOMPointReadOnly;
- new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
- fromPoint(other?: DOMPointInit): DOMPointReadOnly;
- };
- interface DOMQuad {
- readonly p1: DOMPoint;
- readonly p2: DOMPoint;
- readonly p3: DOMPoint;
- readonly p4: DOMPoint;
- getBounds(): DOMRect;
- toJSON(): any;
- }
- declare var DOMQuad: {
- prototype: DOMQuad;
- new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
- fromQuad(other?: DOMQuadInit): DOMQuad;
- fromRect(other?: DOMRectInit): DOMQuad;
- };
- interface DOMRect extends DOMRectReadOnly {
- height: number;
- width: number;
- x: number;
- y: number;
- }
- declare var DOMRect: {
- prototype: DOMRect;
- new(x?: number, y?: number, width?: number, height?: number): DOMRect;
- fromRect(other?: DOMRectInit): DOMRect;
- };
- interface DOMRectReadOnly {
- readonly bottom: number;
- readonly height: number;
- readonly left: number;
- readonly right: number;
- readonly top: number;
- readonly width: number;
- readonly x: number;
- readonly y: number;
- toJSON(): any;
- }
- declare var DOMRectReadOnly: {
- prototype: DOMRectReadOnly;
- new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
- fromRect(other?: DOMRectInit): DOMRectReadOnly;
- };
- /** A type returned by some APIs which contains a list of DOMString (strings). */
- interface DOMStringList {
- /** Returns the number of strings in strings. */
- readonly length: number;
- /** Returns true if strings contains string, and false otherwise. */
- contains(string: string): boolean;
- /** Returns the string with index index from strings. */
- item(index: number): string | null;
- [index: number]: string;
- }
- declare var DOMStringList: {
- prototype: DOMStringList;
- new(): DOMStringList;
- };
- interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
- "message": MessageEvent;
- "messageerror": MessageEvent;
- }
- /** (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. */
- interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
- /** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
- readonly name: string;
- onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
- onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
- /** Aborts dedicatedWorkerGlobal. */
- close(): void;
- /** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
- postMessage(message: any, transfer: Transferable[]): void;
- postMessage(message: any, options?: StructuredSerializeOptions): void;
- addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var DedicatedWorkerGlobalScope: {
- prototype: DedicatedWorkerGlobalScope;
- new(): DedicatedWorkerGlobalScope;
- };
- interface EXT_blend_minmax {
- readonly MIN_EXT: 0x8007;
- readonly MAX_EXT: 0x8008;
- }
- interface EXT_color_buffer_float {
- }
- interface EXT_color_buffer_half_float {
- readonly RGBA16F_EXT: 0x881A;
- readonly RGB16F_EXT: 0x881B;
- readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
- readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
- }
- interface EXT_float_blend {
- }
- /** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */
- interface EXT_frag_depth {
- }
- interface EXT_sRGB {
- readonly SRGB_EXT: 0x8C40;
- readonly SRGB_ALPHA_EXT: 0x8C42;
- readonly SRGB8_ALPHA8_EXT: 0x8C43;
- readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
- }
- interface EXT_shader_texture_lod {
- }
- interface EXT_texture_compression_bptc {
- readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
- readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
- readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
- readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
- }
- interface EXT_texture_compression_rgtc {
- readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
- readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
- readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
- readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
- }
- /** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
- interface EXT_texture_filter_anisotropic {
- readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
- readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
- }
- interface EXT_texture_norm16 {
- readonly R16_EXT: 0x822A;
- readonly RG16_EXT: 0x822C;
- readonly RGB16_EXT: 0x8054;
- readonly RGBA16_EXT: 0x805B;
- readonly R16_SNORM_EXT: 0x8F98;
- readonly RG16_SNORM_EXT: 0x8F99;
- readonly RGB16_SNORM_EXT: 0x8F9A;
- readonly RGBA16_SNORM_EXT: 0x8F9B;
- }
- /** Events providing information related to errors in scripts or in files. */
- interface ErrorEvent extends Event {
- readonly colno: number;
- readonly error: any;
- readonly filename: string;
- readonly lineno: number;
- readonly message: string;
- }
- declare var ErrorEvent: {
- prototype: ErrorEvent;
- new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
- };
- /** An event which takes place in the DOM. */
- interface Event {
- /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
- readonly bubbles: boolean;
- /** @deprecated */
- cancelBubble: boolean;
- /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
- readonly cancelable: boolean;
- /** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */
- readonly composed: boolean;
- /** Returns the object whose event listener's callback is currently being invoked. */
- readonly currentTarget: EventTarget | null;
- /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
- readonly defaultPrevented: boolean;
- /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
- readonly eventPhase: number;
- /** Returns true if event was dispatched by the user agent, and false otherwise. */
- readonly isTrusted: boolean;
- /** @deprecated */
- returnValue: boolean;
- /** @deprecated */
- readonly srcElement: EventTarget | null;
- /** Returns the object to which event is dispatched (its target). */
- readonly target: EventTarget | null;
- /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
- readonly timeStamp: DOMHighResTimeStamp;
- /** Returns the type of event, e.g. "click", "hashchange", or "submit". */
- readonly type: string;
- /** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. */
- composedPath(): EventTarget[];
- /** @deprecated */
- initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
- /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */
- preventDefault(): void;
- /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */
- stopImmediatePropagation(): void;
- /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
- stopPropagation(): void;
- readonly NONE: 0;
- readonly CAPTURING_PHASE: 1;
- readonly AT_TARGET: 2;
- readonly BUBBLING_PHASE: 3;
- }
- declare var Event: {
- prototype: Event;
- new(type: string, eventInitDict?: EventInit): Event;
- readonly NONE: 0;
- readonly CAPTURING_PHASE: 1;
- readonly AT_TARGET: 2;
- readonly BUBBLING_PHASE: 3;
- };
- interface EventListener {
- (evt: Event): void;
- }
- interface EventListenerObject {
- handleEvent(object: Event): void;
- }
- interface EventSourceEventMap {
- "error": Event;
- "message": MessageEvent;
- "open": Event;
- }
- interface EventSource extends EventTarget {
- onerror: ((this: EventSource, ev: Event) => any) | null;
- onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
- onopen: ((this: EventSource, ev: Event) => any) | null;
- /** Returns the state of this EventSource object's connection. It can have the values described below. */
- readonly readyState: number;
- /** Returns the URL providing the event stream. */
- readonly url: string;
- /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
- readonly withCredentials: boolean;
- /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
- close(): void;
- readonly CONNECTING: 0;
- readonly OPEN: 1;
- readonly CLOSED: 2;
- addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var EventSource: {
- prototype: EventSource;
- new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
- readonly CONNECTING: 0;
- readonly OPEN: 1;
- readonly CLOSED: 2;
- };
- /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
- interface EventTarget {
- /**
- * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
- *
- * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
- *
- * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
- *
- * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
- *
- * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
- *
- * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
- *
- * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
- */
- addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
- /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
- dispatchEvent(event: Event): boolean;
- /** Removes the event listener in target's event listener list with the same type, callback, and options. */
- removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
- }
- declare var EventTarget: {
- prototype: EventTarget;
- new(): EventTarget;
- };
- /** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */
- interface ExtendableEvent extends Event {
- waitUntil(f: Promise<any>): void;
- }
- declare var ExtendableEvent: {
- prototype: ExtendableEvent;
- new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;
- };
- /** This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) — extends the lifetime of such events. */
- interface ExtendableMessageEvent extends ExtendableEvent {
- readonly data: any;
- readonly lastEventId: string;
- readonly origin: string;
- readonly ports: ReadonlyArray<MessagePort>;
- readonly source: Client | ServiceWorker | MessagePort | null;
- }
- declare var ExtendableMessageEvent: {
- prototype: ExtendableMessageEvent;
- new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;
- };
- /** This is the event type for fetch events dispatched on the service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */
- interface FetchEvent extends ExtendableEvent {
- readonly clientId: string;
- readonly handled: Promise<undefined>;
- readonly preloadResponse: Promise<any>;
- readonly request: Request;
- readonly resultingClientId: string;
- respondWith(r: Response | PromiseLike<Response>): void;
- }
- declare var FetchEvent: {
- prototype: FetchEvent;
- new(type: string, eventInitDict: FetchEventInit): FetchEvent;
- };
- /** Provides information about files and allows JavaScript in a web page to access their content. */
- interface File extends Blob {
- readonly lastModified: number;
- readonly name: string;
- readonly webkitRelativePath: string;
- }
- declare var File: {
- prototype: File;
- new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
- };
- /** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
- interface FileList {
- readonly length: number;
- item(index: number): File | null;
- [index: number]: File;
- }
- declare var FileList: {
- prototype: FileList;
- new(): FileList;
- };
- interface FileReaderEventMap {
- "abort": ProgressEvent<FileReader>;
- "error": ProgressEvent<FileReader>;
- "load": ProgressEvent<FileReader>;
- "loadend": ProgressEvent<FileReader>;
- "loadstart": ProgressEvent<FileReader>;
- "progress": ProgressEvent<FileReader>;
- }
- /** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */
- interface FileReader extends EventTarget {
- readonly error: DOMException | null;
- onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
- onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
- onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
- onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
- onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
- onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
- readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
- readonly result: string | ArrayBuffer | null;
- abort(): void;
- readAsArrayBuffer(blob: Blob): void;
- readAsBinaryString(blob: Blob): void;
- readAsDataURL(blob: Blob): void;
- readAsText(blob: Blob, encoding?: string): void;
- readonly EMPTY: 0;
- readonly LOADING: 1;
- readonly DONE: 2;
- addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var FileReader: {
- prototype: FileReader;
- new(): FileReader;
- readonly EMPTY: 0;
- readonly LOADING: 1;
- readonly DONE: 2;
- };
- /** Allows to read File or Blob objects in a synchronous way. */
- interface FileReaderSync {
- readAsArrayBuffer(blob: Blob): ArrayBuffer;
- /** @deprecated */
- readAsBinaryString(blob: Blob): string;
- readAsDataURL(blob: Blob): string;
- readAsText(blob: Blob, encoding?: string): string;
- }
- declare var FileReaderSync: {
- prototype: FileReaderSync;
- new(): FileReaderSync;
- };
- /** Available only in secure contexts. */
- interface FileSystemDirectoryHandle extends FileSystemHandle {
- readonly kind: "directory";
- getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
- getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
- removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
- resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
- }
- declare var FileSystemDirectoryHandle: {
- prototype: FileSystemDirectoryHandle;
- new(): FileSystemDirectoryHandle;
- };
- /** Available only in secure contexts. */
- interface FileSystemFileHandle extends FileSystemHandle {
- readonly kind: "file";
- createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;
- getFile(): Promise<File>;
- }
- declare var FileSystemFileHandle: {
- prototype: FileSystemFileHandle;
- new(): FileSystemFileHandle;
- };
- /** Available only in secure contexts. */
- interface FileSystemHandle {
- readonly kind: FileSystemHandleKind;
- readonly name: string;
- isSameEntry(other: FileSystemHandle): Promise<boolean>;
- }
- declare var FileSystemHandle: {
- prototype: FileSystemHandle;
- new(): FileSystemHandle;
- };
- /** Available only in secure contexts. */
- interface FileSystemSyncAccessHandle {
- close(): void;
- flush(): void;
- getSize(): number;
- read(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;
- truncate(newSize: number): void;
- write(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;
- }
- declare var FileSystemSyncAccessHandle: {
- prototype: FileSystemSyncAccessHandle;
- new(): FileSystemSyncAccessHandle;
- };
- interface FontFace {
- ascentOverride: string;
- descentOverride: string;
- display: FontDisplay;
- family: string;
- featureSettings: string;
- lineGapOverride: string;
- readonly loaded: Promise<FontFace>;
- readonly status: FontFaceLoadStatus;
- stretch: string;
- style: string;
- unicodeRange: string;
- variant: string;
- weight: string;
- load(): Promise<FontFace>;
- }
- declare var FontFace: {
- prototype: FontFace;
- new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
- };
- interface FontFaceSetEventMap {
- "loading": Event;
- "loadingdone": Event;
- "loadingerror": Event;
- }
- interface FontFaceSet extends EventTarget {
- onloading: ((this: FontFaceSet, ev: Event) => any) | null;
- onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
- onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
- readonly ready: Promise<FontFaceSet>;
- readonly status: FontFaceSetLoadStatus;
- check(font: string, text?: string): boolean;
- load(font: string, text?: string): Promise<FontFace[]>;
- forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
- addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var FontFaceSet: {
- prototype: FontFaceSet;
- new(initialFaces: FontFace[]): FontFaceSet;
- };
- interface FontFaceSetLoadEvent extends Event {
- readonly fontfaces: ReadonlyArray<FontFace>;
- }
- declare var FontFaceSetLoadEvent: {
- prototype: FontFaceSetLoadEvent;
- new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
- };
- interface FontFaceSource {
- readonly fonts: FontFaceSet;
- }
- /** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
- interface FormData {
- append(name: string, value: string | Blob, fileName?: string): void;
- delete(name: string): void;
- get(name: string): FormDataEntryValue | null;
- getAll(name: string): FormDataEntryValue[];
- has(name: string): boolean;
- set(name: string, value: string | Blob, fileName?: string): void;
- forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
- }
- declare var FormData: {
- prototype: FormData;
- new(): FormData;
- };
- interface GenericTransformStream {
- readonly readable: ReadableStream;
- readonly writable: WritableStream;
- }
- /** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */
- interface Headers {
- append(name: string, value: string): void;
- delete(name: string): void;
- get(name: string): string | null;
- has(name: string): boolean;
- set(name: string, value: string): void;
- forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
- }
- declare var Headers: {
- prototype: Headers;
- new(init?: HeadersInit): Headers;
- };
- /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
- interface IDBCursor {
- /** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
- readonly direction: IDBCursorDirection;
- /** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
- readonly key: IDBValidKey;
- /** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
- readonly primaryKey: IDBValidKey;
- readonly request: IDBRequest;
- /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
- readonly source: IDBObjectStore | IDBIndex;
- /** Advances the cursor through the next count records in range. */
- advance(count: number): void;
- /** Advances the cursor to the next record in range. */
- continue(key?: IDBValidKey): void;
- /** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */
- continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
- /**
- * Delete the record pointed at by the cursor with a new value.
- *
- * If successful, request's result will be undefined.
- */
- delete(): IDBRequest<undefined>;
- /**
- * Updated the record pointed at by the cursor with a new value.
- *
- * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
- *
- * If successful, request's result will be the record's key.
- */
- update(value: any): IDBRequest<IDBValidKey>;
- }
- declare var IDBCursor: {
- prototype: IDBCursor;
- new(): IDBCursor;
- };
- /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
- interface IDBCursorWithValue extends IDBCursor {
- /** Returns the cursor's current value. */
- readonly value: any;
- }
- declare var IDBCursorWithValue: {
- prototype: IDBCursorWithValue;
- new(): IDBCursorWithValue;
- };
- interface IDBDatabaseEventMap {
- "abort": Event;
- "close": Event;
- "error": Event;
- "versionchange": IDBVersionChangeEvent;
- }
- /** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
- interface IDBDatabase extends EventTarget {
- /** Returns the name of the database. */
- readonly name: string;
- /** Returns a list of the names of object stores in the database. */
- readonly objectStoreNames: DOMStringList;
- onabort: ((this: IDBDatabase, ev: Event) => any) | null;
- onclose: ((this: IDBDatabase, ev: Event) => any) | null;
- onerror: ((this: IDBDatabase, ev: Event) => any) | null;
- onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
- /** Returns the version of the database. */
- readonly version: number;
- /** Closes the connection once all running transactions have finished. */
- close(): void;
- /**
- * Creates a new object store with the given name and options and returns a new IDBObjectStore.
- *
- * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
- */
- createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
- /**
- * Deletes the object store with the given name.
- *
- * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
- */
- deleteObjectStore(name: string): void;
- /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
- transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
- addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var IDBDatabase: {
- prototype: IDBDatabase;
- new(): IDBDatabase;
- };
- /** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
- interface IDBFactory {
- /**
- * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
- *
- * Throws a "DataError" DOMException if either input is not a valid key.
- */
- cmp(first: any, second: any): number;
- databases(): Promise<IDBDatabaseInfo[]>;
- /** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */
- deleteDatabase(name: string): IDBOpenDBRequest;
- /** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */
- open(name: string, version?: number): IDBOpenDBRequest;
- }
- declare var IDBFactory: {
- prototype: IDBFactory;
- new(): IDBFactory;
- };
- /** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
- interface IDBIndex {
- readonly keyPath: string | string[];
- readonly multiEntry: boolean;
- /** Returns the name of the index. */
- name: string;
- /** Returns the IDBObjectStore the index belongs to. */
- readonly objectStore: IDBObjectStore;
- readonly unique: boolean;
- /**
- * Retrieves the number of records matching the given key or key range in query.
- *
- * If successful, request's result will be the count.
- */
- count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
- /**
- * Retrieves the value of the first record matching the given key or key range in query.
- *
- * If successful, request's result will be the value, or undefined if there was no matching record.
- */
- get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
- /**
- * Retrieves the values of the records matching the given key or key range in query (up to count if given).
- *
- * If successful, request's result will be an Array of the values.
- */
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
- /**
- * Retrieves the keys of records matching the given key or key range in query (up to count if given).
- *
- * If successful, request's result will be an Array of the keys.
- */
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
- /**
- * Retrieves the key of the first record matching the given key or key range in query.
- *
- * If successful, request's result will be the key, or undefined if there was no matching record.
- */
- getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
- /**
- * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
- *
- * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
- */
- openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
- /**
- * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
- *
- * If successful, request's result will be an IDBCursor, or null if there were no matching records.
- */
- openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
- }
- declare var IDBIndex: {
- prototype: IDBIndex;
- new(): IDBIndex;
- };
- /** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
- interface IDBKeyRange {
- /** Returns lower bound, or undefined if none. */
- readonly lower: any;
- /** Returns true if the lower open flag is set, and false otherwise. */
- readonly lowerOpen: boolean;
- /** Returns upper bound, or undefined if none. */
- readonly upper: any;
- /** Returns true if the upper open flag is set, and false otherwise. */
- readonly upperOpen: boolean;
- /** Returns true if key is included in the range, and false otherwise. */
- includes(key: any): boolean;
- }
- declare var IDBKeyRange: {
- prototype: IDBKeyRange;
- new(): IDBKeyRange;
- /** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */
- bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
- /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
- lowerBound(lower: any, open?: boolean): IDBKeyRange;
- /** Returns a new IDBKeyRange spanning only key. */
- only(value: any): IDBKeyRange;
- /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
- upperBound(upper: any, open?: boolean): IDBKeyRange;
- };
- /** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */
- interface IDBObjectStore {
- /** Returns true if the store has a key generator, and false otherwise. */
- readonly autoIncrement: boolean;
- /** Returns a list of the names of indexes in the store. */
- readonly indexNames: DOMStringList;
- /** Returns the key path of the store, or null if none. */
- readonly keyPath: string | string[];
- /** Returns the name of the store. */
- name: string;
- /** Returns the associated transaction. */
- readonly transaction: IDBTransaction;
- /**
- * Adds or updates a record in store with the given value and key.
- *
- * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
- *
- * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
- *
- * If successful, request's result will be the record's key.
- */
- add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
- /**
- * Deletes all records in store.
- *
- * If successful, request's result will be undefined.
- */
- clear(): IDBRequest<undefined>;
- /**
- * Retrieves the number of records matching the given key or key range in query.
- *
- * If successful, request's result will be the count.
- */
- count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
- /**
- * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
- *
- * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
- */
- createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
- /**
- * Deletes records in store with the given key or in the given key range in query.
- *
- * If successful, request's result will be undefined.
- */
- delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
- /**
- * Deletes the index in store with the given name.
- *
- * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
- */
- deleteIndex(name: string): void;
- /**
- * Retrieves the value of the first record matching the given key or key range in query.
- *
- * If successful, request's result will be the value, or undefined if there was no matching record.
- */
- get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
- /**
- * Retrieves the values of the records matching the given key or key range in query (up to count if given).
- *
- * If successful, request's result will be an Array of the values.
- */
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
- /**
- * Retrieves the keys of records matching the given key or key range in query (up to count if given).
- *
- * If successful, request's result will be an Array of the keys.
- */
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
- /**
- * Retrieves the key of the first record matching the given key or key range in query.
- *
- * If successful, request's result will be the key, or undefined if there was no matching record.
- */
- getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
- index(name: string): IDBIndex;
- /**
- * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
- *
- * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
- */
- openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
- /**
- * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
- *
- * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
- */
- openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
- /**
- * Adds or updates a record in store with the given value and key.
- *
- * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
- *
- * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
- *
- * If successful, request's result will be the record's key.
- */
- put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
- }
- declare var IDBObjectStore: {
- prototype: IDBObjectStore;
- new(): IDBObjectStore;
- };
- interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
- "blocked": IDBVersionChangeEvent;
- "upgradeneeded": IDBVersionChangeEvent;
- }
- /** Also inherits methods from its parents IDBRequest and EventTarget. */
- interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
- onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
- onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
- addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var IDBOpenDBRequest: {
- prototype: IDBOpenDBRequest;
- new(): IDBOpenDBRequest;
- };
- interface IDBRequestEventMap {
- "error": Event;
- "success": Event;
- }
- /** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
- interface IDBRequest<T = any> extends EventTarget {
- /** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */
- readonly error: DOMException | null;
- onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
- onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
- /** Returns "pending" until a request is complete, then returns "done". */
- readonly readyState: IDBRequestReadyState;
- /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
- readonly result: T;
- /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
- readonly source: IDBObjectStore | IDBIndex | IDBCursor;
- /** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */
- readonly transaction: IDBTransaction | null;
- addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var IDBRequest: {
- prototype: IDBRequest;
- new(): IDBRequest;
- };
- interface IDBTransactionEventMap {
- "abort": Event;
- "complete": Event;
- "error": Event;
- }
- interface IDBTransaction extends EventTarget {
- /** Returns the transaction's connection. */
- readonly db: IDBDatabase;
- readonly durability: IDBTransactionDurability;
- /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
- readonly error: DOMException | null;
- /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
- readonly mode: IDBTransactionMode;
- /** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */
- readonly objectStoreNames: DOMStringList;
- onabort: ((this: IDBTransaction, ev: Event) => any) | null;
- oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
- onerror: ((this: IDBTransaction, ev: Event) => any) | null;
- /** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
- abort(): void;
- commit(): void;
- /** Returns an IDBObjectStore in the transaction's scope. */
- objectStore(name: string): IDBObjectStore;
- addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var IDBTransaction: {
- prototype: IDBTransaction;
- new(): IDBTransaction;
- };
- /** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
- interface IDBVersionChangeEvent extends Event {
- readonly newVersion: number | null;
- readonly oldVersion: number;
- }
- declare var IDBVersionChangeEvent: {
- prototype: IDBVersionChangeEvent;
- new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
- };
- interface ImageBitmap {
- /** Returns the intrinsic height of the image, in CSS pixels. */
- readonly height: number;
- /** Returns the intrinsic width of the image, in CSS pixels. */
- readonly width: number;
- /** Releases imageBitmap's underlying bitmap data. */
- close(): void;
- }
- declare var ImageBitmap: {
- prototype: ImageBitmap;
- new(): ImageBitmap;
- };
- interface ImageBitmapRenderingContext {
- /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
- transferFromImageBitmap(bitmap: ImageBitmap | null): void;
- }
- declare var ImageBitmapRenderingContext: {
- prototype: ImageBitmapRenderingContext;
- new(): ImageBitmapRenderingContext;
- };
- /** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
- interface ImageData {
- readonly colorSpace: PredefinedColorSpace;
- /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
- readonly data: Uint8ClampedArray;
- /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
- readonly height: number;
- /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
- readonly width: number;
- }
- declare var ImageData: {
- prototype: ImageData;
- new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
- new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
- };
- interface KHR_parallel_shader_compile {
- readonly COMPLETION_STATUS_KHR: 0x91B1;
- }
- /** Available only in secure contexts. */
- interface Lock {
- readonly mode: LockMode;
- readonly name: string;
- }
- declare var Lock: {
- prototype: Lock;
- new(): Lock;
- };
- /** Available only in secure contexts. */
- interface LockManager {
- query(): Promise<LockManagerSnapshot>;
- request(name: string, callback: LockGrantedCallback): Promise<any>;
- request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
- }
- declare var LockManager: {
- prototype: LockManager;
- new(): LockManager;
- };
- interface MediaCapabilities {
- decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
- encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
- }
- declare var MediaCapabilities: {
- prototype: MediaCapabilities;
- new(): MediaCapabilities;
- };
- /** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
- interface MessageChannel {
- /** Returns the first MessagePort object. */
- readonly port1: MessagePort;
- /** Returns the second MessagePort object. */
- readonly port2: MessagePort;
- }
- declare var MessageChannel: {
- prototype: MessageChannel;
- new(): MessageChannel;
- };
- /** A message received by a target object. */
- interface MessageEvent<T = any> extends Event {
- /** Returns the data of the message. */
- readonly data: T;
- /** Returns the last event ID string, for server-sent events. */
- readonly lastEventId: string;
- /** Returns the origin of the message, for server-sent events and cross-document messaging. */
- readonly origin: string;
- /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
- readonly ports: ReadonlyArray<MessagePort>;
- /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
- readonly source: MessageEventSource | null;
- /** @deprecated */
- initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
- }
- declare var MessageEvent: {
- prototype: MessageEvent;
- new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
- };
- interface MessagePortEventMap {
- "message": MessageEvent;
- "messageerror": MessageEvent;
- }
- /** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
- interface MessagePort extends EventTarget {
- onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
- onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
- /** Disconnects the port, so that it is no longer active. */
- close(): void;
- /**
- * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
- *
- * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
- */
- postMessage(message: any, transfer: Transferable[]): void;
- postMessage(message: any, options?: StructuredSerializeOptions): void;
- /** Begins dispatching messages received on the port. */
- start(): void;
- addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var MessagePort: {
- prototype: MessagePort;
- new(): MessagePort;
- };
- /** Available only in secure contexts. */
- interface NavigationPreloadManager {
- disable(): Promise<void>;
- enable(): Promise<void>;
- getState(): Promise<NavigationPreloadState>;
- setHeaderValue(value: string): Promise<void>;
- }
- declare var NavigationPreloadManager: {
- prototype: NavigationPreloadManager;
- new(): NavigationPreloadManager;
- };
- interface NavigatorConcurrentHardware {
- readonly hardwareConcurrency: number;
- }
- interface NavigatorID {
- /** @deprecated */
- readonly appCodeName: string;
- /** @deprecated */
- readonly appName: string;
- /** @deprecated */
- readonly appVersion: string;
- /** @deprecated */
- readonly platform: string;
- /** @deprecated */
- readonly product: string;
- readonly userAgent: string;
- }
- interface NavigatorLanguage {
- readonly language: string;
- readonly languages: ReadonlyArray<string>;
- }
- /** Available only in secure contexts. */
- interface NavigatorLocks {
- readonly locks: LockManager;
- }
- interface NavigatorOnLine {
- readonly onLine: boolean;
- }
- /** Available only in secure contexts. */
- interface NavigatorStorage {
- readonly storage: StorageManager;
- }
- interface NotificationEventMap {
- "click": Event;
- "close": Event;
- "error": Event;
- "show": Event;
- }
- /** This Notifications API interface is used to configure and display desktop notifications to the user. */
- interface Notification extends EventTarget {
- readonly body: string;
- readonly data: any;
- readonly dir: NotificationDirection;
- readonly icon: string;
- readonly lang: string;
- onclick: ((this: Notification, ev: Event) => any) | null;
- onclose: ((this: Notification, ev: Event) => any) | null;
- onerror: ((this: Notification, ev: Event) => any) | null;
- onshow: ((this: Notification, ev: Event) => any) | null;
- readonly tag: string;
- readonly title: string;
- close(): void;
- addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var Notification: {
- prototype: Notification;
- new(title: string, options?: NotificationOptions): Notification;
- readonly permission: NotificationPermission;
- };
- /** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */
- interface NotificationEvent extends ExtendableEvent {
- readonly action: string;
- readonly notification: Notification;
- }
- declare var NotificationEvent: {
- prototype: NotificationEvent;
- new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
- };
- interface OES_draw_buffers_indexed {
- blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
- blendEquationiOES(buf: GLuint, mode: GLenum): void;
- blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
- blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
- colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
- disableiOES(target: GLenum, index: GLuint): void;
- enableiOES(target: GLenum, index: GLuint): void;
- }
- /** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
- interface OES_element_index_uint {
- }
- interface OES_fbo_render_mipmap {
- }
- /** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
- interface OES_standard_derivatives {
- readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
- }
- /** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
- interface OES_texture_float {
- }
- /** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
- interface OES_texture_float_linear {
- }
- /** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
- interface OES_texture_half_float {
- readonly HALF_FLOAT_OES: 0x8D61;
- }
- /** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
- interface OES_texture_half_float_linear {
- }
- interface OES_vertex_array_object {
- bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
- createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
- deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
- isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
- readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
- }
- interface OVR_multiview2 {
- framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
- readonly MAX_VIEWS_OVR: 0x9631;
- readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
- }
- interface OffscreenCanvasEventMap {
- "contextlost": Event;
- "contextrestored": Event;
- }
- interface OffscreenCanvas extends EventTarget {
- /**
- * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
- *
- * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
- */
- height: number;
- oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
- oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
- /**
- * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
- *
- * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
- */
- width: number;
- /**
- * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
- *
- * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
- */
- convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
- /**
- * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
- *
- * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
- *
- * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
- */
- getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
- getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
- getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
- getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
- getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
- /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */
- transferToImageBitmap(): ImageBitmap;
- addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var OffscreenCanvas: {
- prototype: OffscreenCanvas;
- new(width: number, height: number): OffscreenCanvas;
- };
- interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
- readonly canvas: OffscreenCanvas;
- commit(): void;
- }
- declare var OffscreenCanvasRenderingContext2D: {
- prototype: OffscreenCanvasRenderingContext2D;
- new(): OffscreenCanvasRenderingContext2D;
- };
- /** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
- interface Path2D extends CanvasPath {
- /** Adds to the path the path given by the argument. */
- addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
- }
- declare var Path2D: {
- prototype: Path2D;
- new(path?: Path2D | string): Path2D;
- };
- interface PerformanceEventMap {
- "resourcetimingbufferfull": Event;
- }
- /** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
- interface Performance extends EventTarget {
- onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
- readonly timeOrigin: DOMHighResTimeStamp;
- clearMarks(markName?: string): void;
- clearMeasures(measureName?: string): void;
- clearResourceTimings(): void;
- getEntries(): PerformanceEntryList;
- getEntriesByName(name: string, type?: string): PerformanceEntryList;
- getEntriesByType(type: string): PerformanceEntryList;
- mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
- measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
- now(): DOMHighResTimeStamp;
- setResourceTimingBufferSize(maxSize: number): void;
- toJSON(): any;
- addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var Performance: {
- prototype: Performance;
- new(): Performance;
- };
- /** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
- interface PerformanceEntry {
- readonly duration: DOMHighResTimeStamp;
- readonly entryType: string;
- readonly name: string;
- readonly startTime: DOMHighResTimeStamp;
- toJSON(): any;
- }
- declare var PerformanceEntry: {
- prototype: PerformanceEntry;
- new(): PerformanceEntry;
- };
- /** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
- interface PerformanceMark extends PerformanceEntry {
- readonly detail: any;
- }
- declare var PerformanceMark: {
- prototype: PerformanceMark;
- new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
- };
- /** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
- interface PerformanceMeasure extends PerformanceEntry {
- readonly detail: any;
- }
- declare var PerformanceMeasure: {
- prototype: PerformanceMeasure;
- new(): PerformanceMeasure;
- };
- interface PerformanceObserver {
- disconnect(): void;
- observe(options?: PerformanceObserverInit): void;
- takeRecords(): PerformanceEntryList;
- }
- declare var PerformanceObserver: {
- prototype: PerformanceObserver;
- new(callback: PerformanceObserverCallback): PerformanceObserver;
- readonly supportedEntryTypes: ReadonlyArray<string>;
- };
- interface PerformanceObserverEntryList {
- getEntries(): PerformanceEntryList;
- getEntriesByName(name: string, type?: string): PerformanceEntryList;
- getEntriesByType(type: string): PerformanceEntryList;
- }
- declare var PerformanceObserverEntryList: {
- prototype: PerformanceObserverEntryList;
- new(): PerformanceObserverEntryList;
- };
- /** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
- interface PerformanceResourceTiming extends PerformanceEntry {
- readonly connectEnd: DOMHighResTimeStamp;
- readonly connectStart: DOMHighResTimeStamp;
- readonly decodedBodySize: number;
- readonly domainLookupEnd: DOMHighResTimeStamp;
- readonly domainLookupStart: DOMHighResTimeStamp;
- readonly encodedBodySize: number;
- readonly fetchStart: DOMHighResTimeStamp;
- readonly initiatorType: string;
- readonly nextHopProtocol: string;
- readonly redirectEnd: DOMHighResTimeStamp;
- readonly redirectStart: DOMHighResTimeStamp;
- readonly requestStart: DOMHighResTimeStamp;
- readonly responseEnd: DOMHighResTimeStamp;
- readonly responseStart: DOMHighResTimeStamp;
- readonly secureConnectionStart: DOMHighResTimeStamp;
- readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
- readonly transferSize: number;
- readonly workerStart: DOMHighResTimeStamp;
- toJSON(): any;
- }
- declare var PerformanceResourceTiming: {
- prototype: PerformanceResourceTiming;
- new(): PerformanceResourceTiming;
- };
- interface PerformanceServerTiming {
- readonly description: string;
- readonly duration: DOMHighResTimeStamp;
- readonly name: string;
- toJSON(): any;
- }
- declare var PerformanceServerTiming: {
- prototype: PerformanceServerTiming;
- new(): PerformanceServerTiming;
- };
- interface PermissionStatusEventMap {
- "change": Event;
- }
- interface PermissionStatus extends EventTarget {
- readonly name: string;
- onchange: ((this: PermissionStatus, ev: Event) => any) | null;
- readonly state: PermissionState;
- addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var PermissionStatus: {
- prototype: PermissionStatus;
- new(): PermissionStatus;
- };
- interface Permissions {
- query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
- }
- declare var Permissions: {
- prototype: Permissions;
- new(): Permissions;
- };
- /** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
- interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
- readonly lengthComputable: boolean;
- readonly loaded: number;
- readonly target: T | null;
- readonly total: number;
- }
- declare var ProgressEvent: {
- prototype: ProgressEvent;
- new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
- };
- interface PromiseRejectionEvent extends Event {
- readonly promise: Promise<any>;
- readonly reason: any;
- }
- declare var PromiseRejectionEvent: {
- prototype: PromiseRejectionEvent;
- new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
- };
- /**
- * This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.
- * Available only in secure contexts.
- */
- interface PushEvent extends ExtendableEvent {
- readonly data: PushMessageData | null;
- }
- declare var PushEvent: {
- prototype: PushEvent;
- new(type: string, eventInitDict?: PushEventInit): PushEvent;
- };
- /**
- * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
- * Available only in secure contexts.
- */
- interface PushManager {
- getSubscription(): Promise<PushSubscription | null>;
- permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
- subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
- }
- declare var PushManager: {
- prototype: PushManager;
- new(): PushManager;
- readonly supportedContentEncodings: ReadonlyArray<string>;
- };
- /**
- * This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.
- * Available only in secure contexts.
- */
- interface PushMessageData {
- arrayBuffer(): ArrayBuffer;
- blob(): Blob;
- json(): any;
- text(): string;
- }
- declare var PushMessageData: {
- prototype: PushMessageData;
- new(): PushMessageData;
- };
- /**
- * This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
- * Available only in secure contexts.
- */
- interface PushSubscription {
- readonly endpoint: string;
- readonly expirationTime: EpochTimeStamp | null;
- readonly options: PushSubscriptionOptions;
- getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
- toJSON(): PushSubscriptionJSON;
- unsubscribe(): Promise<boolean>;
- }
- declare var PushSubscription: {
- prototype: PushSubscription;
- new(): PushSubscription;
- };
- /** Available only in secure contexts. */
- interface PushSubscriptionOptions {
- readonly applicationServerKey: ArrayBuffer | null;
- readonly userVisibleOnly: boolean;
- }
- declare var PushSubscriptionOptions: {
- prototype: PushSubscriptionOptions;
- new(): PushSubscriptionOptions;
- };
- interface RTCEncodedAudioFrame {
- data: ArrayBuffer;
- readonly timestamp: number;
- getMetadata(): RTCEncodedAudioFrameMetadata;
- }
- declare var RTCEncodedAudioFrame: {
- prototype: RTCEncodedAudioFrame;
- new(): RTCEncodedAudioFrame;
- };
- interface RTCEncodedVideoFrame {
- data: ArrayBuffer;
- readonly timestamp: number;
- readonly type: RTCEncodedVideoFrameType;
- getMetadata(): RTCEncodedVideoFrameMetadata;
- }
- declare var RTCEncodedVideoFrame: {
- prototype: RTCEncodedVideoFrame;
- new(): RTCEncodedVideoFrame;
- };
- interface ReadableByteStreamController {
- readonly byobRequest: ReadableStreamBYOBRequest | null;
- readonly desiredSize: number | null;
- close(): void;
- enqueue(chunk: ArrayBufferView): void;
- error(e?: any): void;
- }
- declare var ReadableByteStreamController: {
- prototype: ReadableByteStreamController;
- new(): ReadableByteStreamController;
- };
- /** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
- interface ReadableStream<R = any> {
- readonly locked: boolean;
- cancel(reason?: any): Promise<void>;
- getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
- getReader(): ReadableStreamDefaultReader<R>;
- getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
- pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
- pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
- tee(): [ReadableStream<R>, ReadableStream<R>];
- }
- declare var ReadableStream: {
- prototype: ReadableStream;
- new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
- new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
- new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
- };
- interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
- read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
- releaseLock(): void;
- }
- declare var ReadableStreamBYOBReader: {
- prototype: ReadableStreamBYOBReader;
- new(stream: ReadableStream): ReadableStreamBYOBReader;
- };
- interface ReadableStreamBYOBRequest {
- readonly view: ArrayBufferView | null;
- respond(bytesWritten: number): void;
- respondWithNewView(view: ArrayBufferView): void;
- }
- declare var ReadableStreamBYOBRequest: {
- prototype: ReadableStreamBYOBRequest;
- new(): ReadableStreamBYOBRequest;
- };
- interface ReadableStreamDefaultController<R = any> {
- readonly desiredSize: number | null;
- close(): void;
- enqueue(chunk?: R): void;
- error(e?: any): void;
- }
- declare var ReadableStreamDefaultController: {
- prototype: ReadableStreamDefaultController;
- new(): ReadableStreamDefaultController;
- };
- interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
- read(): Promise<ReadableStreamReadResult<R>>;
- releaseLock(): void;
- }
- declare var ReadableStreamDefaultReader: {
- prototype: ReadableStreamDefaultReader;
- new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
- };
- interface ReadableStreamGenericReader {
- readonly closed: Promise<undefined>;
- cancel(reason?: any): Promise<void>;
- }
- /** This Fetch API interface represents a resource request. */
- interface Request extends Body {
- /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
- readonly cache: RequestCache;
- /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */
- readonly credentials: RequestCredentials;
- /** Returns the kind of resource requested by request, e.g., "document" or "script". */
- readonly destination: RequestDestination;
- /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */
- readonly headers: Headers;
- /** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */
- readonly integrity: string;
- /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
- readonly keepalive: boolean;
- /** Returns request's HTTP method, which is "GET" by default. */
- readonly method: string;
- /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */
- readonly mode: RequestMode;
- /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */
- readonly redirect: RequestRedirect;
- /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made. */
- readonly referrer: string;
- /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
- readonly referrerPolicy: ReferrerPolicy;
- /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
- readonly signal: AbortSignal;
- /** Returns the URL of request as a string. */
- readonly url: string;
- clone(): Request;
- }
- declare var Request: {
- prototype: Request;
- new(input: RequestInfo | URL, init?: RequestInit): Request;
- };
- /** This Fetch API interface represents the response to a request. */
- interface Response extends Body {
- readonly headers: Headers;
- readonly ok: boolean;
- readonly redirected: boolean;
- readonly status: number;
- readonly statusText: string;
- readonly type: ResponseType;
- readonly url: string;
- clone(): Response;
- }
- declare var Response: {
- prototype: Response;
- new(body?: BodyInit | null, init?: ResponseInit): Response;
- error(): Response;
- redirect(url: string | URL, status?: number): Response;
- };
- /** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
- interface SecurityPolicyViolationEvent extends Event {
- readonly blockedURI: string;
- readonly columnNumber: number;
- readonly disposition: SecurityPolicyViolationEventDisposition;
- readonly documentURI: string;
- readonly effectiveDirective: string;
- readonly lineNumber: number;
- readonly originalPolicy: string;
- readonly referrer: string;
- readonly sample: string;
- readonly sourceFile: string;
- readonly statusCode: number;
- readonly violatedDirective: string;
- }
- declare var SecurityPolicyViolationEvent: {
- prototype: SecurityPolicyViolationEvent;
- new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
- };
- interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
- "statechange": Event;
- }
- /**
- * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
- * Available only in secure contexts.
- */
- interface ServiceWorker extends EventTarget, AbstractWorker {
- onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
- readonly scriptURL: string;
- readonly state: ServiceWorkerState;
- postMessage(message: any, transfer: Transferable[]): void;
- postMessage(message: any, options?: StructuredSerializeOptions): void;
- addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var ServiceWorker: {
- prototype: ServiceWorker;
- new(): ServiceWorker;
- };
- interface ServiceWorkerContainerEventMap {
- "controllerchange": Event;
- "message": MessageEvent;
- "messageerror": MessageEvent;
- }
- /**
- * The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
- * Available only in secure contexts.
- */
- interface ServiceWorkerContainer extends EventTarget {
- readonly controller: ServiceWorker | null;
- oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
- onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
- onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
- readonly ready: Promise<ServiceWorkerRegistration>;
- getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
- getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
- register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
- startMessages(): void;
- addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var ServiceWorkerContainer: {
- prototype: ServiceWorkerContainer;
- new(): ServiceWorkerContainer;
- };
- interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
- "activate": ExtendableEvent;
- "fetch": FetchEvent;
- "install": ExtendableEvent;
- "message": ExtendableMessageEvent;
- "messageerror": MessageEvent;
- "notificationclick": NotificationEvent;
- "notificationclose": NotificationEvent;
- "push": PushEvent;
- "pushsubscriptionchange": Event;
- }
- /** This ServiceWorker API interface represents the global execution context of a service worker. */
- interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
- readonly clients: Clients;
- onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
- onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
- oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
- onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
- onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
- onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
- onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
- onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
- onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
- readonly registration: ServiceWorkerRegistration;
- readonly serviceWorker: ServiceWorker;
- skipWaiting(): Promise<void>;
- addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var ServiceWorkerGlobalScope: {
- prototype: ServiceWorkerGlobalScope;
- new(): ServiceWorkerGlobalScope;
- };
- interface ServiceWorkerRegistrationEventMap {
- "updatefound": Event;
- }
- /**
- * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
- * Available only in secure contexts.
- */
- interface ServiceWorkerRegistration extends EventTarget {
- readonly active: ServiceWorker | null;
- readonly installing: ServiceWorker | null;
- readonly navigationPreload: NavigationPreloadManager;
- onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
- readonly pushManager: PushManager;
- readonly scope: string;
- readonly updateViaCache: ServiceWorkerUpdateViaCache;
- readonly waiting: ServiceWorker | null;
- getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
- showNotification(title: string, options?: NotificationOptions): Promise<void>;
- unregister(): Promise<boolean>;
- update(): Promise<void>;
- addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var ServiceWorkerRegistration: {
- prototype: ServiceWorkerRegistration;
- new(): ServiceWorkerRegistration;
- };
- interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
- "connect": MessageEvent;
- }
- interface SharedWorkerGlobalScope extends WorkerGlobalScope {
- /** Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name. */
- readonly name: string;
- onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
- /** Aborts sharedWorkerGlobal. */
- close(): void;
- addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var SharedWorkerGlobalScope: {
- prototype: SharedWorkerGlobalScope;
- new(): SharedWorkerGlobalScope;
- };
- /** Available only in secure contexts. */
- interface StorageManager {
- estimate(): Promise<StorageEstimate>;
- getDirectory(): Promise<FileSystemDirectoryHandle>;
- persisted(): Promise<boolean>;
- }
- declare var StorageManager: {
- prototype: StorageManager;
- new(): StorageManager;
- };
- /**
- * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
- * Available only in secure contexts.
- */
- interface SubtleCrypto {
- decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
- deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
- deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
- digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
- encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
- exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
- exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
- generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
- generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
- generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
- importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
- importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
- sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
- unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
- verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
- wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
- }
- declare var SubtleCrypto: {
- prototype: SubtleCrypto;
- new(): SubtleCrypto;
- };
- /** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
- interface TextDecoder extends TextDecoderCommon {
- /**
- * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
- *
- * \`\`\`
- * var string = "", decoder = new TextDecoder(encoding), buffer;
- * while(buffer = next_chunk()) {
- * string += decoder.decode(buffer, {stream:true});
- * }
- * string += decoder.decode(); // end-of-queue
- * \`\`\`
- *
- * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
- */
- decode(input?: BufferSource, options?: TextDecodeOptions): string;
- }
- declare var TextDecoder: {
- prototype: TextDecoder;
- new(label?: string, options?: TextDecoderOptions): TextDecoder;
- };
- interface TextDecoderCommon {
- /** Returns encoding's name, lowercased. */
- readonly encoding: string;
- /** Returns true if error mode is "fatal", otherwise false. */
- readonly fatal: boolean;
- /** Returns the value of ignore BOM. */
- readonly ignoreBOM: boolean;
- }
- interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
- readonly readable: ReadableStream<string>;
- readonly writable: WritableStream<BufferSource>;
- }
- declare var TextDecoderStream: {
- prototype: TextDecoderStream;
- new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
- };
- /** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
- interface TextEncoder extends TextEncoderCommon {
- /** Returns the result of running UTF-8's encoder. */
- encode(input?: string): Uint8Array;
- /** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */
- encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
- }
- declare var TextEncoder: {
- prototype: TextEncoder;
- new(): TextEncoder;
- };
- interface TextEncoderCommon {
- /** Returns "utf-8". */
- readonly encoding: string;
- }
- interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
- readonly readable: ReadableStream<Uint8Array>;
- readonly writable: WritableStream<string>;
- }
- declare var TextEncoderStream: {
- prototype: TextEncoderStream;
- new(): TextEncoderStream;
- };
- /** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
- interface TextMetrics {
- /** Returns the measurement described below. */
- readonly actualBoundingBoxAscent: number;
- /** Returns the measurement described below. */
- readonly actualBoundingBoxDescent: number;
- /** Returns the measurement described below. */
- readonly actualBoundingBoxLeft: number;
- /** Returns the measurement described below. */
- readonly actualBoundingBoxRight: number;
- /** Returns the measurement described below. */
- readonly fontBoundingBoxAscent: number;
- /** Returns the measurement described below. */
- readonly fontBoundingBoxDescent: number;
- /** Returns the measurement described below. */
- readonly width: number;
- }
- declare var TextMetrics: {
- prototype: TextMetrics;
- new(): TextMetrics;
- };
- interface TransformStream<I = any, O = any> {
- readonly readable: ReadableStream<O>;
- readonly writable: WritableStream<I>;
- }
- declare var TransformStream: {
- prototype: TransformStream;
- new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
- };
- interface TransformStreamDefaultController<O = any> {
- readonly desiredSize: number | null;
- enqueue(chunk?: O): void;
- error(reason?: any): void;
- terminate(): void;
- }
- declare var TransformStreamDefaultController: {
- prototype: TransformStreamDefaultController;
- new(): TransformStreamDefaultController;
- };
- /** The URL interface represents an object providing static methods used for creating object URLs. */
- interface URL {
- hash: string;
- host: string;
- hostname: string;
- href: string;
- toString(): string;
- readonly origin: string;
- password: string;
- pathname: string;
- port: string;
- protocol: string;
- search: string;
- readonly searchParams: URLSearchParams;
- username: string;
- toJSON(): string;
- }
- declare var URL: {
- prototype: URL;
- new(url: string | URL, base?: string | URL): URL;
- createObjectURL(obj: Blob): string;
- revokeObjectURL(url: string): void;
- };
- interface URLSearchParams {
- /** Appends a specified key/value pair as a new search parameter. */
- append(name: string, value: string): void;
- /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
- delete(name: string): void;
- /** Returns the first value associated to the given search parameter. */
- get(name: string): string | null;
- /** Returns all the values association with a given search parameter. */
- getAll(name: string): string[];
- /** Returns a Boolean indicating if such a search parameter exists. */
- has(name: string): boolean;
- /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
- set(name: string, value: string): void;
- sort(): void;
- /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
- toString(): string;
- forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
- }
- declare var URLSearchParams: {
- prototype: URLSearchParams;
- new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
- toString(): string;
- };
- interface VideoColorSpace {
- readonly fullRange: boolean | null;
- readonly matrix: VideoMatrixCoefficients | null;
- readonly primaries: VideoColorPrimaries | null;
- readonly transfer: VideoTransferCharacteristics | null;
- toJSON(): VideoColorSpaceInit;
- }
- declare var VideoColorSpace: {
- prototype: VideoColorSpace;
- new(init?: VideoColorSpaceInit): VideoColorSpace;
- };
- interface WEBGL_color_buffer_float {
- readonly RGBA32F_EXT: 0x8814;
- readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
- readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
- }
- interface WEBGL_compressed_texture_astc {
- getSupportedProfiles(): string[];
- readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
- readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
- readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
- readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
- readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
- readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
- readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
- readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
- readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
- readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
- readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
- readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
- readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
- readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
- readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
- }
- interface WEBGL_compressed_texture_etc {
- readonly COMPRESSED_R11_EAC: 0x9270;
- readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
- readonly COMPRESSED_RG11_EAC: 0x9272;
- readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
- readonly COMPRESSED_RGB8_ETC2: 0x9274;
- readonly COMPRESSED_SRGB8_ETC2: 0x9275;
- readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
- readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
- readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
- readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
- }
- interface WEBGL_compressed_texture_etc1 {
- readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
- }
- /** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
- interface WEBGL_compressed_texture_s3tc {
- readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
- readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
- readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
- readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
- }
- interface WEBGL_compressed_texture_s3tc_srgb {
- readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
- readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
- readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
- readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
- }
- /** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
- interface WEBGL_debug_renderer_info {
- readonly UNMASKED_VENDOR_WEBGL: 0x9245;
- readonly UNMASKED_RENDERER_WEBGL: 0x9246;
- }
- interface WEBGL_debug_shaders {
- getTranslatedShaderSource(shader: WebGLShader): string;
- }
- /** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
- interface WEBGL_depth_texture {
- readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
- }
- interface WEBGL_draw_buffers {
- drawBuffersWEBGL(buffers: GLenum[]): void;
- readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
- readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
- readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
- readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
- readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
- readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
- readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
- readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
- readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
- readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
- readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
- readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
- readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
- readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
- readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
- readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
- readonly DRAW_BUFFER0_WEBGL: 0x8825;
- readonly DRAW_BUFFER1_WEBGL: 0x8826;
- readonly DRAW_BUFFER2_WEBGL: 0x8827;
- readonly DRAW_BUFFER3_WEBGL: 0x8828;
- readonly DRAW_BUFFER4_WEBGL: 0x8829;
- readonly DRAW_BUFFER5_WEBGL: 0x882A;
- readonly DRAW_BUFFER6_WEBGL: 0x882B;
- readonly DRAW_BUFFER7_WEBGL: 0x882C;
- readonly DRAW_BUFFER8_WEBGL: 0x882D;
- readonly DRAW_BUFFER9_WEBGL: 0x882E;
- readonly DRAW_BUFFER10_WEBGL: 0x882F;
- readonly DRAW_BUFFER11_WEBGL: 0x8830;
- readonly DRAW_BUFFER12_WEBGL: 0x8831;
- readonly DRAW_BUFFER13_WEBGL: 0x8832;
- readonly DRAW_BUFFER14_WEBGL: 0x8833;
- readonly DRAW_BUFFER15_WEBGL: 0x8834;
- readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
- readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
- }
- interface WEBGL_lose_context {
- loseContext(): void;
- restoreContext(): void;
- }
- interface WEBGL_multi_draw {
- multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
- multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
- multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
- }
- interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
- }
- declare var WebGL2RenderingContext: {
- prototype: WebGL2RenderingContext;
- new(): WebGL2RenderingContext;
- readonly READ_BUFFER: 0x0C02;
- readonly UNPACK_ROW_LENGTH: 0x0CF2;
- readonly UNPACK_SKIP_ROWS: 0x0CF3;
- readonly UNPACK_SKIP_PIXELS: 0x0CF4;
- readonly PACK_ROW_LENGTH: 0x0D02;
- readonly PACK_SKIP_ROWS: 0x0D03;
- readonly PACK_SKIP_PIXELS: 0x0D04;
- readonly COLOR: 0x1800;
- readonly DEPTH: 0x1801;
- readonly STENCIL: 0x1802;
- readonly RED: 0x1903;
- readonly RGB8: 0x8051;
- readonly RGBA8: 0x8058;
- readonly RGB10_A2: 0x8059;
- readonly TEXTURE_BINDING_3D: 0x806A;
- readonly UNPACK_SKIP_IMAGES: 0x806D;
- readonly UNPACK_IMAGE_HEIGHT: 0x806E;
- readonly TEXTURE_3D: 0x806F;
- readonly TEXTURE_WRAP_R: 0x8072;
- readonly MAX_3D_TEXTURE_SIZE: 0x8073;
- readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
- readonly MAX_ELEMENTS_VERTICES: 0x80E8;
- readonly MAX_ELEMENTS_INDICES: 0x80E9;
- readonly TEXTURE_MIN_LOD: 0x813A;
- readonly TEXTURE_MAX_LOD: 0x813B;
- readonly TEXTURE_BASE_LEVEL: 0x813C;
- readonly TEXTURE_MAX_LEVEL: 0x813D;
- readonly MIN: 0x8007;
- readonly MAX: 0x8008;
- readonly DEPTH_COMPONENT24: 0x81A6;
- readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
- readonly TEXTURE_COMPARE_MODE: 0x884C;
- readonly TEXTURE_COMPARE_FUNC: 0x884D;
- readonly CURRENT_QUERY: 0x8865;
- readonly QUERY_RESULT: 0x8866;
- readonly QUERY_RESULT_AVAILABLE: 0x8867;
- readonly STREAM_READ: 0x88E1;
- readonly STREAM_COPY: 0x88E2;
- readonly STATIC_READ: 0x88E5;
- readonly STATIC_COPY: 0x88E6;
- readonly DYNAMIC_READ: 0x88E9;
- readonly DYNAMIC_COPY: 0x88EA;
- readonly MAX_DRAW_BUFFERS: 0x8824;
- readonly DRAW_BUFFER0: 0x8825;
- readonly DRAW_BUFFER1: 0x8826;
- readonly DRAW_BUFFER2: 0x8827;
- readonly DRAW_BUFFER3: 0x8828;
- readonly DRAW_BUFFER4: 0x8829;
- readonly DRAW_BUFFER5: 0x882A;
- readonly DRAW_BUFFER6: 0x882B;
- readonly DRAW_BUFFER7: 0x882C;
- readonly DRAW_BUFFER8: 0x882D;
- readonly DRAW_BUFFER9: 0x882E;
- readonly DRAW_BUFFER10: 0x882F;
- readonly DRAW_BUFFER11: 0x8830;
- readonly DRAW_BUFFER12: 0x8831;
- readonly DRAW_BUFFER13: 0x8832;
- readonly DRAW_BUFFER14: 0x8833;
- readonly DRAW_BUFFER15: 0x8834;
- readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
- readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
- readonly SAMPLER_3D: 0x8B5F;
- readonly SAMPLER_2D_SHADOW: 0x8B62;
- readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
- readonly PIXEL_PACK_BUFFER: 0x88EB;
- readonly PIXEL_UNPACK_BUFFER: 0x88EC;
- readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
- readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
- readonly FLOAT_MAT2x3: 0x8B65;
- readonly FLOAT_MAT2x4: 0x8B66;
- readonly FLOAT_MAT3x2: 0x8B67;
- readonly FLOAT_MAT3x4: 0x8B68;
- readonly FLOAT_MAT4x2: 0x8B69;
- readonly FLOAT_MAT4x3: 0x8B6A;
- readonly SRGB: 0x8C40;
- readonly SRGB8: 0x8C41;
- readonly SRGB8_ALPHA8: 0x8C43;
- readonly COMPARE_REF_TO_TEXTURE: 0x884E;
- readonly RGBA32F: 0x8814;
- readonly RGB32F: 0x8815;
- readonly RGBA16F: 0x881A;
- readonly RGB16F: 0x881B;
- readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
- readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
- readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
- readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
- readonly MAX_VARYING_COMPONENTS: 0x8B4B;
- readonly TEXTURE_2D_ARRAY: 0x8C1A;
- readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
- readonly R11F_G11F_B10F: 0x8C3A;
- readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
- readonly RGB9_E5: 0x8C3D;
- readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
- readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
- readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
- readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
- readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
- readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
- readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
- readonly RASTERIZER_DISCARD: 0x8C89;
- readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
- readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
- readonly INTERLEAVED_ATTRIBS: 0x8C8C;
- readonly SEPARATE_ATTRIBS: 0x8C8D;
- readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
- readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
- readonly RGBA32UI: 0x8D70;
- readonly RGB32UI: 0x8D71;
- readonly RGBA16UI: 0x8D76;
- readonly RGB16UI: 0x8D77;
- readonly RGBA8UI: 0x8D7C;
- readonly RGB8UI: 0x8D7D;
- readonly RGBA32I: 0x8D82;
- readonly RGB32I: 0x8D83;
- readonly RGBA16I: 0x8D88;
- readonly RGB16I: 0x8D89;
- readonly RGBA8I: 0x8D8E;
- readonly RGB8I: 0x8D8F;
- readonly RED_INTEGER: 0x8D94;
- readonly RGB_INTEGER: 0x8D98;
- readonly RGBA_INTEGER: 0x8D99;
- readonly SAMPLER_2D_ARRAY: 0x8DC1;
- readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
- readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
- readonly UNSIGNED_INT_VEC2: 0x8DC6;
- readonly UNSIGNED_INT_VEC3: 0x8DC7;
- readonly UNSIGNED_INT_VEC4: 0x8DC8;
- readonly INT_SAMPLER_2D: 0x8DCA;
- readonly INT_SAMPLER_3D: 0x8DCB;
- readonly INT_SAMPLER_CUBE: 0x8DCC;
- readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
- readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
- readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
- readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
- readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
- readonly DEPTH_COMPONENT32F: 0x8CAC;
- readonly DEPTH32F_STENCIL8: 0x8CAD;
- readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
- readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
- readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
- readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
- readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
- readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
- readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
- readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
- readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
- readonly FRAMEBUFFER_DEFAULT: 0x8218;
- readonly UNSIGNED_INT_24_8: 0x84FA;
- readonly DEPTH24_STENCIL8: 0x88F0;
- readonly UNSIGNED_NORMALIZED: 0x8C17;
- readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
- readonly READ_FRAMEBUFFER: 0x8CA8;
- readonly DRAW_FRAMEBUFFER: 0x8CA9;
- readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
- readonly RENDERBUFFER_SAMPLES: 0x8CAB;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
- readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
- readonly COLOR_ATTACHMENT1: 0x8CE1;
- readonly COLOR_ATTACHMENT2: 0x8CE2;
- readonly COLOR_ATTACHMENT3: 0x8CE3;
- readonly COLOR_ATTACHMENT4: 0x8CE4;
- readonly COLOR_ATTACHMENT5: 0x8CE5;
- readonly COLOR_ATTACHMENT6: 0x8CE6;
- readonly COLOR_ATTACHMENT7: 0x8CE7;
- readonly COLOR_ATTACHMENT8: 0x8CE8;
- readonly COLOR_ATTACHMENT9: 0x8CE9;
- readonly COLOR_ATTACHMENT10: 0x8CEA;
- readonly COLOR_ATTACHMENT11: 0x8CEB;
- readonly COLOR_ATTACHMENT12: 0x8CEC;
- readonly COLOR_ATTACHMENT13: 0x8CED;
- readonly COLOR_ATTACHMENT14: 0x8CEE;
- readonly COLOR_ATTACHMENT15: 0x8CEF;
- readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
- readonly MAX_SAMPLES: 0x8D57;
- readonly HALF_FLOAT: 0x140B;
- readonly RG: 0x8227;
- readonly RG_INTEGER: 0x8228;
- readonly R8: 0x8229;
- readonly RG8: 0x822B;
- readonly R16F: 0x822D;
- readonly R32F: 0x822E;
- readonly RG16F: 0x822F;
- readonly RG32F: 0x8230;
- readonly R8I: 0x8231;
- readonly R8UI: 0x8232;
- readonly R16I: 0x8233;
- readonly R16UI: 0x8234;
- readonly R32I: 0x8235;
- readonly R32UI: 0x8236;
- readonly RG8I: 0x8237;
- readonly RG8UI: 0x8238;
- readonly RG16I: 0x8239;
- readonly RG16UI: 0x823A;
- readonly RG32I: 0x823B;
- readonly RG32UI: 0x823C;
- readonly VERTEX_ARRAY_BINDING: 0x85B5;
- readonly R8_SNORM: 0x8F94;
- readonly RG8_SNORM: 0x8F95;
- readonly RGB8_SNORM: 0x8F96;
- readonly RGBA8_SNORM: 0x8F97;
- readonly SIGNED_NORMALIZED: 0x8F9C;
- readonly COPY_READ_BUFFER: 0x8F36;
- readonly COPY_WRITE_BUFFER: 0x8F37;
- readonly COPY_READ_BUFFER_BINDING: 0x8F36;
- readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
- readonly UNIFORM_BUFFER: 0x8A11;
- readonly UNIFORM_BUFFER_BINDING: 0x8A28;
- readonly UNIFORM_BUFFER_START: 0x8A29;
- readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
- readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
- readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
- readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
- readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
- readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
- readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
- readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
- readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
- readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
- readonly UNIFORM_TYPE: 0x8A37;
- readonly UNIFORM_SIZE: 0x8A38;
- readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
- readonly UNIFORM_OFFSET: 0x8A3B;
- readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
- readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
- readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
- readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
- readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
- readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
- readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
- readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
- readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
- readonly INVALID_INDEX: 0xFFFFFFFF;
- readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
- readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
- readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
- readonly OBJECT_TYPE: 0x9112;
- readonly SYNC_CONDITION: 0x9113;
- readonly SYNC_STATUS: 0x9114;
- readonly SYNC_FLAGS: 0x9115;
- readonly SYNC_FENCE: 0x9116;
- readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
- readonly UNSIGNALED: 0x9118;
- readonly SIGNALED: 0x9119;
- readonly ALREADY_SIGNALED: 0x911A;
- readonly TIMEOUT_EXPIRED: 0x911B;
- readonly CONDITION_SATISFIED: 0x911C;
- readonly WAIT_FAILED: 0x911D;
- readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
- readonly ANY_SAMPLES_PASSED: 0x8C2F;
- readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
- readonly SAMPLER_BINDING: 0x8919;
- readonly RGB10_A2UI: 0x906F;
- readonly INT_2_10_10_10_REV: 0x8D9F;
- readonly TRANSFORM_FEEDBACK: 0x8E22;
- readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
- readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
- readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
- readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
- readonly MAX_ELEMENT_INDEX: 0x8D6B;
- readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
- readonly TIMEOUT_IGNORED: -1;
- readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
- readonly DEPTH_BUFFER_BIT: 0x00000100;
- readonly STENCIL_BUFFER_BIT: 0x00000400;
- readonly COLOR_BUFFER_BIT: 0x00004000;
- readonly POINTS: 0x0000;
- readonly LINES: 0x0001;
- readonly LINE_LOOP: 0x0002;
- readonly LINE_STRIP: 0x0003;
- readonly TRIANGLES: 0x0004;
- readonly TRIANGLE_STRIP: 0x0005;
- readonly TRIANGLE_FAN: 0x0006;
- readonly ZERO: 0;
- readonly ONE: 1;
- readonly SRC_COLOR: 0x0300;
- readonly ONE_MINUS_SRC_COLOR: 0x0301;
- readonly SRC_ALPHA: 0x0302;
- readonly ONE_MINUS_SRC_ALPHA: 0x0303;
- readonly DST_ALPHA: 0x0304;
- readonly ONE_MINUS_DST_ALPHA: 0x0305;
- readonly DST_COLOR: 0x0306;
- readonly ONE_MINUS_DST_COLOR: 0x0307;
- readonly SRC_ALPHA_SATURATE: 0x0308;
- readonly FUNC_ADD: 0x8006;
- readonly BLEND_EQUATION: 0x8009;
- readonly BLEND_EQUATION_RGB: 0x8009;
- readonly BLEND_EQUATION_ALPHA: 0x883D;
- readonly FUNC_SUBTRACT: 0x800A;
- readonly FUNC_REVERSE_SUBTRACT: 0x800B;
- readonly BLEND_DST_RGB: 0x80C8;
- readonly BLEND_SRC_RGB: 0x80C9;
- readonly BLEND_DST_ALPHA: 0x80CA;
- readonly BLEND_SRC_ALPHA: 0x80CB;
- readonly CONSTANT_COLOR: 0x8001;
- readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
- readonly CONSTANT_ALPHA: 0x8003;
- readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
- readonly BLEND_COLOR: 0x8005;
- readonly ARRAY_BUFFER: 0x8892;
- readonly ELEMENT_ARRAY_BUFFER: 0x8893;
- readonly ARRAY_BUFFER_BINDING: 0x8894;
- readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
- readonly STREAM_DRAW: 0x88E0;
- readonly STATIC_DRAW: 0x88E4;
- readonly DYNAMIC_DRAW: 0x88E8;
- readonly BUFFER_SIZE: 0x8764;
- readonly BUFFER_USAGE: 0x8765;
- readonly CURRENT_VERTEX_ATTRIB: 0x8626;
- readonly FRONT: 0x0404;
- readonly BACK: 0x0405;
- readonly FRONT_AND_BACK: 0x0408;
- readonly CULL_FACE: 0x0B44;
- readonly BLEND: 0x0BE2;
- readonly DITHER: 0x0BD0;
- readonly STENCIL_TEST: 0x0B90;
- readonly DEPTH_TEST: 0x0B71;
- readonly SCISSOR_TEST: 0x0C11;
- readonly POLYGON_OFFSET_FILL: 0x8037;
- readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
- readonly SAMPLE_COVERAGE: 0x80A0;
- readonly NO_ERROR: 0;
- readonly INVALID_ENUM: 0x0500;
- readonly INVALID_VALUE: 0x0501;
- readonly INVALID_OPERATION: 0x0502;
- readonly OUT_OF_MEMORY: 0x0505;
- readonly CW: 0x0900;
- readonly CCW: 0x0901;
- readonly LINE_WIDTH: 0x0B21;
- readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
- readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
- readonly CULL_FACE_MODE: 0x0B45;
- readonly FRONT_FACE: 0x0B46;
- readonly DEPTH_RANGE: 0x0B70;
- readonly DEPTH_WRITEMASK: 0x0B72;
- readonly DEPTH_CLEAR_VALUE: 0x0B73;
- readonly DEPTH_FUNC: 0x0B74;
- readonly STENCIL_CLEAR_VALUE: 0x0B91;
- readonly STENCIL_FUNC: 0x0B92;
- readonly STENCIL_FAIL: 0x0B94;
- readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
- readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
- readonly STENCIL_REF: 0x0B97;
- readonly STENCIL_VALUE_MASK: 0x0B93;
- readonly STENCIL_WRITEMASK: 0x0B98;
- readonly STENCIL_BACK_FUNC: 0x8800;
- readonly STENCIL_BACK_FAIL: 0x8801;
- readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
- readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
- readonly STENCIL_BACK_REF: 0x8CA3;
- readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
- readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
- readonly VIEWPORT: 0x0BA2;
- readonly SCISSOR_BOX: 0x0C10;
- readonly COLOR_CLEAR_VALUE: 0x0C22;
- readonly COLOR_WRITEMASK: 0x0C23;
- readonly UNPACK_ALIGNMENT: 0x0CF5;
- readonly PACK_ALIGNMENT: 0x0D05;
- readonly MAX_TEXTURE_SIZE: 0x0D33;
- readonly MAX_VIEWPORT_DIMS: 0x0D3A;
- readonly SUBPIXEL_BITS: 0x0D50;
- readonly RED_BITS: 0x0D52;
- readonly GREEN_BITS: 0x0D53;
- readonly BLUE_BITS: 0x0D54;
- readonly ALPHA_BITS: 0x0D55;
- readonly DEPTH_BITS: 0x0D56;
- readonly STENCIL_BITS: 0x0D57;
- readonly POLYGON_OFFSET_UNITS: 0x2A00;
- readonly POLYGON_OFFSET_FACTOR: 0x8038;
- readonly TEXTURE_BINDING_2D: 0x8069;
- readonly SAMPLE_BUFFERS: 0x80A8;
- readonly SAMPLES: 0x80A9;
- readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
- readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
- readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
- readonly DONT_CARE: 0x1100;
- readonly FASTEST: 0x1101;
- readonly NICEST: 0x1102;
- readonly GENERATE_MIPMAP_HINT: 0x8192;
- readonly BYTE: 0x1400;
- readonly UNSIGNED_BYTE: 0x1401;
- readonly SHORT: 0x1402;
- readonly UNSIGNED_SHORT: 0x1403;
- readonly INT: 0x1404;
- readonly UNSIGNED_INT: 0x1405;
- readonly FLOAT: 0x1406;
- readonly DEPTH_COMPONENT: 0x1902;
- readonly ALPHA: 0x1906;
- readonly RGB: 0x1907;
- readonly RGBA: 0x1908;
- readonly LUMINANCE: 0x1909;
- readonly LUMINANCE_ALPHA: 0x190A;
- readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
- readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
- readonly UNSIGNED_SHORT_5_6_5: 0x8363;
- readonly FRAGMENT_SHADER: 0x8B30;
- readonly VERTEX_SHADER: 0x8B31;
- readonly MAX_VERTEX_ATTRIBS: 0x8869;
- readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
- readonly MAX_VARYING_VECTORS: 0x8DFC;
- readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
- readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
- readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
- readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
- readonly SHADER_TYPE: 0x8B4F;
- readonly DELETE_STATUS: 0x8B80;
- readonly LINK_STATUS: 0x8B82;
- readonly VALIDATE_STATUS: 0x8B83;
- readonly ATTACHED_SHADERS: 0x8B85;
- readonly ACTIVE_UNIFORMS: 0x8B86;
- readonly ACTIVE_ATTRIBUTES: 0x8B89;
- readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
- readonly CURRENT_PROGRAM: 0x8B8D;
- readonly NEVER: 0x0200;
- readonly LESS: 0x0201;
- readonly EQUAL: 0x0202;
- readonly LEQUAL: 0x0203;
- readonly GREATER: 0x0204;
- readonly NOTEQUAL: 0x0205;
- readonly GEQUAL: 0x0206;
- readonly ALWAYS: 0x0207;
- readonly KEEP: 0x1E00;
- readonly REPLACE: 0x1E01;
- readonly INCR: 0x1E02;
- readonly DECR: 0x1E03;
- readonly INVERT: 0x150A;
- readonly INCR_WRAP: 0x8507;
- readonly DECR_WRAP: 0x8508;
- readonly VENDOR: 0x1F00;
- readonly RENDERER: 0x1F01;
- readonly VERSION: 0x1F02;
- readonly NEAREST: 0x2600;
- readonly LINEAR: 0x2601;
- readonly NEAREST_MIPMAP_NEAREST: 0x2700;
- readonly LINEAR_MIPMAP_NEAREST: 0x2701;
- readonly NEAREST_MIPMAP_LINEAR: 0x2702;
- readonly LINEAR_MIPMAP_LINEAR: 0x2703;
- readonly TEXTURE_MAG_FILTER: 0x2800;
- readonly TEXTURE_MIN_FILTER: 0x2801;
- readonly TEXTURE_WRAP_S: 0x2802;
- readonly TEXTURE_WRAP_T: 0x2803;
- readonly TEXTURE_2D: 0x0DE1;
- readonly TEXTURE: 0x1702;
- readonly TEXTURE_CUBE_MAP: 0x8513;
- readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
- readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
- readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
- readonly TEXTURE0: 0x84C0;
- readonly TEXTURE1: 0x84C1;
- readonly TEXTURE2: 0x84C2;
- readonly TEXTURE3: 0x84C3;
- readonly TEXTURE4: 0x84C4;
- readonly TEXTURE5: 0x84C5;
- readonly TEXTURE6: 0x84C6;
- readonly TEXTURE7: 0x84C7;
- readonly TEXTURE8: 0x84C8;
- readonly TEXTURE9: 0x84C9;
- readonly TEXTURE10: 0x84CA;
- readonly TEXTURE11: 0x84CB;
- readonly TEXTURE12: 0x84CC;
- readonly TEXTURE13: 0x84CD;
- readonly TEXTURE14: 0x84CE;
- readonly TEXTURE15: 0x84CF;
- readonly TEXTURE16: 0x84D0;
- readonly TEXTURE17: 0x84D1;
- readonly TEXTURE18: 0x84D2;
- readonly TEXTURE19: 0x84D3;
- readonly TEXTURE20: 0x84D4;
- readonly TEXTURE21: 0x84D5;
- readonly TEXTURE22: 0x84D6;
- readonly TEXTURE23: 0x84D7;
- readonly TEXTURE24: 0x84D8;
- readonly TEXTURE25: 0x84D9;
- readonly TEXTURE26: 0x84DA;
- readonly TEXTURE27: 0x84DB;
- readonly TEXTURE28: 0x84DC;
- readonly TEXTURE29: 0x84DD;
- readonly TEXTURE30: 0x84DE;
- readonly TEXTURE31: 0x84DF;
- readonly ACTIVE_TEXTURE: 0x84E0;
- readonly REPEAT: 0x2901;
- readonly CLAMP_TO_EDGE: 0x812F;
- readonly MIRRORED_REPEAT: 0x8370;
- readonly FLOAT_VEC2: 0x8B50;
- readonly FLOAT_VEC3: 0x8B51;
- readonly FLOAT_VEC4: 0x8B52;
- readonly INT_VEC2: 0x8B53;
- readonly INT_VEC3: 0x8B54;
- readonly INT_VEC4: 0x8B55;
- readonly BOOL: 0x8B56;
- readonly BOOL_VEC2: 0x8B57;
- readonly BOOL_VEC3: 0x8B58;
- readonly BOOL_VEC4: 0x8B59;
- readonly FLOAT_MAT2: 0x8B5A;
- readonly FLOAT_MAT3: 0x8B5B;
- readonly FLOAT_MAT4: 0x8B5C;
- readonly SAMPLER_2D: 0x8B5E;
- readonly SAMPLER_CUBE: 0x8B60;
- readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
- readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
- readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
- readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
- readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
- readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
- readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
- readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
- readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
- readonly COMPILE_STATUS: 0x8B81;
- readonly LOW_FLOAT: 0x8DF0;
- readonly MEDIUM_FLOAT: 0x8DF1;
- readonly HIGH_FLOAT: 0x8DF2;
- readonly LOW_INT: 0x8DF3;
- readonly MEDIUM_INT: 0x8DF4;
- readonly HIGH_INT: 0x8DF5;
- readonly FRAMEBUFFER: 0x8D40;
- readonly RENDERBUFFER: 0x8D41;
- readonly RGBA4: 0x8056;
- readonly RGB5_A1: 0x8057;
- readonly RGB565: 0x8D62;
- readonly DEPTH_COMPONENT16: 0x81A5;
- readonly STENCIL_INDEX8: 0x8D48;
- readonly DEPTH_STENCIL: 0x84F9;
- readonly RENDERBUFFER_WIDTH: 0x8D42;
- readonly RENDERBUFFER_HEIGHT: 0x8D43;
- readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
- readonly RENDERBUFFER_RED_SIZE: 0x8D50;
- readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
- readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
- readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
- readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
- readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
- readonly COLOR_ATTACHMENT0: 0x8CE0;
- readonly DEPTH_ATTACHMENT: 0x8D00;
- readonly STENCIL_ATTACHMENT: 0x8D20;
- readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
- readonly NONE: 0;
- readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
- readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
- readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
- readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
- readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
- readonly FRAMEBUFFER_BINDING: 0x8CA6;
- readonly RENDERBUFFER_BINDING: 0x8CA7;
- readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
- readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
- readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
- readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
- readonly CONTEXT_LOST_WEBGL: 0x9242;
- readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
- readonly BROWSER_DEFAULT_WEBGL: 0x9244;
- };
- interface WebGL2RenderingContextBase {
- beginQuery(target: GLenum, query: WebGLQuery): void;
- beginTransformFeedback(primitiveMode: GLenum): void;
- bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
- bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
- bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
- bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
- bindVertexArray(array: WebGLVertexArrayObject | null): void;
- blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
- clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
- clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
- clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
- clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
- clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
- compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
- compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
- compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
- compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
- copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
- copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
- createQuery(): WebGLQuery | null;
- createSampler(): WebGLSampler | null;
- createTransformFeedback(): WebGLTransformFeedback | null;
- createVertexArray(): WebGLVertexArrayObject | null;
- deleteQuery(query: WebGLQuery | null): void;
- deleteSampler(sampler: WebGLSampler | null): void;
- deleteSync(sync: WebGLSync | null): void;
- deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
- deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
- drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
- drawBuffers(buffers: GLenum[]): void;
- drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
- drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
- endQuery(target: GLenum): void;
- endTransformFeedback(): void;
- fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
- framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
- getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
- getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
- getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
- getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
- getFragDataLocation(program: WebGLProgram, name: string): GLint;
- getIndexedParameter(target: GLenum, index: GLuint): any;
- getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
- getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
- getQueryParameter(query: WebGLQuery, pname: GLenum): any;
- getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
- getSyncParameter(sync: WebGLSync, pname: GLenum): any;
- getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
- getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
- getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
- invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
- invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
- isQuery(query: WebGLQuery | null): GLboolean;
- isSampler(sampler: WebGLSampler | null): GLboolean;
- isSync(sync: WebGLSync | null): GLboolean;
- isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
- isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
- pauseTransformFeedback(): void;
- readBuffer(src: GLenum): void;
- renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
- resumeTransformFeedback(): void;
- samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
- samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
- texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
- texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
- texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
- texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
- texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
- texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
- texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
- texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
- texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
- transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
- uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
- uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
- uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
- uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
- uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
- uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
- vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
- vertexAttribI4iv(index: GLuint, values: Int32List): void;
- vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
- vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
- vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
- waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
- readonly READ_BUFFER: 0x0C02;
- readonly UNPACK_ROW_LENGTH: 0x0CF2;
- readonly UNPACK_SKIP_ROWS: 0x0CF3;
- readonly UNPACK_SKIP_PIXELS: 0x0CF4;
- readonly PACK_ROW_LENGTH: 0x0D02;
- readonly PACK_SKIP_ROWS: 0x0D03;
- readonly PACK_SKIP_PIXELS: 0x0D04;
- readonly COLOR: 0x1800;
- readonly DEPTH: 0x1801;
- readonly STENCIL: 0x1802;
- readonly RED: 0x1903;
- readonly RGB8: 0x8051;
- readonly RGBA8: 0x8058;
- readonly RGB10_A2: 0x8059;
- readonly TEXTURE_BINDING_3D: 0x806A;
- readonly UNPACK_SKIP_IMAGES: 0x806D;
- readonly UNPACK_IMAGE_HEIGHT: 0x806E;
- readonly TEXTURE_3D: 0x806F;
- readonly TEXTURE_WRAP_R: 0x8072;
- readonly MAX_3D_TEXTURE_SIZE: 0x8073;
- readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
- readonly MAX_ELEMENTS_VERTICES: 0x80E8;
- readonly MAX_ELEMENTS_INDICES: 0x80E9;
- readonly TEXTURE_MIN_LOD: 0x813A;
- readonly TEXTURE_MAX_LOD: 0x813B;
- readonly TEXTURE_BASE_LEVEL: 0x813C;
- readonly TEXTURE_MAX_LEVEL: 0x813D;
- readonly MIN: 0x8007;
- readonly MAX: 0x8008;
- readonly DEPTH_COMPONENT24: 0x81A6;
- readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
- readonly TEXTURE_COMPARE_MODE: 0x884C;
- readonly TEXTURE_COMPARE_FUNC: 0x884D;
- readonly CURRENT_QUERY: 0x8865;
- readonly QUERY_RESULT: 0x8866;
- readonly QUERY_RESULT_AVAILABLE: 0x8867;
- readonly STREAM_READ: 0x88E1;
- readonly STREAM_COPY: 0x88E2;
- readonly STATIC_READ: 0x88E5;
- readonly STATIC_COPY: 0x88E6;
- readonly DYNAMIC_READ: 0x88E9;
- readonly DYNAMIC_COPY: 0x88EA;
- readonly MAX_DRAW_BUFFERS: 0x8824;
- readonly DRAW_BUFFER0: 0x8825;
- readonly DRAW_BUFFER1: 0x8826;
- readonly DRAW_BUFFER2: 0x8827;
- readonly DRAW_BUFFER3: 0x8828;
- readonly DRAW_BUFFER4: 0x8829;
- readonly DRAW_BUFFER5: 0x882A;
- readonly DRAW_BUFFER6: 0x882B;
- readonly DRAW_BUFFER7: 0x882C;
- readonly DRAW_BUFFER8: 0x882D;
- readonly DRAW_BUFFER9: 0x882E;
- readonly DRAW_BUFFER10: 0x882F;
- readonly DRAW_BUFFER11: 0x8830;
- readonly DRAW_BUFFER12: 0x8831;
- readonly DRAW_BUFFER13: 0x8832;
- readonly DRAW_BUFFER14: 0x8833;
- readonly DRAW_BUFFER15: 0x8834;
- readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
- readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
- readonly SAMPLER_3D: 0x8B5F;
- readonly SAMPLER_2D_SHADOW: 0x8B62;
- readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
- readonly PIXEL_PACK_BUFFER: 0x88EB;
- readonly PIXEL_UNPACK_BUFFER: 0x88EC;
- readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
- readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
- readonly FLOAT_MAT2x3: 0x8B65;
- readonly FLOAT_MAT2x4: 0x8B66;
- readonly FLOAT_MAT3x2: 0x8B67;
- readonly FLOAT_MAT3x4: 0x8B68;
- readonly FLOAT_MAT4x2: 0x8B69;
- readonly FLOAT_MAT4x3: 0x8B6A;
- readonly SRGB: 0x8C40;
- readonly SRGB8: 0x8C41;
- readonly SRGB8_ALPHA8: 0x8C43;
- readonly COMPARE_REF_TO_TEXTURE: 0x884E;
- readonly RGBA32F: 0x8814;
- readonly RGB32F: 0x8815;
- readonly RGBA16F: 0x881A;
- readonly RGB16F: 0x881B;
- readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
- readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
- readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
- readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
- readonly MAX_VARYING_COMPONENTS: 0x8B4B;
- readonly TEXTURE_2D_ARRAY: 0x8C1A;
- readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
- readonly R11F_G11F_B10F: 0x8C3A;
- readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
- readonly RGB9_E5: 0x8C3D;
- readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
- readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
- readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
- readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
- readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
- readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
- readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
- readonly RASTERIZER_DISCARD: 0x8C89;
- readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
- readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
- readonly INTERLEAVED_ATTRIBS: 0x8C8C;
- readonly SEPARATE_ATTRIBS: 0x8C8D;
- readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
- readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
- readonly RGBA32UI: 0x8D70;
- readonly RGB32UI: 0x8D71;
- readonly RGBA16UI: 0x8D76;
- readonly RGB16UI: 0x8D77;
- readonly RGBA8UI: 0x8D7C;
- readonly RGB8UI: 0x8D7D;
- readonly RGBA32I: 0x8D82;
- readonly RGB32I: 0x8D83;
- readonly RGBA16I: 0x8D88;
- readonly RGB16I: 0x8D89;
- readonly RGBA8I: 0x8D8E;
- readonly RGB8I: 0x8D8F;
- readonly RED_INTEGER: 0x8D94;
- readonly RGB_INTEGER: 0x8D98;
- readonly RGBA_INTEGER: 0x8D99;
- readonly SAMPLER_2D_ARRAY: 0x8DC1;
- readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
- readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
- readonly UNSIGNED_INT_VEC2: 0x8DC6;
- readonly UNSIGNED_INT_VEC3: 0x8DC7;
- readonly UNSIGNED_INT_VEC4: 0x8DC8;
- readonly INT_SAMPLER_2D: 0x8DCA;
- readonly INT_SAMPLER_3D: 0x8DCB;
- readonly INT_SAMPLER_CUBE: 0x8DCC;
- readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
- readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
- readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
- readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
- readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
- readonly DEPTH_COMPONENT32F: 0x8CAC;
- readonly DEPTH32F_STENCIL8: 0x8CAD;
- readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
- readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
- readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
- readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
- readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
- readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
- readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
- readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
- readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
- readonly FRAMEBUFFER_DEFAULT: 0x8218;
- readonly UNSIGNED_INT_24_8: 0x84FA;
- readonly DEPTH24_STENCIL8: 0x88F0;
- readonly UNSIGNED_NORMALIZED: 0x8C17;
- readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
- readonly READ_FRAMEBUFFER: 0x8CA8;
- readonly DRAW_FRAMEBUFFER: 0x8CA9;
- readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
- readonly RENDERBUFFER_SAMPLES: 0x8CAB;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
- readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
- readonly COLOR_ATTACHMENT1: 0x8CE1;
- readonly COLOR_ATTACHMENT2: 0x8CE2;
- readonly COLOR_ATTACHMENT3: 0x8CE3;
- readonly COLOR_ATTACHMENT4: 0x8CE4;
- readonly COLOR_ATTACHMENT5: 0x8CE5;
- readonly COLOR_ATTACHMENT6: 0x8CE6;
- readonly COLOR_ATTACHMENT7: 0x8CE7;
- readonly COLOR_ATTACHMENT8: 0x8CE8;
- readonly COLOR_ATTACHMENT9: 0x8CE9;
- readonly COLOR_ATTACHMENT10: 0x8CEA;
- readonly COLOR_ATTACHMENT11: 0x8CEB;
- readonly COLOR_ATTACHMENT12: 0x8CEC;
- readonly COLOR_ATTACHMENT13: 0x8CED;
- readonly COLOR_ATTACHMENT14: 0x8CEE;
- readonly COLOR_ATTACHMENT15: 0x8CEF;
- readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
- readonly MAX_SAMPLES: 0x8D57;
- readonly HALF_FLOAT: 0x140B;
- readonly RG: 0x8227;
- readonly RG_INTEGER: 0x8228;
- readonly R8: 0x8229;
- readonly RG8: 0x822B;
- readonly R16F: 0x822D;
- readonly R32F: 0x822E;
- readonly RG16F: 0x822F;
- readonly RG32F: 0x8230;
- readonly R8I: 0x8231;
- readonly R8UI: 0x8232;
- readonly R16I: 0x8233;
- readonly R16UI: 0x8234;
- readonly R32I: 0x8235;
- readonly R32UI: 0x8236;
- readonly RG8I: 0x8237;
- readonly RG8UI: 0x8238;
- readonly RG16I: 0x8239;
- readonly RG16UI: 0x823A;
- readonly RG32I: 0x823B;
- readonly RG32UI: 0x823C;
- readonly VERTEX_ARRAY_BINDING: 0x85B5;
- readonly R8_SNORM: 0x8F94;
- readonly RG8_SNORM: 0x8F95;
- readonly RGB8_SNORM: 0x8F96;
- readonly RGBA8_SNORM: 0x8F97;
- readonly SIGNED_NORMALIZED: 0x8F9C;
- readonly COPY_READ_BUFFER: 0x8F36;
- readonly COPY_WRITE_BUFFER: 0x8F37;
- readonly COPY_READ_BUFFER_BINDING: 0x8F36;
- readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
- readonly UNIFORM_BUFFER: 0x8A11;
- readonly UNIFORM_BUFFER_BINDING: 0x8A28;
- readonly UNIFORM_BUFFER_START: 0x8A29;
- readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
- readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
- readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
- readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
- readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
- readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
- readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
- readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
- readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
- readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
- readonly UNIFORM_TYPE: 0x8A37;
- readonly UNIFORM_SIZE: 0x8A38;
- readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
- readonly UNIFORM_OFFSET: 0x8A3B;
- readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
- readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
- readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
- readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
- readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
- readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
- readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
- readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
- readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
- readonly INVALID_INDEX: 0xFFFFFFFF;
- readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
- readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
- readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
- readonly OBJECT_TYPE: 0x9112;
- readonly SYNC_CONDITION: 0x9113;
- readonly SYNC_STATUS: 0x9114;
- readonly SYNC_FLAGS: 0x9115;
- readonly SYNC_FENCE: 0x9116;
- readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
- readonly UNSIGNALED: 0x9118;
- readonly SIGNALED: 0x9119;
- readonly ALREADY_SIGNALED: 0x911A;
- readonly TIMEOUT_EXPIRED: 0x911B;
- readonly CONDITION_SATISFIED: 0x911C;
- readonly WAIT_FAILED: 0x911D;
- readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
- readonly ANY_SAMPLES_PASSED: 0x8C2F;
- readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
- readonly SAMPLER_BINDING: 0x8919;
- readonly RGB10_A2UI: 0x906F;
- readonly INT_2_10_10_10_REV: 0x8D9F;
- readonly TRANSFORM_FEEDBACK: 0x8E22;
- readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
- readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
- readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
- readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
- readonly MAX_ELEMENT_INDEX: 0x8D6B;
- readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
- readonly TIMEOUT_IGNORED: -1;
- readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
- }
- interface WebGL2RenderingContextOverloads {
- bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
- bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
- bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
- bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
- bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
- compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
- compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
- compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
- compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
- readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
- readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
- readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
- uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
- }
- /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
- interface WebGLActiveInfo {
- readonly name: string;
- readonly size: GLint;
- readonly type: GLenum;
- }
- declare var WebGLActiveInfo: {
- prototype: WebGLActiveInfo;
- new(): WebGLActiveInfo;
- };
- /** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
- interface WebGLBuffer {
- }
- declare var WebGLBuffer: {
- prototype: WebGLBuffer;
- new(): WebGLBuffer;
- };
- /** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
- interface WebGLContextEvent extends Event {
- readonly statusMessage: string;
- }
- declare var WebGLContextEvent: {
- prototype: WebGLContextEvent;
- new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
- };
- /** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
- interface WebGLFramebuffer {
- }
- declare var WebGLFramebuffer: {
- prototype: WebGLFramebuffer;
- new(): WebGLFramebuffer;
- };
- /** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
- interface WebGLProgram {
- }
- declare var WebGLProgram: {
- prototype: WebGLProgram;
- new(): WebGLProgram;
- };
- interface WebGLQuery {
- }
- declare var WebGLQuery: {
- prototype: WebGLQuery;
- new(): WebGLQuery;
- };
- /** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
- interface WebGLRenderbuffer {
- }
- declare var WebGLRenderbuffer: {
- prototype: WebGLRenderbuffer;
- new(): WebGLRenderbuffer;
- };
- /** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
- interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
- }
- declare var WebGLRenderingContext: {
- prototype: WebGLRenderingContext;
- new(): WebGLRenderingContext;
- readonly DEPTH_BUFFER_BIT: 0x00000100;
- readonly STENCIL_BUFFER_BIT: 0x00000400;
- readonly COLOR_BUFFER_BIT: 0x00004000;
- readonly POINTS: 0x0000;
- readonly LINES: 0x0001;
- readonly LINE_LOOP: 0x0002;
- readonly LINE_STRIP: 0x0003;
- readonly TRIANGLES: 0x0004;
- readonly TRIANGLE_STRIP: 0x0005;
- readonly TRIANGLE_FAN: 0x0006;
- readonly ZERO: 0;
- readonly ONE: 1;
- readonly SRC_COLOR: 0x0300;
- readonly ONE_MINUS_SRC_COLOR: 0x0301;
- readonly SRC_ALPHA: 0x0302;
- readonly ONE_MINUS_SRC_ALPHA: 0x0303;
- readonly DST_ALPHA: 0x0304;
- readonly ONE_MINUS_DST_ALPHA: 0x0305;
- readonly DST_COLOR: 0x0306;
- readonly ONE_MINUS_DST_COLOR: 0x0307;
- readonly SRC_ALPHA_SATURATE: 0x0308;
- readonly FUNC_ADD: 0x8006;
- readonly BLEND_EQUATION: 0x8009;
- readonly BLEND_EQUATION_RGB: 0x8009;
- readonly BLEND_EQUATION_ALPHA: 0x883D;
- readonly FUNC_SUBTRACT: 0x800A;
- readonly FUNC_REVERSE_SUBTRACT: 0x800B;
- readonly BLEND_DST_RGB: 0x80C8;
- readonly BLEND_SRC_RGB: 0x80C9;
- readonly BLEND_DST_ALPHA: 0x80CA;
- readonly BLEND_SRC_ALPHA: 0x80CB;
- readonly CONSTANT_COLOR: 0x8001;
- readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
- readonly CONSTANT_ALPHA: 0x8003;
- readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
- readonly BLEND_COLOR: 0x8005;
- readonly ARRAY_BUFFER: 0x8892;
- readonly ELEMENT_ARRAY_BUFFER: 0x8893;
- readonly ARRAY_BUFFER_BINDING: 0x8894;
- readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
- readonly STREAM_DRAW: 0x88E0;
- readonly STATIC_DRAW: 0x88E4;
- readonly DYNAMIC_DRAW: 0x88E8;
- readonly BUFFER_SIZE: 0x8764;
- readonly BUFFER_USAGE: 0x8765;
- readonly CURRENT_VERTEX_ATTRIB: 0x8626;
- readonly FRONT: 0x0404;
- readonly BACK: 0x0405;
- readonly FRONT_AND_BACK: 0x0408;
- readonly CULL_FACE: 0x0B44;
- readonly BLEND: 0x0BE2;
- readonly DITHER: 0x0BD0;
- readonly STENCIL_TEST: 0x0B90;
- readonly DEPTH_TEST: 0x0B71;
- readonly SCISSOR_TEST: 0x0C11;
- readonly POLYGON_OFFSET_FILL: 0x8037;
- readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
- readonly SAMPLE_COVERAGE: 0x80A0;
- readonly NO_ERROR: 0;
- readonly INVALID_ENUM: 0x0500;
- readonly INVALID_VALUE: 0x0501;
- readonly INVALID_OPERATION: 0x0502;
- readonly OUT_OF_MEMORY: 0x0505;
- readonly CW: 0x0900;
- readonly CCW: 0x0901;
- readonly LINE_WIDTH: 0x0B21;
- readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
- readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
- readonly CULL_FACE_MODE: 0x0B45;
- readonly FRONT_FACE: 0x0B46;
- readonly DEPTH_RANGE: 0x0B70;
- readonly DEPTH_WRITEMASK: 0x0B72;
- readonly DEPTH_CLEAR_VALUE: 0x0B73;
- readonly DEPTH_FUNC: 0x0B74;
- readonly STENCIL_CLEAR_VALUE: 0x0B91;
- readonly STENCIL_FUNC: 0x0B92;
- readonly STENCIL_FAIL: 0x0B94;
- readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
- readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
- readonly STENCIL_REF: 0x0B97;
- readonly STENCIL_VALUE_MASK: 0x0B93;
- readonly STENCIL_WRITEMASK: 0x0B98;
- readonly STENCIL_BACK_FUNC: 0x8800;
- readonly STENCIL_BACK_FAIL: 0x8801;
- readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
- readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
- readonly STENCIL_BACK_REF: 0x8CA3;
- readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
- readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
- readonly VIEWPORT: 0x0BA2;
- readonly SCISSOR_BOX: 0x0C10;
- readonly COLOR_CLEAR_VALUE: 0x0C22;
- readonly COLOR_WRITEMASK: 0x0C23;
- readonly UNPACK_ALIGNMENT: 0x0CF5;
- readonly PACK_ALIGNMENT: 0x0D05;
- readonly MAX_TEXTURE_SIZE: 0x0D33;
- readonly MAX_VIEWPORT_DIMS: 0x0D3A;
- readonly SUBPIXEL_BITS: 0x0D50;
- readonly RED_BITS: 0x0D52;
- readonly GREEN_BITS: 0x0D53;
- readonly BLUE_BITS: 0x0D54;
- readonly ALPHA_BITS: 0x0D55;
- readonly DEPTH_BITS: 0x0D56;
- readonly STENCIL_BITS: 0x0D57;
- readonly POLYGON_OFFSET_UNITS: 0x2A00;
- readonly POLYGON_OFFSET_FACTOR: 0x8038;
- readonly TEXTURE_BINDING_2D: 0x8069;
- readonly SAMPLE_BUFFERS: 0x80A8;
- readonly SAMPLES: 0x80A9;
- readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
- readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
- readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
- readonly DONT_CARE: 0x1100;
- readonly FASTEST: 0x1101;
- readonly NICEST: 0x1102;
- readonly GENERATE_MIPMAP_HINT: 0x8192;
- readonly BYTE: 0x1400;
- readonly UNSIGNED_BYTE: 0x1401;
- readonly SHORT: 0x1402;
- readonly UNSIGNED_SHORT: 0x1403;
- readonly INT: 0x1404;
- readonly UNSIGNED_INT: 0x1405;
- readonly FLOAT: 0x1406;
- readonly DEPTH_COMPONENT: 0x1902;
- readonly ALPHA: 0x1906;
- readonly RGB: 0x1907;
- readonly RGBA: 0x1908;
- readonly LUMINANCE: 0x1909;
- readonly LUMINANCE_ALPHA: 0x190A;
- readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
- readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
- readonly UNSIGNED_SHORT_5_6_5: 0x8363;
- readonly FRAGMENT_SHADER: 0x8B30;
- readonly VERTEX_SHADER: 0x8B31;
- readonly MAX_VERTEX_ATTRIBS: 0x8869;
- readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
- readonly MAX_VARYING_VECTORS: 0x8DFC;
- readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
- readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
- readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
- readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
- readonly SHADER_TYPE: 0x8B4F;
- readonly DELETE_STATUS: 0x8B80;
- readonly LINK_STATUS: 0x8B82;
- readonly VALIDATE_STATUS: 0x8B83;
- readonly ATTACHED_SHADERS: 0x8B85;
- readonly ACTIVE_UNIFORMS: 0x8B86;
- readonly ACTIVE_ATTRIBUTES: 0x8B89;
- readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
- readonly CURRENT_PROGRAM: 0x8B8D;
- readonly NEVER: 0x0200;
- readonly LESS: 0x0201;
- readonly EQUAL: 0x0202;
- readonly LEQUAL: 0x0203;
- readonly GREATER: 0x0204;
- readonly NOTEQUAL: 0x0205;
- readonly GEQUAL: 0x0206;
- readonly ALWAYS: 0x0207;
- readonly KEEP: 0x1E00;
- readonly REPLACE: 0x1E01;
- readonly INCR: 0x1E02;
- readonly DECR: 0x1E03;
- readonly INVERT: 0x150A;
- readonly INCR_WRAP: 0x8507;
- readonly DECR_WRAP: 0x8508;
- readonly VENDOR: 0x1F00;
- readonly RENDERER: 0x1F01;
- readonly VERSION: 0x1F02;
- readonly NEAREST: 0x2600;
- readonly LINEAR: 0x2601;
- readonly NEAREST_MIPMAP_NEAREST: 0x2700;
- readonly LINEAR_MIPMAP_NEAREST: 0x2701;
- readonly NEAREST_MIPMAP_LINEAR: 0x2702;
- readonly LINEAR_MIPMAP_LINEAR: 0x2703;
- readonly TEXTURE_MAG_FILTER: 0x2800;
- readonly TEXTURE_MIN_FILTER: 0x2801;
- readonly TEXTURE_WRAP_S: 0x2802;
- readonly TEXTURE_WRAP_T: 0x2803;
- readonly TEXTURE_2D: 0x0DE1;
- readonly TEXTURE: 0x1702;
- readonly TEXTURE_CUBE_MAP: 0x8513;
- readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
- readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
- readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
- readonly TEXTURE0: 0x84C0;
- readonly TEXTURE1: 0x84C1;
- readonly TEXTURE2: 0x84C2;
- readonly TEXTURE3: 0x84C3;
- readonly TEXTURE4: 0x84C4;
- readonly TEXTURE5: 0x84C5;
- readonly TEXTURE6: 0x84C6;
- readonly TEXTURE7: 0x84C7;
- readonly TEXTURE8: 0x84C8;
- readonly TEXTURE9: 0x84C9;
- readonly TEXTURE10: 0x84CA;
- readonly TEXTURE11: 0x84CB;
- readonly TEXTURE12: 0x84CC;
- readonly TEXTURE13: 0x84CD;
- readonly TEXTURE14: 0x84CE;
- readonly TEXTURE15: 0x84CF;
- readonly TEXTURE16: 0x84D0;
- readonly TEXTURE17: 0x84D1;
- readonly TEXTURE18: 0x84D2;
- readonly TEXTURE19: 0x84D3;
- readonly TEXTURE20: 0x84D4;
- readonly TEXTURE21: 0x84D5;
- readonly TEXTURE22: 0x84D6;
- readonly TEXTURE23: 0x84D7;
- readonly TEXTURE24: 0x84D8;
- readonly TEXTURE25: 0x84D9;
- readonly TEXTURE26: 0x84DA;
- readonly TEXTURE27: 0x84DB;
- readonly TEXTURE28: 0x84DC;
- readonly TEXTURE29: 0x84DD;
- readonly TEXTURE30: 0x84DE;
- readonly TEXTURE31: 0x84DF;
- readonly ACTIVE_TEXTURE: 0x84E0;
- readonly REPEAT: 0x2901;
- readonly CLAMP_TO_EDGE: 0x812F;
- readonly MIRRORED_REPEAT: 0x8370;
- readonly FLOAT_VEC2: 0x8B50;
- readonly FLOAT_VEC3: 0x8B51;
- readonly FLOAT_VEC4: 0x8B52;
- readonly INT_VEC2: 0x8B53;
- readonly INT_VEC3: 0x8B54;
- readonly INT_VEC4: 0x8B55;
- readonly BOOL: 0x8B56;
- readonly BOOL_VEC2: 0x8B57;
- readonly BOOL_VEC3: 0x8B58;
- readonly BOOL_VEC4: 0x8B59;
- readonly FLOAT_MAT2: 0x8B5A;
- readonly FLOAT_MAT3: 0x8B5B;
- readonly FLOAT_MAT4: 0x8B5C;
- readonly SAMPLER_2D: 0x8B5E;
- readonly SAMPLER_CUBE: 0x8B60;
- readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
- readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
- readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
- readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
- readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
- readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
- readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
- readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
- readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
- readonly COMPILE_STATUS: 0x8B81;
- readonly LOW_FLOAT: 0x8DF0;
- readonly MEDIUM_FLOAT: 0x8DF1;
- readonly HIGH_FLOAT: 0x8DF2;
- readonly LOW_INT: 0x8DF3;
- readonly MEDIUM_INT: 0x8DF4;
- readonly HIGH_INT: 0x8DF5;
- readonly FRAMEBUFFER: 0x8D40;
- readonly RENDERBUFFER: 0x8D41;
- readonly RGBA4: 0x8056;
- readonly RGB5_A1: 0x8057;
- readonly RGB565: 0x8D62;
- readonly DEPTH_COMPONENT16: 0x81A5;
- readonly STENCIL_INDEX8: 0x8D48;
- readonly DEPTH_STENCIL: 0x84F9;
- readonly RENDERBUFFER_WIDTH: 0x8D42;
- readonly RENDERBUFFER_HEIGHT: 0x8D43;
- readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
- readonly RENDERBUFFER_RED_SIZE: 0x8D50;
- readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
- readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
- readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
- readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
- readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
- readonly COLOR_ATTACHMENT0: 0x8CE0;
- readonly DEPTH_ATTACHMENT: 0x8D00;
- readonly STENCIL_ATTACHMENT: 0x8D20;
- readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
- readonly NONE: 0;
- readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
- readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
- readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
- readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
- readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
- readonly FRAMEBUFFER_BINDING: 0x8CA6;
- readonly RENDERBUFFER_BINDING: 0x8CA7;
- readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
- readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
- readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
- readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
- readonly CONTEXT_LOST_WEBGL: 0x9242;
- readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
- readonly BROWSER_DEFAULT_WEBGL: 0x9244;
- };
- interface WebGLRenderingContextBase {
- readonly drawingBufferHeight: GLsizei;
- readonly drawingBufferWidth: GLsizei;
- activeTexture(texture: GLenum): void;
- attachShader(program: WebGLProgram, shader: WebGLShader): void;
- bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
- bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
- bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
- bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
- bindTexture(target: GLenum, texture: WebGLTexture | null): void;
- blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
- blendEquation(mode: GLenum): void;
- blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
- blendFunc(sfactor: GLenum, dfactor: GLenum): void;
- blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
- checkFramebufferStatus(target: GLenum): GLenum;
- clear(mask: GLbitfield): void;
- clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
- clearDepth(depth: GLclampf): void;
- clearStencil(s: GLint): void;
- colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
- compileShader(shader: WebGLShader): void;
- copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
- copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
- createBuffer(): WebGLBuffer | null;
- createFramebuffer(): WebGLFramebuffer | null;
- createProgram(): WebGLProgram | null;
- createRenderbuffer(): WebGLRenderbuffer | null;
- createShader(type: GLenum): WebGLShader | null;
- createTexture(): WebGLTexture | null;
- cullFace(mode: GLenum): void;
- deleteBuffer(buffer: WebGLBuffer | null): void;
- deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
- deleteProgram(program: WebGLProgram | null): void;
- deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
- deleteShader(shader: WebGLShader | null): void;
- deleteTexture(texture: WebGLTexture | null): void;
- depthFunc(func: GLenum): void;
- depthMask(flag: GLboolean): void;
- depthRange(zNear: GLclampf, zFar: GLclampf): void;
- detachShader(program: WebGLProgram, shader: WebGLShader): void;
- disable(cap: GLenum): void;
- disableVertexAttribArray(index: GLuint): void;
- drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
- drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
- enable(cap: GLenum): void;
- enableVertexAttribArray(index: GLuint): void;
- finish(): void;
- flush(): void;
- framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
- framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
- frontFace(mode: GLenum): void;
- generateMipmap(target: GLenum): void;
- getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
- getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
- getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
- getAttribLocation(program: WebGLProgram, name: string): GLint;
- getBufferParameter(target: GLenum, pname: GLenum): any;
- getContextAttributes(): WebGLContextAttributes | null;
- getError(): GLenum;
- getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
- getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
- getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
- getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
- getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
- getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
- getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
- getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
- getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
- getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
- getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
- getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
- getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
- getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
- getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
- getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
- getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
- getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
- getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
- getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
- getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
- getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
- getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
- getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
- getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
- getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
- getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
- getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
- getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
- getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
- getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
- getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
- getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
- getExtension(name: string): any;
- getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
- getParameter(pname: GLenum): any;
- getProgramInfoLog(program: WebGLProgram): string | null;
- getProgramParameter(program: WebGLProgram, pname: GLenum): any;
- getRenderbufferParameter(target: GLenum, pname: GLenum): any;
- getShaderInfoLog(shader: WebGLShader): string | null;
- getShaderParameter(shader: WebGLShader, pname: GLenum): any;
- getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
- getShaderSource(shader: WebGLShader): string | null;
- getSupportedExtensions(): string[] | null;
- getTexParameter(target: GLenum, pname: GLenum): any;
- getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
- getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
- getVertexAttrib(index: GLuint, pname: GLenum): any;
- getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
- hint(target: GLenum, mode: GLenum): void;
- isBuffer(buffer: WebGLBuffer | null): GLboolean;
- isContextLost(): boolean;
- isEnabled(cap: GLenum): GLboolean;
- isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
- isProgram(program: WebGLProgram | null): GLboolean;
- isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
- isShader(shader: WebGLShader | null): GLboolean;
- isTexture(texture: WebGLTexture | null): GLboolean;
- lineWidth(width: GLfloat): void;
- linkProgram(program: WebGLProgram): void;
- pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
- polygonOffset(factor: GLfloat, units: GLfloat): void;
- renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
- sampleCoverage(value: GLclampf, invert: GLboolean): void;
- scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
- shaderSource(shader: WebGLShader, source: string): void;
- stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
- stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
- stencilMask(mask: GLuint): void;
- stencilMaskSeparate(face: GLenum, mask: GLuint): void;
- stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
- stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
- texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
- texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
- uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
- uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
- uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
- uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
- uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
- uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
- uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
- uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
- useProgram(program: WebGLProgram | null): void;
- validateProgram(program: WebGLProgram): void;
- vertexAttrib1f(index: GLuint, x: GLfloat): void;
- vertexAttrib1fv(index: GLuint, values: Float32List): void;
- vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
- vertexAttrib2fv(index: GLuint, values: Float32List): void;
- vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
- vertexAttrib3fv(index: GLuint, values: Float32List): void;
- vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
- vertexAttrib4fv(index: GLuint, values: Float32List): void;
- vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
- viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
- readonly DEPTH_BUFFER_BIT: 0x00000100;
- readonly STENCIL_BUFFER_BIT: 0x00000400;
- readonly COLOR_BUFFER_BIT: 0x00004000;
- readonly POINTS: 0x0000;
- readonly LINES: 0x0001;
- readonly LINE_LOOP: 0x0002;
- readonly LINE_STRIP: 0x0003;
- readonly TRIANGLES: 0x0004;
- readonly TRIANGLE_STRIP: 0x0005;
- readonly TRIANGLE_FAN: 0x0006;
- readonly ZERO: 0;
- readonly ONE: 1;
- readonly SRC_COLOR: 0x0300;
- readonly ONE_MINUS_SRC_COLOR: 0x0301;
- readonly SRC_ALPHA: 0x0302;
- readonly ONE_MINUS_SRC_ALPHA: 0x0303;
- readonly DST_ALPHA: 0x0304;
- readonly ONE_MINUS_DST_ALPHA: 0x0305;
- readonly DST_COLOR: 0x0306;
- readonly ONE_MINUS_DST_COLOR: 0x0307;
- readonly SRC_ALPHA_SATURATE: 0x0308;
- readonly FUNC_ADD: 0x8006;
- readonly BLEND_EQUATION: 0x8009;
- readonly BLEND_EQUATION_RGB: 0x8009;
- readonly BLEND_EQUATION_ALPHA: 0x883D;
- readonly FUNC_SUBTRACT: 0x800A;
- readonly FUNC_REVERSE_SUBTRACT: 0x800B;
- readonly BLEND_DST_RGB: 0x80C8;
- readonly BLEND_SRC_RGB: 0x80C9;
- readonly BLEND_DST_ALPHA: 0x80CA;
- readonly BLEND_SRC_ALPHA: 0x80CB;
- readonly CONSTANT_COLOR: 0x8001;
- readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
- readonly CONSTANT_ALPHA: 0x8003;
- readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
- readonly BLEND_COLOR: 0x8005;
- readonly ARRAY_BUFFER: 0x8892;
- readonly ELEMENT_ARRAY_BUFFER: 0x8893;
- readonly ARRAY_BUFFER_BINDING: 0x8894;
- readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
- readonly STREAM_DRAW: 0x88E0;
- readonly STATIC_DRAW: 0x88E4;
- readonly DYNAMIC_DRAW: 0x88E8;
- readonly BUFFER_SIZE: 0x8764;
- readonly BUFFER_USAGE: 0x8765;
- readonly CURRENT_VERTEX_ATTRIB: 0x8626;
- readonly FRONT: 0x0404;
- readonly BACK: 0x0405;
- readonly FRONT_AND_BACK: 0x0408;
- readonly CULL_FACE: 0x0B44;
- readonly BLEND: 0x0BE2;
- readonly DITHER: 0x0BD0;
- readonly STENCIL_TEST: 0x0B90;
- readonly DEPTH_TEST: 0x0B71;
- readonly SCISSOR_TEST: 0x0C11;
- readonly POLYGON_OFFSET_FILL: 0x8037;
- readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
- readonly SAMPLE_COVERAGE: 0x80A0;
- readonly NO_ERROR: 0;
- readonly INVALID_ENUM: 0x0500;
- readonly INVALID_VALUE: 0x0501;
- readonly INVALID_OPERATION: 0x0502;
- readonly OUT_OF_MEMORY: 0x0505;
- readonly CW: 0x0900;
- readonly CCW: 0x0901;
- readonly LINE_WIDTH: 0x0B21;
- readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
- readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
- readonly CULL_FACE_MODE: 0x0B45;
- readonly FRONT_FACE: 0x0B46;
- readonly DEPTH_RANGE: 0x0B70;
- readonly DEPTH_WRITEMASK: 0x0B72;
- readonly DEPTH_CLEAR_VALUE: 0x0B73;
- readonly DEPTH_FUNC: 0x0B74;
- readonly STENCIL_CLEAR_VALUE: 0x0B91;
- readonly STENCIL_FUNC: 0x0B92;
- readonly STENCIL_FAIL: 0x0B94;
- readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
- readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
- readonly STENCIL_REF: 0x0B97;
- readonly STENCIL_VALUE_MASK: 0x0B93;
- readonly STENCIL_WRITEMASK: 0x0B98;
- readonly STENCIL_BACK_FUNC: 0x8800;
- readonly STENCIL_BACK_FAIL: 0x8801;
- readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
- readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
- readonly STENCIL_BACK_REF: 0x8CA3;
- readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
- readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
- readonly VIEWPORT: 0x0BA2;
- readonly SCISSOR_BOX: 0x0C10;
- readonly COLOR_CLEAR_VALUE: 0x0C22;
- readonly COLOR_WRITEMASK: 0x0C23;
- readonly UNPACK_ALIGNMENT: 0x0CF5;
- readonly PACK_ALIGNMENT: 0x0D05;
- readonly MAX_TEXTURE_SIZE: 0x0D33;
- readonly MAX_VIEWPORT_DIMS: 0x0D3A;
- readonly SUBPIXEL_BITS: 0x0D50;
- readonly RED_BITS: 0x0D52;
- readonly GREEN_BITS: 0x0D53;
- readonly BLUE_BITS: 0x0D54;
- readonly ALPHA_BITS: 0x0D55;
- readonly DEPTH_BITS: 0x0D56;
- readonly STENCIL_BITS: 0x0D57;
- readonly POLYGON_OFFSET_UNITS: 0x2A00;
- readonly POLYGON_OFFSET_FACTOR: 0x8038;
- readonly TEXTURE_BINDING_2D: 0x8069;
- readonly SAMPLE_BUFFERS: 0x80A8;
- readonly SAMPLES: 0x80A9;
- readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
- readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
- readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
- readonly DONT_CARE: 0x1100;
- readonly FASTEST: 0x1101;
- readonly NICEST: 0x1102;
- readonly GENERATE_MIPMAP_HINT: 0x8192;
- readonly BYTE: 0x1400;
- readonly UNSIGNED_BYTE: 0x1401;
- readonly SHORT: 0x1402;
- readonly UNSIGNED_SHORT: 0x1403;
- readonly INT: 0x1404;
- readonly UNSIGNED_INT: 0x1405;
- readonly FLOAT: 0x1406;
- readonly DEPTH_COMPONENT: 0x1902;
- readonly ALPHA: 0x1906;
- readonly RGB: 0x1907;
- readonly RGBA: 0x1908;
- readonly LUMINANCE: 0x1909;
- readonly LUMINANCE_ALPHA: 0x190A;
- readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
- readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
- readonly UNSIGNED_SHORT_5_6_5: 0x8363;
- readonly FRAGMENT_SHADER: 0x8B30;
- readonly VERTEX_SHADER: 0x8B31;
- readonly MAX_VERTEX_ATTRIBS: 0x8869;
- readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
- readonly MAX_VARYING_VECTORS: 0x8DFC;
- readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
- readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
- readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
- readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
- readonly SHADER_TYPE: 0x8B4F;
- readonly DELETE_STATUS: 0x8B80;
- readonly LINK_STATUS: 0x8B82;
- readonly VALIDATE_STATUS: 0x8B83;
- readonly ATTACHED_SHADERS: 0x8B85;
- readonly ACTIVE_UNIFORMS: 0x8B86;
- readonly ACTIVE_ATTRIBUTES: 0x8B89;
- readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
- readonly CURRENT_PROGRAM: 0x8B8D;
- readonly NEVER: 0x0200;
- readonly LESS: 0x0201;
- readonly EQUAL: 0x0202;
- readonly LEQUAL: 0x0203;
- readonly GREATER: 0x0204;
- readonly NOTEQUAL: 0x0205;
- readonly GEQUAL: 0x0206;
- readonly ALWAYS: 0x0207;
- readonly KEEP: 0x1E00;
- readonly REPLACE: 0x1E01;
- readonly INCR: 0x1E02;
- readonly DECR: 0x1E03;
- readonly INVERT: 0x150A;
- readonly INCR_WRAP: 0x8507;
- readonly DECR_WRAP: 0x8508;
- readonly VENDOR: 0x1F00;
- readonly RENDERER: 0x1F01;
- readonly VERSION: 0x1F02;
- readonly NEAREST: 0x2600;
- readonly LINEAR: 0x2601;
- readonly NEAREST_MIPMAP_NEAREST: 0x2700;
- readonly LINEAR_MIPMAP_NEAREST: 0x2701;
- readonly NEAREST_MIPMAP_LINEAR: 0x2702;
- readonly LINEAR_MIPMAP_LINEAR: 0x2703;
- readonly TEXTURE_MAG_FILTER: 0x2800;
- readonly TEXTURE_MIN_FILTER: 0x2801;
- readonly TEXTURE_WRAP_S: 0x2802;
- readonly TEXTURE_WRAP_T: 0x2803;
- readonly TEXTURE_2D: 0x0DE1;
- readonly TEXTURE: 0x1702;
- readonly TEXTURE_CUBE_MAP: 0x8513;
- readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
- readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
- readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
- readonly TEXTURE0: 0x84C0;
- readonly TEXTURE1: 0x84C1;
- readonly TEXTURE2: 0x84C2;
- readonly TEXTURE3: 0x84C3;
- readonly TEXTURE4: 0x84C4;
- readonly TEXTURE5: 0x84C5;
- readonly TEXTURE6: 0x84C6;
- readonly TEXTURE7: 0x84C7;
- readonly TEXTURE8: 0x84C8;
- readonly TEXTURE9: 0x84C9;
- readonly TEXTURE10: 0x84CA;
- readonly TEXTURE11: 0x84CB;
- readonly TEXTURE12: 0x84CC;
- readonly TEXTURE13: 0x84CD;
- readonly TEXTURE14: 0x84CE;
- readonly TEXTURE15: 0x84CF;
- readonly TEXTURE16: 0x84D0;
- readonly TEXTURE17: 0x84D1;
- readonly TEXTURE18: 0x84D2;
- readonly TEXTURE19: 0x84D3;
- readonly TEXTURE20: 0x84D4;
- readonly TEXTURE21: 0x84D5;
- readonly TEXTURE22: 0x84D6;
- readonly TEXTURE23: 0x84D7;
- readonly TEXTURE24: 0x84D8;
- readonly TEXTURE25: 0x84D9;
- readonly TEXTURE26: 0x84DA;
- readonly TEXTURE27: 0x84DB;
- readonly TEXTURE28: 0x84DC;
- readonly TEXTURE29: 0x84DD;
- readonly TEXTURE30: 0x84DE;
- readonly TEXTURE31: 0x84DF;
- readonly ACTIVE_TEXTURE: 0x84E0;
- readonly REPEAT: 0x2901;
- readonly CLAMP_TO_EDGE: 0x812F;
- readonly MIRRORED_REPEAT: 0x8370;
- readonly FLOAT_VEC2: 0x8B50;
- readonly FLOAT_VEC3: 0x8B51;
- readonly FLOAT_VEC4: 0x8B52;
- readonly INT_VEC2: 0x8B53;
- readonly INT_VEC3: 0x8B54;
- readonly INT_VEC4: 0x8B55;
- readonly BOOL: 0x8B56;
- readonly BOOL_VEC2: 0x8B57;
- readonly BOOL_VEC3: 0x8B58;
- readonly BOOL_VEC4: 0x8B59;
- readonly FLOAT_MAT2: 0x8B5A;
- readonly FLOAT_MAT3: 0x8B5B;
- readonly FLOAT_MAT4: 0x8B5C;
- readonly SAMPLER_2D: 0x8B5E;
- readonly SAMPLER_CUBE: 0x8B60;
- readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
- readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
- readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
- readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
- readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
- readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
- readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
- readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
- readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
- readonly COMPILE_STATUS: 0x8B81;
- readonly LOW_FLOAT: 0x8DF0;
- readonly MEDIUM_FLOAT: 0x8DF1;
- readonly HIGH_FLOAT: 0x8DF2;
- readonly LOW_INT: 0x8DF3;
- readonly MEDIUM_INT: 0x8DF4;
- readonly HIGH_INT: 0x8DF5;
- readonly FRAMEBUFFER: 0x8D40;
- readonly RENDERBUFFER: 0x8D41;
- readonly RGBA4: 0x8056;
- readonly RGB5_A1: 0x8057;
- readonly RGB565: 0x8D62;
- readonly DEPTH_COMPONENT16: 0x81A5;
- readonly STENCIL_INDEX8: 0x8D48;
- readonly DEPTH_STENCIL: 0x84F9;
- readonly RENDERBUFFER_WIDTH: 0x8D42;
- readonly RENDERBUFFER_HEIGHT: 0x8D43;
- readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
- readonly RENDERBUFFER_RED_SIZE: 0x8D50;
- readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
- readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
- readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
- readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
- readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
- readonly COLOR_ATTACHMENT0: 0x8CE0;
- readonly DEPTH_ATTACHMENT: 0x8D00;
- readonly STENCIL_ATTACHMENT: 0x8D20;
- readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
- readonly NONE: 0;
- readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
- readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
- readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
- readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
- readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
- readonly FRAMEBUFFER_BINDING: 0x8CA6;
- readonly RENDERBUFFER_BINDING: 0x8CA7;
- readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
- readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
- readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
- readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
- readonly CONTEXT_LOST_WEBGL: 0x9242;
- readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
- readonly BROWSER_DEFAULT_WEBGL: 0x9244;
- }
- interface WebGLRenderingContextOverloads {
- bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
- bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
- bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
- compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
- compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
- readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
- texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
- texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
- uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
- uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
- uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
- uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
- uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
- uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
- uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
- uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
- }
- interface WebGLSampler {
- }
- declare var WebGLSampler: {
- prototype: WebGLSampler;
- new(): WebGLSampler;
- };
- /** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
- interface WebGLShader {
- }
- declare var WebGLShader: {
- prototype: WebGLShader;
- new(): WebGLShader;
- };
- /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
- interface WebGLShaderPrecisionFormat {
- readonly precision: GLint;
- readonly rangeMax: GLint;
- readonly rangeMin: GLint;
- }
- declare var WebGLShaderPrecisionFormat: {
- prototype: WebGLShaderPrecisionFormat;
- new(): WebGLShaderPrecisionFormat;
- };
- interface WebGLSync {
- }
- declare var WebGLSync: {
- prototype: WebGLSync;
- new(): WebGLSync;
- };
- /** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
- interface WebGLTexture {
- }
- declare var WebGLTexture: {
- prototype: WebGLTexture;
- new(): WebGLTexture;
- };
- interface WebGLTransformFeedback {
- }
- declare var WebGLTransformFeedback: {
- prototype: WebGLTransformFeedback;
- new(): WebGLTransformFeedback;
- };
- /** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
- interface WebGLUniformLocation {
- }
- declare var WebGLUniformLocation: {
- prototype: WebGLUniformLocation;
- new(): WebGLUniformLocation;
- };
- interface WebGLVertexArrayObject {
- }
- declare var WebGLVertexArrayObject: {
- prototype: WebGLVertexArrayObject;
- new(): WebGLVertexArrayObject;
- };
- interface WebGLVertexArrayObjectOES {
- }
- interface WebSocketEventMap {
- "close": CloseEvent;
- "error": Event;
- "message": MessageEvent;
- "open": Event;
- }
- /** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
- interface WebSocket extends EventTarget {
- /**
- * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
- *
- * Can be set, to change how binary data is returned. The default is "blob".
- */
- binaryType: BinaryType;
- /**
- * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
- *
- * If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
- */
- readonly bufferedAmount: number;
- /** Returns the extensions selected by the server, if any. */
- readonly extensions: string;
- onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
- onerror: ((this: WebSocket, ev: Event) => any) | null;
- onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
- onopen: ((this: WebSocket, ev: Event) => any) | null;
- /** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */
- readonly protocol: string;
- /** Returns the state of the WebSocket object's connection. It can have the values described below. */
- readonly readyState: number;
- /** Returns the URL that was used to establish the WebSocket connection. */
- readonly url: string;
- /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
- close(code?: number, reason?: string): void;
- /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
- send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
- readonly CONNECTING: 0;
- readonly OPEN: 1;
- readonly CLOSING: 2;
- readonly CLOSED: 3;
- addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var WebSocket: {
- prototype: WebSocket;
- new(url: string | URL, protocols?: string | string[]): WebSocket;
- readonly CONNECTING: 0;
- readonly OPEN: 1;
- readonly CLOSING: 2;
- readonly CLOSED: 3;
- };
- /** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
- interface WindowClient extends Client {
- readonly focused: boolean;
- readonly visibilityState: DocumentVisibilityState;
- focus(): Promise<WindowClient>;
- navigate(url: string | URL): Promise<WindowClient | null>;
- }
- declare var WindowClient: {
- prototype: WindowClient;
- new(): WindowClient;
- };
- interface WindowOrWorkerGlobalScope {
- /** Available only in secure contexts. */
- readonly caches: CacheStorage;
- readonly crossOriginIsolated: boolean;
- readonly crypto: Crypto;
- readonly indexedDB: IDBFactory;
- readonly isSecureContext: boolean;
- readonly origin: string;
- readonly performance: Performance;
- atob(data: string): string;
- btoa(data: string): string;
- clearInterval(id: number | undefined): void;
- clearTimeout(id: number | undefined): void;
- createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
- createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
- fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
- queueMicrotask(callback: VoidFunction): void;
- reportError(e: any): void;
- setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
- setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
- structuredClone(value: any, options?: StructuredSerializeOptions): any;
- }
- interface WorkerEventMap extends AbstractWorkerEventMap {
- "message": MessageEvent;
- "messageerror": MessageEvent;
- }
- /** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
- interface Worker extends EventTarget, AbstractWorker {
- onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
- onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
- /** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
- postMessage(message: any, transfer: Transferable[]): void;
- postMessage(message: any, options?: StructuredSerializeOptions): void;
- /** Aborts worker's associated global environment. */
- terminate(): void;
- addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var Worker: {
- prototype: Worker;
- new(scriptURL: string | URL, options?: WorkerOptions): Worker;
- };
- interface WorkerGlobalScopeEventMap {
- "error": ErrorEvent;
- "languagechange": Event;
- "offline": Event;
- "online": Event;
- "rejectionhandled": PromiseRejectionEvent;
- "unhandledrejection": PromiseRejectionEvent;
- }
- /** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */
- interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
- /** Returns workerGlobal's WorkerLocation object. */
- readonly location: WorkerLocation;
- /** Returns workerGlobal's WorkerNavigator object. */
- readonly navigator: WorkerNavigator;
- onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
- onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
- onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
- ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
- onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
- onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
- /** Returns workerGlobal. */
- readonly self: WorkerGlobalScope & typeof globalThis;
- /** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
- importScripts(...urls: (string | URL)[]): void;
- addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var WorkerGlobalScope: {
- prototype: WorkerGlobalScope;
- new(): WorkerGlobalScope;
- };
- /** The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location. */
- interface WorkerLocation {
- readonly hash: string;
- readonly host: string;
- readonly hostname: string;
- readonly href: string;
- toString(): string;
- readonly origin: string;
- readonly pathname: string;
- readonly port: string;
- readonly protocol: string;
- readonly search: string;
- }
- declare var WorkerLocation: {
- prototype: WorkerLocation;
- new(): WorkerLocation;
- };
- /** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
- interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
- readonly mediaCapabilities: MediaCapabilities;
- }
- declare var WorkerNavigator: {
- prototype: WorkerNavigator;
- new(): WorkerNavigator;
- };
- /** This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
- interface WritableStream<W = any> {
- readonly locked: boolean;
- abort(reason?: any): Promise<void>;
- close(): Promise<void>;
- getWriter(): WritableStreamDefaultWriter<W>;
- }
- declare var WritableStream: {
- prototype: WritableStream;
- new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
- };
- /** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
- interface WritableStreamDefaultController {
- readonly signal: AbortSignal;
- error(e?: any): void;
- }
- declare var WritableStreamDefaultController: {
- prototype: WritableStreamDefaultController;
- new(): WritableStreamDefaultController;
- };
- /** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
- interface WritableStreamDefaultWriter<W = any> {
- readonly closed: Promise<undefined>;
- readonly desiredSize: number | null;
- readonly ready: Promise<undefined>;
- abort(reason?: any): Promise<void>;
- close(): Promise<void>;
- releaseLock(): void;
- write(chunk?: W): Promise<void>;
- }
- declare var WritableStreamDefaultWriter: {
- prototype: WritableStreamDefaultWriter;
- new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
- };
- interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
- "readystatechange": Event;
- }
- /** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
- interface XMLHttpRequest extends XMLHttpRequestEventTarget {
- onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
- /** Returns client's state. */
- readonly readyState: number;
- /** Returns the response body. */
- readonly response: any;
- /**
- * Returns response as text.
- *
- * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
- */
- readonly responseText: string;
- /**
- * Returns the response type.
- *
- * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
- *
- * When set: setting to "document" is ignored if current global object is not a Window object.
- *
- * When set: throws an "InvalidStateError" DOMException if state is loading or done.
- *
- * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
- */
- responseType: XMLHttpRequestResponseType;
- readonly responseURL: string;
- readonly status: number;
- readonly statusText: string;
- /**
- * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
- *
- * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
- */
- timeout: number;
- /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
- readonly upload: XMLHttpRequestUpload;
- /**
- * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
- *
- * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
- */
- withCredentials: boolean;
- /** Cancels any network activity. */
- abort(): void;
- getAllResponseHeaders(): string;
- getResponseHeader(name: string): string | null;
- /**
- * Sets the request method, request URL, and synchronous flag.
- *
- * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
- *
- * Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
- *
- * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
- */
- open(method: string, url: string | URL): void;
- open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
- /**
- * Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
- *
- * Throws an "InvalidStateError" DOMException if state is loading or done.
- */
- overrideMimeType(mime: string): void;
- /**
- * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
- *
- * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
- */
- send(body?: XMLHttpRequestBodyInit | null): void;
- /**
- * Combines a header in author request headers.
- *
- * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
- *
- * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
- */
- setRequestHeader(name: string, value: string): void;
- readonly UNSENT: 0;
- readonly OPENED: 1;
- readonly HEADERS_RECEIVED: 2;
- readonly LOADING: 3;
- readonly DONE: 4;
- addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var XMLHttpRequest: {
- prototype: XMLHttpRequest;
- new(): XMLHttpRequest;
- readonly UNSENT: 0;
- readonly OPENED: 1;
- readonly HEADERS_RECEIVED: 2;
- readonly LOADING: 3;
- readonly DONE: 4;
- };
- interface XMLHttpRequestEventTargetEventMap {
- "abort": ProgressEvent<XMLHttpRequestEventTarget>;
- "error": ProgressEvent<XMLHttpRequestEventTarget>;
- "load": ProgressEvent<XMLHttpRequestEventTarget>;
- "loadend": ProgressEvent<XMLHttpRequestEventTarget>;
- "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
- "progress": ProgressEvent<XMLHttpRequestEventTarget>;
- "timeout": ProgressEvent<XMLHttpRequestEventTarget>;
- }
- interface XMLHttpRequestEventTarget extends EventTarget {
- onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
- addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var XMLHttpRequestEventTarget: {
- prototype: XMLHttpRequestEventTarget;
- new(): XMLHttpRequestEventTarget;
- };
- interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
- addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- }
- declare var XMLHttpRequestUpload: {
- prototype: XMLHttpRequestUpload;
- new(): XMLHttpRequestUpload;
- };
- interface Console {
- assert(condition?: boolean, ...data: any[]): void;
- clear(): void;
- count(label?: string): void;
- countReset(label?: string): void;
- debug(...data: any[]): void;
- dir(item?: any, options?: any): void;
- dirxml(...data: any[]): void;
- error(...data: any[]): void;
- group(...data: any[]): void;
- groupCollapsed(...data: any[]): void;
- groupEnd(): void;
- info(...data: any[]): void;
- log(...data: any[]): void;
- table(tabularData?: any, properties?: string[]): void;
- time(label?: string): void;
- timeEnd(label?: string): void;
- timeLog(label?: string, ...data: any[]): void;
- timeStamp(label?: string): void;
- trace(...data: any[]): void;
- warn(...data: any[]): void;
- }
- declare var console: Console;
- declare namespace WebAssembly {
- interface CompileError extends Error {
- }
- var CompileError: {
- prototype: CompileError;
- new(message?: string): CompileError;
- (message?: string): CompileError;
- };
- interface Global {
- value: any;
- valueOf(): any;
- }
- var Global: {
- prototype: Global;
- new(descriptor: GlobalDescriptor, v?: any): Global;
- };
- interface Instance {
- readonly exports: Exports;
- }
- var Instance: {
- prototype: Instance;
- new(module: Module, importObject?: Imports): Instance;
- };
- interface LinkError extends Error {
- }
- var LinkError: {
- prototype: LinkError;
- new(message?: string): LinkError;
- (message?: string): LinkError;
- };
- interface Memory {
- readonly buffer: ArrayBuffer;
- grow(delta: number): number;
- }
- var Memory: {
- prototype: Memory;
- new(descriptor: MemoryDescriptor): Memory;
- };
- interface Module {
- }
- var Module: {
- prototype: Module;
- new(bytes: BufferSource): Module;
- customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
- exports(moduleObject: Module): ModuleExportDescriptor[];
- imports(moduleObject: Module): ModuleImportDescriptor[];
- };
- interface RuntimeError extends Error {
- }
- var RuntimeError: {
- prototype: RuntimeError;
- new(message?: string): RuntimeError;
- (message?: string): RuntimeError;
- };
- interface Table {
- readonly length: number;
- get(index: number): any;
- grow(delta: number, value?: any): number;
- set(index: number, value?: any): void;
- }
- var Table: {
- prototype: Table;
- new(descriptor: TableDescriptor, value?: any): Table;
- };
- interface GlobalDescriptor {
- mutable?: boolean;
- value: ValueType;
- }
- interface MemoryDescriptor {
- initial: number;
- maximum?: number;
- shared?: boolean;
- }
- interface ModuleExportDescriptor {
- kind: ImportExportKind;
- name: string;
- }
- interface ModuleImportDescriptor {
- kind: ImportExportKind;
- module: string;
- name: string;
- }
- interface TableDescriptor {
- element: TableKind;
- initial: number;
- maximum?: number;
- }
- interface WebAssemblyInstantiatedSource {
- instance: Instance;
- module: Module;
- }
- type ImportExportKind = "function" | "global" | "memory" | "table";
- type TableKind = "anyfunc" | "externref";
- type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
- type ExportValue = Function | Global | Memory | Table;
- type Exports = Record<string, ExportValue>;
- type ImportValue = ExportValue | number;
- type Imports = Record<string, ModuleImports>;
- type ModuleImports = Record<string, ImportValue>;
- function compile(bytes: BufferSource): Promise<Module>;
- function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
- function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
- function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
- function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
- function validate(bytes: BufferSource): boolean;
- }
- interface FrameRequestCallback {
- (time: DOMHighResTimeStamp): void;
- }
- interface LockGrantedCallback {
- (lock: Lock | null): any;
- }
- interface OnErrorEventHandlerNonNull {
- (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
- }
- interface PerformanceObserverCallback {
- (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
- }
- interface QueuingStrategySize<T = any> {
- (chunk: T): number;
- }
- interface TransformerFlushCallback<O> {
- (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
- }
- interface TransformerStartCallback<O> {
- (controller: TransformStreamDefaultController<O>): any;
- }
- interface TransformerTransformCallback<I, O> {
- (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
- }
- interface UnderlyingSinkAbortCallback {
- (reason?: any): void | PromiseLike<void>;
- }
- interface UnderlyingSinkCloseCallback {
- (): void | PromiseLike<void>;
- }
- interface UnderlyingSinkStartCallback {
- (controller: WritableStreamDefaultController): any;
- }
- interface UnderlyingSinkWriteCallback<W> {
- (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
- }
- interface UnderlyingSourceCancelCallback {
- (reason?: any): void | PromiseLike<void>;
- }
- interface UnderlyingSourcePullCallback<R> {
- (controller: ReadableStreamController<R>): void | PromiseLike<void>;
- }
- interface UnderlyingSourceStartCallback<R> {
- (controller: ReadableStreamController<R>): any;
- }
- interface VoidFunction {
- (): void;
- }
- /** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
- declare var name: string;
- declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
- declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
- /** Aborts dedicatedWorkerGlobal. */
- declare function close(): void;
- /** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
- declare function postMessage(message: any, transfer: Transferable[]): void;
- declare function postMessage(message: any, options?: StructuredSerializeOptions): void;
- /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
- declare function dispatchEvent(event: Event): boolean;
- /** Returns workerGlobal's WorkerLocation object. */
- declare var location: WorkerLocation;
- /** Returns workerGlobal's WorkerNavigator object. */
- declare var navigator: WorkerNavigator;
- declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
- declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
- declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
- declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
- declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
- declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
- /** Returns workerGlobal. */
- declare var self: WorkerGlobalScope & typeof globalThis;
- /** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
- declare function importScripts(...urls: (string | URL)[]): void;
- /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
- declare function dispatchEvent(event: Event): boolean;
- declare var fonts: FontFaceSet;
- /** Available only in secure contexts. */
- declare var caches: CacheStorage;
- declare var crossOriginIsolated: boolean;
- declare var crypto: Crypto;
- declare var indexedDB: IDBFactory;
- declare var isSecureContext: boolean;
- declare var origin: string;
- declare var performance: Performance;
- declare function atob(data: string): string;
- declare function btoa(data: string): string;
- declare function clearInterval(id: number | undefined): void;
- declare function clearTimeout(id: number | undefined): void;
- declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
- declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
- declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
- declare function queueMicrotask(callback: VoidFunction): void;
- declare function reportError(e: any): void;
- declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
- declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
- declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
- declare function cancelAnimationFrame(handle: number): void;
- declare function requestAnimationFrame(callback: FrameRequestCallback): number;
- declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
- type AlgorithmIdentifier = Algorithm | string;
- type BigInteger = Uint8Array;
- type BinaryData = ArrayBuffer | ArrayBufferView;
- type BlobPart = BufferSource | Blob | string;
- type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
- type BufferSource = ArrayBufferView | ArrayBuffer;
- type CanvasImageSource = ImageBitmap | OffscreenCanvas;
- type DOMHighResTimeStamp = number;
- type EpochTimeStamp = number;
- type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
- type Float32List = Float32Array | GLfloat[];
- type FormDataEntryValue = File | string;
- type GLbitfield = number;
- type GLboolean = boolean;
- type GLclampf = number;
- type GLenum = number;
- type GLfloat = number;
- type GLint = number;
- type GLint64 = number;
- type GLintptr = number;
- type GLsizei = number;
- type GLsizeiptr = number;
- type GLuint = number;
- type GLuint64 = number;
- type HashAlgorithmIdentifier = AlgorithmIdentifier;
- type HeadersInit = [string, string][] | Record<string, string> | Headers;
- type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
- type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
- type Int32List = Int32Array | GLint[];
- type MessageEventSource = MessagePort | ServiceWorker;
- type NamedCurve = string;
- type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
- type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
- type PerformanceEntryList = PerformanceEntry[];
- type PushMessageDataInit = BufferSource | string;
- type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
- type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
- type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
- type RequestInfo = Request | string;
- type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
- type TimerHandler = string | Function;
- type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
- type Uint32List = Uint32Array | GLuint[];
- type VibratePattern = number | number[];
- type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
- type BinaryType = "arraybuffer" | "blob";
- type CanvasDirection = "inherit" | "ltr" | "rtl";
- type CanvasFillRule = "evenodd" | "nonzero";
- type CanvasFontKerning = "auto" | "none" | "normal";
- type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
- type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
- type CanvasLineCap = "butt" | "round" | "square";
- type CanvasLineJoin = "bevel" | "miter" | "round";
- type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
- type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
- type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
- type ClientTypes = "all" | "sharedworker" | "window" | "worker";
- type ColorGamut = "p3" | "rec2020" | "srgb";
- type ColorSpaceConversion = "default" | "none";
- type DocumentVisibilityState = "hidden" | "visible";
- type EndingType = "native" | "transparent";
- type FileSystemHandleKind = "directory" | "file";
- type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
- type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
- type FontFaceSetLoadStatus = "loaded" | "loading";
- type FrameType = "auxiliary" | "nested" | "none" | "top-level";
- type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
- type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
- type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
- type IDBRequestReadyState = "done" | "pending";
- type IDBTransactionDurability = "default" | "relaxed" | "strict";
- type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
- type ImageOrientation = "flipY" | "from-image";
- type ImageSmoothingQuality = "high" | "low" | "medium";
- type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
- type KeyType = "private" | "public" | "secret";
- type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
- type LockMode = "exclusive" | "shared";
- type MediaDecodingType = "file" | "media-source" | "webrtc";
- type MediaEncodingType = "record" | "webrtc";
- type NotificationDirection = "auto" | "ltr" | "rtl";
- type NotificationPermission = "default" | "denied" | "granted";
- type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
- type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
- type PermissionState = "denied" | "granted" | "prompt";
- type PredefinedColorSpace = "display-p3" | "srgb";
- type PremultiplyAlpha = "default" | "none" | "premultiply";
- type PushEncryptionKeyName = "auth" | "p256dh";
- type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
- type ReadableStreamReaderMode = "byob";
- type ReadableStreamType = "bytes";
- type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
- type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
- type RequestCredentials = "include" | "omit" | "same-origin";
- type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
- type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
- type RequestRedirect = "error" | "follow" | "manual";
- type ResizeQuality = "high" | "low" | "medium" | "pixelated";
- type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
- type SecurityPolicyViolationEventDisposition = "enforce" | "report";
- type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
- type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
- type TransferFunction = "hlg" | "pq" | "srgb";
- type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
- type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
- type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
- type WebGLPowerPreference = "default" | "high-performance" | "low-power";
- type WorkerType = "classic" | "module";
- type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
- `,ga["lib.webworker.importscripts.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /////////////////////////////
- /// WorkerGlobalScope APIs
- /////////////////////////////
- // These are only available in a Web Worker
- declare function importScripts(...urls: string[]): void;
- `,ga["lib.webworker.iterable.d.ts"]=`/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- /// <reference no-default-lib="true"/>
- /////////////////////////////
- /// Worker Iterable APIs
- /////////////////////////////
- interface Cache {
- addAll(requests: Iterable<RequestInfo>): Promise<void>;
- }
- interface CanvasPath {
- roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
- }
- interface CanvasPathDrawingStyles {
- setLineDash(segments: Iterable<number>): void;
- }
- interface DOMStringList {
- [Symbol.iterator](): IterableIterator<string>;
- }
- interface FileList {
- [Symbol.iterator](): IterableIterator<File>;
- }
- interface FontFaceSet extends Set<FontFace> {
- }
- interface FormData {
- [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
- /** Returns an array of key, value pairs for every entry in the list. */
- entries(): IterableIterator<[string, FormDataEntryValue]>;
- /** Returns a list of keys in the list. */
- keys(): IterableIterator<string>;
- /** Returns a list of values in the list. */
- values(): IterableIterator<FormDataEntryValue>;
- }
- interface Headers {
- [Symbol.iterator](): IterableIterator<[string, string]>;
- /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
- entries(): IterableIterator<[string, string]>;
- /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
- keys(): IterableIterator<string>;
- /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
- values(): IterableIterator<string>;
- }
- interface IDBDatabase {
- /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
- transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
- }
- interface IDBObjectStore {
- /**
- * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
- *
- * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
- */
- createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
- }
- interface MessageEvent<T = any> {
- /** @deprecated */
- initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
- }
- interface SubtleCrypto {
- deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
- generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
- generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
- generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
- importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
- importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
- unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
- }
- interface URLSearchParams {
- [Symbol.iterator](): IterableIterator<[string, string]>;
- /** Returns an array of key, value pairs for every entry in the search params. */
- entries(): IterableIterator<[string, string]>;
- /** Returns a list of keys in the search params. */
- keys(): IterableIterator<string>;
- /** Returns a list of values in the search params. */
- values(): IterableIterator<string>;
- }
- interface WEBGL_draw_buffers {
- drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
- }
- interface WEBGL_multi_draw {
- multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
- multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
- multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
- }
- interface WebGL2RenderingContextBase {
- clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
- clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
- clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
- drawBuffers(buffers: Iterable<GLenum>): void;
- getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
- getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
- invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
- invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
- transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
- uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
- vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
- }
- interface WebGL2RenderingContextOverloads {
- uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
- }
- interface WebGLRenderingContextBase {
- vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
- vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
- vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
- vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
- }
- interface WebGLRenderingContextOverloads {
- uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
- uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
- uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
- uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
- uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
- uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
- uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
- uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
- uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
- uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
- uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
- }
- `;function y_(m){return typeof m=="string"?/^file:\/\/\//.test(m)?!!ga[m.substr(8)]:!1:m.path.indexOf("/lib.")===0?!!ga[m.path.slice(1)]:!1}var Bce=class J4{constructor(g,S){this._extraLibs=Object.create(null),this._languageService=Mce(this),this._ctx=g,this._compilerOptions=S.compilerOptions,this._extraLibs=S.extraLibs,this._inlayHintsOptions=S.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(P=>P.uri).filter(P=>!y_(P)).map(P=>P.toString()).concat(Object.keys(this._extraLibs))}_getModel(g){let S=this._ctx.getMirrorModels();for(let P=0;P<S.length;P++){const X=S[P].uri;if(X.toString()===g||X.toString(!0)===g)return S[P]}return null}getScriptVersion(g){let S=this._getModel(g);return S?S.version.toString():this.isDefaultLibFileName(g)?"1":g in this._extraLibs?String(this._extraLibs[g].version):""}getScriptText(g){return pc(this,null,function*(){return this._getScriptText(g)})}_getScriptText(g){let S,P=this._getModel(g);const X="lib."+g+".d.ts";if(P)S=P.getValue();else if(g in ga)S=ga[g];else if(X in ga)S=ga[X];else if(g in this._extraLibs)S=this._extraLibs[g].content;else return;return S}getScriptSnapshot(g){const S=this._getScriptText(g);if(S!==void 0)return{getText:(P,X)=>S.substring(P,X),getLength:()=>S.length,getChangeRange:()=>{}}}getScriptKind(g){switch(g.substr(g.lastIndexOf(".")+1)){case"ts":return wA.TS;case"tsx":return wA.TSX;case"js":return wA.JS;case"jsx":return wA.JSX;default:return this.getCompilationSettings().allowJs?wA.JS:wA.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(g){switch(g.target){case 99:const S="lib.esnext.full.d.ts";if(S in ga||S in this._extraLibs)return S;case 7:case 6:case 5:case 4:case 3:case 2:default:const P=`lib.es${2013+(g.target||99)}.full.d.ts`;return P in ga||P in this._extraLibs?P:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(g){return g===this.getDefaultLibFileName(this._compilerOptions)}readFile(g){return this._getScriptText(g)}fileExists(g){return this._getScriptText(g)!==void 0}getLibFiles(){return pc(this,null,function*(){return ga})}static clearFiles(g){const S=[];for(const P of g){const X=Ti({},P);if(X.file=X.file?{fileName:X.file.fileName}:void 0,P.relatedInformation){X.relatedInformation=[];for(const _e of P.relatedInformation){const ve=Ti({},_e);ve.file=ve.file?{fileName:ve.file.fileName}:void 0,X.relatedInformation.push(ve)}}S.push(X)}return S}getSyntacticDiagnostics(g){return pc(this,null,function*(){if(y_(g))return[];const S=this._languageService.getSyntacticDiagnostics(g);return J4.clearFiles(S)})}getSemanticDiagnostics(g){return pc(this,null,function*(){if(y_(g))return[];const S=this._languageService.getSemanticDiagnostics(g);return J4.clearFiles(S)})}getSuggestionDiagnostics(g){return pc(this,null,function*(){if(y_(g))return[];const S=this._languageService.getSuggestionDiagnostics(g);return J4.clearFiles(S)})}getCompilerOptionsDiagnostics(g){return pc(this,null,function*(){if(y_(g))return[];const S=this._languageService.getCompilerOptionsDiagnostics();return J4.clearFiles(S)})}getCompletionsAtPosition(g,S){return pc(this,null,function*(){if(!y_(g))return this._languageService.getCompletionsAtPosition(g,S,void 0)})}getCompletionEntryDetails(g,S,P){return pc(this,null,function*(){return this._languageService.getCompletionEntryDetails(g,S,P,void 0,void 0,void 0,void 0)})}getSignatureHelpItems(g,S,P){return pc(this,null,function*(){if(!y_(g))return this._languageService.getSignatureHelpItems(g,S,P)})}getQuickInfoAtPosition(g,S){return pc(this,null,function*(){if(!y_(g))return this._languageService.getQuickInfoAtPosition(g,S)})}getDocumentHighlights(g,S,P){return pc(this,null,function*(){if(!y_(g))return this._languageService.getDocumentHighlights(g,S,P)})}getDefinitionAtPosition(g,S){return pc(this,null,function*(){if(!y_(g))return this._languageService.getDefinitionAtPosition(g,S)})}getReferencesAtPosition(g,S){return pc(this,null,function*(){if(!y_(g))return this._languageService.getReferencesAtPosition(g,S)})}getNavigationTree(g){return pc(this,null,function*(){if(!y_(g))return this._languageService.getNavigationTree(g)})}getFormattingEditsForDocument(g,S){return pc(this,null,function*(){return y_(g)?[]:this._languageService.getFormattingEditsForDocument(g,S)})}getFormattingEditsForRange(g,S,P,X){return pc(this,null,function*(){return y_(g)?[]:this._languageService.getFormattingEditsForRange(g,S,P,X)})}getFormattingEditsAfterKeystroke(g,S,P,X){return pc(this,null,function*(){return y_(g)?[]:this._languageService.getFormattingEditsAfterKeystroke(g,S,P,X)})}findRenameLocations(g,S,P,X,_e){return pc(this,null,function*(){if(!y_(g))return this._languageService.findRenameLocations(g,S,P,X,_e)})}getRenameInfo(g,S,P){return pc(this,null,function*(){return y_(g)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(g,S,P)})}getEmitOutput(g){return pc(this,null,function*(){return y_(g)?{outputFiles:[],emitSkipped:!0}:this._languageService.getEmitOutput(g)})}getCodeFixesAtPosition(g,S,P,X,_e){return pc(this,null,function*(){if(y_(g))return[];const ve={};try{return this._languageService.getCodeFixesAtPosition(g,S,P,X,_e,ve)}catch(Be){return[]}})}updateExtraLibs(g){return pc(this,null,function*(){this._extraLibs=g})}provideInlayHints(g,S,P){return pc(this,null,function*(){var ve;if(y_(g))return[];const X=(ve=this._inlayHintsOptions)!=null?ve:{},_e={start:S,length:P-S};try{return this._languageService.provideInlayHints(g,_e,X)}catch(Be){return[]}})}};function C6e(m,g){let S=Bce;if(g.customWorkerPath)if(typeof importScripts=="undefined")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(g.customWorkerPath);const P=self.customTSWorkerFactory;if(!P)throw new Error(`The script at ${g.customWorkerPath} does not add customTSWorkerFactory to self`);S=P(Bce,Pce,ga)}return new S(m,g)}globalThis.ts=Fce,self.onmessage=()=>{Oce((m,g)=>C6e(m,g))};/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */})();
- //# sourceMappingURL=ts.worker-e0bd209e.js.map
|